.team-pay-page { display: flex; flex-direction: column; gap: 18px; min-width: 0; width: 100%; }
.team-pay-page > *, .team-pay-grid > *, .team-pay-form > * { min-width: 0; }
.team-pay-page > .page-head { margin-bottom: 0; align-items: center; }
.team-pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 18px; align-items: start; }
.team-pay-form { display: flex; flex-direction: column; gap: 18px; }
.team-pay-section-title { display: inline-flex; align-items: center; gap: 9px; }
.team-pay-step { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-size: 11px; }
.team-pay-count { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: var(--r-full); background: var(--bg-raised); color: var(--text-3); font-size: 11px; font-weight: 500; }
.team-pay-order-fields, .team-pay-billing-body { display: flex; flex-direction: column; gap: 18px; }
.team-pay-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team-pay-fields label, .team-pay-order-fields > label, .team-pay-bill-field > label, .team-pay-confirm > label, .team-pay-link-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 12px; color: var(--text-2); }
.team-pay-wide { grid-column: 1 / -1; }
.team-pay-page .input, .team-pay-page .select, .team-pay-dialog .input, .team-pay-dialog .select { width: 100%; min-width: 0; box-sizing: border-box; }
.team-pay-page textarea.input, .team-pay-dialog textarea.input { resize: vertical; min-height: 80px; line-height: 1.6; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 11px; }
.team-pay-field-hint { margin: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.7; overflow-wrap: anywhere; }
.team-pay-bill-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.team-pay-bill-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-pay-bill-toolbar > .input { flex: 1 1 160px; width: auto; }
.team-pay-bill-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.team-pay-bill-pages .btn { padding: 4px 8px; }
.team-pay-name { display: flex; align-items: center; gap: 8px; }
.team-pay-name .input { flex: 1; }
.team-pay-name .btn { flex-shrink: 0; }
.team-pay-link-details { border-top: 1px solid var(--border-faint); padding-top: 12px; }
.team-pay-link-details > summary, .team-pay-order-details > summary { cursor: pointer; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.team-pay-link-details > summary > span { margin-left: 10px; font-size: 11px; color: var(--text-3); }
.team-pay-link-details[open] > summary { margin-bottom: 12px; }
.team-pay-address-generator { padding: 12px; border: 1px solid var(--border-faint); border-radius: var(--r-md); background: var(--bg-raised); }
.team-pay-address-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.team-pay-address-controls > label { font-size: 12px; color: var(--text-2); }
.team-pay-generated-address { margin-top: 10px; color: var(--text-3); font-size: 11.5px; line-height: 1.7; overflow-wrap: anywhere; }
.team-pay-form-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border-faint); }
.team-pay-summary { position: sticky; top: 18px; }
.team-pay-summary-body { display: flex; flex-direction: column; gap: 18px; }
.team-pay-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 10px; text-align: center; }
.team-pay-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--accent-dim); color: var(--accent); }
.team-pay-empty strong { font-size: 13px; font-weight: 600; }
.team-pay-empty p { max-width: 240px; color: var(--text-3); font-size: 12px; line-height: 1.8; }
.team-pay-price { padding: 16px; border-radius: var(--r-md); background: var(--bg-raised); }
.team-pay-price > span { font-size: 12px; color: var(--text-3); }
.team-pay-amount { margin: 5px 0; color: var(--text-1); font-size: 32px; font-weight: 650; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.team-pay-facts { display: flex; flex-direction: column; gap: 11px; font-size: 12px; }
.team-pay-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.team-pay-facts dt { flex-shrink: 0; color: var(--text-3); }
.team-pay-facts dd { min-width: 0; color: var(--text-2); text-align: right; line-height: 1.5; overflow-wrap: anywhere; }
.team-pay-confirm { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border-faint); }
.team-pay-confirm .team-pay-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; font-size: 11.5px; line-height: 1.8; }
.team-pay-consent input { flex-shrink: 0; margin-top: 4px; accent-color: var(--accent); }
.team-pay-consent a { margin: 0 3px; }
.team-pay-card-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-radius: var(--r-md); background: var(--bg-raised); font-size: 12px; color: var(--text-3); }
.team-pay-summary-actions { display: flex; flex-direction: column; gap: 10px; }
.team-pay-id { margin-top: 8px; overflow-wrap: anywhere; font-size: 11px; color: var(--text-3); }
.team-pay-order-details { padding-top: 12px; border-top: 1px solid var(--border-faint); }
.team-pay-original-link { align-self: flex-start; font-size: 12px; }
.team-pay-error, .team-pay-error-detail { color: var(--fg-danger); white-space: pre-wrap; overflow-wrap: anywhere; }
.team-pay-page > .team-pay-error, .team-pay-summary-body > .team-pay-error-detail { margin: 0; }
.team-pay-error-detail { max-height: 240px; overflow-y: auto; }
.team-pay-error-description { margin: 0; line-height: 1.8; }
.team-pay-error-context { margin: 8px 0 0; font-size: 12px; }
.team-pay-error-fields { display: flex; flex-direction: column; gap: 9px; margin: 12px 0 0; font-size: 12px; line-height: 1.7; }
.team-pay-error-fields > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; }
.team-pay-error-fields dt { color: var(--text-3); font-family: var(--font-mono); }
.team-pay-error-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); }
.team-pay-tasks .table-wrap, .team-pay-cards .table-wrap { border: 0; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: none; }
.team-pay-tasks .team-pay-table-empty { padding: 28px 16px; color: var(--text-3); text-align: center; }
.team-pay-table-email { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.team-pay-row-actions { display: flex; align-items: center; gap: 6px; }
.team-pay-row-actions .btn + .btn { margin-left: 0; }
.team-pay-dialog { width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-card); color: var(--text-1); box-shadow: var(--shadow-lg); }
.team-pay-dialog[open] { display: flex; flex-direction: column; }
.team-pay-dialog::backdrop { background: rgba(10, 12, 18, .56); }
.team-pay-dialog-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border-faint); }
.team-pay-dialog-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.team-pay-dialog-head > button { flex: none; }
.team-pay-dialog-body { display: flex; flex-direction: column; gap: 18px; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 20px; }
.team-pay-dialog-body > * { flex-shrink: 0; }
.team-pay-dialog-body > .note { margin: 0; }
.team-pay-dialog-foot { display: flex; flex: none; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-faint); }
.team-pay-cards-dialog { width: min(960px, calc(100vw - 32px)); }
.team-pay-cards-dialog .team-pay-dialog-body { padding: 0; }
.team-pay-cards-dialog .team-pay-cards { border: 0; box-shadow: none; border-radius: 0; }
.team-pay-delete-dialog { width: min(440px, calc(100vw - 32px)); }
.team-pay-delete-dialog p { margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.team-pay-task-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.team-pay-task-status .team-pay-amount { margin: 0; font-size: 26px; }
.team-pay-task-dialog .team-pay-facts { margin: 0; }
.team-pay-cards .card-head { flex-wrap: wrap; }
.team-pay-cards .card-body > .note { margin: 0 0 16px; }
.team-pay-cards .table { min-width: 640px; }

.team-pay-verification { display: grid; place-items: center; min-height: 100dvh; padding: 24px; }
.team-pay-verification > .card { width: 100%; max-width: 540px; min-width: 0; }
.team-pay-verification .card-head { flex-wrap: wrap; padding: 18px 20px; }
.team-pay-verification .card-title { font-size: 16px; }
.team-pay-verification .card-body { display: flex; flex-direction: column; gap: 20px; padding: 20px; }
.team-pay-verification-message { padding: 14px; border: 1px solid var(--border-faint); border-radius: var(--r-md); background: var(--bg-raised); font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-pay-verification-note { color: var(--text-3); font-size: 12px; line-height: 1.8; }
.team-pay-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.team-pay-verification-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border-faint); font-size: 12px; }

