#edmCheckout, #edmCheckout * { box-sizing: border-box; }
#edmCheckout {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
  background: rgba(0,0,0,.72);
  overflow: auto;
  color: #e9ecff;
  font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
}
#edmCheckout[hidden] { display: none; }
#edmCheckout .co-modal {
  width: min(460px, 100%);
  margin: auto;
  position: relative;
  padding: 0 0 18px;
  background: #12151f;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
  overflow: hidden;
}
#edmCheckout .co-flyer { display: block; width: 100%; height: 196px; object-fit: cover; object-position: top center; }
#edmCheckout .co-sheet { padding: 16px 18px 0; }
#edmCheckout .co-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
#edmCheckout .co-step { margin: 0 0 6px; color: #ff8ac8; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
#edmCheckout h2 {
  margin: 0 36px 8px 0; color: aqua;
  font-family: Baskerville, Palatino, "Times New Roman", serif;
  font-weight: 400; font-size: 34px; line-height: 1.05; text-align: left;
}
#edmCheckout .co-fine { margin: 0 0 14px; color: #a9afd7; font-size: 14px; line-height: 1.5; }
#edmCheckout #coP2pNote:empty { display: none; }
#edmCheckout .co-ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "price name qty" "price detail qty";
  gap: 2px 12px; align-items: center;
  margin-bottom: 10px; padding: 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
}
#edmCheckout .co-ticket.on { border-color: rgba(0,216,213,.7); background: rgba(0,216,213,.08); }
#edmCheckout .co-price { grid-area: price; font-size: 28px; color: aqua; font-family: Baskerville, Palatino, serif; }
#edmCheckout .co-name { grid-area: name; font-size: 16px; line-height: 1.3; text-align: left; }
#edmCheckout .co-detail { grid-area: detail; color: #a9afd7; font-size: 13px; line-height: 1.35; text-align: left; }
#edmCheckout .co-stepper { grid-area: qty; display: flex; align-items: center; gap: 8px; }
#edmCheckout .co-stepper button {
  width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.35); color: #fff; font-size: 18px; cursor: pointer;
}
#edmCheckout .co-fields { display: grid; gap: 12px; }
#edmCheckout .co-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; text-align: left; }
#edmCheckout .co-field input, #edmCheckout .co-card input {
  width: 100%; padding: 14px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-size: 16px; font-family: inherit;
}
#edmCheckout .co-field input:focus, #edmCheckout .co-card input:focus { outline: none; border-color: rgba(120,220,220,.55); }
#edmCheckout .co-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 15px; cursor: pointer; text-align: left; }
#edmCheckout .co-check input { width: 20px; height: 20px; accent-color: #00D8D5; }
#edmCheckout .co-error { min-height: 1.2em; margin: 0 0 8px; color: #ff8ac8; font-size: 13px; text-align: left; }
#edmCheckout .co-field .co-error { min-height: 0; margin: 0; }
#edmCheckout .co-field .co-error:empty { display: none; }
#edmCheckout .co-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#edmCheckout .co-method {
  min-height: 92px; padding: 12px; border-radius: 16px; border: 1px solid rgba(0,216,213,.38);
  background: rgba(0,0,0,.25); color: #fff; cursor: pointer; text-align: left; font-family: inherit;
}
#edmCheckout .co-method strong { display: block; font-size: 16px; font-weight: 500; color: rgba(0,216,213,.95); }
#edmCheckout .co-method span { display: block; margin-top: 4px; color: #a9afd7; font-size: 12px; font-weight: 400; }
#edmCheckout #coSquareCard { position: relative; z-index: 1; min-height: 56px; margin-bottom: 12px; padding: 0; background: transparent; }
#edmCheckout #coPayCard, #edmCheckout #coCardStatus, #edmCheckout #coCardError { position: relative; z-index: 2; }
#edmCheckout .co-wallets { display: grid; gap: 8px; margin-bottom: 12px; }
#edmCheckout .co-wallets[hidden] { display: none; }
#edmCheckout #coPayCard:disabled { opacity: .55; cursor: default; }
#edmCheckout .co-payto { margin-bottom: 12px; padding: 16px; border-radius: 16px; background: rgba(0,216,213,.08); border: 1px solid rgba(0,216,213,.35); text-align: left; }
#edmCheckout .co-amount { margin: 0 0 6px; font-size: 36px; font-family: Baskerville, Palatino, serif; color: aqua; }
#edmCheckout .co-flag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(255,79,184,.18); color: #ff8ac8; font-size: 11px; text-transform: uppercase; }
#edmCheckout .co-flag[hidden] { display: none; }
#edmCheckout .co-memo { margin-bottom: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 14px; line-height: 1.5; text-align: left; }
#edmCheckout .co-memo code { color: #fff; font-family: inherit; white-space: normal; overflow-wrap: anywhere; }
#edmCheckout .co-copy { display: inline-block; margin-top: 8px; padding: 0; border: 0; background: none; color: rgba(0,216,213,.95); cursor: pointer; text-decoration: underline; font-size: 14px; }
#edmCheckout .co-primary, #edmCheckout .co-ghost {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 14px 16px; border-radius: 14px; cursor: pointer; font-size: 16px; font-weight: 500; font-family: inherit;
  border: 1px solid rgba(0,216,213,.45); color: #fff;
}
#edmCheckout .co-primary { background: rgba(0,216,213,.16); }
#edmCheckout .co-ghost { margin-top: 8px; background: transparent; color: #a9afd7; border-color: rgba(255,255,255,.16); }
#edmCheckout .co-mark {
  width: 56px; height: 56px; margin: 8px 0 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,216,213,.5); color: aqua; font-size: 28px;
}
#edmCheckout .co-mark.wait { border-color: rgba(255,79,184,.5); color: #ff8ac8; }
#edmCheckout .co-total { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
#edmCheckout .co-note { margin: 8px 0 0; font-size: 13px; }
#edmCheckout .co-note a { color: rgba(0,216,213,.95); }
@media (max-width: 640px) {
  #edmCheckout { padding: 0; }
  #edmCheckout .co-modal { border-radius: 0; min-height: 100%; }
}
