/* Payment sheet. Deliberately self-contained: it is injected into whichever
   page needs it, so it cannot rely on that page's variables. */
.mpe-paysheet {
    width: min(94vw, 460px);
    border: 1px solid #23232b;
    border-radius: 16px;
    background: #121216;
    color: #f2f2f5;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
}

.mpe-paysheet::backdrop {
    background: rgba(0, 0, 0, .66);
    backdrop-filter: blur(2px);
}

.mpe-paysheet .ps-inner {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 18px;
}

.mpe-paysheet .ps-title {
    font-family: Oswald, sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .3px;
}

.mpe-paysheet .ps-sub {
    color: #8f96a8;
    font-size: 13px;
    margin-top: 2px;
}

.mpe-paysheet .ps-express:empty {
    display: none;
}

/* "or pay by card" — only drawn when Express Checkout actually offered
   something, or it reads as a broken divider. */
.mpe-paysheet .ps-or {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 12px;
}

/* `display: flex` above beats the browser's own `[hidden] { display: none }`,
   so hiding it from JS silently did nothing. */
.mpe-paysheet .ps-or[hidden] {
    display: none;
}

.mpe-paysheet .ps-or::before,
.mpe-paysheet .ps-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #23232b;
}

.mpe-paysheet .ps-mount {
    min-height: 40px;
}

.mpe-paysheet .ps-mount[hidden] {
    display: none;
}

/* Guest email step. Shown before anything is claimed, so a signed-out buyer
   never holds a card hostage just by opening the sheet. */
.mpe-paysheet .ps-email {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpe-paysheet .ps-email[hidden] {
    display: none;
}

.mpe-paysheet .ps-label {
    font-size: 12.5px;
    color: #8f96a8;
}

.mpe-paysheet .ps-input {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #23232b;
    background: #0d0d11;
    color: #f2f2f5;
    font: 400 15px Inter, sans-serif;
}

.mpe-paysheet .ps-input:focus {
    outline: none;
    border-color: #00b377;
}

.mpe-paysheet .ps-acts[hidden] {
    display: none;
}

.mpe-paysheet .ps-err {
    color: #ff8b8b;
    font-size: 13px;
    line-height: 1.45;
    border-left: 2px solid rgba(255, 139, 139, .5);
    padding-left: 10px;
}

.mpe-paysheet .ps-acts {
    display: flex;
    gap: 8px;
}

.mpe-paysheet .ps-btn {
    flex: 1 1 0;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #23232b;
    background: #17171d;
    color: #e7ebf3;
    font: 600 14px Inter, sans-serif;
    cursor: pointer;
}

.mpe-paysheet .ps-pay {
    flex: 2 1 0;
    background: linear-gradient(180deg, #00d68f, #00b377);
    border-color: #00b377;
    color: #06231a;
    font-weight: 800;
}

.mpe-paysheet .ps-pay[disabled] {
    opacity: .6;
    cursor: default;
}

.mpe-paysheet .ps-note {
    color: #6b7280;
    font-size: 11.5px;
    line-height: 1.5;
}