@media (max-width: 1100px) { .team-pay-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, .7fr); } }
@media (max-width: 940px) {
  .team-pay-grid { grid-template-columns: minmax(0, 1fr); }
  .team-pay-summary { position: static; }
}
@media (max-width: 520px) {
  .team-pay-page, .team-pay-grid, .team-pay-form { gap: 14px; }
  .team-pay-page .card-head { flex-wrap: wrap; }
  .team-pay-fields { grid-template-columns: minmax(0, 1fr); }
  .team-pay-address-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .team-pay-address-controls > label { grid-column: 1 / -1; }
  .team-pay-bill-toolbar > .input { flex-basis: 100%; }
  .team-pay-bill-pages > span { margin-right: auto; }
  .team-pay-bill-pages { width: 100%; }
  .team-pay-form-footer > .btn { width: 100%; }
  .team-pay-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .team-pay-dialog-head, .team-pay-dialog-body { padding: 16px; }
  .team-pay-cards-dialog .team-pay-dialog-body { padding: 0; }
  .team-pay-dialog-foot { padding: 12px 16px; }
  .team-pay-verification { padding: 16px; }
  .team-pay-verification .card-head, .team-pay-verification .card-body { padding: 16px; }
}
@media (max-width: 420px) { .team-pay-buttons { grid-template-columns: minmax(0, 1fr); } }

.team-pay-checkout-dialog { width: min(1120px, calc(100vw - 32px)); }
.team-pay-embedded { padding: 0; }
.team-pay-embedded .team-pay-summary { position: static; }
.team-pay-embedded-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.team-pay-embedded-toolbar > div { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.team-pay-embedded-toolbar strong { font-size: 13px; }
.team-pay-embedded-toolbar .team-pay-field-hint { margin-top: 5px; }
.team-pay-checkout-loading { padding: 36px 16px; text-align: center; color: var(--text-3); }
@media (max-width: 520px) { .team-pay-checkout-dialog { width: calc(100vw - 16px); } }
