 /* Animations */
@keyframes slide-up {
    0% {
        transform: translateY(125%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(125%);
        opacity: 0;
    }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

.animate-slide-down {
    animation: slide-down 0.2s ease-in;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    max-width: 35rem;
}

.cookie-banner-inner {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: 100%;
    }
    .cookie-banner-inner {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

.cookie-banner-content {
    padding: 1.5rem;
}

.cookie-banner-flex {
    display: flex;
    gap: 1rem;
}

.cookie-banner-icon {
    margin-top: 0.125rem;
}

.cookie-banner-icon svg {
    height: 1.25rem;
    width: 1.25rem;
    color: #6b7280;
}

.cookie-banner-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-banner-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.cookie-banner-description {
    font-size: 0.875rem;
    color: #4b5563;
}

.cookie-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-banner-buttons-row {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #00607D;
    color: #ffffff;
    width: 100%;
}

.btn-primary:hover {
    background-color: #026f94 !important;
}

.btn-secondary {
    flex: 1;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
}

.modal-backdrop.active {
    display: block;
}

/* Modal */
.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 51;
    width: calc(100% - 2rem);
    max-width: 42rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-header-icon {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #dbeafe;
}

.modal-header-icon svg {
    height: 1.25rem;
    width: 1.25rem;
    color: #00607D;
}

.modal-header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.modal-header-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.modal-close {
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #4b5563;
}

.modal-close svg {
    height: 1.25rem;
    width: 1.25rem;
}

/* Modal Content */
.modal-content {
    max-height: 28rem;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cookie Category */
.cookie-category {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1rem;
}

.cookie-category-required {
    background-color: #f9fafb;
}

.cookie-category-optional {
    background-color: #ffffff;
}

.cookie-category-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.cookie-category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background-color: #e5e7eb;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1f2937;
}

.cookie-category-description {
    font-size: 0.875rem;
    color: #4b5563;
}

.cookie-category-services {
    font-size: 0.75rem;
    color: #6b7280;
}

.cookie-category-services strong {
    font-weight: 600;
}

.cookie-category-control {
    display: flex;
    align-items: center;
}

/* Checkbox */
.checkbox-disabled {
    height: 1rem;
    width: 1rem;
    cursor: not-allowed;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    opacity: 0.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-flex;
    height: 1.5rem;
    width: 2.75rem;
    align-items: center;
    border-radius: 9999px;
    background-color: #e5e7eb;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.toggle-switch:focus {
    outline: 2px solid #026f94;
    outline-offset: 2px;
}

.toggle-switch.active {
    background-color: #00607D;
}

.toggle-thumb {
    display: inline-block;
    height: 1rem;
    width: 1rem;
    border-radius: 9999px;
    background-color: #ffffff;
    transform: translateX(0.25rem);
    transition: transform 0.2s;
}

.toggle-thumb.active {
    transform: translateX(1.5rem);
}

/* Modal Info */
.modal-info {
    padding: 0 1.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.modal-info a {
    color: #00607D;
    text-decoration: underline;
}

.modal-info a:hover {
    color: #026f94;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .modal-footer {
        flex-direction: row;
        justify-content: flex-end;
    }
}

.btn-modal {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
}

.btn-modal:hover {
    background-color: #f9fafb;
}

.btn-modal-primary {
    border: 1px solid transparent;
    background-color: #00607D;
    color: #ffffff;
}

.btn-modal-primary:hover {
    background-color: #026f94 !important;
}

/* Hidden utility */
.hidden {
    display: none;
}
