/* ========================================
   PYS Consent Popup Styles
   ======================================== */

/* CSS Variables */
:root {
    --pys-consent-bg: #000;
    --pys-consent-text: #fff;
    --pys-consent-border: #333;
}

/* ========================================
   Base Popup Styles (Shared)
   ======================================== */
.pys-consent-popup {
    position: fixed;
    z-index: 999999;
    background-color: var(--pys-consent-bg, #000);
    color: var(--pys-consent-text, #fff);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
    display: none;
}

.pys-consent-popup.pys-show {
    opacity: 1;
    visibility: visible;
    display: block;
}

.pys-consent-popup a {
    color: var(--pys-consent-text, #fff);
    text-decoration: underline;
}

/* ========================================
   Content Layout (Shared)
   ======================================== */
.pys-consent-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pys-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.pys-consent-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: var(--pys-consent-text, #fff);
    flex: 1;
}

.pys-language-selector {
    flex-shrink: 0;
}

.pys-language-dropdown {
    background: transparent;
    border: 1px solid var(--pys-consent-border, #333);
    border-radius: 4px;
    padding: 6px 12px;
    color: var(--pys-consent-text, #fff);
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.pys-language-dropdown:hover {
    border-color: var(--pys-consent-text, #fff);
}

.pys-language-dropdown option {
    background: var(--pys-consent-bg, #000);
    color: var(--pys-consent-text, #fff);
}

.pys-consent-desc {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    color: var(--pys-consent-text, #fff);
    margin: 0;
}

.pys-consent-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ========================================
   Button Styles
   ======================================== */
.pys-btn {
    padding: 0px 90px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: none;
}

.pys-btn-accept {
    background-color: #fff;
    color: #000;
}

.pys-btn-accept:hover {
    background-color: #fff;
}

.pys-btn-decline {
    background-color: #000;
    color: #fff;
}

.pys-btn-decline:hover {
    background-color: #000;
}

.pys-btn-preferences {
    background-color: #000;
    color: #fff;
}

.pys-btn-preferences:hover {
    background-color: #000;
}

/* ========================================
   FULLWIDTH LAYOUT
   ======================================== */
.pys-layout-fullwidth.pys-consent-popup {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-top: 1px solid var(--pys-consent-border, #333);
    transform: translateY(100%);
}

.pys-layout-fullwidth.pys-consent-popup.pys-show {
    transform: translateY(0);
}

.pys-layout-fullwidth .pys-consent-content {
    max-width: 1216px;
    margin: 0 auto;
}

/* ========================================
   BOXED LAYOUT
   ======================================== */
.pys-layout-boxed.pys-consent-popup {
    bottom: 5px;
    left: 50%;
    max-width: 1216px;
    width: 90%;
    border-radius: 8px;
    border: 1px solid var(--pys-consent-border, #333);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) translateY(100%);
}

.pys-layout-boxed.pys-consent-popup.pys-show {
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .pys-consent-content {
        padding: 20px;
        gap: 12px;
    }

    .pys-consent-content h3 {
        font-size: 16px;
    }

    .pys-consent-desc {
        font-size: 13px;
    }

    .pys-consent-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .pys-btn {
        width: 100%;
        padding: 12px;
    }

    /* Boxed mode adjustments for mobile */
    .pys-layout-boxed.pys-consent-popup {
        width: 95%;
        bottom: 10px;
    }
}