/* ==================== COOKIE NOTICE STYLES ==================== */

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color, #ffffff);
    border-top: 2px solid var(--primary-color, #2563eb);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-banner__text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color, #1f2937);
}

.cookie-banner__description {
    font-size: 0.95rem;
    color: var(--text-light, #6b7280);
    margin-bottom: 10px;
}

.cookie-banner__links {
    font-size: 0.9rem;
}

.cookie-banner__links a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    margin-right: 15px;
}

.cookie-banner__links a:hover {
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn--accept {
    background: var(--primary-color, #2563eb);
    color: white;
}

.cookie-btn--accept:hover {
    background: var(--secondary-color, #1e40af);
}

.cookie-btn--reject {
    background: var(--bg-light, #f9fafb);
    color: var(--text-color, #1f2937);
    border: 1px solid var(--border-color, #e5e7eb);
}

.cookie-btn--reject:hover {
    background: var(--border-color, #e5e7eb);
}

.cookie-btn--customize {
    background: transparent;
    color: var(--primary-color, #2563eb);
    border: 1px solid var(--primary-color, #2563eb);
}

.cookie-btn--customize:hover {
    background: var(--primary-color, #2563eb);
    color: white;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal__content {
    background: var(--bg-color, #ffffff);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cookie-modal__header {
    padding: 24px 24px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.cookie-modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-modal__body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-category__title {
    font-weight: 600;
    font-size: 1.05rem;
}

.cookie-category__required {
    background: var(--success-color, #16a34a);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background-color: var(--primary-color, #2563eb);
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
    background-color: var(--success-color, #16a34a);
    cursor: not-allowed;
}

.cookie-category__description {
    color: var(--text-light, #6b7280);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-modal__footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        justify-content: center;
    }

    .cookie-modal__content {
        margin: 10px;
        max-height: 90vh;
    }
}