/* MODETO 1.6.0. Scoped native catalogue/commerce polish and semantic headings; no business logic. */
.modeto-store-design .main_custom_order_by_sort{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:14px;background:#fff;border:1px solid var(--ms-stroke);border-radius:16px;line-height:1.9;margin-bottom:18px}
.modeto-store-design .custom_order_by_sort{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px!important;border:1px solid transparent;border-radius:999px;color:var(--ms-sub);white-space:normal}
.modeto-store-design .custom_order_by_sort.selected{background:var(--ms-wine);color:#fff!important;border-color:var(--ms-wine)}
.modeto-store-design .filters-panel .widget-title{font-family:ModetoDoran,Tahoma,sans-serif;color:var(--ms-deep);font-size:18px;line-height:1.8}
.modeto-store-design .filters-panel :is(label,.bk-archive-filter-checkbox-body){line-height:1.9;min-height:44px}
.modeto-store-design .woocommerce-result-count{color:var(--ms-sub);line-height:1.9}
.modeto-store-design.search-no-results .woocommerce-result-count{display:none} /* Avoid native “1–0 of 0” counter; actual no-result message remains. */
.modeto-store-design li.product .products__item-info{display:flex;flex-direction:column;height:100%}
.modeto-store-design li.product .products__item-fatitle{min-height:76px!important}
.modeto-store-design li.product .products__item-gift-price{margin-top:auto!important;padding-top:8px}
.modeto-store-design li.product .box-footer{min-height:44px}
.modeto-store-design :is(.custom_order_by_sort,.products__item-fatitle a,.loop-add-to-cart a,.wc-tabs a):focus-visible{outline:3px solid #88333f!important;outline-offset:3px}
.modeto-store-design.single-product .product-info-box{line-height:1.9}
.modeto-store-design.single-product .price-section{font-variant-numeric:tabular-nums}
.modeto-store-design.single-product .products-tabs ul.tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0}
.modeto-store-design.single-product .products-tabs ul.tabs li{border:1px solid var(--ms-stroke);border-radius:12px;list-style:none;margin:0}
.modeto-store-design.single-product .products-tabs ul.tabs li a{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px}
.modeto-store-design.single-product .products-tabs ul.tabs li.active{background:#f4e5e3;border-color:#d8b8b4}
.modeto-store-design.woocommerce-cart .cart_totals h2{font-family:ModetoDoran,Tahoma,sans-serif;font-size:25px;color:var(--ms-deep)}
.modeto-store-design.woocommerce-cart .cart-empty{padding:24px;border-radius:16px;background:#fff;border:1px solid var(--ms-stroke)}
/* Bakala's standalone guest-account template does not call body_class(). */
body.bk_myaccount{--ms-wine:#621923;--ms-deep:#351017;--ms-cream:#faf7f3;--ms-ink:#241b1e;--ms-sub:#65595b;--ms-stroke:#e8dedb;background:#faf7f3;color:var(--ms-ink)}
body.bk_myaccount #login-register .auth__container{max-width:460px;border:1px solid var(--ms-stroke);border-radius:24px;background:#fff;box-shadow:0 16px 48px #3510170a;padding:30px 28px;box-sizing:border-box}
body.bk_myaccount #login-register .auth-modal__title{font-family:ModetoDoran,Tahoma,sans-serif;font-size:26px;line-height:1.8;color:var(--ms-deep)}
body.bk_myaccount #login-register :is(input[type=text]:not(#autofill-input),input[type=password],input[type=tel]){border-radius:12px;border:1px solid #cdb5b1;min-height:46px;box-sizing:border-box;max-width:100%}
body.bk_myaccount #login-register .auth-footer{line-height:2;color:var(--ms-sub)}
body.bk_myaccount #login-register :is(a,button,input):focus-visible{outline:3px solid #88333f!important;outline-offset:3px}
.modeto-search-recovery,.modeto-error-page{background:#fff;border:1px solid #e8dedb;border-radius:24px;padding:32px;color:#241b1e;overflow-wrap:anywhere}
.modeto-search-recovery{margin-block:20px 36px}
.modeto-search-recovery h2,.modeto-error-page h1{font-family:ModetoDoran,Tahoma,sans-serif!important;color:#351017;line-height:1.7}
.modeto-search-recovery h2{font-size:26px;margin:0 0 12px}
.modeto-search-recovery p,.modeto-error-page>p{line-height:2;color:#65595b}
.modeto-recovery-search{margin-block:24px}
.modeto-recovery-search label{display:block;margin-bottom:10px;font-weight:700}
.modeto-recovery-search>div{display:flex;gap:10px}
.modeto-recovery-search input[type=search]{flex:1;min-width:0;min-height:48px;background:#fff;border:1px solid #bfa9a6;border-radius:12px;padding:12px;color:#241b1e;font:inherit}
.modeto-recovery-search button{background:#621923;border:1px solid #621923;border-radius:12px;color:white;padding:12px 20px;min-height:48px;font:inherit}
.modeto-recovery-links{display:flex;flex-wrap:wrap;gap:10px}
.modeto-recovery-links a{display:inline-flex;align-items:center;min-height:44px;border:1px solid #d9c4c0;border-radius:999px;padding:8px 16px;color:#621923;background:#fcf7f5}
:is(.modeto-search-recovery,.modeto-error-page) :is(a,input,button):focus-visible{outline:3px solid #88333f;outline-offset:3px}
.modeto-error-page{max-width:820px;margin:48px auto;text-align:right}
.modeto-error-page .modeto-error-code{font-size:48px;line-height:1.2;color:#a16b72;margin:0 0 16px;font-weight:700}
.modeto-error-page h1{font-size:clamp(30px,4vw,44px);margin:0 0 16px}
@media(max-width:767px){
 .modeto-store-design .main_custom_order_by_sort{padding:10px;gap:4px}
 .modeto-store-design .custom_order_by_sort{font-size:12px;padding:7px 10px!important}
 .modeto-store-design li.product .products__item-fatitle{min-height:96px!important}
 .modeto-store-design.single-product .products-tabs ul.tabs li a{padding:10px 12px}
 body.bk_myaccount #login-register .auth__container{max-width:calc(100vw - 32px);padding:24px 20px;border-radius:18px}
 .modeto-search-recovery{padding:22px 18px;border-radius:18px}
 .modeto-recovery-search>div{flex-direction:column}
 .modeto-error-page{margin:24px 16px;padding:26px 20px;border-radius:18px}
}
/* Verified Elementor cart/checkout content: native children and form handlers retained. */
.modeto-commerce-structure{max-width:1340px;margin:32px auto 0;padding-inline:16px;box-sizing:border-box}
.modeto-commerce-structure-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px;padding:18px 8px 24px;border-bottom:1px solid var(--ms-stroke)}
.modeto-commerce-structure-header h1{font-family:ModetoDoran,Tahoma,sans-serif!important;font-size:clamp(28px,3vw,38px);line-height:1.7;color:var(--ms-deep);margin:0}
.modeto-commerce-structure-header a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--ms-stroke);border-radius:999px;background:#fff;color:var(--ms-wine);font-size:13px}
.modeto-commerce-structure-header a:focus-visible{outline:3px solid #88333f;outline-offset:3px}
body.bk_myaccount #login-register .modeto-account-structure-header{max-width:460px;margin:24px auto 20px;padding:0 8px;box-sizing:border-box}
body.bk_myaccount #login-register .modeto-account-structure-header h1{font-family:ModetoDoran,Tahoma,sans-serif;font-size:30px;line-height:1.7;color:var(--ms-deep);text-align:center;margin:0}
@media(max-width:767px){
 .modeto-commerce-structure{margin-top:16px;padding-inline:12px}
 .modeto-commerce-structure-header{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:18px}
 body.bk_myaccount #login-register .modeto-account-structure-header{max-width:calc(100vw - 32px)}
}
