/* Cookie Consent Scoped Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Prompt:wght@300;400;500;600&display=swap');

:root {
    --cc-primary-color: #2563eb;
    --cc-primary-hover: #1d4ed8;
    --cc-text-color: #1f2937;
    --cc-text-secondary: #6b7280;
    --cc-bg-color: #ffffff;
    --cc-border-color: #e5e7eb;
    --cc-font-main: 'Prompt', 'Inter', sans-serif;
}

/* Utilities */
.cc-hidden {
    display: none !important;
}

/* Buttons */
.cc-btn-primary {
    background-color: var(--cc-primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--cc-font-main);
    font-size: 0.95rem;
}

.cc-btn-primary:hover {
    background-color: var(--cc-primary-hover);
}

.cc-btn-secondary {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--cc-font-main);
}

.cc-btn-outline {
    background-color: transparent;
    color: var(--cc-text-color);
    border: 1px solid var(--cc-border-color);
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--cc-font-main);
    font-size: 0.95rem;
}

.cc-btn-outline:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Cookie Banner - Fixed Bottom */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--cc-bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 9999;
    /* High z-index */
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--cc-border-color);
    animation: ccSlideUp 0.3s ease-out;
    font-family: var(--cc-font-main);
    color: var(--cc-text-color);
}

@keyframes ccSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    flex: 1 1 500px;
}

.cookie-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-content p {
    font-size: 0.925rem;
    color: var(--cc-text-secondary);
    line-height: 1.5;
}

.cookie-content a {
    color: var(--cc-primary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--cc-font-main);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: var(--cc-bg-color);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 12px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: ccFadeIn 0.2s ease-out;
    color: var(--cc-text-color);
}

@keyframes ccFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--cc-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cc-text-secondary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--cc-border-color);
}

.modal-desc {
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
    color: var(--cc-text-secondary);
    line-height: 1.5;
}

.cookie-option {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--cc-border-color);
}

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

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

.option-title {
    font-weight: 600;
    font-size: 1rem;
}

.option-desc {
    font-size: 0.875rem;
    color: var(--cc-text-secondary);
}

.badge-required {
    background-color: var(--cc-border-color);
    color: var(--cc-text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.full-width {
    width: 100%;
}

/* Switch Toggle */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.cc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.cc-slider {
    background-color: var(--cc-primary-color);
}

input:focus+.cc-slider {
    box-shadow: 0 0 1px var(--cc-primary-color);
}

input:checked+.cc-slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.cc-slider.round {
    border-radius: 34px;
}

.cc-slider.round:before {
    border-radius: 50%;
}

@media (max-width: 640px) {
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cc-btn-primary,
    .cc-btn-outline {
        width: 100%;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }
}