/* Cookie Consent Custom Styles for ShopForAll */
.ch-cookie-consent {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    color: #333;
    padding: 1.5rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.ch-cookie-consent__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--brand-primary, #88B04B);
}

.ch-cookie-consent__description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ch-cookie-consent__category-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ch-cookie-consent__category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ch-cookie-consent__btn-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.ch-cookie-consent__btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.ch-cookie-consent__btn--secondary {
    background-color: #f1f3f5;
    color: #495057;
}

.ch-cookie-consent__btn--secondary:hover {
    background-color: #e9ecef;
}

.ch-cookie-consent__btn--primary {
    background-color: var(--brand-primary, #88B04B);
    color: white;
}

.ch-cookie-consent__btn--primary:hover {
    background-color: var(--brand-primary-dark, #7a9e43);
    transform: translateY(-1px);
}

/* Modal Overlay for Cookie Settings */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-consent-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: cookieModalSlideIn 0.3s ease-out;
}

@keyframes cookieModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.cookie-consent-modal__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.cookie-consent-modal__close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.cookie-consent-modal__close:hover {
    color: #333;
}

.cookie-consent-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-consent-modal__body p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent-categories {
    margin: 1.5rem 0;
}

.cookie-consent-category {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.cookie-consent-category:last-child {
    margin-bottom: 0;
}

.cookie-consent-category .form-check-input {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.cookie-consent-category__info {
    flex: 1;
}

.cookie-consent-category__label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.cookie-consent-category__description {
    display: block;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-consent-modal__footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .ch-cookie-consent__btn-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ch-cookie-consent__btn {
        width: 100%;
        text-align: center;
    }

    .cookie-consent-modal__footer {
        flex-direction: column;
    }

    .cookie-consent-modal__footer .ch-cookie-consent__btn {
        width: 100%;
    }
}