.square-card-panel {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(8,12,15,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.square-card-panel[hidden] {
  display: none;
}

.square-card-heading,
.square-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.square-card-heading div {
  display: grid;
  gap: 4px;
}

.square-card-heading span {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.square-card-heading strong {
  color: #fff;
  font-size: 19px;
}

.square-card-heading .sandbox-badge {
  padding: 7px 10px;
  border: 1px solid rgba(255,214,90,.5);
  border-radius: 999px;
  color: #ffd65a;
  white-space: nowrap;
}

.square-email {
  display: grid;
  gap: 8px;
  margin: 22px 0 4px;
}

.square-email span {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.square-email input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  padding: 0 15px;
  color: #fff;
  background: rgba(255,255,255,.07);
  font: inherit;
  outline: none;
}

.square-email input:focus {
  border-color: #24c7be;
  box-shadow: 0 0 0 3px rgba(36,199,190,.2);
}

.square-email input:invalid:not(:placeholder-shown) {
  border-color: #ff6b6b;
}
#squareCard {
  min-height: 92px;
  margin: 20px 0 14px;
}

.square-card-actions {
  justify-content: flex-end;
}

.square-card-actions button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.square-card-actions #squarePay {
  border-color: #fff;
  color: #090b0d;
  background: #fff;
  font-weight: 800;
}

.square-card-actions button:disabled {
  cursor: wait;
  opacity: .5;
}

.square-privacy {
  margin: 16px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  line-height: 1.5;
}

#squareCheckout .checkout-status.is-error {
  position: relative;
  max-width: 720px;
  margin: 18px auto 0;
  padding: 18px 22px 18px 62px;
  border: 1px solid #ff6b6b;
  border-radius: 14px;
  color: #fff;
  background: rgba(102, 18, 27, .94);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .34), inset 4px 0 0 #ff6b6b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

#squareCheckout .checkout-status.is-error::before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 22px;
  display: grid;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-50%);
}

#squareCheckout .checkout-status.is-error::after {
  content: "Payment declined";
  display: block;
  margin-top: 3px;
  color: #ffb8b8;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .square-card-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
  }

  .square-card-heading {
    align-items: flex-start;
  }
}

.payment-method-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 8px;
}

.payment-method-choice button {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.045);
  text-align: left;
  cursor: pointer;
}

.payment-method-choice button.is-active {
  border-color: #24c7be;
  background: rgba(36,199,190,.14);
  box-shadow: inset 0 0 0 1px rgba(36,199,190,.35);
}

.payment-method-choice button:disabled:not(.is-active) {
  cursor: wait;
  opacity: .55;
}

.payment-method-choice strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}
.payment-method-icon {
  width: 24px;
  height: 20px;
  flex: 0 0 auto;
}
.card-method-icon {
  fill: none;
  stroke: #f5f7fa;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.paypal-method-icon path:first-child { fill: #169bd7; }
.paypal-method-icon path:last-child { fill: #003087; fill-opacity: .92; }
.payment-method-choice span { color: rgba(255,255,255,.62); font-size: 12px; }

.paypal-method {
  min-height: 128px;
  margin: 20px 0 14px;
  padding: 22px;
  border: 1px solid rgba(255,196,57,.36);
  border-radius: 12px;
  color: #eef1f4;
  background: rgba(0,48,135,.18);
}

.paypal-method p { margin: 0; line-height: 1.55; }
.paypal-method .paypal-sandbox-note { margin-top: 12px; color: #ffd65a; font-size: 13px; }

.square-card-actions .paypal-pay {
  border-color: #ffc439;
  color: #111820;
  background: #ffc439;
  font-weight: 800;
}

@media (max-width: 640px) {
  .payment-method-choice { grid-template-columns: 1fr; }
}