/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 38, 49, 0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-inner {
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    padding: 24px 0;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h6 {
    font-size: 16px;
    font-weight: 600;
    color: #102631;
    margin-bottom: 6px;
}

.cookie-consent-text p {
    font-size: 13px;
    color: #102631b6;
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #3845F6;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 3rem;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: #3845F6;
    color: #fff;
    border: none;
}

.btn-cookie-accept:hover {
    background: #102631;
    color: #fff;
}

.btn-cookie-reject {
    background: transparent;
    color: #102631;
    border: 1.5px solid #102631;
}

.btn-cookie-reject:hover {
    background: #102631;
    color: #fff;
}

.btn-cookie-manage {
    background: transparent;
    color: #3845F6;
    border: 1.5px solid #3845F6;
}

.btn-cookie-manage:hover {
    background: #3845F6;
    color: #fff;
}

/* Preferences Panel */
.cookie-prefs-panel {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F1F1FB;
}

.cookie-prefs-panel.show {
    display: block;
}

.cookie-pref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F1F1FB;
}

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

.cookie-pref-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: #102631;
    margin-bottom: 2px;
}

.cookie-pref-info p {
    font-size: 12px;
    color: #102631b6;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #3845F6;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: #3845F6;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-prefs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 767px) {
    .cookie-consent-inner {
        padding: 16px 0;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-consent-actions {
        flex-wrap: wrap;
    }

    .cookie-consent-actions .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
    }
}
