/* Cookie Consent Banner Styling */

.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: calc(100% - 48px);
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    padding: 24px;
    z-index: 10000;
    font-family: var(--font-body);
    color: var(--color-text-dark);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.cookie-consent-banner.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cookie-consent-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-banner h3::after {
    display: none; /* Override general h2/h3 underlines if any */
}

.cookie-consent-banner p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.cookie-consent-banner p a {
    color: var(--color-turquoise);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent-banner p a:hover {
    color: var(--color-pink);
}

/* Buttons */
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.cookie-btn-primary {
    background-color: var(--color-turquoise);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 161, 155, 0.2);
}

.cookie-btn-primary:hover {
    background-color: #008782;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 161, 155, 0.3);
}

.cookie-btn-secondary {
    background-color: var(--color-light-gray);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}

.cookie-btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.cookie-btn-link {
    background-color: transparent;
    color: var(--color-text-light);
    text-decoration: underline;
    padding-left: 8px;
    padding-right: 8px;
}

.cookie-btn-link:hover {
    color: var(--color-text-dark);
}

/* Preferences Configuration Panel */
.cookie-preferences {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 0px solid var(--color-border);
    margin-top: 0;
    padding-top: 0;
}

.cookie-preferences.open {
    max-height: 350px;
    border-top: 1px solid var(--color-border);
    margin-top: 16px;
    padding-top: 16px;
}

.cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.cookie-pref-item:last-child {
    border-bottom: none;
    padding-bottom: 18px;
}

.cookie-pref-info {
    padding-right: 15px;
}

.cookie-pref-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text-dark);
}

.cookie-pref-info p {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--color-lime);
}

input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

input:disabled + .cookie-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column-reverse;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
