/* GDPR Cookie Banner Styles */

/* Banner Container - Hidden by default, shown via JS */
.gdpr-cookie-banner {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    padding: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    display: none;
    box-sizing: border-box !important;
}

/* Show banner when it has 'show' class or when JS initializes it */
.gdpr-cookie-banner.gdpr-show,
.gdpr-cookie-banner[style*="block"] {
    display: block;
}

/* Position Variants */
.gdpr-cookie-banner.gdpr-position-bottom {
    bottom: 0;
}

.gdpr-cookie-banner.gdpr-position-top {
    top: 0;
}

/* Theme Variants - Dark Theme */
.gdpr-cookie-banner.gdpr-theme-dark {
    background: rgba(30, 30, 30, 0.98) !important;
    color: #ffffff !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
}

.gdpr-cookie-banner.gdpr-theme-dark .gdpr-cookie-title {
    color: #ffffff !important;
}

.gdpr-cookie-banner.gdpr-theme-dark .gdpr-cookie-message {
    color: #ffffff !important;
}

.gdpr-cookie-banner.gdpr-theme-dark .gdpr-cookie-notice {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Theme Variants - Light Theme */
.gdpr-cookie-banner.gdpr-theme-light {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #333333 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
    border-top: 1px solid #e0e0e0 !important;
}

.gdpr-cookie-banner.gdpr-theme-light .gdpr-cookie-title {
    color: #333333 !important;
}

.gdpr-cookie-banner.gdpr-theme-light .gdpr-cookie-message {
    color: #333333 !important;
}

/* Container */
.gdpr-cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 768px) {
    .gdpr-cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Content */
.gdpr-cookie-content {
    flex: 1;
}

.gdpr-cookie-title {
    margin: 0 0 10px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.gdpr-cookie-message {
    margin: 0 !important;
    opacity: 0.95 !important;
    line-height: 1.5 !important;
}

.gdpr-cookie-notice {
    margin: 10px 0 0 0 !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    border-left: 3px solid #0070ba !important;
    line-height: 1.4 !important;
}

.gdpr-theme-light .gdpr-cookie-notice {
    background: rgba(0, 0, 0, 0.05) !important;
}

.gdpr-cookie-link {
    color: #0070ba;
    text-decoration: underline;
    margin-left: 10px;
}

.gdpr-cookie-link:hover {
    color: #005a94;
}

/* Actions */
.gdpr-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gdpr-cookie-actions {
        justify-content: center;
    }
}

/* Buttons */
.gdpr-cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    white-space: nowrap;
}

.gdpr-cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gdpr-cookie-btn:active {
    transform: translateY(0);
}

/* Button Variants */
.gdpr-cookie-btn-accept {
    background: #0070ba;
    color: white;
}

.gdpr-cookie-btn-accept:hover {
    background: #005a94;
}

.gdpr-cookie-btn-reject {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
}

.gdpr-cookie-btn-reject:hover {
    background: rgba(128, 128, 128, 0.1);
}

.gdpr-cookie-btn-preferences {
    background: rgba(128, 128, 128, 0.2);
    color: inherit;
}

.gdpr-cookie-btn-preferences:hover {
    background: rgba(128, 128, 128, 0.3);
}

/* Modal Styles */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.gdpr-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gdpr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.gdpr-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.gdpr-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.gdpr-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

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

.gdpr-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

/* Cookie Type Sections */
.gdpr-cookie-type {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

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

.gdpr-cookie-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gdpr-cookie-type-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.gdpr-cookie-type-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Toggle Switch */
.gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

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

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

.gdpr-toggle input:checked + .gdpr-toggle-slider {
    background-color: #0070ba;
}

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

.gdpr-toggle input:disabled + .gdpr-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animation */
@keyframes gdprSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gdprSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-cookie-banner.gdpr-position-bottom {
    animation: gdprSlideUp 0.5s ease;
}

.gdpr-cookie-banner.gdpr-position-top {
    animation: gdprSlideDown 0.5s ease;
}

/* Hidden State */
.gdpr-cookie-banner.gdpr-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}