/* Pós-venda: página de obrigado (Layout Casa) e rastreio do pedido */
.ps { --ps-blue: #0033C6; --ps-blue-soft: #EEF3FF; --ps-green: #12A150; --ps-border: #DCE4F5; --ps-text: #1F2937; --ps-muted: #6B7280;
  max-width: 1120px; margin: 0 auto; padding: 16px 16px 40px; color: var(--ps-text); font-family: Nunito, Arial, sans-serif; display: flex; flex-direction: column; gap: 16px; }
.ps * { box-sizing: border-box; }
.ps-banner img { display: block; width: 100%; height: auto; border-radius: 12px; }

.ps-hero { position: relative; background: #fff; border: 1px solid var(--ps-border); border-radius: 16px; padding: 28px 24px; text-align: center; box-shadow: 0 6px 24px rgba(0, 51, 198, .06); }
.ps-hero__icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #E7F6EE; color: var(--ps-green); display: flex; align-items: center; justify-content: center; }
.ps-hero__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ps-green); }
.ps--tracking .ps-hero__kicker { color: var(--ps-blue); }
.ps-hero__title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; font-weight: 800; }
.ps-hero__text { margin: 0 0 6px; font-size: 15px; color: #374151; }
.ps-hero__mail { margin: 0 auto 18px; max-width: 560px; font-size: 14px; color: var(--ps-muted); }
.ps-hero__eta { margin: 14px auto 0; display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--ps-blue-soft); color: var(--ps-blue); font-size: 15px; }

