/* GDPR Consent Popup Styles */

/* Simple Banner (First View) - Small box in corner */
.gdpr-simple-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    animation: gdprSlideUp 0.3s ease;
}

.gdpr-simple-banner.gdpr-position-right {
    left: auto;
    right: 20px;
}

.gdpr-simple-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 12px;
}

.gdpr-simple-banner .gdpr-privacy-link {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
}

.gdpr-simple-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.gdpr-simple-buttons .gdpr-btn {
    padding: 10px 18px;
    font-size: 13px;
}

.gdpr-btn-options {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.gdpr-btn-options:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

@keyframes gdprSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay */
.gdpr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal */
.gdpr-modal {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.gdpr-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

/* Header */
.gdpr-header {
    padding: 25px 30px 0;
    flex-shrink: 0;
}

.gdpr-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Body */
.gdpr-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.gdpr-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 15px;
}

.gdpr-privacy-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.gdpr-privacy-link:hover {
    text-decoration: underline;
}

/* Allow All Top Button */
.gdpr-allow-all-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

/* Preferences Section */
.gdpr-preferences h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}

/* Category */
.gdpr-category {
    margin-bottom: 25px;
}

.gdpr-category:last-child {
    margin-bottom: 0;
}

.gdpr-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gdpr-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.gdpr-always-on {
    color: #5aa85a;
    font-weight: 600;
    font-size: 14px;
}

.gdpr-category-description {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Toggle Switch */
.gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.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%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gdpr-toggle input:checked+.gdpr-toggle-slider {
    background-color: #2196F3;
}

.gdpr-toggle input:checked+.gdpr-toggle-slider:before {
    transform: translateX(24px);
}

/* Footer */
.gdpr-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* Buttons */
.gdpr-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.gdpr-btn-confirm {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.gdpr-btn-confirm:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.gdpr-btn-allow {
    background: linear-gradient(135deg, #e8734a 0%, #d4633e 100%);
    color: #fff;
}

.gdpr-btn-allow:hover {
    background: linear-gradient(135deg, #d4633e 0%, #c5533e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(228, 115, 74, 0.3);
}

/* Preferences Button (always visible) */
.gdpr-preferences-btn {
    position: fixed;
    bottom: 20px;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    font-family: inherit;
}

.gdpr-preferences-btn:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Position variants */
.gdpr-position-left {
    left: 20px;
}

.gdpr-position-right {
    right: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .gdpr-simple-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        padding: 15px;
    }

    .gdpr-simple-banner.gdpr-position-right {
        left: 10px;
        right: 10px;
    }

    .gdpr-simple-text {
        font-size: 12px;
        line-height: 1.4;
        margin: 0 0 10px;
    }

    .gdpr-simple-banner .gdpr-privacy-link {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .gdpr-simple-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .gdpr-simple-buttons .gdpr-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 12px;
    }

    .gdpr-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .gdpr-modal {
        border-radius: 16px 16px 0 0;
    }

    .gdpr-header {
        padding: 20px 20px 0;
    }

    .gdpr-header h2 {
        font-size: 20px;
    }

    .gdpr-body {
        padding: 15px 20px;
    }

    .gdpr-description {
        font-size: 13px;
    }

    .gdpr-preferences h3 {
        font-size: 18px;
    }

    .gdpr-category-title {
        font-size: 15px;
    }

    .gdpr-category-description {
        font-size: 12px;
    }

    .gdpr-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .gdpr-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .gdpr-preferences-btn {
        bottom: 10px;
        font-size: 12px;
        padding: 8px 16px;
    }

    .gdpr-position-left {
        left: 10px;
    }

    .gdpr-position-right {
        right: 10px;
    }
}

/* Scrollbar styling */
.gdpr-body::-webkit-scrollbar {
    width: 8px;
}

.gdpr-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gdpr-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.gdpr-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animation */
.gdpr-overlay {
    animation: gdprFadeIn 0.3s ease;
}

.gdpr-modal {
    animation: gdprSlideIn 0.3s ease;
}

@keyframes gdprFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gdprSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}