#notice-cookie-block.cg-cookie,
#notice-cookie-block.cg-cookie * {
    box-sizing: border-box;
}

#notice-cookie-block.cg-cookie[hidden] {
    display: none !important;
}

#notice-cookie-block.cg-cookie {
    --cg-cookie-ink: #182033;
    --cg-cookie-text: #263247;
    --cg-cookie-muted: #667085;
    --cg-cookie-line: #e8e1d5;
    --cg-cookie-soft-line: #f1ece3;
    --cg-cookie-paper: #ffffff;
    --cg-cookie-cream: #fbf7ef;
    --cg-cookie-navy: #182b42;
    --cg-cookie-navy2: #243b57;
    --cg-cookie-aegean: #426f7f;
    --cg-cookie-champagne: #c8a96a;
    --cg-cookie-champagne2: #ead8ad;
    --cg-cookie-legacy-blue: #2D337F;
    --cg-cookie-legacy-gold: #b89b65;
    position: fixed !important;
    left: max(16px, env(safe-area-inset-left)) !important;
    right: auto !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    z-index: 100000 !important;
    width: min(458px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--cg-cookie-text) !important;
    pointer-events: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#notice-cookie-block.cg-cookie .cg-cookie__panel {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-height: min(74vh, 620px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(24, 43, 66, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(520px 180px at 100% -54px, rgba(198, 169, 106, 0.20), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 239, 0.98));
    box-shadow: 0 20px 54px rgba(24, 32, 51, 0.16), 0 4px 14px rgba(24, 32, 51, 0.06);
    pointer-events: auto;
    outline: none;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

#notice-cookie-block.cg-cookie .cg-cookie__panel::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, rgba(20, 45, 70, 0.92), rgba(91, 124, 145, 0.78), rgba(198, 164, 91, 0.90));
    pointer-events: none;
    z-index: 2;
}

#notice-cookie-block.cg-cookie .cg-cookie__surface {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 42%, rgba(234, 216, 173, 0.16));
    pointer-events: none;
    z-index: -1;
}

#notice-cookie-block.cg-cookie .cg-cookie__content {
    display: grid;
    gap: 10px;
}

#notice-cookie-block.cg-cookie .cg-cookie__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0;
    color: #5d6f7e;
    font: 760 11px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: .105em;
    text-transform: uppercase;
}

#notice-cookie-block.cg-cookie .cg-cookie__line {
    display: inline-block;
    width: 24px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cg-cookie-navy), var(--cg-cookie-champagne));
}

#notice-cookie-block.cg-cookie .cg-cookie__title {
    margin: 0;
    color: var(--cg-cookie-ink);
    font: 730 18px/1.12 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: -.035em;
}

#notice-cookie-block.cg-cookie .cg-cookie__summary {
    margin: 0;
    color: var(--cg-cookie-muted);
    font: 500 13px/1.56 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#notice-cookie-block.cg-cookie .cg-cookie__link {
    color: var(--cg-cookie-navy) !important;
    font-weight: 760;
    text-decoration: underline;
    text-decoration-color: rgba(198, 169, 106, 0.78);
    text-underline-offset: 3px;
}

#notice-cookie-block.cg-cookie .cg-cookie__actions,
#notice-cookie-block.cg-cookie .cg-cookie__settings-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

#notice-cookie-block.cg-cookie .cg-cookie__settings-actions {
    grid-template-columns: 1.15fr .85fr;
    margin-top: 10px;
}

#notice-cookie-block.cg-cookie .cg-cookie__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    margin: 0 !important;
    padding: 0 13px;
    border: 1px solid rgba(24, 43, 66, 0.14) !important;
    border-radius: 999px !important;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    font: 780 12.5px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: -.005em;
    box-shadow: 0 8px 18px rgba(24, 32, 51, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

#notice-cookie-block.cg-cookie .cg-cookie__btn:hover,
#notice-cookie-block.cg-cookie .cg-cookie__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(24, 32, 51, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

#notice-cookie-block.cg-cookie .cg-cookie__btn:active {
    transform: translateY(0);
}

#notice-cookie-block.cg-cookie .cg-cookie__btn:focus-visible,
#notice-cookie-block.cg-cookie .cg-cookie__link:focus-visible,
.cg-cookie-settings-link:focus-visible {
    outline: 3px solid rgba(198, 169, 106, 0.38);
    outline-offset: 3px;
}

