/* Cookie Consent Styles */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-icon {
    font-size: 40px;
    color: #1a5c3e;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.cookie-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: #1a5c3e;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background: #1a5c3e;
    color: white;
}

.cookie-btn-accept:hover {
    background: #0d3d2b;
}

.cookie-btn-settings {
    background: transparent;
    color: #1a5c3e;
    border: 2px solid #1a5c3e;
}

.cookie-btn-settings:hover {
    background: rgba(26, 92, 62, 0.05);
}

.cookie-btn-reject {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

.cookie-btn-reject:hover {
    border-color: #999;
    color: #333;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: white;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

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

.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Cookie Categories */
.cookie-category {
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.cookie-category-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-info h4 .required-badge {
    font-size: 10px;
    background: #1a5c3e;
    color: white;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 500;
}

.cookie-category-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.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: #ddd;
    border-radius: 26px;
    transition: 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #1a5c3e;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: #1a5c3e;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cookie Details */
.cookie-category-details {
    padding: 0 20px 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #eee;
    display: none;
}

.cookie-category.expanded .cookie-category-details {
    display: block;
}

.cookie-list {
    margin-top: 12px;
}

.cookie-list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.cookie-list-item:last-child {
    border-bottom: none;
}

.cookie-list-item strong {
    color: #333;
}

.cookie-list-item span {
    color: #888;
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-modal-footer .cookie-btn {
    min-width: 120px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-icon {
        display: none;
    }

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

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
