/* Only Silktide and WhatsApp positioning; no font service changes. */
:root{--site-banner-height:0px}
#stcm-wrapper{--fontFamily:Arial,sans-serif;--textColor:#1a1a1a;--backgroundColor:#fff}
#stcm-banner.stcm-pos-bottom-center{left:12px;right:12px;bottom:12px;width:auto;max-width:none;padding:14px 18px;border:1px solid #ddd;border-radius:10px;transform:none;opacity:1;animation:none;box-shadow:0 2px 12px #0002;display:flex;align-items:center;gap:24px}
#stcm-banner p{font-size:14px;line-height:1.4;margin:0;flex:1}
#stcm-banner .stcm-actions{display:flex;flex-direction:row;gap:10px;margin:0;align-items:center}
#stcm-wrapper .stcm-button{min-height:44px;padding:10px 18px;font-size:14px;border-radius:6px}
#stcm-banner .stcm-accept-all,#stcm-banner .stcm-reject-all{background:#fff;color:#171717;border:1px solid #171717;min-width:108px;box-shadow:none;font-weight:600}
#stcm-banner .stcm-accept-all:hover,#stcm-banner .stcm-reject-all:hover{background:#eee}
#stcm-banner .stcm-preferences-button{min-height:44px;color:#171717;font-size:14px;text-decoration:underline}
#stcm-banner .stcm-logo{display:none}
#stcm-icon.stcm-pos-bottom-left{left:12px;bottom:12px;right:auto;width:44px;height:44px}
#stcm-wrapper button:focus-visible,#stcm-wrapper a:focus-visible{outline:3px solid #005fcc;outline-offset:3px}
#stcm-modal{max-height:calc(100dvh - 24px);max-width:calc(100% - 24px)}
html{scroll-padding-bottom:calc(var(--site-banner-height) + 36px)}
html.site-consent-banner-visible body{padding-bottom:calc(var(--site-banner-height) + 24px)}
#qlwapp.qlwapp-bottom-right .qlwapp-container,#qlwapp.qlwapp-middle-right .qlwapp-container,.preview-whatsapp{bottom:calc(var(--site-banner-height) + 28px)!important;top:auto!important;margin-bottom:0!important}
@media(max-width:640px){
 #stcm-banner.stcm-pos-bottom-center{padding:12px;display:block;bottom:8px;left:8px;right:8px}
 #stcm-banner .stcm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
 #stcm-banner .stcm-actions-row{grid-column:1 / -1;margin-top:0;justify-content:flex-start}
 #stcm-banner .stcm-preferences-button{min-height:36px}
 #stcm-banner .stcm-accept-all,#stcm-banner .stcm-reject-all{width:100%;min-width:0}
}
@media(prefers-reduced-motion:reduce){#stcm-wrapper *{animation:none!important;transition:none!important}}

/* Legible link on white; overrides the SDK yellow accent. */
#stcm-banner a:not(.stcm-logo){color:#005a78;text-decoration:underline}
#stcm-banner a:not(.stcm-logo):hover{color:#003b50}
/* Compact preferences: keep actions visible; scroll the category list, not the footer. */
#stcm-modal header{padding:16px;flex-shrink:0}
#stcm-modal h1{font-size:24px;line-height:1.15;margin:0}
#stcm-modal .stcm-modal-close{min-width:44px;min-height:44px}
#stcm-modal .stcm-modal-close svg{fill:#005a78}
#stcm-modal>p{padding:0 16px 12px;margin:0;font-size:14px;line-height:1.4;flex-shrink:0}
#stcm-modal section{min-height:0;flex:1;overflow:auto;padding:16px}
#stcm-modal .stcm-consent-description{font-size:14px;line-height:1.4}
#stcm-modal legend{font-size:16px}
#stcm-modal footer{padding:12px 16px;flex-shrink:0;gap:8px}
#stcm-modal footer .stcm-credit-link{font-size:12px}
@media(max-width:640px){
 #stcm-modal{top:12px;transform:translateX(-50%);height:calc(100dvh - 100px);max-height:680px}
 #stcm-modal footer{display:grid;grid-template-columns:1fr 1fr}
 #stcm-modal footer .stcm-credit-link{grid-column:1 / -1}
}
#stcm-modal footer .stcm-button{background:#fff;color:#171717;border:1px solid #171717;font-size:14px;line-height:1.2;padding:10px 8px;min-height:44px;font-weight:600}
#stcm-modal footer .stcm-button:hover{background:#eee}
#stcm-modal a{color:#005a78;text-decoration:underline}
@media(max-width:640px){
 #stcm-modal{position:fixed;left:50%;top:12px;margin:0;transform:translateX(-50%)!important;animation:none}
}
@media(max-width:640px){#stcm-modal{opacity:1}}

/* New longer wording: retain 44px targets while limiting extra mobile height. */
@media(max-width:640px){
 #stcm-banner.stcm-pos-bottom-center{padding:10px 12px}
 #stcm-banner p{line-height:1.35}
 #stcm-banner .stcm-actions{margin-top:8px}
 #stcm-banner .stcm-preferences-button{padding:10px 0;min-height:44px;box-sizing:border-box}
}

/* Social Chat container offsets: require visual verification before enabling. */
.site-consent-banner-visible .qlwapp .qlwapp__container--bottom-right,.site-consent-banner-visible .qlwapp .qlwapp__container--middle-right{bottom:calc(var(--site-banner-height) + 28px)!important;top:auto!important;margin-bottom:0!important}

/* Branding is optional under MIT; vendor license is retained in assets/vendor/LICENSE. */
#stcm-wrapper .stcm-logo,#stcm-wrapper .stcm-credit-link{display:none!important}
/* Hide the icon only once the bound replacement control exists and the option is approved. */
.site-footer-consent-ready #stcm-icon{display:none!important}
#site-consent-footer-fallback,.site-consent-footer-row{padding:12px 20px;text-align:center;background:#f5f5f5;color:#1a1a1a}
#site-consent-footer-link{display:inline-block;min-height:44px;line-height:24px;padding:10px 0;box-sizing:border-box;font-size:14px;color:inherit;text-decoration:underline}
#site-consent-footer-link:focus-visible{outline:3px solid #005fcc;outline-offset:3px}

/* Logged-in mobile toolbar must not intercept the preferences close control. */
@media(max-width:782px){body.admin-bar #stcm-modal{top:58px;max-height:calc(100dvh - 70px);height:calc(100dvh - 80px)}}

/* Theme/SDK hover accents must not reduce action contrast. */
#stcm-modal footer .stcm-button:hover,#stcm-modal footer .stcm-button:focus,#stcm-banner .stcm-accept-all:hover,#stcm-banner .stcm-reject-all:hover{color:#171717!important}

/* Keep the icon hidden even if a theme replaces the root class on resize. */
#stcm-icon[data-site-footer-only="true"]{display:none!important}
