* { box-sizing: border-box; }
:root { color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; background: #f5f5f5; --italo-red: #a6160a; --italo-red-dark: #5a0e07; --italo-red-soft: #fdecec; --italo-red-line: #e4b8b5; }
body { position: relative; isolation: isolate; margin: 0; min-width: 320px; background: linear-gradient(135deg, #fff 0%, #fff 58%, #fbf4f5 100%); }
body::before { content: "ACME"; position: fixed; z-index: -1; right: -34px; bottom: -92px; color: var(--italo-red); opacity: .045; font-size: clamp(150px, 31vw, 430px); font-weight: 900; letter-spacing: -.09em; line-height: 1; pointer-events: none; white-space: nowrap; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(calc((100vw - 1200px)/2), 28px); background: var(--italo-red); border-bottom: 1px solid #8d1207; }
.brand { display: flex; align-items: center; text-decoration: none; }.brand img { display: block; width: 290px; max-height: 78px; }
.secure { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 14px; }.secure span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #ffffff80; border-radius: 50%; font-size: 12px; }
.checkout { width: min(100% - 32px, 930px); margin: 44px auto; }
.demo-banner { margin-bottom: 15px; padding: 12px 16px; border: 1px solid #b9d2fa; border-radius: 5px; background: #eef5ff; color: #375277; font-size: 13px; }
.demo-banner strong { color: #1e4c8c; }
.payment-box { overflow: hidden; border: 1px solid #e4b8b5; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px #5a0e0712; }
.box-title { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #e1e5eb; }
.box-title h1 { margin: 0; font-size: 16px; font-weight: 600; }
.nexi { color: #1b3154; font-size: 21px; font-weight: 800; letter-spacing: -1.2px; }.nexi small { margin-left: 3px; color: #8793a4; font-size: 9px; letter-spacing: 1px; }
.payment-layout { display: grid; grid-template-columns: 190px 1fr; min-height: 390px; }
.methods { padding: 13px 0; border-right: 1px solid #e0e4ea; background: #fbfcfe; }
.method { display: block; width: 100%; padding: 12px 15px; border: 0; border-bottom: 1px solid #e1e5eb; background: transparent; color: #536075; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.method.active { border-left: 3px solid #13a5c9; background: #fff; color: #1689aa; }
.wallet-badge { display: inline-block; margin: 12px 10px; padding: 6px 10px; border-radius: 4px; background: #78b72a; color: #fff; font-size: 13px; font-weight: 700; }.wallet-badge b { color: #efffdc; }
.form-panel { width: min(100% - 36px, 570px); margin: 24px auto 20px; }
.card-types { display: flex; align-items: center; gap: 10px; min-height: 37px; }.card-types > span { flex: 0 0 150px; color: #4f5969; text-align: right; padding-right: 12px; font-size: 13px; font-weight: 600; }.field-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; min-height: 37px; }
.field-row > label { color: #4f5969; text-align: right; padding-right: 12px; font-size: 13px; font-weight: 600; }
.card-types label { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; font-size: 12px; }.card-types input { margin: 0 1px; accent-color: #178ec4; }
.card-logo { display: block; width: 42px; height: 30px; object-fit: contain; }
.field-row input, .field-row select { height: 31px; width: min(100%, 300px); padding: 5px 9px; border: 1px solid #bec6d1; border-radius: 2px; background: #fff; color: #38465b; font-size: 13px; }
.field-row.expiry > div { display: flex; gap: 7px; }.field-row select { width: 130px; }.hint { margin-left: 9px; color: #8a93a1; font-size: 11px; }
.bank-note { margin: 13px 0 12px 150px; color: #758094; font-size: 12px; line-height: 1.5; }.bank-note strong { color: #1685b5; }
.confirm { display: block; margin: 12px 0 0 150px; color: #5b6677; font-size: 12px; }.confirm input { accent-color: #1675ce; vertical-align: middle; }
.pay-button { display: block; width: 145px; height: 43px; margin: 14px 0 0 150px; border: 0; border-radius: 2px; background: #13a3cc; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }.pay-button:disabled { background: #aacbd5; cursor: not-allowed; }
.back-link { margin: 9px 0 0 150px; color: #7f8897; font-size: 11px; }.back-link button { border: 0; background: none; color: #2871b8; text-decoration: underline; cursor: pointer; }
.security-foot { display: flex; justify-content: center; gap: 34px; padding: 14px 10px; border-top: 1px solid #e3e7ed; color: #768193; font-size: 10px; }
.success { width: min(100% - 32px, 560px); margin: 90px auto; padding: 44px 32px; border: 1px solid #d9dee7; background: white; text-align: center; }.success-check { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 50%; background: #e5f5eb; color: #258450; font-size: 26px; }.overline { color: #3975c7; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }.success h1 { font-size: 28px; }.success p:not(.overline) { color: #6d7889; font-size: 14px; line-height: 1.6; }.no-charge { padding: 10px; background: #f3f6fa; font-size: 12px !important; }.return-button { margin-top: 12px; padding: 12px 26px; border: 0; background: #1675ce; color: white; cursor: pointer; }
.nexi small { color: var(--italo-red); }
.demo-banner { border-color: var(--italo-red-line); background: var(--italo-red-soft); color: #69424c; }
.demo-banner strong { color: var(--italo-red-dark); }
.method.active { border-left-color: var(--italo-red); color: var(--italo-red); }
.card-types input, .confirm input { accent-color: var(--italo-red); }
.pay-button, .return-button { background: var(--italo-red); }
.pay-button:not(:disabled):hover, .return-button:hover { background: var(--italo-red-dark); }
.pay-button:disabled { background: #d8aeb8; }
.bank-note strong, .overline { color: var(--italo-red); }
.success-check { background: #f8e9ed; color: var(--italo-red); }
.method:focus-visible, .pay-button:focus-visible, .return-button:focus-visible { outline: 3px solid #dba6b3; outline-offset: 2px; }
[hidden] { display: none !important; }
@media (max-width: 650px) {
  .topbar { height: 80px; padding: 0 16px; }
  .brand img { width: min(250px, 72vw); max-height: 68px; }
  .checkout { width: min(100% - 24px, 560px); margin: 20px auto; }
  .demo-banner { padding: 11px 12px; line-height: 1.45; }
  .box-title { height: auto; min-height: 56px; gap: 12px; padding: 12px 14px; }
  .box-title h1 { font-size: 15px; }
  .nexi { flex: 0 0 auto; font-size: 17px; }
  .payment-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; border-right: 0; border-bottom: 1px solid #e0e4ea; }
  .method { min-height: 44px; padding: 10px 12px; font-size: 12px; }
  .method.active { border-left: 3px solid var(--italo-red); }
  .wallet-badge { margin: 9px 10px; justify-self: start; }
  .form-panel { width: auto; max-width: 500px; margin: 18px 16px 20px; }
  .card-types { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .card-types > span { flex: 0 0 auto; padding-right: 3px; font-size: 12px; }
  .card-types label { gap: 3px; margin-right: 1px; }
  .card-logo { width: 40px; height: 29px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 5px; margin: 11px 0; }
  .field-row > label { padding: 0; text-align: left; font-size: 12px; }
  .field-row input, .field-row select { width: 100%; max-width: none; height: 42px; font-size: 16px; }
  .field-row.expiry > div { display: flex; gap: 8px; }
  .field-row select { flex: 1 1 0; min-width: 0; }
  .hint { margin-left: 0; }
  .bank-note, .confirm, .pay-button, .back-link { margin-left: 0; }
  .bank-note { margin-top: 14px; }
  .confirm { line-height: 1.5; }
  .pay-button { width: 100%; height: 46px; }
  .security-foot { flex-wrap: wrap; gap: 8px 18px; padding: 12px; font-size: 10px; }
  .success { width: min(100% - 24px, 560px); margin: 32px auto; padding: 32px 20px; }
  .success h1 { font-size: 24px; }
}
@media (max-width: 360px) {
  .checkout { width: calc(100% - 16px); }
  .form-panel { margin-right: 12px; margin-left: 12px; }
  .card-types { gap: 3px; }
  .card-logo { width: 34px; height: 26px; }
  .card-types label { gap: 1px; }
  .method { padding-right: 8px; padding-left: 8px; font-size: 11px; }
}
