/* Paying in Preznta (js/preznta-pay.js), credit packs, an organization's renewal, and the owner's payment settings. */
.pz-pay { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 22px; background: #fff; color: #0f1a22; box-shadow: 0 40px 120px #0b1a2a59; font-family: inherit; }
.pz-pay::backdrop { background: rgba(8, 14, 20, .5); backdrop-filter: blur(6px); }
.pz-pay-card { display: grid; gap: 14px; padding: 20px 22px 18px; margin: 0; }
.pz-pay-card header { display: flex; align-items: center; gap: 12px; }
.pz-pay-card h2 { margin: 0; font-size: 18px; font-weight: 800; }
.pz-pay-card header p { margin: 2px 0 0; font-size: 12px; color: #6b7984; }
.pz-pay-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #eaf8f0; color: #0d7a42; }
.pz-pay-mark svg { width: 21px; height: 21px; }
.pz-pay-x { margin-inline-start: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #6b7984; cursor: pointer; }
.pz-pay-x:hover { background: #f2f5f8; }
.pz-pay-x svg { width: 18px; height: 18px; }
.pz-pay-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #f6f8fa; font-size: 13.5px; }
.pz-pay-sum b { font-size: 19px; font-weight: 800; white-space: nowrap; }
.pz-pay-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: #4b5a66; }
.pz-pay-field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: #3d4b56; }
.pz-pay-field input { height: 44px; padding: 0 14px; border: 1px solid #dfe6ec; border-radius: 12px; font: inherit; font-size: 15px; text-align: left; background: #fff; color: inherit; }
.pz-pay-field input:focus { outline: 2px solid #0b57ff55; border-color: #0b57ff; }
.pz-pay-saved { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #0d7a42; }
.pz-pay-saved svg { width: 14px; height: 14px; }
.pz-pay-change { border: 0; background: none; color: #0b57ff; font: inherit; font-weight: 700; cursor: pointer; padding: 0 4px; }
.pz-pay-status { margin: 0; min-height: 1em; font-size: 12.5px; color: #4b5a66; }
.pz-pay-status:empty { display: none; }
.pz-pay-status[data-tone="error"] { color: #b42318; }
.pz-pay-card footer { display: flex; gap: 8px; }
.pz-pay-go { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: 14px; background: #0b57ff; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pz-pay-go:hover:not(:disabled) { background: #0a4fe0; }
.pz-pay-go:disabled { opacity: .6; cursor: wait; }
.pz-pay-go svg { width: 17px; height: 17px; }
.pz-pay-ghost { height: 48px; padding: 0 16px; border: 1px solid #e3e9ee; border-radius: 14px; background: #fff; color: #3d4b56; font: inherit; font-weight: 700; cursor: pointer; }
.pz-pay-fine { font-size: 11px; color: #8a96a1; text-align: center; }

/* credit packs and renewal (the credit panel, the organization's page, the personal page) */
.pz-packs { display: grid; gap: 10px; }
.pz-packs h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; }
.pz-packs h3 svg { width: 18px; height: 18px; color: #0b57ff; }
.pz-packs > p { margin: 0; font-size: 12.5px; color: #6b7984; }
.pz-pack-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pz-pack { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e3e9ee; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pz-pack:hover { border-color: #0b57ff; box-shadow: 0 6px 18px #0b57ff1f; }
.pz-pack b { font-size: 18px; font-weight: 800; }
.pz-pack small { font-size: 12px; color: #6b7984; }
.pz-pack span { margin-top: 4px; font-size: 13px; font-weight: 800; color: #0b57ff; }
.pz-renew { display: grid; gap: 12px; }
.pz-renew-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.pz-renew-plans { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f2f5f8; }
.pz-renew-plans label { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; color: #5b6976; }
.pz-renew-plans input { position: absolute; opacity: 0; pointer-events: none; }
.pz-renew-plans label:has(input:checked) { background: #fff; color: #0f1a22; box-shadow: 0 2px 8px #0b1a2a14; }
.pz-renew-seats { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #4b5a66; }
.pz-renew-seats input { width: 110px; height: 38px; padding: 0 10px; border: 1px solid #dfe6ec; border-radius: 10px; font: inherit; font-size: 14px; }
.pz-renew-total { margin-inline-start: auto; text-align: end; font-size: 12px; color: #6b7984; }
.pz-renew-total b { display: block; font-size: 20px; color: #0f1a22; }
.pz-pay-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pz-pay-history li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #f6f8fa; font-size: 12.5px; }
.pz-pay-history li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-pay-history li b { white-space: nowrap; }
.pz-chip { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #eef1f4; color: #4b5a66; white-space: nowrap; }
.pz-chip.is-ok { background: #e8f8ef; color: #0d7a42; }
.pz-chip.is-wait { background: #fff4e5; color: #8a4b00; }

.pz-org-pay { display: grid; gap: 22px; }
.pz-org-pay > [hidden] { display: none; }
.pz-renew h3, .pz-history-host h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; }
.pz-renew h3 svg, .pz-history-host h3 svg { width: 18px; height: 18px; color: #0b57ff; }
.pz-history-host { display: grid; gap: 10px; }
.pz-renew .pz-pay-go { justify-self: start; padding: 0 22px; }

/* the owner's payment settings */
.pp { display: grid; gap: 16px; }
.pp-block { display: grid; gap: 10px; padding: 16px; border: 1px solid #e6ebef; border-radius: 16px; background: #fff; }
.pp-block h3 { margin: 0; font-size: 15px; }
.pp-block > p { margin: 0; font-size: 12.5px; color: #6b7984; line-height: 1.7; }
.pp-gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.pp-gate { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #e3e9ee; border-radius: 14px; cursor: pointer; }
.pp-gate:has(input:checked) { border-color: #0b57ff; box-shadow: 0 0 0 3px #0b57ff1f; }
.pp-gate strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pp-gate small { font-size: 12px; color: #6b7984; }
.pp-packs { display: grid; gap: 8px; }
.pp-pack { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.pp-pack label, .pp-plans label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #4b5a66; }
.pp-pack input, .pp-plans input { width: 140px; height: 38px; padding: 0 10px; border: 1px solid #dfe6ec; border-radius: 10px; font: inherit; font-size: 14px; }
.pp-plans { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-code { display: block; padding: 8px 10px; border-radius: 10px; background: #f6f8fa; font-size: 12px; direction: ltr; text-align: left; overflow-wrap: anywhere; }

html[data-editor-theme=midnight] .pz-pay, html[data-editor-theme=midnight] :is(.pz-pack, .pp-block, .pp-gate, .pz-pay-ghost, .pz-pay-field input, .pz-renew-seats input, .pp-pack input, .pp-plans input) { background: #19191b; color: #f1f1f2; border-color: #3a3a3e; }
html[data-editor-theme=midnight] :is(.pz-pay-sum, .pz-pay-history li, .pz-renew-plans, .pp-code) { background: #1f1f21; }
html[data-editor-theme=midnight] .pz-renew-plans label:has(input:checked) { background: #2b2b2f; color: #f1f1f2; }
html[data-editor-theme=midnight] :is(.pz-pay-note, .pz-pay-status, .pz-pay-card header p, .pz-pack small, .pp-block > p) { color: #a3a3a8; }
html[data-editor-theme=midnight] .pz-renew-total b { color: #f1f1f2; }
html[data-editor-theme=midnight] .pz-pay-mark { background: #10291c; color: #7ee2a8; }

/* the owner's email panel (js/platform-mail.js) */
.pm { display: grid; gap: 14px; }
.pm-status p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pm-status small { color: #6b7984; }
.pm-grid { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.pm-list { display: grid; gap: 4px; padding: 10px; border: 1px solid #e6ebef; border-radius: 16px; background: #fff; max-height: 720px; overflow: auto; }
.pm-list h4 { margin: 10px 6px 4px; font-size: 12px; color: #6b7984; }
.pm-list h4 small { font-weight: 500; }
.pm-item { display: flex; align-items: center; gap: 6px; border-radius: 10px; }
.pm-item.is-current { background: #eef4ff; }
.pm-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 9px 10px; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.pm-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-open em { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: #f2f5f8; color: #6b7984; }
.pm-switch { position: relative; width: 34px; height: 20px; flex: none; margin-inline-end: 8px; }
.pm-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pm-switch i { position: absolute; inset: 0; border-radius: 999px; background: #d5dbe1; transition: background .15s; pointer-events: none; }
.pm-switch i::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.pm-switch input:checked + i { background: #0b57ff; }
.pm-switch input:checked + i::after { inset-inline-start: 16px; }
.pm-preview { display: grid; gap: 8px; padding: 12px; border: 1px solid #e6ebef; border-radius: 16px; background: #fff; }
.pm-preview header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-preview iframe { width: 100%; height: 640px; border: 0; border-radius: 12px; background: #f4f7fb; }
.pm-out { margin: 0; font-size: 12.5px; color: #4b5a66; }
.pm-out:empty { display: none; }
@media (max-width: 900px) { .pm-grid { grid-template-columns: 1fr; } }
html[data-editor-theme=midnight] :is(.pm-list, .pm-preview) { background: #19191b; border-color: #3a3a3e; color: #f1f1f2; }
html[data-editor-theme=midnight] .pm-item.is-current { background: #141b2c; }
