/* The purchase wizard (/comprar/) and its steps, which the account page shows too while a purchase
   waits for the sign-in. Cards, buttons and fields come from v1/styles.css, enterprise.css and
   conta/customer.css; the done steps carry the logo's gradient, read left to right. */
.buy-main { padding-block: clamp(36px, 6vw, 72px); }
.buy-title { max-width: 22ch; margin-bottom: 22px; }
.buy-muted, .card p.buy-muted { color: var(--ink-3); font-size: 14px; line-height: 1.6; margin: 14px 0 0; }

/* ---------------------------------- steps ---------------------------------- */
.buy-steps {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.buy-steps[hidden] { display: none; }
.buy-steps li {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 10px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card-solid);
  color: var(--ink-3); font-size: 13.5px; font-weight: 700;
}
.buy-steps li > span:not(.buy-step-n) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-step-n {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 700 12px/1 var(--mono);
}
.buy-steps li.is-done .buy-step-n { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; font-size: 0; }
.buy-steps li.is-done .buy-step-n::after { content: "✓"; font: 700 13px/1 var(--sans); }
.buy-steps li.is-done { color: var(--ink-2); }
.buy-steps li[aria-current="step"] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.buy-steps li[aria-current="step"] .buy-step-n { background: linear-gradient(96deg, var(--blue), var(--teal)); color: #fff; }
/* Narrow screens keep the numbers and name only the current step. */
@media (max-width: 760px) {
  .buy-steps { display: flex; gap: 6px; }
  .buy-steps li { flex: 0 0 auto; padding: 6px; }
  .buy-steps li > span:not(.buy-step-n) { display: none; }
  .buy-steps li[aria-current="step"] { flex: 1 1 auto; padding-right: 14px; }
  html:not([data-lang="en"]) .buy-steps li[aria-current="step"] > .t-pt,
  html[data-lang="en"] .buy-steps li[aria-current="step"] > .t-en { display: inline; }
}

/* ---------------------------------- layout ---------------------------------- */
.buy-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); align-items: start; }
@media (max-width: 900px) {
  .buy-grid { grid-template-columns: minmax(0, 1fr); }
  /* The order comes first on a phone: what is being bought, then what to do. */
  .buy-summary { order: -1; }
}
.buy-card { padding: clamp(20px, 4vw, 32px); min-width: 0; }
.buy-card .h3 { margin: 0 0 10px; }
.buy-card > p { margin: 0 0 12px; }
.buy-card .customer-kicker { overflow-wrap: anywhere; }
.buy-email { color: var(--ink); font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; }

.buy-auth { display: grid; gap: 14px; margin-top: 20px; max-width: 460px; }
.buy-auth .customer-google { margin-top: 0; }
.buy-auth-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.buy-auth .buy-auth-row { margin-top: 0; }
.buy-auth-row[hidden], .buy-auth-row > [hidden] { display: none; }

.buy-review { display: grid; gap: 12px; margin: 16px 0 6px; }
.buy-review > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.buy-review dt { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.buy-review dd { margin: 0; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
@media (max-width: 480px) { .buy-review > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.buy-pay { width: 100%; margin-top: 22px; }
.buy-pay[disabled] { opacity: .6; cursor: progress; }
.buy-next-title { margin: 24px 0 0; font-size: 17px; }
#step-licenca .ent-note { margin-top: 4px; }
#step-licenca [hidden] { display: none; }

/* ---------------------------------- the order ---------------------------------- */
.buy-summary { padding: 24px; min-width: 0; }
/* Beside the steps it stays in view; on a phone it sits above them and scrolls away. */
@media (min-width: 901px) { .buy-summary { position: sticky; top: 92px; } }
.buy-summary[hidden] { display: none; }
.buy-plugin { display: flex; gap: 14px; align-items: start; margin-top: 6px; }
.buy-plugin-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.buy-plugin-icon[hidden] { display: none; }
.buy-plugin-icon-fallback { background: linear-gradient(135deg, var(--blue), var(--teal)); }

.buy-plugin-text { min-width: 0; }
.buy-plugin-name { margin: 0; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.card p.buy-plugin-desc { margin: 6px 0 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.55; }
.buy-interval { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.buy-interval[hidden] { display: none; }
.buy-interval legend { padding: 0; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.buy-interval-option {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  color: var(--ink-2); font-size: 14.5px;
}
.buy-interval-option[hidden] { display: none; }
.buy-interval-option strong { margin-left: auto; color: var(--ink); }
.buy-interval-option input { accent-color: var(--accent); margin: 0; }
.buy-interval-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.buy-total, .card p.buy-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 700; }
.card p.buy-total { font-size: 15px; }
.buy-total strong { color: var(--ink); font-size: clamp(22px, 3vw, 26px); font-weight: 900; letter-spacing: -.03em; text-align: right; }
.buy-store-link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.buy-store-link:hover { text-decoration: underline; }

/* A promotion (the full price struck through, then Paddle's discounted total) and an offer made for this buyer. */
.buy-was { color: var(--ink-3); font-weight: 500; text-decoration-thickness: 1.5px; }
.buy-now { color: var(--teal); }
.buy-promo, .buy-offer, .card p.buy-promo, .card p.buy-offer {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 10%, transparent); color: var(--ink-2); font-size: 13.5px; line-height: 1.5;
}
.buy-promo[hidden], .buy-offer[hidden] { display: none; }
/* In the total the full price sits small above the discounted one; beside a term it stays on the line. */
.buy-total strong .buy-was { display: block; font-size: 15px; letter-spacing: 0; }
.buy-interval-option strong .buy-was { font-size: 13px; margin-right: 4px; }

/* ------------------- the account page, while a purchase waits ------------------- */
.buy-banner { max-width: 760px; margin: 0 0 18px; padding: clamp(16px, 3vw, 22px); }
.buy-banner[hidden] { display: none; }
.buy-banner .buy-steps { margin-bottom: 14px; }
.buy-banner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card p.buy-banner-text { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; flex: 1 1 280px; }
.buy-banner-row .btn[hidden] { display: none; }
