/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #101014 0%, #191920 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-width: 100%;
}

.cookie-consent-banner:focus-within {
    outline: 3px solid rgba(87, 199, 255, 0.45);
    outline-offset: -3px;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
    color: #f4f6fb;
}

.cookie-consent-text h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    color: #8fd8ff;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0 0 0.4rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #c9cdd6;
}

.cookie-policy-link {
    color: #57c7ff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.cookie-policy-link:hover {
    color: #6be3ff;
    text-decoration: underline;
}

.cookie-policy-link:focus-visible {
    outline: 3px solid rgba(87, 199, 255, 0.45);
    outline-offset: 4px;
    border-radius: 4px;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn-accept,
.cookie-btn-necessary,
.cookie-btn-customize {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #57c7ff 0%, #6be3ff 100%);
    color: #101014;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #6be3ff 0%, #57c7ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 199, 255, 0.32);
}

.cookie-btn-necessary {
    background: rgba(87, 199, 255, 0.15);
    color: #57c7ff;
    border: 1px solid rgba(87, 199, 255, 0.32);
}

.cookie-btn-necessary:hover {
    background: rgba(87, 199, 255, 0.25);
    border-color: rgba(87, 199, 255, 0.5);
}

.cookie-btn-customize {
    background: transparent;
    color: #f4f6fb;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-btn-customize:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #9aa2b1;
}

.cookie-btn-accept:focus-visible,
.cookie-btn-necessary:focus-visible,
.cookie-btn-customize:focus-visible,
.cookie-customize-footer .btn:focus-visible,
.cookie-close-btn:focus-visible {
    outline: 3px solid rgba(87, 199, 255, 0.45);
    outline-offset: 3px;
}

/* Cookie Customize Modal Styles */

.cookie-customize-modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    overflow-y: auto;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.cookie-customize-modal[hidden] {
    display: none;
}

body.cookie-modal-open {
    overflow: hidden;
}

.cookie-customize-content {
    max-width: 600px;
    margin: 2rem auto;
    background: linear-gradient(135deg, #101014 0%, #191920 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.cookie-customize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-customize-header h3 {
    margin: 0;
    color: #8fd8ff;
    font-size: 1.5rem;
    font-weight: 600;
}

.cookie-modal-description {
    margin: 0 0 1.5rem 0;
    color: #c9cdd6;
    line-height: 1.5;
}

.cookie-close-btn {
    background: none;
    border: none;
    color: #f4f6fb;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.cookie-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff7f9d;
}

.cookie-customize-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-header h4 {
    margin: 0;
    color: #f4f6fb;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-category-desc {
    margin: 0;
    color: #c9cdd6;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch Styles */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.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.12);
    transition: 0.3s;
    border-radius: 26px;
}

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

.cookie-switch input:checked + .cookie-slider {
    background-color: #57c7ff;
}

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

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

.cookie-switch input:disabled + .cookie-slider:before {
    background-color: #9aa2b1;
}

.cookie-switch input:focus-visible + .cookie-slider {
    outline: 3px solid rgba(87, 199, 255, 0.45);
    outline-offset: 3px;
}

.cookie-customize-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

.cookie-customize-footer .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-customize-footer .btn-primary {
    background: linear-gradient(135deg, #57c7ff 0%, #6be3ff 100%);
    color: #101014;
}

.cookie-customize-footer .btn-primary:hover {
    background: linear-gradient(135deg, #6be3ff 0%, #57c7ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 199, 255, 0.32);
}

.cookie-customize-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f4f6fb;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-customize-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #9aa2b1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-btn-accept,
    .cookie-btn-necessary,
    .cookie-btn-customize {
        width: 100%;
    }

    .cookie-customize-content {
        margin: 1rem;
    }

    .cookie-customize-header,
    .cookie-customize-body,
    .cookie-customize-footer {
        padding: 1rem;
    }
}

/* Scrollbar styling for customize modal */
.cookie-customize-body::-webkit-scrollbar {
    width: 8px;
}

.cookie-customize-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.cookie-customize-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.cookie-customize-body::-webkit-scrollbar-thumb:hover {
    background: #9aa2b1;
}

