/*
 * PM_QR_PASS_BRANDING_CSS_V1
 *
 * Scoped Website / QR Pass Branding styles only.
 * No global button or booking/payment overrides.
 */

.pm-website-page {
    gap: 18px;
}

.pm-website-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pm-website-head small,
.pm-qr-eyebrow {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.pm-website-head h2 {
    margin: 5px 0 4px;
}

.pm-website-head p {
    margin: 0;
    color: #64748b;
}

.pm-website-live-badge {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.pm-website-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.pm-website-tabs button {
    flex: 0 0 auto;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    padding: 9px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.pm-website-tabs button.active {
    border-color: #182a55;
    background: #182a55;
    color: #fff;
}

.pm-website-tabs button:disabled {
    cursor: default;
    opacity: .58;
}

.pm-website-tabs button.premium em {
    margin-left: 4px;
    color: #7255d9;
    font-style: normal;
}

.pm-qr-brand-saved {
    padding: 12px 14px;
    border: 1px solid #b8e7cd;
    border-radius: 12px;
    background: #effbf4;
    color: #147a46;
    font-size: 13px;
    font-weight: 700;
}

.pm-qr-brand-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(340px, .86fr);
    gap: 22px;
    align-items: start;
}

.pm-qr-brand-controls h3 {
    margin: 5px 0 8px;
}

.pm-qr-brand-intro {
    margin: 0 0 22px;
    color: #64748b;
    line-height: 1.6;
}

.pm-qr-brand-setting {
    display: grid;
    gap: 11px;
    padding: 18px 0;
    border-top: 1px solid #e8edf3;
}

.pm-qr-brand-setting > div:first-child,
.pm-qr-brand-color span {
    display: grid;
    gap: 4px;
}

.pm-qr-brand-setting small,
.pm-qr-brand-color small {
    color: #7a879b;
    font-size: 12px;
    line-height: 1.45;
}

.pm-qr-brand-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pm-qr-brand-actions button,
.pm-qr-brand-save-row button,
.pm-qr-upload {
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fff;
    color: #27364f;
    padding: 10px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pm-qr-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
}

.pm-qr-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pm-qr-brand-color {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid #e8edf3;
}

.pm-qr-brand-color input[type="color"] {
    width: 54px;
    height: 42px;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    cursor: pointer;
}

.pm-qr-brand-save-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e8edf3;
}

.pm-qr-brand-save-row button.primary {
    border-color: #182a55;
    background: #182a55;
    color: #fff;
}

.pm-qr-brand-preview-wrap {
    position: sticky;
    top: 92px;
    padding: 18px;
    border: 1px solid #dfe6ef;
    border-radius: 18px;
    background: #f4f7fb;
}

.pm-qr-brand-preview-wrap > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #718096;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.pm-qr-pass-preview {
    --pm-qr-accent: #5B5CF0;
    width: min(100%, 390px);
    min-height: 610px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 25px;
    background-position: center;
    background-size: cover;
    box-shadow:
        0 18px 46px
        rgba(15, 33, 67, .18);
    color: #fff;
}

.pm-qr-pass-preview > header {
    min-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    padding: 22px 24px;
}

.pm-qr-pass-preview > header img {
    width: auto;
    max-width: 190px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.pm-qr-pass-preview > header strong {
    font-size: 24px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.pm-qr-pass-preview > header small {
    color: rgba(255,255,255,.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.pm-qr-pass-body {
    margin: 0 15px;
    padding: 24px 24px 22px;
    border-radius: 22px 22px 0 0;
    background: rgba(255,255,255,.97);
    color: #17284c;
    text-align: center;
}

.pm-qr-paid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #ddf7e8;
    color: #168a50;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
}

.pm-qr-preview-code,
.pm-qr-preview-fallback {
    display: block;
    width: min(72%, 215px);
    aspect-ratio: 1 / 1;
    margin: 18px auto 15px;
    border: 10px solid #fff;
    border-radius: 15px;
    background: #fff;
    box-shadow:
        0 8px 22px
        rgba(33, 48, 78, .12);
}

.pm-qr-preview-fallback {
    display: grid;
    place-items: center;
    border-color: #eef2f7;
    color: #17284c;
    font-size: 38px;
    font-weight: 900;
}

.pm-qr-pass-body > small {
    display: block;
    color: #8793a8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.pm-qr-preview-ref {
    display: block;
    margin-top: 4px;
    color: #17284c;
    font-size: 20px;
    letter-spacing: .025em;
}

.pm-qr-preview-details {
    display: grid;
    gap: 0;
    margin-top: 18px;
    padding: 4px 14px;
    border-radius: 13px;
    background: #f3f6fb;
    text-align: left;
}

.pm-qr-preview-details span {
    padding: 9px 0;
    border-bottom: 1px solid #e3e9f2;
    color: #334868;
    font-size: 11px;
    font-weight: 700;
}

.pm-qr-preview-details span:last-child {
    border-bottom: 0;
}

.pm-qr-pass-body p {
    margin: 16px 5px 0;
    color: #5f6e84;
    font-size: 10px;
    line-height: 1.5;
}

.pm-qr-pass-preview > footer {
    margin: 0 15px 15px;
    padding: 15px 18px;
    border-radius: 0 0 22px 22px;
    background:
        color-mix(
            in srgb,
            var(--pm-qr-accent) 42%,
            #071736
        );
    color: rgba(255,255,255,.9);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}

.pm-qr-preview-note {
    max-width: 390px;
    margin: 14px auto 0;
    color: #728097;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 920px) {
    .pm-qr-brand-layout {
        grid-template-columns: 1fr;
    }

    .pm-qr-brand-preview-wrap {
        position: static;
    }
}

@media (max-width: 600px) {
    .pm-website-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pm-qr-brand-preview-wrap {
        padding: 12px;
    }

    .pm-qr-pass-preview {
        min-height: 570px;
    }

    .pm-qr-brand-save-row {
        justify-content: stretch;
    }

    .pm-qr-brand-save-row button {
        flex: 1 1 auto;
    }
}
