:root {
  --fondo: #ffffff;
  --carta: #fafafa;
  --inchiostro: #0a0a0a;
  --grigio: #71717a;
  --grigio-chiaro: #a1a1aa;
  --linea: rgba(10, 10, 10, 0.08);
  --pulsante: #0a0a0a;
  --pagato: #14532d;
  --luce: #c7d2fe;
  --scritta: #fafafa;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.num { font-variant-numeric: tabular-nums; }

.pay {
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  gap: min(16px, 3vh);
}

.sum {
  background: var(--carta);
  border: 1px solid var(--linea);
  border-radius: 18px;
  padding: min(18px, 3.6vh) 18px;
  display: flex;
  flex-direction: column;
  gap: min(9px, 1.9vh);
  font-size: 13.5px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -28px rgba(10, 10, 10, 0.18);
}

.sum__head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--grigio);
  margin-bottom: 2px;
}

.sum__row {
  display: flex;
  justify-content: space-between;
  color: var(--grigio);
}

.sum__row--tot {
  color: var(--inchiostro);
  font-weight: 650;
  font-size: 15px;
}

.sum__line { height: 1px; background: var(--linea); margin: 2px 0; }

.sum__card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: min(10px, 2vh);
  border-top: 1px dashed var(--linea);
  color: var(--grigio);
  font-size: 12.5px;
}

.sum__card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--grigio);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.sum__exp { margin-left: auto; color: var(--grigio-chiaro); }

.btnwrap {
  display: flex;
  justify-content: center;
  height: 50px;
}

.btn {
  position: relative;
  height: 50px;
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: var(--pulsante);
  color: var(--scritta);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 -1px 0 rgba(0, 0, 0, 0.4) inset, 0 8px 18px -10px rgba(10, 10, 10, 0.55), 0 2px 4px -2px rgba(10, 10, 10, 0.3);
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--inchiostro);
  outline-offset: 3px;
}

.btn__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px 60px at var(--mx, 50%) 0%, rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.btn__light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.btn__light path {
  fill: none;
  stroke: var(--luce);
  stroke-linecap: round;
  opacity: 0;
}

.btn__arc { stroke-width: 1.2; }

.btn__head {
  stroke-width: 1.8;
  stroke: #ffffff !important;
}

.btn__glow {
  stroke-width: 5;
  filter: url(#soft);
}

.btn__in {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 100%;
  white-space: nowrap;
}

.btn__check {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  display: none;
}

.btn__label {
  position: relative;
  display: inline-block;
  height: 1.3em;
  line-height: 1.3em;
  overflow: hidden;
}

.btn__label .w {
  display: inline-block;
  white-space: pre;
}

.btn__label .w.old {
  position: absolute;
  left: 0;
  top: 0;
}

.btn__label .c { display: inline-block; }

.pay__note {
  text-align: center;
  font-size: 12px;
  color: var(--grigio-chiaro);
  min-height: 1.4em;
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #ffffff;
  stroke: #0a0a0a;
  stroke-width: 1.2;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.measure {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  left: -9999px;
}
