:root {
  --berry: #b5175a;
  --pink: #e6007e;
  --pink-soft: #fdf0f6;
  --green: #22c55e;
  --text: #111;
  --muted: #555;
  --line: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #fff; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.co { max-width: 480px; margin: 0 auto; }

/* Header */
.co-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 12px 0 46px;
}
.co-logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.co-logo__name { font-family: "Outfit", sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.co-logo__sub { font-size: 6.5px; font-weight: 700; letter-spacing: 1.8px; margin-top: 2px; }
.co-secure { display: flex; align-items: center; gap: 8px; font-size: 9.5px; line-height: 1.25; }
.co-secure span { display: flex; flex-direction: column; }
.co-secure b { font-weight: 800; }

.co-banner {
  background: var(--berry);
  color: #fff;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 12px;
}

/* Resumo */
.summary { border-bottom: 1px solid var(--line); }
.summary__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f5f5f6;
  font-size: 13px;
}
.summary__toggle strong { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; }
.summary__toggle svg { transition: transform .25s; }
.summary:not(.open) .summary__toggle svg { transform: rotate(180deg); }
.summary__body { padding: 20px 12px 18px; }
.summary:not(.open) .summary__body { display: none; }

.gift-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  background: var(--pink-soft);
  border-radius: 8px;
}
.gift-line__img {
  flex: 0 0 56px;
  height: 56px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.gift-line__img img, .item__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gift-line__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gift-line__info strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-line__info span { font-size: 12.5px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-line__tag {
  align-self: flex-start;
  padding: 2px 9px;
  border: 1px solid #4ade80;
  border-radius: 6px;
  background: #fff;
  color: #16a34a;
  font-size: 12px;
  font-weight: 500;
}

.item { display: flex; gap: 12px; margin-top: 18px; padding: 0 2px; }
.item__img {
  flex: 0 0 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.item__name { flex: 1; font-size: 12.5px; line-height: 1.4; }
.item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; }
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 32px;
}
.qty button { width: 30px; height: 100%; color: #888; font-size: 16px; }
.qty span { min-width: 30px; text-align: center; font-size: 13px; }

.totals { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; padding: 0 2px; }
.totals div { display: flex; justify-content: space-between; }
.totals__total { font-size: 14px; font-weight: 700; }

/* Etapa */
.step { padding: 20px 14px 30px; }
.step__head { display: flex; align-items: center; justify-content: space-between; }
.step__head h2 { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 700; }
.step__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__count { font-size: 12px; font-weight: 500; }
.step__desc { margin-top: 4px; font-size: 13px; color: #333; }

.form { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span { font-size: 13px; font-weight: 500; }
.field input {
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #777; }
.field input:focus { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(181,23,90,.12); }
.field__err { display: none; font-size: 12px; color: #dc2626; margin-top: -4px; }
.field.invalid input, .field.invalid .phone { border-color: #dc2626; }
.field.invalid .field__err { display: block; }

.phone {
  display: flex;
  align-items: center;
  width: 75%;
  height: 46px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  overflow: hidden;
}
.phone:focus-within { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(181,23,90,.12); }
.phone em { font-style: normal; font-size: 15px; color: #777; padding-left: 13px; }
.phone input { flex: 1; height: 100%; border: 0; padding-left: 8px; box-shadow: none !important; }

.next-btn {
  height: 56px;
  margin-top: 6px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: filter .2s;
}
.next-btn:hover { filter: brightness(.95); }

/* Etapa concluída */
.done-card {
  margin: 0 10px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.65;
}
.done-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.done-card__head strong { font-size: 14.5px; font-weight: 700; }
.done-card__edit { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.step--2 { border-top: 1px solid var(--line); margin-top: 20px; }

/* Entrega */
.form--tight { margin-top: 24px; }
.addr { display: flex; flex-direction: column; gap: 22px; }
.addr[hidden] { display: none; }
.addr__row { display: grid; grid-template-columns: 80px 1fr; gap: 14px; }
.opt { font-style: normal; font-size: 11.5px; color: #888; }

.input-wrap { position: relative; display: flex; }
.input-wrap input { flex: 1; width: 100%; }
.input-wrap .ok, .input-wrap .spin { display: none; position: absolute; right: 14px; top: 50%; }
.input-wrap .ok {
  width: 12px;
  height: 7px;
  margin-top: -6px;
  border-left: 2px solid #16a34a;
  border-bottom: 2px solid #16a34a;
  transform: rotate(-45deg);
}
.input-wrap .spin {
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--berry);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.input-wrap.filled input { background: #e8f0fe; border-color: #c7d2fe; padding-right: 36px; }
.input-wrap.filled .ok { display: block; }
.input-wrap.loading .spin { display: block; }
.field--num .input-wrap.filled .ok { display: none; }
.field--num .input-wrap.filled input { padding-right: 13px; }
.field input:focus { border-color: #111; box-shadow: none; border-width: 2px; }

.cep-row { display: flex; align-items: center; gap: 14px; }
.input-wrap--cep { flex: 0 0 55%; }
.cep-city { font-size: 12.5px; }

.shipping-opts__title { font-size: 15px; font-weight: 600; margin: 6px 0 14px; }
.ship-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid var(--berry);
  border-radius: 8px;
  background: #f4f4f5;
  cursor: pointer;
}
.ship-opt input { display: none; }
.ship-opt__radio {
  flex: 0 0 18px;
  height: 18px;
  border: 2px solid var(--berry);
  border-radius: 50%;
  position: relative;
}
.ship-opt input:checked + .ship-opt__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--berry);
}
.ship-opt__info { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-left: 8px; }
.ship-opt__info strong { font-size: 13.5px; font-weight: 500; }
.ship-opt__info small { font-size: 11.5px; color: #777; }
.ship-opt__price { font-size: 13.5px; font-weight: 600; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Resumo: linhas extras */
.green { color: #16a34a; }
.extra-line { display: flex; gap: 12px; margin-top: 14px; padding: 0 2px; font-size: 12.5px; }
.extra-line .item__img { flex: 0 0 44px; height: 44px; }
.extra-line p { flex: 1; line-height: 1.4; }

/* Resumo de etapas concluídas */
.done-card .small { font-size: 12.5px; line-height: 1.75; }
.done-card__ship { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.done-card__label { margin-top: 14px; font-size: 14px; font-weight: 600; }

/* ===== Pagamento ===== */
.step--3 { border-top: 1px solid var(--line); margin-top: 20px; }
.pay-methods { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.method {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.method.selected { border-color: var(--berry); background: #f4f4f5; }
.method__badge {
  position: absolute;
  top: -8px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #166534;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .3px;
}
.method__head { display: flex; align-items: center; gap: 12px; padding: 20px 14px; cursor: pointer; }
.method__head input { display: none; }
.method__radio {
  flex: 0 0 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 50%;
  position: relative;
}
.method.selected .method__radio { border-color: var(--berry); }
.method.selected .method__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--berry); }
.method__icon {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: #eceff1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.method__name { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.method__name b { font-weight: 600; }
.method__name b.regular { font-weight: 500; }
.method__name small { font-size: 12px; font-weight: 500; }
.method__body { display: none; padding: 0 12px 16px 28px; }
.method.selected .method__body { display: block; }

.pix-note { font-size: 14px; line-height: 1.5; color: #555; margin-top: 4px; }
.field--cpf { margin-top: 10px; }
.field--cpf > span { display: flex; align-items: center; gap: 6px; }
.field--cpf input { background: #e8f0fe; border-color: #c7d2fe; }
.pix-value { margin-top: 20px; font-size: 14px; color: #555; }
.pix-value b { color: #16a34a; font-weight: 700; }

.offers-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: var(--pink-soft);
  font-size: 12.5px;
}
.offers { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; margin-left: -8px; }
.offer {
  position: relative;
  padding: 18px 18px 18px;
  background: var(--pink-soft);
  border: 2px solid transparent;
  transition: border-color .2s;
}
.offer.added { border-color: var(--pink); }
.offer__check {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink-soft);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.offer.added .offer__check { background: var(--pink); }
.offer.added .offer__check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.offer__top { display: flex; gap: 20px; }
.offer__img {
  flex: 0 0 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.offer__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.offer__name { font-size: 12.5px; line-height: 1.4; color: #444; }
.offer__price { margin-top: 2px; font-size: 13px; font-weight: 700; }
.offer__price s { font-size: 11px; font-weight: 400; color: #666; margin-right: 4px; }
.offer h4 { margin-top: 28px; font-size: 14px; font-weight: 700; line-height: 1.5; color: #444; }
.offer__desc { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #555; }
.offer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 20px);
  height: 54px;
  margin: 20px auto 0;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.offer__btn i { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.offer.added .offer__btn { background: #fff; color: var(--pink); border: 2px solid var(--pink); }
.offer.added .offer__btn i { background: var(--pink); }

.finish-btn { width: 100%; margin-top: 18px; }

/* Formulário de cartão */
.card-form { display: flex; flex-direction: column; gap: 20px; padding: 6px 0 4px; }

.card-num-wrap { position: relative; }
.card-num-wrap input { width: 100%; padding-right: 54px !important; }
.card-brand-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  line-height: 0;
}

.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cvv-label { display: flex; align-items: center; gap: 5px; }

.select-wrap { position: relative; }
.select-field {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 13px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.select-field:focus { border-color: #111; box-shadow: none; border-width: 2px; }
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #555;
}

.card-msg {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Tela Pix */
.pix-screen { text-align: center; padding: 10px 0 20px; }
.pix-screen__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #32bcad; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 14px;
}
.pix-screen h2 { font-size: 20px; font-weight: 800; }
.pix-screen__value { font-size: 22px; font-weight: 700; color: #16a34a; margin-top: 4px; }
.pix-screen__order { margin-top: 4px; font-size: 13px; color: #555; }
.pix-qr {
  width: 148px; height: 148px; margin: 18px auto 4px;
  border: 2px solid #222; border-radius: 8px;
  background:
    repeating-conic-gradient(#ddd 0% 25%, #fff 0% 50%) 0 0 / 9px 9px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.pix-qr__inner {
  position: absolute; inset: 28px;
  background: rgba(255,255,255,.92); border-radius: 4px;
}
.pix-qr span { position: relative; font-size: 11px; font-weight: 600; color: #444; z-index: 1; }
.pix-screen__label { margin-top: 16px; font-size: 12.5px; font-weight: 500; color: #444; text-align: left; }
.pix-copy-wrap { display: flex; gap: 8px; margin-top: 6px; }
.pix-code-input {
  flex: 1; height: 44px; padding: 0 12px;
  border: 1.5px solid #d4d4d8; border-radius: 8px;
  font: inherit; font-size: 12px; background: #f5f5f6; color: #555;
}
.pix-copy-btn {
  height: 44px; padding: 0 18px; border-radius: 8px;
  background: #32bcad; color: #fff;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: filter .2s;
}
.pix-copy-btn:hover { filter: brightness(.9); }
.pix-copy-btn--ok { background: #16a34a !important; }
.pix-screen__exp {
  display: inline-block; margin-top: 14px;
  padding: 4px 14px; border-radius: 999px;
  background: #fef3c7; color: #92400e;
  font-size: 12px; font-weight: 500;
}
.pix-screen__note { margin-top: 12px; font-size: 12.5px; color: #666; line-height: 1.55; }

/* Pedido concluído */
.success { text-align: center; padding: 30px 10px 10px; }
.success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success__icon--wait { background: #fef3c7; color: #b45309; }
.success h2 { font-size: 20px; font-weight: 800; }
.success p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: #444; }
.success b { color: #111; }

/* Selos de confiança */
.trust-badges {
  background: #fff;
  padding: 0 20px;
  border-top: 1px solid #f0f0f0;
}
.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}
.trust-badge:last-child { border-bottom: none; }
.trust-badge__logo { flex: 0 0 52px; display: flex; align-items: center; justify-content: center; }
.trust-badge__logo-wrap { width: 52px; height: 52px; border-radius: 10px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #e8e8e8; }
.trust-badge__logo-wrap--google { background: #fff; }
.trust-badge__logo-wrap--norton { background: #fff; padding: 2px; }
.trust-badge__body { flex: 1; }
.trust-badge__stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; display: block; }
.trust-badge__title { font-size: 14px; font-weight: 700; color: #111; display: block; margin-top: 1px; }
.trust-badge__desc { font-size: 12px; color: #3b82f6; margin-top: 3px; line-height: 1.45; }

/* Rodapé */
.co-footer {
  background: #8b1a1a;
  color: #fff;
  text-align: center;
  padding: 24px 16px 70px;
}
.co-footer__title { font-size: 13px; font-weight: 700; color: #f59e0b; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.pay { display: flex; justify-content: center; gap: 8px; margin-bottom: 9px; }
.pay--wrap { flex-wrap: wrap; }
.pay__card {
  width: 37px;
  height: 25px;
  border-radius: 3px;
  background: #fff;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 800;
  overflow: hidden;
}
.pay__aura { background: linear-gradient(180deg, #1d3c8f 50%, #ffd400 50%); color: #c00; font-size: 8px; align-items: flex-end; }
.pay__discover { font-size: 5.5px; letter-spacing: -.2px; }
.pay__visa { color: #1a1f71; font-size: 10px; font-style: italic; }
.pay__amex { color: #2e77bb; font-size: 7.5px; text-decoration: underline; }
.pay__elo { gap: 2px; font-size: 10px; font-weight: 700; }
.pay__elo i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid; border-color: #ffcb05 #00a4e0 #ef4123 #ffcb05; }
.pay__hipercard { background: #822124; color: #fff; font-size: 6px; font-style: italic; letter-spacing: -.3px; }
.co-footer__company {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 12px;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  text-align: left;
}
.co-footer__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  opacity: .9;
}
.co-footer__secure b { color: #fff; }

/* Frete */
.ship-opt__carrier { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; flex: 0 0 auto; }
.ship-opt__old { color: #999; font-weight: 400; margin-right: 4px; text-decoration-color: #999; }
