/* ============================================
   Consent Banner Styles - Plugin
   ============================================ */

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    font-size: 14px;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.consent-banner.show {
    display: block;
}

.consent-banner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.consent-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.consent-close-btn:hover {
    color: #333;
}

.consent-banner h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #222;
    margin: 0 0 10px 0;
}

.consent-banner p {
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.consent-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: flex-end;
}

/* Mobile: Stack buttons vertically below text */
@media (max-width: 768px) {
    .consent-controls {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
    }

    .consent-controls .consent-button {
        flex: 1;
        width: 100%;
        padding: 12px 16px;
    }
}

.consent-button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    color: #333;
}

.consent-button:hover {
    background: #f0f0f0;
    border-color: #999;
}

.consent-button.primary {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.consent-button.primary:hover {
    background: #004099;
    border-color: #004099;
}

.consent-toggle-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: none;
}

.consent-toggle-section.show {
    display: block;
}

.toggle-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.toggle-label {
    flex: 1;
}

.toggle-label strong {
    display: block;
    margin-bottom: 3px;
    margin: 0 0 3px 0;
}

.toggle-label small {
    color: #999;
    font-size: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

input:checked + .slider {
    background-color: #0056b3;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-custom-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.consent-banner-footer {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    margin: 10px 0 0 0;
}
