/* Solo móvil: controles del tema Santuario y separación nativa de galería/summary. */
@media (max-width:767px) {
 #masthead .santuario-menu-toggle { background:transparent!important;color:#2b241d!important;border:1px solid #d7c7b4!important;border-radius:50%!important;width:46px!important;height:46px!important;padding:11px!important;box-shadow:none!important;touch-action:manipulation; }
 #masthead .santuario-menu-toggle span:not(.screen-reader-text) {background:#2b241d!important;width:22px!important;height:2px!important;margin:4px 0!important;}
 #masthead #santuario-primary-nav {z-index:2147483001;width:min(88vw,350px);height:100vh;height:100dvh;box-sizing:border-box;padding:84px 24px max(28px,env(safe-area-inset-bottom));background:#f7f3eb;border-right:1px solid #dfd4c1;overflow-y:auto;overscroll-behavior:contain;}
 #masthead #santuario-primary-nav .santuario-menu {display:flex;flex-direction:column;align-items:stretch;gap:0;}
 #masthead #santuario-primary-nav .santuario-menu a {white-space:normal;font-family:Georgia,serif!important;font-size:21px!important;line-height:1.3;letter-spacing:0!important;text-transform:none!important;font-weight:400!important;padding:17px 0!important;border-bottom:1px solid #e5ddcf;}
 #masthead #santuario-primary-nav .santuario-account-menu-item a {display:flex;align-items:center;gap:12px;}
 #masthead #santuario-primary-nav .santuario-account-menu-item .screen-reader-text {position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;margin:0!important;}
 #masthead .sui-menu-close {position:absolute;top:max(20px,env(safe-area-inset-top));right:18px;display:grid;place-items:center;width:48px;height:48px;padding:0!important;background:transparent!important;color:#2b241d!important;border:1px solid #d7c7b4!important;border-radius:50%;font:30px/1 Arial,sans-serif!important;touch-action:manipulation;}
 .sui-menu-backdrop {position:fixed;inset:0;z-index:2147483000;background:rgba(30,26,23,.35);touch-action:manipulation;}
 .sui-menu-backdrop[hidden] {display:none!important;}
 body.sui-mobile-menu-open {overflow:hidden;}
 #masthead:has(.santuario-primary-nav.is-open) {z-index:2147483002!important;}
 body.single-product div.product .woocommerce-product-gallery {float:none!important;clear:both!important;width:100%!important;max-width:100%!important;display:flow-root;margin-bottom:24px!important;}
 body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {display:flex!important;flex-wrap:wrap;gap:8px;float:none!important;clear:both!important;width:100%!important;margin:12px 0 0!important;padding:0!important;overflow:hidden;}
 body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {float:none!important;clear:none!important;flex:0 0 calc((100% - 24px)/4);width:calc((100% - 24px)/4)!important;margin:0!important;list-style:none;}
 body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {display:block;width:100%!important;height:auto;}
 body.single-product div.product .summary {float:none!important;clear:both!important;width:100%!important;max-width:100%!important;margin-top:0!important;}
 body.single-product .santuario-product-config-layout {display:block!important;}
}

