/* Cookie Banner - Compact */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 640px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    z-index: 9999;
    transition: bottom 0.3s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-banner-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-banner-icon {
    flex-shrink: 0;
    color: #3b82f6;
}

.cookie-banner-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.cookie-banner-description a {
    color: #3b82f6;
    text-decoration: underline;
}

.cookie-banner-description a:hover {
    text-decoration: none;
}

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

.btn-cookie {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-cookie-primary {
    background: #3b82f6;
    color: white;
}

.btn-cookie-primary:hover {
    background: #2563eb;
}

.btn-cookie-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #e2e8f0;
}

.btn-cookie-outline:hover {
    background: #f1f5f9;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: #ffffff;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #64748b;
    transition: color 0.2s;
}

.cookie-modal-close:hover {
    color: #1a1a1a;
}

.cookie-modal-body {
    padding: 1.25rem;
}

.cookie-settings-section {
    margin-bottom: 1.25rem;
}

.cookie-settings-section:last-child {
    margin-bottom: 0;
}

.cookie-settings-section h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.cookie-settings-section p {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.cookie-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem;
    background: #f1f5f9;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

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

.cookie-setting-info {
    flex: 1;
    padding-right: 1rem;
}

.cookie-setting-info h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
}

.cookie-setting-info p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #e2e8f0;
    transition: 0.2s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.2s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: #3b82f6;
}

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

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

.cookie-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-banner {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

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

    .cookie-banner-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
        text-align: center;
    }

    .cookie-modal-content {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }

    .cookie-setting-item {
        gap: 0.75rem;
    }

    .toggle-switch {
        align-self: center;
    }
}