.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 10px; background: var(--ps-blue); color: #fff; font: 800 16px Nunito, Arial, sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.ps-btn:hover { filter: brightness(.95); }
.ps-btn--track { width: 100%; max-width: 420px; min-height: 58px; font-size: 18px; box-shadow: 0 8px 20px rgba(0, 51, 198, .25); }
.ps-btn--ghost { background: #fff; color: var(--ps-blue); border: 2px solid var(--ps-blue); }
.ps-btn--small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.ps-link { display: inline-block; margin-top: 12px; color: var(--ps-blue); font-weight: 800; text-decoration: none; }
.ps-continue { text-align: center; margin: 4px 0 0; }

.ps-card { background: #fff; border: 1px solid var(--ps-border); border-radius: 14px; padding: 18px; }
.ps-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--ps-text); }
.ps-card__title svg { color: var(--ps-blue); flex: none; }
.ps-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ps-side { display: flex; flex-direction: column; gap: 16px; }
.ps-info { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #374151; }
.ps-muted { color: var(--ps-muted); }
.ps-green { color: var(--ps-green); font-weight: 800; }
.ps-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #E7F6EE; color: var(--ps-green); font-size: 12px; font-weight: 800; margin-right: 4px; }

/* andamento compacto (página de obrigado) */
.ps-steps__list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ps-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 700; color: #9AA6C4; }
.ps-steps__item + .ps-steps__item::before { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 3px; background: #E3E9F7; z-index: 0; }
.ps-steps__item.is-done + .ps-steps__item::before, .ps-steps__item.is-done + .ps-steps__item.is-current::before { background: var(--ps-blue); }
.ps-steps__dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #E3E9F7; background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; }
.ps-steps__item.is-done, .ps-steps__item.is-current { color: var(--ps-text); }
.ps-steps__item.is-done .ps-steps__dot, .ps-steps__item.is-current .ps-steps__dot { background: var(--ps-blue); border-color: var(--ps-blue); }
.ps-steps__item.is-current .ps-steps__dot { box-shadow: 0 0 0 5px rgba(0, 51, 198, .15); }
.ps-steps__item.is-current { color: var(--ps-blue); }

/* itens e totais */
.ps-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ps-item { display: flex; align-items: center; gap: 12px; }
.ps-item__img { position: relative; flex: none; width: 64px; height: 64px; border: 1px solid var(--ps-border); border-radius: 10px; background: #fff; padding: 3px; }
.ps-items--compact .ps-item__img { width: 48px; height: 48px; }
.ps-item__img img { width: 100%; height: 100%; object-fit: contain; }
.ps-item__qty { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ps-blue); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ps-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.3; }
.ps-item__info small { color: var(--ps-muted); }
.ps-item__price { font-weight: 800; white-space: nowrap; }
.ps-totals { margin: 16px 0 0; padding: 14px; border-radius: 10px; background: #F8FAFE; display: flex; flex-direction: column; gap: 8px; }
.ps-totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ps-totals dt { color: #4B5563; }
.ps-totals dd { margin: 0; font-weight: 700; }
.ps-totals__total { padding-top: 8px; border-top: 1px solid var(--ps-border); font-size: 18px !important; }
.ps-totals__total dd { color: var(--ps-blue); font-weight: 800; }

.ps-safe ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ps-safe li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; color: #374151; }
.ps-safe li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ps-green); font-weight: 800; }

/* rastreio: código e linha do tempo */
.ps-code { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 14px; padding: 10px 14px; border: 1px dashed var(--ps-border); border-radius: 12px; font-size: 14px; }
.ps-code strong { font-size: 16px; letter-spacing: .04em; }
.ps-timeline { margin: 0; padding: 0; list-style: none; }
.ps-timeline__item { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.ps-timeline__item:last-child { padding-bottom: 0; }
.ps-timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 3px; background: #E3E9F7; }
.ps-timeline__item.is-done:not(:last-child)::before { background: var(--ps-blue); }
.ps-timeline__dot { flex: none; width: 31px; height: 31px; border-radius: 50%; border: 3px solid #E3E9F7; background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; }
.ps-timeline__item.is-done .ps-timeline__dot, .ps-timeline__item.is-current .ps-timeline__dot { background: var(--ps-blue); border-color: var(--ps-blue); }
.ps-timeline__item.is-current .ps-timeline__dot { box-shadow: 0 0 0 6px rgba(0, 51, 198, .15); }
.ps-timeline__body { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.ps-timeline__body strong { font-size: 15px; }
.ps-timeline__item.is-next .ps-timeline__body strong { color: #9AA6C4; font-weight: 700; }
.ps-timeline__item.is-current .ps-timeline__body strong { color: var(--ps-blue); font-size: 16px; }
.ps-timeline__body p { margin: 0; font-size: 14px; color: #4B5563; }
.ps-timeline__body time { font-size: 13px; color: var(--ps-muted); }
.ps-timeline__forecast { color: var(--ps-blue) !important; font-weight: 700; }

.ps-btn--block { width: 100%; }
.ps-btn--pix { background: var(--ps-green); }

/* Minha conta: entrar e pedidos */
.ps--account { max-width: 760px; }
.ps-login { max-width: 460px; width: 100%; margin: 16px auto; padding: 28px 24px; text-align: center; }
.ps-login__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--ps-blue-soft); color: var(--ps-blue); display: flex; align-items: center; justify-content: center; }
.ps-login__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.ps-login__text { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: #4B5563; }
.ps-form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ps-form label { font-size: 13px; font-weight: 800; }
.ps-form input { height: 50px; padding: 0 14px; border: 1px solid var(--ps-border); border-radius: 10px; font: 16px Nunito, Arial, sans-serif; }
.ps-form input:focus { outline: none; border-color: var(--ps-blue); box-shadow: 0 0 0 3px rgba(0, 51, 198, .12); }
.ps-form__code { text-align: center; font-size: 24px !important; font-weight: 800; letter-spacing: .4em; }
.ps-form__error { margin: 0; font-size: 13px; color: #B91C1C; }
.ps-form .ps-btn { margin-top: 8px; }
.ps-login__perks { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ps-border); list-style: none; display: flex; flex-direction: column; gap: 8px; text-align: left; font-size: 14px; color: #374151; }
.ps-login__perks li { display: flex; align-items: center; gap: 8px; }
.ps-login__perks svg { color: var(--ps-blue); flex: none; }
.ps-account__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-account__title { margin: 0; font-size: 26px; font-weight: 800; }
.ps-account__head .ps-muted { margin: 2px 0 0; font-size: 14px; }
.ps-account__subtitle { margin: 4px 0 -4px; font-size: 18px; font-weight: 800; }
.ps-empty { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ps-orders { display: flex; flex-direction: column; gap: 12px; }
.ps-order { display: flex; flex-direction: column; gap: 12px; }
.ps-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ps-order__head > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ps-order__number { font-size: 16px; }
.ps-pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ps-pill--ok { background: #E7F6EE; color: var(--ps-green); }
.ps-pill--wait { background: #FFF4E0; color: #B45309; }
.ps-pill--off { background: #F1F2F5; color: var(--ps-muted); }
.ps-order__items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ps-order__items li { display: flex; align-items: center; gap: 12px; }
.ps-order__items .ps-item__img { width: 48px; height: 48px; }
.ps-order__stage p { margin: 0 0 6px; font-size: 14px; color: #374151; }
.ps-order__stage strong { color: var(--ps-blue); }
.ps-order__note { margin: 0; font-size: 14px; color: #374151; }
.ps-bar { height: 8px; border-radius: 999px; background: #E3E9F7; overflow: hidden; }
.ps-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ps-blue); }

@media (max-width: 899px) {
  .ps-grid { grid-template-columns: 1fr; }
  .ps-steps__list { grid-template-columns: 1fr; gap: 0; }
  .ps-steps__item { flex-direction: row; text-align: left; padding: 6px 0; font-size: 14px; }
  .ps-steps__item + .ps-steps__item::before { top: -10px; left: 11px; right: auto; width: 3px; height: 22px; }
}
@media (max-width: 749px) {
  .ps { padding: 12px 12px 32px; gap: 12px; }
  .ps-hero { padding: 22px 16px; }
  .ps-card { padding: 14px; }
  .ps-banner img { border-radius: 10px; }
}