/* 3.14.53: Mi Cuenta y el encabezado nativo de Checkout Blocks, solo móvil. */
@media (max-width:767px) {
 body.santuario-account-page .woocommerce > .santuario-account-dashboard-welcome {clear:both;width:100%;margin:0 0 28px;}
 body.santuario-account-page .woocommerce-MyAccount-content .woocommerce-info:has(> a.button) {display:flex!important;flex-direction:column;align-items:flex-start;gap:18px;}
 body.santuario-account-page .woocommerce-MyAccount-content .woocommerce-info > a.button {float:none!important;position:static!important;order:1;margin:0!important;max-width:100%;box-sizing:border-box;white-space:normal;}
 #masthead #santuario-primary-nav .santuario-account-menu-item--logged-in {margin-bottom:14px;}
 #masthead #santuario-primary-nav .santuario-account-menu-item--logged-in a {display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px 12px;align-items:center;}
 #masthead #santuario-primary-nav .santuario-account-menu-item--logged-in .santuario-account-icon {grid-column:1;grid-row:1 / span 2;width:24px;height:24px;}
 #masthead #santuario-primary-nav .santuario-account-menu-item--logged-in .santuario-account-greeting {grid-column:2;font-family:Georgia,serif;font-size:21px;line-height:1.3;}
 #masthead #santuario-primary-nav .santuario-account-menu-item--logged-in .screen-reader-text {grid-column:2;font-family:Arial,sans-serif;font-size:13px;line-height:1.4;}
 body.santuario-account-page form.register .sui-registration-feedback {background:#f7f1e6;border-left:3px solid #9b7845;color:#33291f;padding:12px 14px;margin:12px 0 20px;font-size:15px;line-height:1.5;}
 body.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__heading {display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;}
 body.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__title {width:100%;margin:0!important;}
 body.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__heading-content {position:static!important;width:100%;margin:0!important;}
 body.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block .wc-block-checkout__login-prompt {position:static!important;float:none!important;display:inline-block;margin:0!important;line-height:1.5;}
}

@media(max-width:767px){#masthead #santuario-primary-nav .santuario-account-menu-item--logged-in .screen-reader-text{display:none!important;}}

/* Mobile footer signature and the lower WooCommerce Blocks summary only. */
@media(max-width:767px){
 .santuario-footer-signature p{white-space:nowrap!important;font-size:clamp(25px,7.2vw,34px)!important;line-height:1.2!important;width:auto!important;max-width:100%!important;}
 .santuario-footer-signature p br{display:none!important;}

 body.woocommerce-checkout .santuario-mobile-summary-duplicate{display:none!important;}
}

.santuario-footer-signature .santuario-mobile-footer-space{display:none;}
@media(max-width:767px){.santuario-footer-signature .santuario-mobile-footer-space{display:inline;}}

@media(max-width:767px){
 .santuario-footer .santuario-footer-signature{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:16px!important;}
 .santuario-footer .santuario-footer-signature p{font:italic 500 clamp(25px,7.2vw,34px)/1.2 var(--sc-serif,Georgia,serif)!important;margin:0!important;white-space:nowrap!important;}
 .santuario-footer .santuario-footer-signature p .santuario-mobile-footer-space{display:inline!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;background:none!important;}
 .santuario-footer .santuario-footer-signature p .santuario-mobile-footer-space::after{content:none!important;display:none!important;}
 .santuario-footer .santuario-footer-signature > span{display:block!important;flex:none!important;margin:0!important;}
}

@media(min-width:768px){.santuario-footer .santuario-footer-signature p .santuario-mobile-footer-space{display:none!important;}}

@media(max-width:767px){
 .santuario-footer .santuario-footer-signature{width:max-content!important;max-width:100%!important;align-items:center!important;}
 .santuario-footer .santuario-footer-signature > span{align-self:center!important;margin-left:auto!important;margin-right:auto!important;}
}

/* Account order detail: stack native cells and break long item metadata URLs. */
@media(max-width:767px){
 body.santuario-account-page .woocommerce-MyAccount-content{min-width:0!important;max-width:100%!important;box-sizing:border-box;}
 body.santuario-account-page .woocommerce-order-details{width:100%!important;max-width:100%!important;min-width:0!important;}
 body.santuario-account-page .woocommerce-order-details table.woocommerce-table--order-details{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;box-sizing:border-box;}
 body.santuario-account-page .woocommerce-order-details table :is(thead,tbody,tfoot,tr){display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box;}
 body.santuario-account-page .woocommerce-order-details table :is(th,td){display:block!important;float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:14px 12px!important;box-sizing:border-box;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-align:left!important;}
 body.santuario-account-page .woocommerce-order-details table thead th:not(:first-child){display:none!important;}
 body.santuario-account-page .woocommerce-order-details table tbody tr{border-bottom:1px solid #ded2bd;}
 body.santuario-account-page .woocommerce-order-details table tbody td{border-bottom:0!important;}
 body.santuario-account-page .woocommerce-order-details table tbody td.product-total{padding-top:6px!important;text-align:right!important;}
 body.santuario-account-page .woocommerce-order-details table .santuario-order-review-cell:empty{display:none!important;}
 body.santuario-account-page .woocommerce-order-details table :is(.wc-item-meta,.wc-item-meta li,.wc-item-meta p,.wc-item-meta a){max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;box-sizing:border-box;}
 body.santuario-account-page .woocommerce-order-details table .wc-item-meta{padding-left:18px!important;margin-left:0!important;}
 body.santuario-account-page .woocommerce-order-details table :is(.santuario-order-review-link,.santuario-order-review-sent){white-space:normal!important;overflow-wrap:anywhere!important;}
 body.santuario-account-page .woocommerce-order-details table tfoot tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);}
 body.santuario-account-page .woocommerce-order-details table tfoot td{text-align:right!important;}
}

@media(max-width:767px){
 body.santuario-account-page table.woocommerce-orders-table{display:block!important;width:100%!important;border:0!important;}
 body.santuario-account-page .woocommerce-orders-table thead{display:none!important;}
 body.santuario-account-page .woocommerce-orders-table tbody{display:grid!important;gap:20px!important;width:100%!important;}
 body.santuario-account-page .woocommerce-orders-table tbody tr{display:block!important;width:100%!important;box-sizing:border-box;padding:8px 12px!important;border:1px solid #ded2bd!important;border-left:3px solid #a58142!important;background:#fbf8f2!important;}
 body.santuario-account-page .woocommerce-orders-table tbody td{display:block!important;width:100%!important;box-sizing:border-box!important;padding:12px 0!important;}
 body.santuario-account-page .woocommerce-orders-table tbody td::before{margin-right:8px!important;}
 body.santuario-account-page .woocommerce-orders-table tbody td:last-child{border-bottom:0!important;}
 body.santuario-account-page .sui-order-photo-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:6px;font-size:14px;color:#65513b;}
 body.santuario-account-page .sui-order-photo-status button{background:#f7f2e9;color:#604a35;border:1px solid #bda57a;padding:10px 14px;min-height:44px;font-size:14px;cursor:pointer;}
 body.santuario-account-page .sui-order-photo-raw{display:none!important;}
 .sui-order-photo-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:480px;max-height:85vh;max-height:85dvh;overflow:auto;border:1px solid #cbb58b;padding:18px;background:#f7f3eb;color:#30261f;}
 .sui-order-photo-dialog::backdrop{background:rgba(30,26,23,.65);}
 .sui-order-photo-dialog .sui-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;}
 .sui-order-photo-dialog h2{font:400 24px/1.2 Georgia,serif;margin:0;}
 .sui-order-photo-dialog button{min-width:44px;min-height:44px;border:1px solid #bda57a;background:#fbf8f2;color:#604a35;padding:10px;font-size:16px;}
 .sui-order-photo-dialog img{display:block;width:100%;height:45vh;object-fit:contain;margin:16px 0;background:#eee7dc;}
 .sui-order-photo-dialog .sui-photo-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;}
 .sui-order-photo-dialog a{display:inline-block;color:#735b43;margin:14px 0 0;font-size:14px;}
}

/* 3.14.67: remove stacked page/article/content gutters in Help and Contact. */
@media(max-width:767px){
 body:is(.santuario-privacy-policy,.santuario-contact-page) .site-main{width:calc(100% - 24px)!important;max-width:100%!important;padding:0!important;margin:14px auto 28px!important;border:0!important;box-shadow:none!important;box-sizing:border-box;}
 body:is(.santuario-privacy-policy,.santuario-contact-page) .site-main > article.gs-content-wrap{width:100%!important;max-width:100%!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;box-sizing:border-box;}
 body:is(.santuario-privacy-policy,.santuario-contact-page) .site-main > article > .entry-content{width:100%!important;max-width:100%!important;padding:24px 4px 32px!important;margin:0!important;border:0!important;box-shadow:none!important;box-sizing:border-box;}
 body:is(.santuario-privacy-policy,.santuario-contact-page) .site-main > article > .entry-content > :is(h1,.santuario-contact-page-title){width:100%!important;max-width:100%!important;margin:0 0 22px!important;padding:0 0 24px!important;font-size:32px!important;line-height:1.15!important;box-sizing:border-box;}
 body:is(.santuario-privacy-policy,.santuario-contact-page) .site-main > article > .entry-content > :is(h1,.santuario-contact-page-title)::after{bottom:0!important;}
 body:is(.santuario-privacy-policy,.santuario-contact-page) .site-main > article > .entry-content > :is(p,h2,h3,ul,ol){max-width:100%!important;box-sizing:border-box;overflow-wrap:anywhere;}
 body:is(.santuario-privacy-policy,.santuario-contact-page) .site-main > article > .entry-content > p:not(.santuario-contact-page-title){padding:0!important;font-size:16px!important;line-height:1.6!important;}
 body.santuario-privacy-policy .site-main > article > .entry-content > h3{padding-left:0!important;padding-right:0!important;font-size:21px!important;line-height:1.35!important;}
 body.santuario-contact-page .site-main .jetpack-contact-form-container,body.santuario-contact-page .site-main form.contact-form{width:100%!important;max-width:100%!important;padding:0!important;margin-left:0!important;margin-right:0!important;border:0!important;box-shadow:none!important;box-sizing:border-box;}
 body.santuario-contact-page .site-main form.contact-form :is(.grunion-field-wrap,.wp-block-jetpack-input,.wp-block-jetpack-textarea){max-width:100%!important;box-sizing:border-box;}
 body.santuario-contact-page .site-main form.contact-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),textarea,select){width:100%!important;max-width:100%!important;box-sizing:border-box;font-size:16px!important;}
}
