/* Reusable cookie consent component */
:root {
    --cc-primary: #d8ae76;
    --cc-primary-hover: #c29a67;
    --cc-bg: #1f2c3b;
    --cc-panel-bg: #ffffff;
    --cc-text: #223040;
    --cc-muted: #5f6d7b;
    --cc-border: #dde3ea;
    --cc-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.cc-banner,
.cc-panel,
.cc-backdrop {
    box-sizing: border-box;
    font-family: "Open Sans", Arial, sans-serif;
}

.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    background: linear-gradient(135deg, var(--cc-bg) 0%, #2a3b4f 100%);
    border-radius: 14px;
    box-shadow: var(--cc-shadow);
    color: #ffffff;
    padding: 18px 18px 16px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cc-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cc-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
}

.cc-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
}

.cc-text a {
    color: #ffffff;
    text-decoration: underline;
}

.cc-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-btn {
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cc-btn--primary {
    background: var(--cc-primary);
    border-color: var(--cc-primary);
    color: #ffffff;
}

.cc-btn--primary:hover,
.cc-btn--primary:focus {
    background: var(--cc-primary-hover);
    border-color: var(--cc-primary-hover);
    color: #ffffff;
}

.cc-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.cc-btn--ghost:hover,
.cc-btn--ghost:focus {
    border-color: #ffffff;
    color: #ffffff;
}

.cc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 23, 0.55);
    backdrop-filter: blur(3px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cc-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cc-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10001;
    background: var(--cc-panel-bg);
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    box-shadow: var(--cc-shadow);
    padding: 18px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cc-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cc-panel-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: var(--cc-text);
    font-weight: 700;
}

.cc-panel-text {
    margin: 8px 0 0;
    color: var(--cc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cc-options {
    margin-top: 16px;
    border-top: 1px solid var(--cc-border);
    border-bottom: 1px solid var(--cc-border);
}

.cc-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.cc-option + .cc-option {
    border-top: 1px solid var(--cc-border);
}

.cc-option-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--cc-text);
}

.cc-option-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--cc-muted);
    line-height: 1.55;
}

.cc-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #445264;
    font-weight: 700;
}

.cc-switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex: 0 0 auto;
}

.cc-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cc-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cfd8e1;
    transition: background-color 0.2s ease;
}

.cc-switch-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-switch-slider {
    background: var(--cc-primary);
}

.cc-switch input:checked + .cc-switch-slider::before {
    transform: translateX(22px);
}

.cc-switch input:disabled + .cc-switch-slider {
    background: #a8b3bf;
    cursor: not-allowed;
}

.cc-panel-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-panel .cc-btn {
    border-color: #cfd8e1;
}

.cc-panel .cc-btn--ghost {
    color: #2a3b4f;
}

.cc-panel .cc-btn--ghost:hover,
.cc-panel .cc-btn--ghost:focus {
    border-color: #9aa8b6;
    color: #1f2c3b;
}

.cc-panel-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: #516173;
    text-decoration: underline;
}

.cc-panel-link:hover,
.cc-panel-link:focus {
    color: #2e3f51;
}

.footer-cookie-settings {
    margin-top: 8px;
}

.footer-cookie-settings a {
    color: #ffffff;
    opacity: 0.85;
    font-size: 13px;
    text-decoration: underline;
}

.footer-cookie-settings a:hover,
.footer-cookie-settings a:focus {
    opacity: 1;
    color: #ffffff;
}

@media (min-width: 768px) {
    .cc-banner,
    .cc-panel {
        max-width: 760px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .cc-title {
        font-size: 17px;
    }

    .cc-btn {
        flex: 1 1 100%;
    }
}
