/* Cookie Consent Banner Styling */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 48px);
    background: rgba(15, 15, 22, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color: #f3f4f6;
    font-family: 'Inter', sans-serif;
    padding: 24px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

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

.cookie-consent-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-consent-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #9ca3af;
    margin-bottom: 20px;
}

.cookie-consent-text a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.cookie-consent-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    display: inline-block;
}

.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.cookie-consent-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.cookie-consent-btn-decline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

.cookie-consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: #9ca3af;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    padding: 6px 0;
    width: 100%;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.cookie-consent-btn-settings:hover {
    color: #ffffff;
}

/* Settings Accordion */
.cookie-consent-settings {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 220px;
    overflow-y: auto;
}

.cookie-consent-settings.open {
    display: block;
}

.cookie-consent-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.cookie-consent-item:last-child {
    margin-bottom: 0;
}

.cookie-consent-item-text {
    flex: 1;
    padding-right: 16px;
}

.cookie-consent-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 2px;
}

.cookie-consent-item-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

/* Switch Toggle Styling */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.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: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #9ca3af;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #4f46e5;
}

input:checked + .cookie-slider:before {
    transform: translateX(16px);
    background-color: #ffffff;
}

input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:disabled + .cookie-slider:before {
    background-color: #4b5563;
}

/* Custom Scrollbar for Settings */
.cookie-consent-settings::-webkit-scrollbar {
    width: 4px;
}

.cookie-consent-settings::-webkit-scrollbar-track {
    background: transparent;
}

.cookie-consent-settings::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        padding: 16px;
    }
}
