/* Native filter disclosures: retain original Shoptet/Apollo click handlers. */
@media(max-width:767px){
html.smx-integration-v1:root body.type-category #filters .filter-section>h4,html.smx-integration-v1:root body.type-category #filters .slider-wrapper>h4{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;cursor:pointer!important;}
html.smx-integration-v1:root body.type-category #filters .filter-section>h4::after,html.smx-integration-v1:root body.type-category #filters .slider-wrapper>h4::after{content:'+'!important;font:700 22px/1 Arial,sans-serif!important;color:#312479!important;position:static!important;display:block!important;width:22px!important;height:22px!important;flex:0 0 22px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;transform:none!important;text-align:center!important;}
html.smx-integration-v1:root body.type-category #filters .filter-section.is-active>h4::after,html.smx-integration-v1:root body.type-category #filters .slider-wrapper.is-active>h4::after{content:'−'!important;}
html.smx-integration-v1:root body.type-category #filters .slider-wrapper:not(.is-active){min-height:0!important;height:auto!important;}
}

@media(max-width:359px){
html.smx-integration-v1:root body.type-product #product-detail-form .add-to-cart .add-to-cart-button{font-size:16px!important;gap:6px!important;padding:6px 8px!important;}
html.smx-integration-v1:root body.type-product #product-detail-form .add-to-cart .add-to-cart-button::before,html.smx-integration-v1:root body.type-product #product-detail-form .add-to-cart .add-to-cart-button::after{margin:0!important;width:18px!important;flex:0 0 18px!important;}
html.smx-integration-v1:root body.type-product #product-detail-form .add-to-cart .add-to-cart-button::before{font-size:18px!important;}
}

/* Keep actual visibility consistent with the integration toggle even after native AJAX. */
html.smx-integration-v1:root body.type-category #filters-wrapper.smx-filters-closed #filters{display:none!important;}
html.smx-integration-v1:root body.type-category #filters-wrapper:not(.smx-filters-closed) #filters{display:flex!important;}

