.payment-methods { border: 0; margin: 20px 0 10px; padding: 0; min-width: 0; }
.payment-methods legend { font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.payment-method { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px; margin-block: 7px; border: 1px solid #d8cfc5; border-radius: 10px; background: #fffefa; cursor: pointer; }
.payment-method:has(input:checked) { border-color: #951e2d; background: #fcf0ee; }
.payment-method input { accent-color: #951e2d; width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.payment-method span { display: grid; gap: 3px; flex: 1; min-width: 0; }
.payment-method strong { font-size: .9rem; color: #30271f; }
.payment-method small { color: #6f6256; font-size: .72rem; line-height: 1.5; }
.payment-brand { display: grid; place-items: center; flex: 0 0 auto; width: 88px; height: 42px; border-radius: 7px; background: #fff; font-size: .7rem; font-weight: 700; }
.payment-brand img { display: block; width: 100%; height: 32px; object-fit: contain; }
.payment-brand[data-method="counter"] { color: #951e2d; background: #f4e7e2; }
.payment-resume { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; grid-column: 1 / -1; background: #fcf0ee; border: 1px solid #d8b2b3; border-radius: 10px; padding: 14px 18px; margin-block: 0 22px; font-size: .8rem; color: #6e2833; }
.payment-order-button, .demo-pay-button { min-height: 48px; border: 0; border-radius: 8px; padding: 12px 18px; background: #951e2d; color: white; font: inherit; font-weight: 600; cursor: pointer; }
.payment-order-button { margin-block: 10px; }
.demo-payment-dialog { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 0; border-radius: 18px; color: #30271f; background: #fffefa; box-shadow: 0 20px 70px #30271f30; font-family: 'Be Vietnam Pro', sans-serif; }
.demo-payment-dialog::backdrop { background: #21171199; }
.demo-payment-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.payment-section-label { color: #951e2d; font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.demo-payment-close { width: 48px; height: 48px; border: 1px solid #d8cfc5; border-radius: 50%; background: transparent; font-size: 1.5rem; cursor: pointer; }
.demo-payment-heading { display: flex; align-items: center; gap: 14px; }
.demo-payment-heading .payment-brand { width: 96px; height: 46px; }
.demo-payment-heading p { margin: 0 0 5px; font-size: .6rem; letter-spacing: .13em; color: #77685c; }
.demo-payment-heading h2 { margin: 0; font-size: 1.2rem; line-height: 1.5; letter-spacing: -.025em; }
.demo-payment-receipt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding-block: 18px; margin-block: 16px; border-block: 1px dashed #d8cfc5; font-size: .8rem; }
.demo-payment-receipt span { color: #77685c; }
.demo-payment-receipt strong { text-align: end; overflow-wrap: anywhere; }
#demoPaymentAmount { font-size: 1.2rem; color: #951e2d; }
#demoPaymentQr { margin: 18px auto; text-align: center; }
#demoPaymentQr img { display: block; margin-inline: auto; width: min(224px, 100%); height: auto; }
#demoPaymentQr figcaption { margin-top: 10px; color: #77685c; font-size: .7rem; line-height: 1.7; }
.demo-payment-message { background: #e9f3ea; color: #28552e; border-radius: 8px; padding: 14px; font-size: .85rem; line-height: 1.7; overflow-wrap: anywhere; }
.demo-payment-message.is-error { color: #75411b; background: #fbf1dd; }
.demo-pay-button { width: 100%; }
.demo-payment-tests { display: flex; gap: 10px; margin-top: 10px; }
.demo-payment-tests button, .demo-payment-later { min-height: 48px; padding: 10px; border: 1px solid #d8cfc5; border-radius: 8px; background: transparent; color: #77685c; font: inherit; font-size: .75rem; cursor: pointer; }
.demo-payment-tests button { flex: 1; }
.demo-payment-later { width: 100%; margin-top: 12px; border: 0; }
.demo-payment-dialog button:focus-visible, .payment-method input:focus-visible, .payment-order-button:focus-visible { outline: 3px solid #226271; outline-offset: 3px; }
.demo-payment-dialog button:disabled { opacity: .55; cursor: wait; }
@supports not (accent-color: #951e2d) {
  .payment-method { position: relative; padding-inline-start: 42px; }
  .payment-method input { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap; }
  .payment-method input + span::before { content: ''; position: absolute; inset-inline-start: 12px; top: calc(50% - 9px); width: 18px; height: 18px; border: 2px solid #77685c; border-radius: 50%; box-sizing: border-box; }
  .payment-method input:checked + span::before { border: 5px solid #951e2d; }
  .payment-method input:focus-visible + span::before { outline: 3px solid #226271; outline-offset: 3px; }
}
@media (max-width: 380px) { .demo-payment-dialog { padding: 18px; } .demo-payment-tests { flex-direction: column; } .payment-method { gap: 9px; } .payment-method .payment-brand { width: 72px; } .demo-payment-heading .payment-brand { width: 80px; } }