#notice-cookie-block.cg-cookie .cg-cookie__btn--accept,
#notice-cookie-block.cg-cookie .cg-cookie__btn--save {
    border-color: rgba(24, 43, 66, 0.44) !important;
    background: linear-gradient(135deg, #132338 0%, #1d344d 54%, #365c67 100%) !important;
    color: #ffffff !important;
}

#notice-cookie-block.cg-cookie .cg-cookie__btn--necessary {
    border-color: rgba(198, 169, 106, 0.50) !important;
    background: linear-gradient(180deg, #ead8ad 0%, #c8a96a 100%) !important;
    color: #1d2534 !important;
}

#notice-cookie-block.cg-cookie .cg-cookie__btn--customize {
    border-color: rgba(24, 43, 66, 0.14) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--cg-cookie-navy) !important;
}

#notice-cookie-block.cg-cookie .cg-cookie__settings {
    display: grid;
    gap: 8px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(232, 225, 213, 0.86);
}

#notice-cookie-block.cg-cookie .cg-cookie__settings[hidden] {
    display: none !important;
}

#notice-cookie-block.cg-cookie .cg-cookie__settings-head {
    display: grid;
    gap: 2px;
    margin-bottom: 1px;
}

#notice-cookie-block.cg-cookie .cg-cookie__settings-head strong {
    color: var(--cg-cookie-ink);
    font: 720 13.5px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#notice-cookie-block.cg-cookie .cg-cookie__settings-head span {
    color: var(--cg-cookie-muted);
    font: 500 12.25px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#notice-cookie-block.cg-cookie .cg-cookie__option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px;
    border: 1px solid rgba(24, 43, 66, 0.09);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(251,247,239,0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

#notice-cookie-block.cg-cookie .cg-cookie__option--locked {
    cursor: default;
}

#notice-cookie-block.cg-cookie .cg-cookie__option input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

#notice-cookie-block.cg-cookie .cg-cookie__toggle {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(24, 43, 66, 0.18);
    background: #f4efe4;
    box-shadow: inset 0 1px 3px rgba(24, 32, 51, 0.10);
}

#notice-cookie-block.cg-cookie .cg-cookie__toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(24, 32, 51, 0.22);
    transition: transform .16s ease, background .16s ease;
}

#notice-cookie-block.cg-cookie .cg-cookie__option input:checked + .cg-cookie__toggle {
    border-color: rgba(24, 43, 66, 0.34);
    background: linear-gradient(135deg, #182b42, #426f7f);
}

#notice-cookie-block.cg-cookie .cg-cookie__option input:checked + .cg-cookie__toggle::after {
    transform: translateX(18px);
}

#notice-cookie-block.cg-cookie .cg-cookie__option input:focus-visible + .cg-cookie__toggle {
    outline: 3px solid rgba(198, 169, 106, 0.38);
    outline-offset: 3px;
}

#notice-cookie-block.cg-cookie .cg-cookie__option-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

#notice-cookie-block.cg-cookie .cg-cookie__option-copy strong {
    color: var(--cg-cookie-ink);
    font: 730 13px/1.18 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#notice-cookie-block.cg-cookie .cg-cookie__option-copy small {
    color: var(--cg-cookie-muted);
    font: 500 12px/1.38 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.cg-cookie-settings-link {
    appearance: none;
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #182b42;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(198, 169, 106, 0.70);
    text-underline-offset: 3px;
}

.cg-cookie-settings-link:hover {
    color: #b89b65;
}

.cg-cookie-settings-sep {
    color: #c8a96a;
}

