/* The phone pay block (assets/cqs-pay.js). Nothing here matches an element
   until that script builds one, and it builds them on phones only, so a
   computer renders every page exactly as before. The Canvas Hack site
   carries an identical copy. */

.cqs-pay {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin: 8px 0;
  text-align: left;
  font-family: inherit;
}

/* A page rule such as `body.is-mobile .mobile-link { display: flex }` must not
   reopen a form the block keeps closed. */
.cqs-pay [hidden] {
  display: none !important;
}

/* The block lands inside page boxes that style their own children (a guide's
   `.answer-reco p { flex: 1 1 320px; color: ... }`). Its parts keep their size
   and colors whatever the box around them says. */
.cqs-pay > * {
  flex: 0 0 auto !important;
  max-width: none !important;
}

.cqs-pay > p {
  margin: 0 !important;
}

/* A buy button beside a block (cqs-pay.js marks it) hides on a phone, so
   the block is the one buy action there. */
.cqs-pay-hide {
  display: none !important;
}

.cqs-pay-wallet {
  width: 100%;
  min-height: 50px;
}

.cqs-pay-wallet.is-loading {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.cqs-pay-card,
.cqs-pay-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(120, 72, 0, 0.09) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, #ffd166, #f2b705);
  color: #211603;
  font: inherit;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.cqs-pay-card {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  font-size: 1.05rem;
}

.cqs-pay-card:disabled {
  opacity: 0.6;
  cursor: default;
}

.cqs-pay-nav {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.cqs-pay-gold {
  margin: 0;
  color: #ffd166 !important;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.cqs-pay-msg {
  margin: 0;
  color: #f5f5f5 !important;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.cqs-pay-mail {
  align-self: center;
  margin: 0;
  padding: 4px 6px;
  font: inherit;
  font-size: 0.85rem;
  color: #b9b9b9;
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cqs-pay-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.cqs-pay-form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cqs-pay-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #161616;
  color: #fff;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
}

.cqs-pay-form-send {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #e80031;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.cqs-pay-form-send:disabled {
  opacity: 0.6;
  cursor: default;
}

.cqs-pay-form-note {
  margin: 0;
  font-size: 0.8rem;
  color: #b9b9b9;
  text-align: center;
}

/* The nav Activate moves focus to the block (tabindex="-1") so keyboard and
   screen reader users land on it; a tap shows no ring, a keyboard does. */
.cqs-pay:focus:not(:focus-visible) {
  outline: none;
}
