/* Hallmark · component: cookie preferences · genre: editorial · theme: K Coffee HTML Final v10 · states: 8 · v2.0.0
   Preserves store typography and content. Native Klaro base CSS remains owned by CS-Cart/Klaro.
   Critique: compact notice, equal-width accept/reject, opaque reading surface, restrained glass at the edge. */
#kc-cookie-center, .kcc-footer, .kcc-policy, .kcc-preview {
    --kcc-navy: #042d5f; --kcc-blue: #0d3f8b; --kcc-paper: #fffdf5; --kcc-cyan: #18aaf4;
    --kcc-line: #c3d4e8; --kcc-muted: #365979; --kcc-error: #a02d29; --kcc-focus: #0d3f8b;
    --kcc-space-1: 4px; --kcc-space-2: 8px; --kcc-space-3: 12px; --kcc-space-4: 16px; --kcc-space-5: 24px; --kcc-space-6: 32px;
    font-family: Barlow, Arial, sans-serif; color: var(--kcc-navy); font-size: 16px; line-height: 1.55;
}
#kc-cookie-center *, .kcc-footer *, .kcc-policy *, .kcc-preview * { box-sizing: border-box; }
#kc-cookie-center .cookie-notice, #kc-cookie-center .cookie-modal { z-index: 2147482000; }
#kc-cookie-center .cookie-notice { left: var(--kcc-space-5); right: auto; bottom: var(--kcc-space-5); width: min(440px, calc(100% - 48px)); max-width: none; padding: 0; background: transparent; border-radius: 24px; box-shadow: 0 14px 50px #042d5f29; }
#kc-cookie-center .cookie-notice .cn-body, #kc-cookie-center .cookie-modal .cm-modal {
    color: var(--kcc-navy); background: #fffffff5; border: 1px solid #ffffff; border-radius: 24px;
    box-shadow: inset 0 1px 0 #ffffff, 0 16px 54px #042d5f26; padding: var(--kcc-space-5);
    animation: kcc-enter 180ms cubic-bezier(.2,.75,.2,1) both;
}
@supports (backdrop-filter: blur(8px)) { #kc-cookie-center .cookie-notice { backdrop-filter: blur(18px) saturate(135%); } }
#kc-cookie-center .cookie-notice .cn-body { max-height: calc(100svh - 48px); overflow-y: auto; }
#kc-cookie-center .cookie-notice .cn-body p { margin: 0 0 var(--kcc-space-4); color: var(--kcc-navy); font-size: 16px; line-height: 1.55; }
#kc-cookie-center h1, #kc-cookie-center h2, #kc-cookie-center .cn-title { font-family: 'Barlow Condensed', Barlow, Arial, sans-serif; font-weight: 700; color: var(--kcc-navy); font-size: 28px; line-height: 1.2; min-width: 0; overflow-wrap: break-word; letter-spacing: 0; margin: 0 0 var(--kcc-space-3); }
#kc-cookie-center .cookie-modal .cm-bg { background: #042d5f75; backdrop-filter: blur(5px); }
#kc-cookie-center .cookie-modal .cm-modal { top: 50%; transform: translateY(-50%); width: min(640px, calc(100% - 32px)); max-width: 640px; max-height: calc(100svh - 32px); overflow-y: auto; margin: 0 auto; animation-name: kcc-modal-enter; }
#kc-cookie-center .cookie-modal .cm-modal .cm-header, #kc-cookie-center .cookie-modal .cm-modal .cm-body, #kc-cookie-center .cookie-modal .cm-modal .cm-footer { padding: 0; border: 0; color: var(--kcc-navy); }
#kc-cookie-center .cookie-modal .cm-modal .cm-header { padding-right: var(--kcc-space-6); }
#kc-cookie-center .cookie-modal .cm-modal .cm-header p { margin: 0 0 var(--kcc-space-5); font-size: 16px; line-height: 1.55; color: var(--kcc-muted); }
#kc-cookie-center .cookie-modal .cm-modal .cm-header .hide { position: absolute; top: var(--kcc-space-4); right: var(--kcc-space-4); width: 44px; height: 44px; border: 1px solid var(--kcc-line); border-radius: 50%; color: var(--kcc-navy); background: #f8fbff; }
#kc-cookie-center .cookie-modal .cm-modal .cm-body ul.cm-services { padding: 0; margin: 0; }
#kc-cookie-center .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service { padding: var(--kcc-space-4) 0 var(--kcc-space-4) 64px; margin: 0; border-top: 1px solid var(--kcc-line); }
#kc-cookie-center .cm-service .cm-list-title { color: var(--kcc-navy); font-size: 17px; font-weight: 700; }
#kc-cookie-center .cm-service p, #kc-cookie-center .cm-service .cm-list-description { color: var(--kcc-muted); font-size: 15px; line-height: 1.5; margin: var(--kcc-space-2) 0 0; }
#kc-cookie-center .cm-list-label .slider { background-color: #71839a; }
#kc-cookie-center input:checked + .cm-list-label .slider { background-color: var(--kcc-navy); }
#kc-cookie-center input:disabled + .cm-list-label .slider { background-color: #5e738d; }
#kc-cookie-center input:focus-visible + .cm-list-label .slider { outline: 3px solid var(--kcc-focus); outline-offset: 3px; }
#kc-cookie-center .cookie-notice .cn-body .cn-ok { display: flex; flex-wrap: wrap; gap: var(--kcc-space-3); margin: var(--kcc-space-5) 0 0; justify-content: stretch; align-items: stretch; }
#kc-cookie-center .cookie-notice .cn-body .cn-ok .cn-buttons { display: flex; flex-direction: column; gap: var(--kcc-space-3); width: 100%; }
#kc-cookie-center button.cm-btn, .kcc-preview button.cm-btn { border: 1px solid var(--kcc-navy); border-radius: 12px; background: var(--kcc-navy); color: white; font: 700 16px/1.25 Barlow, Arial, sans-serif; padding: var(--kcc-space-3) var(--kcc-space-4); min-height: 46px; margin: 0; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; white-space: normal; text-align: center; }
#kc-cookie-center button.cm-btn-decline, .kcc-preview .cm-btn-decline { color: var(--kcc-navy); background: white; }
#kc-cookie-center .cn-learn-more { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--kcc-navy); text-decoration: underline; }
#kc-cookie-center a { color: var(--kcc-navy); text-decoration: underline; }
#kc-cookie-center .cm-footer .cm-powered-by { color: var(--kcc-muted); font-size: 12px; margin-top: var(--kcc-space-3); }
#kc-cookie-center .cm-footer .cm-btn { margin: var(--kcc-space-2) var(--kcc-space-2) 0 0; }
#kc-cookie-center .cm-footer .cm-buttons { display: flex; flex-wrap: wrap; gap: var(--kcc-space-2); }
#kc-cookie-center .cm-footer .cm-buttons .cm-btn { flex: 1 1 140px; margin: 0; }
#kc-cookie-center :is(button,a):focus-visible, .kcc-footer :is(button,a):focus-visible, .kcc-preview button.is-focus { outline: 3px solid var(--kcc-focus); outline-offset: 3px; }
#kc-cookie-center button.cm-btn:active, .kcc-preview button.is-active { transform: translateY(1px); }
#kc-cookie-center button:disabled, .kcc-preview button:disabled { opacity: .55; cursor: not-allowed; }
#kc-cookie-center button[aria-busy="true"], .kcc-preview button[aria-busy="true"] { box-shadow: inset 0 0 0 2px var(--kcc-cyan); }
.kcc-preview button.is-error { border-color: var(--kcc-error); color: var(--kcc-error); background: white; }
@media (hover: hover) { #kc-cookie-center button.cm-btn:hover, .kcc-preview button.is-hover { background: var(--kcc-blue); color: white; } #kc-cookie-center button.cm-btn-decline:hover { background: #eef5fc; color: var(--kcc-navy); } }
.kcc-footer { padding: var(--kcc-space-4) var(--kcc-space-5); background: #eef5fc; border-top: 1px solid var(--kcc-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--kcc-space-4); position: relative; z-index: 1; }
.kcc-footer .kcc-open, .kcc-footer a { font: 600 14px/1.5 Barlow, Arial, sans-serif; color: var(--kcc-navy); min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: underline; }
.kcc-footer .kcc-open { border: 1px solid #ffffff; background: #ffffffbd; border-radius: 999px; padding: var(--kcc-space-2) var(--kcc-space-4); box-shadow: inset 0 1px 0 white, 0 4px 14px #042d5f0d; cursor: pointer; backdrop-filter: blur(18px) saturate(135%); }
.kcc-footer noscript, .kcc-footer .kcc-status { flex-basis: 100%; text-align: center; margin: 0; }
.kcc-status--error { color: var(--kcc-error); }
.kcc-policy { max-width: 860px; margin: var(--kcc-space-6) auto; padding: var(--kcc-space-5); background: var(--kcc-paper); border: 1px solid var(--kcc-line); border-radius: 24px; }
.kcc-policy h1, .kcc-policy h2 { font-family: 'Barlow Condensed', Barlow, Arial, sans-serif; color: var(--kcc-navy); line-height: 1.2; }
.kcc-policy p, .kcc-policy li { font-size: 16px; line-height: 1.6; }
.kcc-policy table { width: 100%; border-collapse: collapse; }
.kcc-policy th, .kcc-policy td { padding: var(--kcc-space-3); border-bottom: 1px solid var(--kcc-line); text-align: left; vertical-align: top; }
.kcc-policy .kcc-table { overflow-x: auto; }
.kcc-policy a { color: var(--kcc-navy); text-decoration: underline; }
.kcc-policy button { min-height: 44px; }
@media (max-width: 600px) {
    #kc-cookie-center .cookie-notice { left: var(--kcc-space-3); bottom: var(--kcc-space-3); width: calc(100% - 24px); }
    #kc-cookie-center .cookie-notice .cn-body, #kc-cookie-center .cookie-modal .cm-modal { padding: var(--kcc-space-5) var(--kcc-space-4); border-radius: 20px; }
    #kc-cookie-center .cookie-modal .cm-modal { max-height: calc(100svh - 24px); width: calc(100% - 24px); }
    #kc-cookie-center .cm-footer .cm-buttons { flex-direction: column; }
    #kc-cookie-center .cm-footer .cm-buttons .cm-btn { flex-basis: auto; width: 100%; }
    .kcc-policy { padding: var(--kcc-space-4); margin: var(--kcc-space-4) auto; }
}
@media (prefers-reduced-motion: reduce) { #kc-cookie-center *, .kcc-footer * { animation: none !important; transition: none !important; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { #kc-cookie-center .cookie-notice, #kc-cookie-center .cookie-modal .cm-bg, .kcc-footer .kcc-open { backdrop-filter: none; } #kc-cookie-center .cookie-notice .cn-body, #kc-cookie-center .cookie-modal .cm-modal { background: white; } .kcc-footer .kcc-open { background: white; } }
@keyframes kcc-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kcc-modal-enter { from { opacity: 0; transform: translateY(calc(-50% + 8px)); } to { opacity: 1; transform: translateY(-50%); } }

/* Native Klaro uses a shorter decline class in its first-layer notice. */
#kc-cookie-center .cookie-notice .cn-body .cn-ok .cn-buttons { order: 0; }
#kc-cookie-center .cookie-notice .cn-body .cn-ok .cn-learn-more { order: 1; }
#kc-cookie-center .cookie-notice .cn-buttons .cn-decline { order: 1; color: var(--kcc-navy); background: white; }
#kc-cookie-center .cookie-notice .cn-buttons .cm-btn-success { order: 0; }
#kc-cookie-center .cm-service .cm-list-label { min-height: 44px; display: flex; align-items: center; gap: var(--kcc-space-2); }
#kc-cookie-center .cm-service .cm-list-input { height: 44px; }
#kc-cookie-center .cm-service .slider { top: 8px; }
/* Keep the settings actions visible while only the service list scrolls. */
#kc-cookie-center .cookie-modal .cm-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; display: flex; flex-direction: column; overflow: hidden; }
#kc-cookie-center .cookie-modal .cm-modal .cm-header { flex: 0 0 auto; }
#kc-cookie-center .cookie-modal .cm-modal .cm-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
#kc-cookie-center .cookie-modal .cm-modal .cm-footer { flex: 0 0 auto; padding-top: var(--kcc-space-4); background: white; }
#kc-cookie-center .cm-footer .cm-footer-buttons { display: flex; flex-wrap: wrap; gap: var(--kcc-space-2); }
#kc-cookie-center .cm-footer .cm-footer-buttons .cm-btn { flex: 1 1 130px; margin: 0; }
@media (max-width: 600px) { #kc-cookie-center .cm-footer .cm-footer-buttons { flex-direction: column; } #kc-cookie-center .cm-footer .cm-footer-buttons .cm-btn { flex-basis: auto; width: 100%; } }
@keyframes kcc-modal-enter { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* Contextual video consent is part of the same component, even outside the central modal. */
.klaro .context-notice { background: #fffdf5; color: #042d5f; border: 1px solid #c3d4e8; border-radius: 16px; padding: 16px; font: 16px/1.5 Barlow, Arial, sans-serif; }
.klaro .context-notice p { color: #042d5f; font-size: 16px; line-height: 1.5; }
.klaro .context-notice .cm-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.klaro .context-notice .cm-btn { background: #042d5f; color: #fff; border: 1px solid #042d5f; border-radius: 12px; min-height: 44px; padding: 12px 16px; font-size: 16px; }
.klaro .context-notice .cm-btn:focus-visible { outline: 3px solid #0d3f8b; outline-offset: 3px; }

.kcc-video-placeholder--overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 1; overflow: auto; background: #fffdf5; }
.kcc-video-placeholder--overlay .klaro { width: 100%; height: auto; padding: 16px; }
.kcc-video-placeholder--overlay .context-notice { max-width: 680px; margin: auto; }

/* The native theme reveals disabled checkboxes; retain one accessible switch, not two visual controls. */
#kc-cookie-center .cm-service input.cm-list-input { opacity: 0 !important; width: 1px; height: 1px; clip-path: inset(50%); pointer-events: none; }
/* Native theme buttons have more specific success styles outside the central modal. */
.kcc-video-placeholder .klaro .context-notice button.cm-btn { background: #042d5f; color: white; }
