/* Anpassa presentationen utan att påverka samtycke, texter eller synlighet. */
body :is(.cky-consent-container, .cky-modal, .cky-btn-revisit-wrapper) {
    --sc-cookie-accent: var(--bsp-reference-theme, #2c3e50);
    --sc-cookie-on-accent: var(--bsp-reference-theme-contrast, #fff);
    --sc-cookie-line: color-mix(in srgb, var(--sc-cookie-accent) 18%, white);
    font-family: var(--storecraft-font-body, sans-serif);
    color: #1a1a1a;
}
body :is(.cky-consent-bar, .cky-preference-center) {
    background: #fff !important;
    border: 1px solid var(--sc-cookie-line) !important;
    border-radius: 6px;
    box-shadow: none;
}
body :is(.cky-notice .cky-title, .cky-preference-title) {
    font-family: var(--storecraft-font-heading, sans-serif);
    color: #1a1a1a !important;
    font-weight: 500;
}
body :is(.cky-notice-des, .cky-preference-content-wrapper, .cky-accordion-header-des, .cky-accordion-btn) {
    color: #1a1a1a !important;
    font-family: inherit;
}
body :is(.cky-notice-des, .cky-preference-content-wrapper, .cky-accordion-header-des) { line-height: 1.65; }
body :is(.cky-consent-container, .cky-modal) .cky-btn {
    font-family: inherit;
    border: 1px solid var(--sc-cookie-accent) !important;
    border-radius: 3px;
    min-height: 42px;
    padding: 9px 14px;
    box-shadow: none;
    text-transform: none;
}
body :is(.cky-consent-container, .cky-modal) :is(.cky-btn-accept, .cky-btn-preferences) {
    background: var(--sc-cookie-accent) !important;
    color: var(--sc-cookie-on-accent) !important;
}
body :is(.cky-consent-container, .cky-modal) :is(.cky-btn-reject, .cky-btn-customize) {
    background: #fff !important;
    color: var(--sc-cookie-accent) !important;
}
body :is(.cky-notice-des a, .cky-preference-content-wrapper a, .cky-show-desc-btn, .cky-always-active) { color: var(--sc-cookie-accent) !important; }
body :is(.cky-preference-header, .cky-footer-wrapper, .cky-accordion) { border-color: var(--sc-cookie-line); }
body .cky-audit-table {
    background: color-mix(in srgb, var(--sc-cookie-accent) 4%, white) !important;
    color: #1a1a1a !important;
    border-color: var(--sc-cookie-line) !important;
}
body .cky-switch input[type="checkbox"]:checked { background-color: var(--sc-cookie-accent) !important; }
body .cky-btn-revisit-wrapper { background-color: var(--sc-cookie-accent) !important; }
body :is(.cky-consent-container, .cky-modal, .cky-btn-revisit-wrapper) :is(button, a, input):focus-visible {
    outline: 2px solid var(--sc-cookie-accent);
    outline-offset: 3px;
}
body .cky-footer-shadow { box-shadow: none; background: none; }
@media (max-width: 576px) {
    body .cky-consent-container .cky-consent-bar { padding: 20px; }
    body .cky-notice-btn-wrapper { gap: 8px; }
    body .cky-notice-btn-wrapper .cky-btn { margin: 0; }
}
