/* Webup GDPR Cookie Banner Styles */

.webup-gdpr-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background-color: var(--webup-gdpr-bg, #ffffff);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.webup-gdpr-banner--bottom {
    bottom: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.webup-gdpr-banner--top {
    top: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.webup-gdpr-banner--center {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.webup-gdpr-banner__container {
    max-width: 1200px;
    margin: 0 auto;
}

.webup-gdpr-banner__content {
    margin-bottom: 16px;
}

.webup-gdpr-banner__title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--webup-gdpr-text, #1f2937);
}

.webup-gdpr-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--webup-gdpr-text, #1f2937);
    opacity: 0.8;
}

/* Settings panel */
.webup-gdpr-banner__settings {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 16px;
    margin-bottom: 16px;
}

.webup-gdpr-category {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.webup-gdpr-category:last-child {
    margin-bottom: 0;
}

.webup-gdpr-category__label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--webup-gdpr-text, #1f2937);
}

.webup-gdpr-category__label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--webup-gdpr-primary, #2563eb);
    cursor: pointer;
}

.webup-gdpr-category__label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.webup-gdpr-category__title {
    font-size: 15px;
}

.webup-gdpr-category__badge {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--webup-gdpr-primary, #2563eb);
    color: #fff;
    border-radius: 12px;
    font-weight: 500;
}

.webup-gdpr-category__desc {
    margin: 8px 0 0 28px;
    font-size: 13px;
    color: var(--webup-gdpr-text, #1f2937);
    opacity: 0.7;
    line-height: 1.4;
}

/* Buttons */
.webup-gdpr-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.webup-gdpr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.webup-gdpr-btn--primary {
    background-color: var(--webup-gdpr-primary, #2563eb);
    color: #ffffff;
}

.webup-gdpr-btn--primary:hover {
    background-color: var(--webup-gdpr-primary-hover, #1d4ed8);
}

.webup-gdpr-btn--secondary {
    background-color: transparent;
    color: var(--webup-gdpr-secondary, #6b7280);
    border: 1px solid var(--webup-gdpr-secondary, #6b7280);
}

.webup-gdpr-btn--secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Open settings button (floating) */
.webup-gdpr-open-settings {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--webup-gdpr-primary, #2563eb);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.webup-gdpr-open-settings:hover {
    background-color: var(--webup-gdpr-primary-hover, #1d4ed8);
    transform: scale(1.1);
}

/* Overlay for center position */
.webup-gdpr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

/* Cookie Policy Shortcode Styles */
.webup-cookie-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.webup-cookie-policy h2 {
    margin-top: 0;
}

.webup-cookie-policy h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.webup-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px;
    font-size: 14px;
}

.webup-cookie-table th,
.webup-cookie-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.webup-cookie-table th {
    background-color: #f9fafb;
    font-weight: 600;
}

.webup-cookie-table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
    .webup-gdpr-banner {
        padding: 16px;
    }

    .webup-gdpr-banner--center {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .webup-gdpr-banner__buttons {
        flex-direction: column;
    }

    .webup-gdpr-btn {
        width: 100%;
        text-align: center;
    }

    .webup-gdpr-banner__title {
        font-size: 16px;
    }

    .webup-gdpr-banner__text {
        font-size: 13px;
    }

    .webup-cookie-table {
        font-size: 12px;
    }

    .webup-cookie-table th,
    .webup-cookie-table td {
        padding: 8px;
    }
}

/* Animation */
@keyframes webup-gdpr-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes webup-gdpr-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes webup-gdpr-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.webup-gdpr-banner--bottom.webup-gdpr-banner--animate {
    animation: webup-gdpr-slide-up 0.3s ease-out;
}

.webup-gdpr-banner--top.webup-gdpr-banner--animate {
    animation: webup-gdpr-slide-down 0.3s ease-out;
}

.webup-gdpr-banner--center.webup-gdpr-banner--animate {
    animation: webup-gdpr-fade-in 0.3s ease-out;
}