@media (prefers-reduced-motion: no-preference) {
    #notice-cookie-block.cg-cookie.is-visible .cg-cookie__panel {
        animation: cgCookiePanelIn .22s ease-out both;
    }

    @keyframes cgCookiePanelIn {
        from {
            opacity: 0;
            transform: translateY(10px) scale(.985);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 640px) {
    #notice-cookie-block.cg-cookie {
        left: max(10px, env(safe-area-inset-left)) !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        width: auto !important;
        max-width: none !important;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__panel {
        max-height: min(70dvh, 560px);
        padding: 14px;
        border-radius: 22px;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__title {
        font-size: 16px;
        line-height: 1.16;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__summary {
        font-size: 12.5px;
        line-height: 1.48;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__actions {
        grid-template-columns: 1fr 1fr;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__btn--customize {
        grid-column: 1 / -1;
        order: 3;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__btn {
        min-height: 44px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12.25px;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__settings-actions {
        grid-template-columns: 1fr;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__option {
        min-height: 56px;
        padding: 9px;
        border-radius: 15px;
    }
}

@media (max-width: 380px) {
    #notice-cookie-block.cg-cookie .cg-cookie__actions {
        grid-template-columns: 1fr;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__btn--customize {
        grid-column: auto;
    }
}


/* CG_COOKIE_REAL_SWITCH_PATCH_START */
/*
 * Real switch states for CaptainGreek cookie preferences.
 * Fixes white-on-white toggle issue by styling the track and knob directly.
 */

#notice-cookie-block.cg-cookie .cg-cookie__option {
    position: relative !important;
}

/* Hide the native checkbox visually but keep it functional for accessibility. */
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"] {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* OFF / inactive switch: visible cream track, not white-on-white. */
#notice-cookie-block.cg-cookie .cg-cookie__toggle {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: 48px !important;
    height: 28px !important;
    min-width: 48px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(24, 43, 66, 0.22) !important;
    background:
        linear-gradient(180deg, #f6efe1 0%, #eadcc2 100%) !important;
    box-shadow:
        inset 0 1px 2px rgba(24, 32, 51, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.78) !important;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease !important;
}

/* The switch knob. */
#notice-cookie-block.cg-cookie .cg-cookie__toggle::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 4px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbf7ef 100%) !important;
    box-shadow:
        0 2px 7px rgba(24, 32, 51, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
    transform: translate(0, -50%) !important;
    transition:
        transform 180ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease !important;
}

/* ON / active switch: navy track, clearly activated. */
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:checked + .cg-cookie__toggle,
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:checked ~ .cg-cookie__toggle {
    border-color: rgba(24, 43, 66, 0.92) !important;
    background:
        radial-gradient(circle at 86% 18%, rgba(200, 169, 106, 0.30), transparent 30%),
        linear-gradient(135deg, #182b42 0%, #243b57 58%, #426f7f 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 0 3px rgba(24, 43, 66, 0.13),
        0 8px 18px rgba(24, 32, 51, 0.18) !important;
}

/* ON knob position. */
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:checked + .cg-cookie__toggle::after,
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:checked ~ .cg-cookie__toggle::after {
    transform: translate(20px, -50%) !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #fffaf0 100%) !important;
    box-shadow:
        0 2px 8px rgba(5, 14, 26, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}

/* Locked Necessary switch should still look ON, not disabled/faded. */
#notice-cookie-block.cg-cookie .cg-cookie__option--locked,
#notice-cookie-block.cg-cookie .cg-cookie__option--locked .cg-cookie__toggle,
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:disabled + .cg-cookie__toggle,
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:disabled ~ .cg-cookie__toggle {
    opacity: 1 !important;
}

/* Checked option card polish. */
#notice-cookie-block.cg-cookie .cg-cookie__option:has(input[type="checkbox"]:checked) {
    border-color: rgba(24, 43, 66, 0.24) !important;
    background:
        radial-gradient(circle at 96% 0%, rgba(198, 164, 91, 0.13), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 239, 0.92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 8px 22px rgba(24, 32, 51, 0.07) !important;
}

#notice-cookie-block.cg-cookie .cg-cookie__option:has(input[type="checkbox"]:checked)::before {
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    top: 0 !important;
    height: 2px !important;
    border-radius: 0 0 999px 999px !important;
    background: linear-gradient(90deg, #182b42, #426f7f, #c8a96a) !important;
    opacity: 0.82 !important;
    pointer-events: none !important;
}

/* Keyboard focus: visible premium ring on the switch. */
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:focus-visible + .cg-cookie__toggle,
#notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:focus-visible ~ .cg-cookie__toggle {
    outline: 3px solid rgba(200, 169, 106, 0.42) !important;
    outline-offset: 3px !important;
}

/* Smaller mobile switch, still visible. */
@media (max-width: 430px) {
    #notice-cookie-block.cg-cookie .cg-cookie__toggle {
        width: 46px !important;
        min-width: 46px !important;
        height: 27px !important;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__toggle::after {
        width: 19px !important;
        height: 19px !important;
    }

    #notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:checked + .cg-cookie__toggle::after,
    #notice-cookie-block.cg-cookie .cg-cookie__option input[type="checkbox"]:checked ~ .cg-cookie__toggle::after {
        transform: translate(19px, -50%) !important;
    }
}
/* CG_COOKIE_REAL_SWITCH_PATCH_END */
