#cookie-consent-popup {
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#cookie-consent-popup.hidden,
#cookie-settings-view.hidden,
#cookie-main-view.hidden,
#notificationModal.hidden {
    display: none;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#cookie-consent-popup > div:last-child {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

@media (min-width: 768px) {
    #cookie-consent-popup > div:last-child {
        padding: 2rem;
    }
}

.cookie-content {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-content.translate-y-0 {
    transform: translateY(0);
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.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: #e2e8f0;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #2563eb;
}

input:focus + .cookie-slider {
    box-shadow: 0 0 1px #2563eb;
}

input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

input:disabled + .cookie-slider {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

#cookie-settings-view::-webkit-scrollbar {
    width: 6px;
}

#cookie-settings-view::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#cookie-settings-view::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#cookie-settings-view::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.cookie-content table {
    min-width: 500px;
}

.cookie-content table th {
    white-space: nowrap;
}

.cookie-content .overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.3s ease-out;
}

.cookie-content .overflow-x-auto.is-open {
    max-height: 500px;
    overflow-x: auto;
}

.cookie-details-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.2s;
}

.cookie-details-toggle:hover {
    color: #2563eb;
}

.cookie-details-toggle i {
    transition: transform 0.3s;
}

.cookie-details-toggle.is-active i {
    transform: rotate(180deg);
}
