/* Square Checkout — Vitality Design System */

/* Wallet buttons — always visible */
.sq-wallet-row { display: flex; gap: 12px; margin-bottom: 0; }
.sq-wallet-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 1.5px solid #2E2E2E;
  border-radius: 6px;
  background: #2E2E2E;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s;
  min-height: 52px;
}
.sq-wallet-btn:hover { background: #444; border-color: #444; }
.sq-wallet-btn svg { flex-shrink: 0; }
.sq-wallet-btn.apple-pay-btn { background: #000; border-color: #000; }
.sq-wallet-btn.apple-pay-btn:hover { background: #222; border-color: #222; }
.sq-wallet-btn.google-pay-btn { background: #fff; border-color: #DDD5C5; color: #2E2E2E; }
.sq-wallet-btn.google-pay-btn:hover { border-color: #C2A46D; background: #FDFAF7; }

/* Square SDK rendered buttons (hidden by default, shown when available) */
#google-pay-container, #apple-pay-container { display: none; flex: 1; }
#google-pay-btn, #apple-pay-btn { width: 100%; min-height: 52px; border-radius: 6px; }

/* Divider */
.sq-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-family: 'Jost', sans-serif; font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: #aaa; }
.sq-divider::before, .sq-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, transparent, #DDD5C5, transparent); }

/* Card container */
#card-container {
  border: 1.5px solid #DDD5C5;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: #fff;
  min-height: 90px;
  transition: border-color 0.3s;
}
#card-container:focus-within { border-color: #C2A46D; }

/* Demographics */
.demo-field { margin-bottom: 12px; }
.demo-field label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.demo-field input {
  width: 100%;
  border: 1.5px solid #DDD5C5;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: #2E2E2E;
  background: #fff;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.demo-field input:focus {
  border-color: #C2A46D;
  box-shadow: 0 0 0 3px rgba(194, 164, 109, 0.1);
}
.demo-field input::placeholder { color: #bbb; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Section labels */
.demo-section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C2A46D;
  margin: 24px 0 14px;
  padding-top: 20px;
  border-top: 1px solid #DDD5C5;
}

/* Pay button */
.btn-pay {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  background: linear-gradient(135deg, #C2A46D 0%, #D4B98A 100%);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 14px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(194, 164, 109, 0.25);
}
.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(194, 164, 109, 0.35);
  filter: brightness(1.05);
}
.btn-pay:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }

/* Status messages */
.payment-error { color: #9B3B3B; font-size: 0.72rem; margin-top: 12px; text-align: center; display: none; font-family: 'Jost', sans-serif; }
.payment-success { color: #2D7A4F; font-size: 0.72rem; margin-top: 12px; text-align: center; display: none; font-family: 'Jost', sans-serif; }

/* Secure badge */
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: #aaa;
}
.secure-note svg { width: 12px; height: 12px; fill: #aaa; }

/* Mobile */
@media (max-width: 768px) {
  .demo-row { grid-template-columns: 1fr; }
  .sq-wallet-row { flex-direction: column; }
}
