/* ============================================================
 * Order confirmation page (Gracias) — Claude Design
 * Source: design_handoff_smile_responsive_qa + handoff legacy
 * Loaded only on body#order-confirmation
 * ============================================================ */

.thanks {
  padding: 64px 0 96px;
  background: var(--bg, #F8F4F0);
  min-height: 60vh;
}
.thanks .shell { max-width: var(--max-w, 1280px); margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) {
  .thanks { padding: 32px 0 56px; }
  .thanks .shell { padding: 0 16px; }
}

/* Main card */
.thanks-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E8DFD6);
  border-radius: var(--r-lg, 16px);
  padding: 56px 56px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  overflow: hidden;
  position: relative;
}
.thanks-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--rose, #E8C5C5) 0%, transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}
.thanks-card > * { position: relative; z-index: 1; }

/* Check icon */
.thanks-card .check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E8F0E5;
  color: #2E5C3F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.thanks-card .check-circle svg,
.thanks-card .check-circle i { font-size: 28px; }

/* Title */
.thanks-card h1 {
  font-family: var(--f-display, "Playfair Display", Georgia, serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
}
.thanks-card h1 em { font-style: italic; color: var(--burgundy, #6B2C2C); }

/* Lead paragraph */
.thanks-card .lead {
  color: var(--ink-2, #6B6360);
  font-size: 16px;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 0 28px;
}
.thanks-card .lead a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.thanks-card .lead a:hover { color: var(--burgundy-deep, #501F1F); }

/* Order number badge */
.thanks-card .order-no {
  display: inline-flex;
  flex-direction: column;
  background: var(--surface-2, #FAF7F2);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2, #6B6360);
  margin: 0 0 32px;
}
.thanks-card .order-no b {
  font-family: var(--f-display, "Playfair Display", Georgia, serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* Next steps list */
.thanks-card .next-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.thanks-card .next-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  align-items: start;
}
.thanks-card .next-steps li .num,
.thanks-card .next-steps li > span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink, #2B2826);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--f-body);
}
.thanks-card .next-steps li b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.thanks-card .next-steps li .meta { font-size: 13px; color: var(--ink-2); }

/* Action buttons */
.thanks-card .thanks-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.thanks-card .thanks-actions .btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  border: 1px solid transparent;
}
.thanks-card .thanks-actions .btn-primary {
  background: var(--primary, #6B2C2C);
  color: #fff;
  border-color: var(--primary);
}
.thanks-card .thanks-actions .btn-primary:hover {
  background: var(--primary-hover, #501F1F);
  transform: translateY(-1px);
  text-decoration: none;
}
.thanks-card .thanks-actions .btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.thanks-card .thanks-actions .btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

/* Sidebar */
.thanks-side {
  background: var(--surface-2, #FAF7F2);
  border-radius: var(--r-md, 10px);
  padding: 28px;
  height: fit-content;
}
.thanks-side h3 {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}
.thanks-side .info-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #E8DFD6);
}
.thanks-side .info-block:first-of-type { padding-top: 0; }
.thanks-side .info-block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.thanks-side .info-block .lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 4px;
  font-weight: 500;
}
.thanks-side .info-block .val {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.thanks-side .info-block .val small {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

/* Hook payment_return / guest registration / footer hooks — wrap as cards */
.thanks-extra {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 16px);
  padding: 32px;
  margin-top: 24px;
}
.thanks-extra h4 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--ink);
}
.thanks-extra .form-group label.form-control-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); font-weight: 500; }
.thanks-extra .form-control,
.thanks-extra input.form-control,
.thanks-extra select.form-control {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--bg);
  width: 100%;
}
.thanks-extra .form-control:focus { outline: none; border-color: var(--ink); background: #fff; }
.thanks-extra button[type="submit"],
.thanks-extra .btn-primary {
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--primary, #6B2C2C);
  color: #fff;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
}
.thanks-extra button[type="submit"]:hover { background: var(--primary-hover); }

/* Responsive */
@media (max-width: 860px) {
  .thanks-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
  .thanks-card::before { top: -60px; right: -60px; width: 200px; height: 200px; }
}
@media (max-width: 720px) {
  .thanks-card { padding: 28px 20px; }
  .thanks-card h1 { font-size: clamp(28px, 7vw, 36px); }
  .thanks-card .thanks-actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   Confirmation blocks (handoff smile_pedido 3 §Pedido Confirmado)
   .conf-stack wraps {.pay-instructions, .conf-items} sections below
   the .thanks-card hero.
   ============================================================ */
.conf-stack { display: grid; gap: 24px; margin-top: 24px; }
.conf-block {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E8DFD6);
  border-radius: var(--r-lg, 16px);
  padding: 32px 36px;
}
.conf-block > h2 {
  font-family: var(--f-display, "Playfair Display", serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--ink, #2B2826);
  letter-spacing: -0.01em;
}
.conf-block > .conf-sub {
  font-size: 14px;
  color: var(--ink-2, #6B6360);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 56ch;
}

/* Bank transfer — structured grid */
.pay-instructions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line, #E8DFD6);
  border-radius: var(--r-md, 10px);
  overflow: hidden;
}
.pay-instructions .row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, #E8DFD6);
}
.pay-instructions .row.full { grid-column: 1 / -1; }
.pay-instructions .row:nth-last-child(-n+1) { border-bottom: 0; }
.pay-instructions .k {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3, #9A928B);
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pay-instructions .v {
  font-size: 15px;
  color: var(--ink, #2B2826);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.pay-instructions .v.big {
  font-family: var(--f-display, "Playfair Display", serif);
  font-size: 22px;
  font-weight: 500;
}
.pay-instructions .copy-btn {
  font-size: 11px;
  color: var(--burgundy, #6B2C2C);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 6px;
}
.pay-instructions .copy-btn:hover { background: var(--rose, #E8C5C5); }

.pay-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface-2, #FAF7F2);
  border: 1px solid var(--line, #E8DFD6);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2, #6B6360);
  line-height: 1.55;
}
.pay-note svg { color: var(--burgundy, #6B2C2C); flex-shrink: 0; margin-top: 1px; }
.pay-note b { color: var(--ink, #2B2826); font-weight: 500; }

.pay-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Order summary items inside confirmation */
.conf-items { display: flex; flex-direction: column; }
.conf-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line, #E8DFD6);
}
.conf-item img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2, #FAF7F2);
}
.conf-item .ci-info .nm {
  font-size: 15px;
  color: var(--ink, #2B2826);
  font-weight: 500;
  margin-bottom: 3px;
}
.conf-item .ci-info .meta { font-size: 13px; color: var(--ink-2, #6B6360); }
.conf-item .ci-info .unit { font-size: 12px; color: var(--ink-3, #9A928B); margin-top: 4px; }
.conf-item .ci-price { text-align: right; }
.conf-item .ci-price .amt {
  font-size: 16px;
  color: var(--ink, #2B2826);
  font-variant-numeric: tabular-nums;
}
.conf-item .ci-price .ci-qty { font-size: 12px; color: var(--ink-3, #9A928B); margin-top: 2px; }

.conf-totals { margin-top: 4px; }
.conf-totals .t-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-2, #6B6360);
}
.conf-totals .t-row .v {
  font-variant-numeric: tabular-nums;
  color: var(--ink, #2B2826);
}
.conf-totals .t-row.free .v { color: #2E5C3F; font-weight: 600; }
.conf-totals .t-row.grand {
  border-top: 1px solid var(--line, #E8DFD6);
  margin-top: 6px;
  padding-top: 16px;
}
.conf-totals .t-row.grand .lbl {
  font-family: var(--f-display, "Playfair Display", serif);
  font-size: 18px;
  color: var(--ink, #2B2826);
}
.conf-totals .t-row.grand .v {
  font-family: var(--f-display, "Playfair Display", serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink, #2B2826);
}
.conf-totals .t-row.tax { padding-top: 2px; font-size: 11px; color: var(--ink-3, #9A928B); }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink, #2B2826);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .conf-block { padding: 24px 22px; }
  .pay-instructions { grid-template-columns: 1fr; }
  .pay-instructions .row { grid-column: 1 / -1 !important; }
  .conf-item { grid-template-columns: 56px 1fr; }
  .conf-item .ci-price { grid-column: 2; text-align: left; }
}
/* === PayPhone payment_return — Claude Design overrides ===
 * Appended for the .pay-approved-badge / .pay-rejected-badge / .txn-grid blocks
 * rendered by themes/smile_v2/modules/payphone/views/templates/hook/order-confirmation17.tpl
 */

.pay-approved-badge,
.pay-rejected-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 22px;
}
.pay-approved-badge { background: #E8F0E5; border: 1px solid #CFE3CC; }
.pay-rejected-badge { background: #FDECEC; border: 1px solid #F4C2C2; }

.pay-approved-badge .ico,
.pay-rejected-badge .ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pay-approved-badge .ico { background: #2E5C3F; }
.pay-rejected-badge .ico { background: #B23B3B; }

.pay-approved-badge .txt .st,
.pay-rejected-badge .txt .st {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.pay-approved-badge .txt .st { color: #265035; }
.pay-rejected-badge .txt .st { color: #6B2C2C; }

.pay-approved-badge .txt .sub,
.pay-rejected-badge .txt .sub {
  font-size: 13px;
  margin-top: 1px;
  line-height: 1.4;
}
.pay-approved-badge .txt .sub { color: #4A6B53; }
.pay-rejected-badge .txt .sub { color: #8A4A4A; }

.txn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line, #E8DFD6);
  border-radius: var(--r-md, 10px);
  overflow: hidden;
}
.txn-grid .row {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line, #E8DFD6);
}
.txn-grid .row.full { grid-column: 1 / -1; }
.txn-grid .row:last-child { border-bottom: 0; }
.txn-grid .row:nth-last-child(2):not(.full) { border-bottom: 0; }
.txn-grid .k {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3, #9A928B);
  font-weight: 600;
  margin-bottom: 5px;
}
.txn-grid .v {
  font-size: 15px;
  color: var(--ink, #2B2826);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.txn-grid .v.big {
  font-family: var(--f-display, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .txn-grid { grid-template-columns: 1fr; }
  .txn-grid .row { grid-column: 1 / -1 !important; border-bottom: 1px solid var(--line, #E8DFD6); }
  .txn-grid .row:last-child { border-bottom: 0; }
}
