/* Cookie Consent Modal Styles */
.cookie-modal-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    max-width: 400px;
    height: auto;
    background-color: transparent;
    display: block;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-modal {
    background-color: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-height: none;
    overflow: visible;
    transform: none;
    transition: none;
}

.cookie-modal-large {
    max-width: 500px;
}

.cookie-modal-content {
    padding: 32px;
}

/* Main modal heading (icon and title) */
.cookie-modal-heading {
    display: flex;
    flex-direction: row;
    align-content: center;
    margin: 0 0 16px 0;
    width: 100%;
    height: auto;
}

.cookie-modal-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    opacity: 0.5;
}

.cookie-modal-title {
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #000;
}

.cookie-modal-text {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #777;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.cookie-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-btn {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cookie-btn-primary {
    background-color: #4a9eff;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #2a7edd;
}

.cookie-btn-secondary {
    background-color: #eee;
    color: #333;
}

.cookie-btn-secondary:hover {
    background-color: #ddd;
}

/*
.cookie-btn-outline {
    background-color: transparent;
    color: #4a9eff;
    border: 2px solid #4a9eff;
}

.cookie-btn-outline:hover {
    background-color: #4a9eff;
    color: white;
    transform: translateY(-1px);
}*/

.cookie-btn-full {
    width: 100%;
}

/* Cookie Categories */
.cookie-categories {
    margin: 24px 0;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

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

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

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

.cookie-category-title {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.cookie-category-description {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

/* Toggle Switch Styles */
.cookie-toggle-container {
    flex-shrink: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    transition: 0.3s ease;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #4a9eff;
}

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

/* Mobile Responsive */
@media (max-width: 640px) {
    .cookie-modal-overlay {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        top: auto;
        width: auto;
        max-width: none;
        height: auto;
        max-height: none;
        padding: 0;
        transform: translateY(100%);
    }
    
    .cookie-modal-overlay.show {
        transform: translateY(0);
    }
    
    .cookie-modal {
        justify-self: center;
        width: 100%;
        height: auto;
        max-height: 60vh;
        border-radius: 16px;
        box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.12), 0 -2px 12px rgba(0, 0, 0, 0.08);
        border: none;
        border: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    
    .cookie-modal-content {
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
    }
    
    .cookie-modal-title {
        font-size: 20px;
    }
    
    .cookie-modal-text {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .cookie-modal-buttons {
        margin-top: 4px;
        flex-shrink: 0;
    }
    
    .cookie-category-header {
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }
    
    .cookie-toggle-container {
        align-self: center;
        flex-shrink: 0;
    }
    
    .cookie-btn {
        font-size: 15px;
        padding: 14px 20px;
    }

    /* Customize modal gets more height */
    .cookie-modal-large {
        max-height: 75vh;
    }
    
    .cookie-modal-large .cookie-modal-content {
        height: 100%;
        overflow-y: auto;
    }
    
    .cookie-modal-large .cookie-categories {
        flex: 1;
        margin: 20px 0;
    }
    
    .cookie-modal-large .cookie-modal-buttons {
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid #eee;
    }
}