/* Cookie Banner Styles */
.cookie-modal-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: auto;
    max-width: 400px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.5s ease;
}

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

.cookie-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

/* Full screen overlay for detailed view */
.cookie-modal-overlay.expanded {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    max-width: none;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(0);
}

.cookie-modal-overlay.expanded .cookie-modal {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
}

.cookie-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.cookie-modal-header p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.cookie-modal-body {
    padding: 20px 30px;
}

.cookie-category {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-category-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.cookie-category-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

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

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

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

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

input:checked + .cookie-slider {
    background-color: #e91e63;
}

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

.cookie-slider.disabled {
    background-color: #e91e63;
    cursor: not-allowed;
}

.cookie-category-content {
    padding: 20px;
    display: none;
}

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

.cookie-expand-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #666;
}

.cookie-category.expanded .cookie-expand-icon {
    transform: rotate(180deg);
}

.cookie-details {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-list {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.cookie-list h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cookie-item {
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

.cookie-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

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

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

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

/* Simple Banner Mode */
.cookie-banner-simple {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

.cookie-banner-simple h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-banner-simple p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-banner-actions .cookie-btn {
    padding: 8px 16px;
    font-size: 13px;
}

.cookie-details-link {
    color: #e91e63;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.cookie-details-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-modal-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .cookie-modal-overlay.expanded .cookie-modal {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }

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

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