/* Every rule is restricted to the existing mobile-navigation breakpoint. */
@media screen and (max-width:760px){
 /* Keep the first artwork visible sooner without changing catalogue filters. */
 body:has(.tt-gallery-hero):not(:has(.tc-collection-detail,.tc-met-detail)) main{margin-top:0!important}
 body:has(.tt-gallery-hero):not(:has(.tc-collection-detail,.tc-met-detail)) main>.wp-block-group{padding-top:22px!important}
 body:has(.tt-gallery-hero):not(:has(.tc-collection-detail,.tc-met-detail)) main .wp-block-post-title{font-size:30px!important;line-height:1.15!important;margin-bottom:22px!important}
 .tc-shopping-routes:not(.tc-shopping-home){margin-top:16px!important;margin-bottom:16px!important}
 .tc-shopping-routes:not(.tc-shopping-home) .tc-route-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 .tc-shopping-routes:not(.tc-shopping-home) .tc-route-grid>a{padding:10px 8px!important;min-height:58px;box-sizing:border-box;justify-content:center}
 .tc-shopping-routes:not(.tc-shopping-home) .tc-route-grid strong{font-size:12px!important;line-height:1.35;overflow-wrap:normal}
 .tc-view-tabs{margin-top:16px!important;margin-bottom:16px!important;gap:22px}
 .tc-view-tabs a{padding:10px 0}
 .tc-catalog-layout{gap:12px!important}
 .tc-catalog-layout .tc-order-bar{margin:0!important}
 .tc-catalog-layout .tc-result-summary{margin-bottom:8px!important}

 /* Collection filters retain their normal form submission and desktop layout. */
 .tc-collection-layout>.tc-collections-toolbar.tt-mobile-collection-ready{display:none!important;width:100%!important;max-width:none;box-sizing:border-box;padding:20px!important;border:1px solid #ddd}
 .tc-collection-layout>.tc-collections-toolbar.tt-mobile-collection-ready.tc-mobile-open{display:block!important;order:1}
 .tc-collection-layout>.tc-collection-results{width:100%;min-width:0}
 .tc-collection-layout .tc-filter-actions button{min-height:44px}

 /* Match the local catalogue's mobile card hierarchy for museum results. */
 body .tc-met-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 16px!important;align-items:stretch}
 body .tc-met-grid>article{display:flex;flex-direction:column;align-items:stretch;min-width:0;height:100%;box-sizing:border-box;padding:0 0 20px;border-bottom:1px solid #dedbd7}
 body .tc-met-grid>article>a:first-child{display:block;width:100%;color:inherit;text-decoration:none}
 body .tc-met-grid>article img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;margin:0 0 16px}
 body .tc-met-grid>article h3{font-size:19px!important;font-weight:500;line-height:1.25!important;letter-spacing:-.025em;margin:0 0 8px!important;overflow-wrap:anywhere}
 body .tc-met-grid>article>p:first-of-type{font-size:12px;font-weight:600;line-height:1.5;color:#9c272a;letter-spacing:.03em;margin:4px 0 0}
 body .tc-met-grid>article>p:last-of-type{font-size:16px;line-height:1.5;color:#333;margin:auto 0 0;padding-top:22px}
 body .tc-met-grid>article>.tt-mobile-met-action{display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:12px 22px;margin-top:14px;background:#c92228;color:#fff;border:0;border-radius:0;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none}
 body .tc-met-grid>article>.tt-mobile-met-action:focus-visible{outline:2px solid #222;outline-offset:4px}

 /* Keep the final material option within the same two-column grid. */
 .tartari-configurator :is([data-step="frame"],[data-step="glass"]) .tc-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:10px}
 .tartari-configurator :is([data-step="frame"],[data-step="glass"]) .tc-option{width:100%!important;min-width:0!important;max-width:none!important;height:100%;box-sizing:border-box;margin:0;align-self:stretch}
 .tartari-configurator :is([data-step="frame"],[data-step="glass"]) .tc-option[hidden]{display:none!important}

 body.woocommerce-account :is(.woocommerce-form-login,.woocommerce-ResetPassword) input:is([type="text"],[type="email"],[type="password"]){font-size:16px!important}
 body.woocommerce-account .woocommerce-form-login input[name="password"]{padding-right:54px}
 body.woocommerce-account .show-password-input{display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-width:44px;min-height:44px;box-sizing:border-box;top:50%!important;right:2px!important;transform:translateY(-50%)!important;margin:0!important;padding:11px!important}
 .tt-checkout-detail-toggle,.tc-ex-photo-controls button{min-height:44px!important}

 /* Keep all five paper choices the same size, including the last row. */
 .tartari-configurator [data-step="paper"] .tc-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:10px}
 .tartari-configurator [data-step="paper"] .tc-option{width:100%!important;min-width:0!important;max-width:none!important;min-height:168px;height:100%;margin:0;box-sizing:border-box;justify-content:flex-start!important;align-self:stretch}
 .tartari-configurator [data-step="paper"] .tc-option[hidden]{display:none!important}
 .tartari-configurator [data-step="paper"] .tc-option>span:last-child{width:100%;overflow-wrap:normal;word-break:normal}

 /* The existing file input stays inside its form and keeps its validation. */
 .tt-mobile-upload-image{display:none!important}
 .tt-mobile-upload-active .tt-mobile-native-file{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);border:0!important}
 .tt-mobile-upload-control{margin:10px 0 18px}
 .tt-mobile-upload-control button{display:block;width:100%;min-height:52px;padding:14px 18px;border:1px solid #252522;border-radius:0;background:#252522;color:#fff;font:inherit;font-size:16px;text-align:center;cursor:pointer}
 .tt-mobile-upload-control button:focus-visible{outline:2px solid #c62629;outline-offset:3px}
 .tt-mobile-upload-status{display:block;margin-top:8px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:#555}
 .tt-mobile-upload-active>.tc-source{border-top:0!important;padding-top:0!important}
 .tt-mobile-upload-preview{min-width:0;width:100%;margin:18px 0 24px}
 .tt-mobile-upload-preview[hidden]{display:none!important}
 .tt-mobile-upload-preview .tc-modeler{width:100%;box-sizing:border-box;margin:0;border:0!important;padding:10px!important}
 .tt-mobile-upload-preview .tc-modeler>canvas{max-height:360px}

 /* Expand the real order details into the space below the thumbnail/total.
    Only CSS offsets change: no WooCommerce metadata is moved or duplicated. */
 .wc-block-cart .wc-block-cart-item__product,.wc-block-cart .wc-block-cart-item__wrap,.wc-block-cart .wc-block-components-product-metadata{min-width:0}
 .wc-block-cart .tt-cart-details-open{box-sizing:border-box!important;max-width:none!important;width:calc(100% + var(--tt-cart-detail-start,0px) + var(--tt-cart-detail-end,0px))!important;margin-inline-start:calc(-1 * var(--tt-cart-detail-start,0px))!important;padding-top:12px!important}
 .wc-block-cart .wc-block-cart-item__quantity,.wc-block-mini-cart__drawer .wc-block-cart-item__quantity{box-sizing:border-box;width:calc(100% + var(--tt-cart-detail-end,0px))!important;max-width:none!important}
 .wc-block-cart .tt-cart-details-open>span{box-sizing:border-box;overflow-wrap:anywhere}

 header .tt-header-logo{width:clamp(112px,calc(100vw - 202px),150px)!important;min-width:0}
 header .tt-header-logo svg{width:100%;height:auto}
 /* Larger touch targets; icons retain their existing size and appearance. */
 header .wp-block-navigation__responsive-container-open,
 header .wp-block-navigation__responsive-container-close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;display:flex;align-items:center;justify-content:center;padding:10px!important;box-sizing:border-box}
 header .is-menu-open .wp-block-navigation__submenu-icon{width:44px!important;min-width:44px!important;height:44px!important}
 .wc-block-cart .wc-block-components-quantity-selector button,
 .wc-block-mini-cart__drawer .wc-block-components-quantity-selector button{min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important}
 .wc-block-cart .wc-block-cart-item__quantity,.wc-block-mini-cart__drawer .wc-block-cart-item__quantity{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
 .wc-block-cart .wc-block-components-quantity-selector input,.wc-block-mini-cart__drawer .wc-block-components-quantity-selector input{width:40px!important;min-width:40px!important;max-width:40px!important}
 .wc-block-cart .wc-block-components-quantity-selector,
 .wc-block-mini-cart__drawer .wc-block-components-quantity-selector{height:auto;min-height:44px}
 .wc-block-cart .wc-block-cart-item__remove-link,
 .wc-block-mini-cart__drawer .wc-block-cart-item__remove-link{min-width:44px!important;min-height:44px!important;display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;padding:10px!important;margin:0!important}
}
@media screen and (max-width:420px){body .tc-met-grid{grid-template-columns:1fr!important}}