/* Authenticated Shoptet uses an anchor, not the logged-out button. */
@media(min-width:768px){
html.smx-integration-v1:root body.template-11 #header .navigation-buttons>.top-nav-button-account{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;min-height:48px!important;width:200px!important;min-width:0!important;flex:0 1 200px!important;padding:0 18px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#111318!important;font-size:14px!important;font-weight:700!important;white-space:nowrap!important;}
html.smx-integration-v1:root #header .top-nav-button-account::before{content:'\e90a';font-family:apollo!important;font-size:24px!important;margin-right:10px!important;color:#7c7e8f!important;}
html.smx-integration-v1:root #header .top-nav-button-account::after{display:none!important;}
}
@media(max-width:767px){
html.smx-integration-v1:root body.template-11 .top-navigation-bar .responsive-tools>a[data-target="login"][href="/klient/"]{display:flex!important;position:absolute!important;top:5px!important;right:56px!important;left:auto!important;width:40px!important;height:50px!important;margin:0!important;padding:0!important;align-items:center!important;justify-content:center!important;color:#312479!important;z-index:12!important;}
html.smx-integration-v1:root body.template-11 .top-navigation-bar .responsive-tools>a[data-target="login"][href="/klient/"]::before{position:static!important;margin:0!important;font-size:24px!important;}
}
/* DES-076: customer center only; native data, forms and actions unchanged. */
html.smx-integration-v1:root body.customer-page #content-wrapper { background:transparent!important; padding:0 20px 40px!important; }
html.smx-integration-v1:root body.customer-page .client-title { background:transparent!important; padding:24px 0!important; }
html.smx-integration-v1:root body.customer-page .client-title h1 { margin:0!important; color:#312479!important; font-size:36px!important; line-height:1.2!important; }
html.smx-integration-v1:root body.customer-page .content-wrapper-in { display:flex!important; align-items:flex-start!important; gap:24px!important; padding:0!important; background:transparent!important; }
html.smx-integration-v1:root body.customer-page .sidebar.sidebar-left { flex:0 0 260px!important; width:260px!important; min-width:0!important; background:transparent!important; padding:0!important; }
html.smx-integration-v1:root body.customer-page .sidebar-inner { padding:0!important; background:transparent!important; }
html.smx-integration-v1:root body.customer-page .client-center-box { margin:0!important; padding:10px!important; border:1px solid #dce5f1!important; border-radius:16px!important; background:#fff!important; box-shadow:0 6px 24px #31247908; }
html.smx-integration-v1:root body.customer-page .client-center-box ul { margin:0!important; padding:0!important; list-style:none!important; background:transparent!important; }
html.smx-integration-v1:root body.customer-page .client-center-box li { margin:0!important; padding:0!important; list-style:none!important; background:transparent!important; border:0!important; }
html.smx-integration-v1:root body.customer-page .client-center-box li:before { display:none!important; }
html.smx-integration-v1:root body.customer-page .client-center-box li.logout:empty { display:none!important; }
html.smx-integration-v1:root body.customer-page .client-center-box li a { display:block!important; margin:0!important; padding:11px 12px!important; border-radius:9px!important; color:#183754!important; background:transparent!important; font-size:15px!important; line-height:1.35!important; font-weight:500!important; text-decoration:none!important; overflow-wrap:anywhere; }
html.smx-integration-v1:root body.customer-page .client-center-box li.active>a { background:#312479!important; color:#fff!important; font-weight:700!important; }
html.smx-integration-v1:root body.customer-page .client-center-box li:not(.active)>a:hover { background:#edf3fc!important; color:#312479!important; }
html.smx-integration-v1:root body.customer-page .client-center-box a:focus-visible { outline:3px solid #312479!important; outline-offset:2px; }
html.smx-integration-v1:root body.customer-page .client-logout-btn-block { display:block!important; padding:14px 0 0!important; text-align:center; }
html.smx-integration-v1:root body.customer-page #content { flex:1 1 0!important; min-width:0!important; width:calc(100% - 284px)!important; padding:26px!important; border:1px solid #dce5f1!important; border-radius:16px!important; background:#fff!important; overflow-wrap:anywhere; }
html.smx-integration-v1:root body.customer-page #content .content-inner { min-width:0!important; width:100%!important; padding:0!important; }
html.smx-integration-v1:root body.customer-page #content h1 { color:#312479!important; font-size:30px!important; line-height:1.25!important; margin:0 0 24px!important; }
html.smx-integration-v1:root body.customer-page #content h2 { color:#312479!important; font-size:23px!important; line-height:1.3!important; margin:24px 0 16px!important; }
html.smx-integration-v1:root body.customer-page #content h3 { color:#312479!important; font-size:19px!important; line-height:1.3!important; }
html.smx-integration-v1:root body.customer-page #content form { width:100%!important; max-width:100%!important; min-width:0!important; margin:0!important; padding:0!important; }
html.smx-integration-v1:root body.customer-page #content fieldset { width:100%!important; max-width:100%!important; min-width:0!important; margin:0 0 24px!important; padding:0!important; background:transparent!important; border:0!important; }
html.smx-integration-v1:root body.customer-page #content .form-group { width:100%!important; max-width:560px!important; min-width:0!important; }
html.smx-integration-v1:root body.customer-page #content .form-control-wrapper { max-width:100%!important; min-width:0!important; }
html.smx-integration-v1:root body.customer-page #content .form-control { max-width:100%!important; min-width:0!important; border-color:#cbd8e9!important; border-radius:8px!important; color:#312479!important; font-size:16px!important; }
html.smx-integration-v1:root body.customer-page #content .form-control:not(.short) { width:100%!important; }
html.smx-integration-v1:root body.customer-page #content .smart-label-wrapper>label { max-width:100%; }
html.smx-integration-v1:root body.customer-page #content .phone-combined-input { max-width:100%!important; }
html.smx-integration-v1:root body.customer-page #content .table-responsive { width:100%!important; max-width:100%!important; min-width:0!important; margin:16px 0!important; border:1px solid #dce5f1!important; border-radius:12px!important; }
html.smx-integration-v1:root body.customer-page #content .table { width:100%!important; min-width:0!important; margin:0!important; color:#183754!important; font-size:14px!important; }
html.smx-integration-v1:root body.customer-page #content .table th { background:#edf3fa!important; color:#312479!important; padding:12px!important; border-color:#dce5f1!important; font-size:13px!important; white-space:normal!important; }
html.smx-integration-v1:root body.customer-page #content .table td { padding:12px!important; border-color:#e3eaf3!important; white-space:normal!important; }
html.smx-integration-v1:root body.customer-page #content .table a { color:#312479!important; }
html.smx-integration-v1:root body.customer-page #content .row { margin-left:0!important; margin-right:0!important; }
html.smx-integration-v1:root body.customer-page #content .row>[class*="col-"] { padding:0 16px 16px 0!important; min-width:0!important; }
@media(max-width:1199px) {
 html.smx-integration-v1:root body.customer-page #content .table-mobile-enriched, html.smx-integration-v1:root body.customer-page #content .table-mobile-enriched tbody { display:block!important; width:100%!important; }
 html.smx-integration-v1:root body.customer-page #content .table-mobile-enriched thead { display:none!important; }
 html.smx-integration-v1:root body.customer-page #content .table-mobile-enriched tr { display:block!important; width:100%!important; border-bottom:2px solid #dce5f1!important; }
 html.smx-integration-v1:root body.customer-page #content .table-mobile-enriched tr:last-child { border-bottom:0!important; }
 html.smx-integration-v1:root body.customer-page #content .table-mobile-enriched td { display:flex!important; justify-content:space-between!important; align-items:baseline!important; gap:16px!important; width:100%!important; text-align:right!important; }
 html.smx-integration-v1:root body.customer-page #content .table-mobile-enriched .client-table-heading { display:block!important; flex:0 0 46%!important; text-align:left!important; color:#526882!important; font-weight:500!important; }
 html.smx-integration-v1:root body.customer-page #content .table-order-details td.p-name { display:block!important; text-align:left!important; background:#edf3fa!important; }
 html.smx-integration-v1:root body.customer-page #content .table-responsive { overflow:visible!important; }
}
@media(max-width:991px) {
 html.smx-integration-v1:root body.customer-page .content-wrapper-in { flex-direction:column!important; gap:20px!important; }
 html.smx-integration-v1:root body.customer-page .sidebar.sidebar-left { flex:none!important; width:100%!important; }
 html.smx-integration-v1:root body.customer-page #content { width:100%!important; flex:none!important; }
 html.smx-integration-v1:root body.customer-page .client-center-box ul { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; }
 html.smx-integration-v1:root body.customer-page .client-center-box li a { height:100%; }
 html.smx-integration-v1:root body.customer-page .client-title h1 { font-size:30px!important; }
}
@media(max-width:575px) {
 html.smx-integration-v1:root body.customer-page #content-wrapper { padding:0 12px 28px!important; }
 html.smx-integration-v1:root body.customer-page .client-title { padding:20px 0!important; }
 html.smx-integration-v1:root body.customer-page .client-title h1 { font-size:27px!important; }
 html.smx-integration-v1:root body.customer-page .client-center-box { padding:7px!important; }
 html.smx-integration-v1:root body.customer-page .client-center-box ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
 html.smx-integration-v1:root body.customer-page .client-center-box li a { padding:10px 9px!important; font-size:13px!important; }
 html.smx-integration-v1:root body.customer-page #content { padding:18px 14px!important; }
 html.smx-integration-v1:root body.customer-page #content h1 { font-size:25px!important; }
 html.smx-integration-v1:root body.customer-page #content h2 { font-size:21px!important; }
 html.smx-integration-v1:root body.customer-page #content .table td { padding:10px!important; font-size:13px!important; }
 html.smx-integration-v1:root body.customer-page #content .table-mobile-enriched td { gap:10px!important; }
 html.smx-integration-v1:root body.customer-page #content .row>[class*="col-"] { width:100%!important; padding-right:0!important; }
 html.smx-integration-v1:root body.customer-page #content .smart-label-wrapper>label { white-space:normal!important; }
}

/* DES-076 QA refinement: Apollo uses a text div title and link pseudo-bullets. */
html.smx-integration-v1:root body.customer-page .client-title { color:#312479!important; font-size:36px!important; line-height:1.2!important; font-weight:700!important; }
html.smx-integration-v1:root body.customer-page .client-center-box li a:before { display:none!important; content:none!important; }
html.smx-integration-v1:root body.customer-page #content form { border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent!important; }
@media(max-width:991px) { html.smx-integration-v1:root body.customer-page .client-title { font-size:30px!important; } }
@media(max-width:575px) { html.smx-integration-v1:root body.customer-page .client-title { font-size:27px!important; } }

/* DES-076 final QA: keep telephone prefixes on one line; one table border. */
html.smx-integration-v1:root body.customer-page #content .country-flag .shp-flag-label { white-space:nowrap!important; overflow-wrap:normal!important; word-break:normal!important; }
html.smx-integration-v1:root body.customer-page #content .table { border:0!important; border-radius:0!important; padding:0!important; }

html.smx-integration-v1:root body.customer-page #content .table-order-details th { overflow-wrap:normal!important; word-break:normal!important; }
html.smx-integration-v1:root body.customer-page #content .table-order-details td:not(.p-name) { white-space:nowrap!important; overflow-wrap:normal!important; word-break:normal!important; }
html.smx-integration-v1:root body.customer-page #content .table-order-details .client-table-heading { white-space:normal!important; overflow-wrap:normal!important; word-break:normal!important; }
@media(min-width:1200px) {
 html.smx-integration-v1:root body.customer-page #content .table-order-details { table-layout:auto!important; }
 html.smx-integration-v1:root body.customer-page #content .table-order-details td.p-name { width:auto!important; }
 html.smx-integration-v1:root body.customer-page #content .table-order-details th:not(:first-child),
 html.smx-integration-v1:root body.customer-page #content .table-order-details td:not(:first-child) { padding:10px 8px!important; }
}


/* DES-078: align native customer checkboxes; preserve their checked state. */
html.smx-integration-v1:root body.customer-page #content input[type="checkbox"] + label {
 position:relative!important; padding-left:30px!important; min-height:22px!important; line-height:22px!important;
}
html.smx-integration-v1:root body.customer-page #content input[type="checkbox"] + label::before {
 content:""!important; position:absolute!important; left:0!important; top:1px!important;
 width:20px!important; height:20px!important; box-sizing:border-box!important;
 transform:none!important; margin:0!important; background:#fff!important;
 border:1px solid #a8b8ce!important; border-radius:4px!important;
}
html.smx-integration-v1:root body.customer-page #content input[type="checkbox"] + label::after {
 content:none!important; display:none!important; background:transparent!important;
}
html.smx-integration-v1:root body.customer-page #content input[type="checkbox"]:checked + label::before { border-color:#312479!important; }
html.smx-integration-v1:root body.customer-page #content input[type="checkbox"]:checked + label::after {
 content:""!important; display:block!important; position:absolute!important;
 left:7px!important; top:4px!important; width:6px!important; height:11px!important;
 box-sizing:border-box!important; margin:0!important; padding:0!important;
 background:transparent!important; border:solid #312479!important; border-width:0 2px 2px 0!important;
 border-radius:0!important; transform:rotate(45deg)!important;
}
html.smx-integration-v1:root body.customer-page #content input[type="checkbox"]:focus-visible + label::before { outline:2px solid #312479!important; outline-offset:3px!important; }


/* DES-078: delivery-note dates use the same nonbreaking treatment as invoices. */
html.smx-integration-v1:root body.customer-page.in-dodaci-listy-klienta #content .table tbody td:nth-child(2) {
 white-space:nowrap!important; overflow-wrap:normal!important; word-break:normal!important;
}
@media(min-width:1200px) {
 html.smx-integration-v1:root body.customer-page.in-dodaci-listy-klienta #content .table th:nth-child(2) { min-width:114px!important; }
}
