/* Cookie consent banner + "Manage Consent" preferences modal.
   Plain static CSS, no build step, no Tailwind arbitrary classes. */

.pgxcc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, .12);
    padding: 16px 20px;
    transform: translateY(110%);
    transition: transform .35s ease;
}
.pgxcc-banner.on { transform: translateY(0); }

.pgxcc-banner__row {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.pgxcc-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    max-width: 640px;
}
.pgxcc-banner__text a {
    color: #4a90e2;
    text-decoration: underline;
}
.pgxcc-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pgxcc-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: opacity .15s ease, background .15s ease;
}
.pgxcc-btn:hover { opacity: .9; }
.pgxcc-btn--primary { background: #4a90e2; color: #fff; }
.pgxcc-btn--outline { background: #fff; color: #374151; border-color: #d1d5db; }
.pgxcc-btn--ghost { background: transparent; color: #6b7280; border-color: transparent; }

/* "Manage your cookie preferences" panel at the foot of the Privacy Policy page */
.pgxcc-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 40px 0 24px;
    padding: 22px 26px;
    border: 1px solid #e6e9f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfaff, #f5f7fe);
}
.pgxcc-panel__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf1fc;
    color: #4a90e2;
}
.pgxcc-panel__text { flex: 1 1 260px; }
.pgxcc-panel__text h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.pgxcc-panel__text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}
.pgxcc-panel__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a90e2;
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(74, 144, 226, .28);
    transition: opacity .15s ease, transform .15s ease;
}
.pgxcc-panel__btn:hover { opacity: .92; transform: translateY(-1px); }
.pgxcc-panel__btn:active { transform: translateY(0); }

@media (max-width: 480px) {
    .pgxcc-panel { padding: 20px; }
    .pgxcc-panel__btn { width: 100%; justify-content: center; }
}

/* Modal */
.pgxcc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pgxcc-modal.on { display: flex; }
.pgxcc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
}
.pgxcc-modal__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: 28px 26px 22px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
}
.pgxcc-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.pgxcc-modal__close:hover { background: #e5e7eb; }
.pgxcc-modal__title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: #111827;
}
.pgxcc-modal__sub {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
}

.pgxcc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #f0f0f2;
}
.pgxcc-row__text h4 {
    margin: 0 0 3px;
    font-size: 14.5px;
    font-weight: 700;
    color: #111827;
}
.pgxcc-row__text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.pgxcc-toggle {
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d1d5db;
    border: none;
    position: relative;
    cursor: pointer;
    padding: 0;
}
.pgxcc-toggle i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: left .15s ease;
    display: block;
}
.pgxcc-toggle[aria-pressed="true"] { background: #4a90e2; }
.pgxcc-toggle[aria-pressed="true"] i { left: 21px; }
.pgxcc-toggle--locked {
    background: #4a90e2;
    opacity: .55;
    cursor: not-allowed;
}
.pgxcc-toggle--locked i { left: 21px; }

.pgxcc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.pgxcc-modal__actions .pgxcc-btn { flex: 1 1 auto; text-align: center; }

@media (max-width: 640px) {
    .pgxcc-banner__row { flex-direction: column; align-items: stretch; }
    .pgxcc-banner__actions { justify-content: flex-end; }
}
