.page-title {
  padding: 40px 0 16px;
}

.page-title h1 {
  margin: 0;
  font-size: 34px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 22px;
  align-items: start;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 15px;
  align-items: center;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.cart-item .meta {
  font-size: 12px;
  color: var(--muted);
}

.cart-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.cart-controls input {
  width: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
}

.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  position: sticky;
  top: 96px;
}

.summary h2 {
  font-size: 18px;
  margin-top: 0;
}

.coupon-box {
  margin: 4px 0 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafafa;
}

.coupon-form label {
  display: block;
  margin-bottom: 7px;
  color: #25272b;
  font-size: 12px;
  font-weight: 850;
}

.coupon-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.coupon-entry input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #17181b;
  font: inherit;
  text-transform: uppercase;
}

.coupon-entry input:focus {
  border-color: #c49b00;
  outline: 3px solid rgba(235, 185, 0, 0.16);
}

.coupon-entry .btn {
  min-height: 42px;
  padding: 0 12px;
  font-size: 11px;
}

.coupon-hint,
.coupon-message {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

.coupon-hint {
  color: var(--muted);
}

.coupon-hint strong {
  color: #765b00;
}

.coupon-message {
  color: #a51d16;
  font-weight: 750;
}

.coupon-message:empty {
  display: none;
}

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coupon-applied[hidden] {
  display: none;
}

.coupon-applied div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coupon-applied span {
  color: #66705a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.coupon-applied strong {
  color: #17181b;
  font-size: 13px;
}

.coupon-applied small {
  color: #547035;
  font-size: 11px;
  font-weight: 800;
}

.coupon-applied button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: #765b00;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  text-decoration: underline;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: #555a61;
  font-size: 13px;
}

.sum-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 15px;
  color: #17181b;
  font-size: 17px;
  font-weight: 950;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field.full {
  grid-column: 1/-1;
}

@media (max-width:850px) {
  .cart-layout,.checkout-grid {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 85px 1fr;
  }

  .cart-item img {
    width: 85px;
    height: 85px;
  }

  .cart-controls {
    grid-column: 1/-1;
    justify-content: stretch;
  }

  .cart-controls .btn {
    flex: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.payment-option {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 15px;
  background: #fff;
  font-weight: 850;
}

.payment-option input {
  margin-right: 7px;
}

.payment-option.active {
  border-color: #C6A53B;
  background: #FFF8E0;
}

.success-box {
  width: min(680px, 100%);
  margin: 70px auto;
  padding: 45px 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 32px;
  font-weight: 950;
}

.checkout-page {
  padding-bottom: 70px;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid #EAD489;
  border-radius: 999px;
  background: #FFF9E6;
  color: #6B5300;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.step-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.step-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 950;
}

.step-heading h2 {
  margin: 0 0 3px;
  font-size: 19px;
}

.step-heading p {
  margin: 0;
  font-size: 12px;
}

.payment-option {
  display: flex;
  min-width: 150px;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.payment-option input {
  position: absolute;
  top: 12px;
  right: 10px;
  margin: 0;
}

.payment-option strong {
  padding-right: 22px;
}

.payment-option small {
  color: var(--muted);
  font-weight: 600;
}

.payment-detail {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
}

.payment-detail h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.payment-detail p {
  margin: 0;
}

.demo-warning {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #f0d7a5;
  border-radius: 10px;
  background: #fff9e9;
  color: #73561c;
  font-size: 12px;
  font-weight: 750;
}

.checkout-submit {
  min-height: 50px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-item-mini {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
}

.checkout-item-mini img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.checkout-item-mini strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 3px;
  font-size: 11px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-item-mini span {
  color: var(--muted);
  font-size: 11px;
}

.secure-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #FFF9E6;
  font-size: 11px;
}

.secure-note span {
  color: var(--muted);
}

.payment-stage {
  width: min(680px, 100%);
  margin: 28px auto 70px;
}

.payment-stage-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.07);
}

.payment-stage-card h1 {
  margin: 8px 0 8px;
}

.payment-back {
  display: block;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555a61;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.payment-simulation {
  margin: 24px 0;
}

.fake-qr {
  display: grid;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  place-items: center;
  border: 12px solid #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line);
}

.qr-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(17, 1fr);
  grid-template-rows: repeat(17, 1fr);
  background: #fff;
}

.qr-grid span {
  background: #fff;
}

.qr-grid span.filled {
  background: #17181b;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 7px;
}

.copy-row input {
  min-width: 0;
}

.payment-visual-card {
  display: flex;
  width: min(390px, 100%);
  min-height: 210px;
  margin: 0 auto;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  background: linear-gradient(135deg, #1b1d20, #3c4148);
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.payment-visual-card span,
.payment-visual-card small {
  color: #d7d9dc;
}

.payment-visual-card strong {
  font-size: clamp(18px, 4vw, 25px);
  letter-spacing: 0.08em;
}

.barcode-demo {
  height: 86px;
  margin-bottom: 14px;
  border-radius: 5px;
  background: repeating-linear-gradient(
    90deg,
    #17181b 0,
    #17181b 2px,
    transparent 2px,
    transparent 5px,
    #17181b 5px,
    #17181b 8px,
    transparent 8px,
    transparent 11px
  );
}

.boleto-code {
  overflow-wrap: anywhere;
  color: #555a61;
  font-family: monospace;
  font-size: 12px;
  text-align: center;
}

.payment-total-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-total-line strong {
  font-size: 20px;
}

.payment-demo-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.success-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 25px 0;
}

.success-details div {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.success-details span,
.success-details strong {
  display: block;
}

.success-details span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 620px) {
  .payment-stage-card {
    padding: 20px;
  }

  .fake-qr {
    width: 190px;
    height: 190px;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }

  .success-details {
    grid-template-columns: 1fr;
  }
}


.success-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #2a2100;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Checkout — formulário de entrega
   ========================================================= */
.checkout-page .form-card {
  overflow: hidden;
  border: 1px solid #e1e2e5;
  box-shadow: 0 10px 30px rgba(20, 22, 25, .045);
}

.checkout-page .form-grid {
  gap: 16px;
}

.checkout-page .field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.checkout-page .field label {
  color: #2a2c30;
  font-size: 12px;
  font-weight: 900;
}

.checkout-page .field input,
.checkout-page .field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #d6d8dc;
  border-radius: 12px;
  outline: 0;
  background: #fafafa;
  color: #17181b;
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.checkout-page .field input::placeholder {
  color: #9a9da3;
}

.checkout-page .field input:hover,
.checkout-page .field select:hover {
  border-color: #bfc2c7;
  background: #fff;
}

.checkout-page .field input:focus,
.checkout-page .field select:focus {
  border-color: #d4a300;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 163, 0, .14);
}

.checkout-page .field select {
  cursor: pointer;
}

.checkout-page .field small {
  color: #85888e;
  font-size: 10px;
  line-height: 1.35;
}

.checkout-page .optional-label {
  color: #8b8e94;
  font-size: 10px;
  font-weight: 700;
}

.checkout-page .step-heading > span {
  color: #211a00;
  box-shadow: 0 5px 14px rgba(212, 163, 0, .24);
}

.checkout-page .step-heading h2 {
  font-size: 20px;
  letter-spacing: -.25px;
}

.checkout-page .form-card:first-of-type {
  position: relative;
}

.checkout-page .form-card:first-of-type::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #d4a300, #f0c82f);
}

@media (max-width: 560px) {
  .checkout-page .form-card {
    padding: 18px;
  }

  .checkout-page .field input,
  .checkout-page .field select {
    min-height: 46px;
  }
}

/* Checkout — dados de entrega e pagamento -------------------- */
.saved-address-picker {
  margin: 2px 0 18px;
  padding: 15px;
  border: 1px solid #e2e3e6;
  border-radius: 14px;
  background: #fafafa;
}

.saved-address-picker[hidden] {
  display: none !important;
}

.saved-address-picker > label {
  display: block;
  margin-bottom: 8px;
  color: #2a2c30;
  font-size: 12px;
  font-weight: 900;
}

.saved-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.saved-address-row select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d6d8dc;
  border-radius: 11px;
  background: #fff;
  color: #25272b;
  font: inherit;
  font-size: 12px;
}

.saved-address-picker small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.gateway-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid #e1e2e5;
  border-radius: 15px;
  background: #fafafa;
}

.gateway-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: #17181b;
  color: #f0c000;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.5px;
}

.gateway-card strong,
.gateway-card span {
  display: block;
}

.gateway-card strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.gateway-card div:nth-child(2) span {
  max-width: 480px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.gateway-status {
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff4bf;
  color: #765900;
  font-size: 9px !important;
  font-weight: 950;
  white-space: nowrap;
}

.privacy-note {
  margin-top: 13px;
  padding: 12px 14px;
  border-left: 3px solid #d4a300;
  border-radius: 8px;
  background: #fffaf0;
  color: #575a60;
  font-size: 11px;
  line-height: 1.5;
}

.privacy-note strong {
  color: #25272b;
}

.pending-icon {
  color: #2a2100;
  font-size: 26px;
}

.checkout-page input[readonly] {
  background: #f1f2f3;
  color: #696d73;
}

@media (max-width: 700px) {
  .saved-address-row,
  .gateway-card {
    grid-template-columns: 1fr;
  }

  .gateway-status {
    width: fit-content;
  }
}


.payment-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.payment-choice{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:13px;cursor:pointer;background:#fff}
.payment-choice:has(input:checked){border-color:#e2b410;box-shadow:0 0 0 2px rgba(226,180,16,.16)}
.payment-choice span{display:flex;flex-direction:column;gap:2px}.payment-choice small{color:var(--muted);font-size:11px}
.card-demo{width:min(360px,100%);height:205px;perspective:1000px;margin:16px auto}.card-demo-inner{width:100%;height:100%;position:relative;transition:transform .55s;transform-style:preserve-3d}.card-demo.is-flipped .card-demo-inner{transform:rotateY(180deg)}
.card-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:18px;padding:22px;background:#17181b;color:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 16px 35px rgba(0,0,0,.18)}.card-front span{color:#e2b410;font-weight:900}.card-front strong{font-size:21px;letter-spacing:2px}.card-back{transform:rotateY(180deg);justify-content:center}.card-strip{height:45px;background:#050505;margin:0 -22px 20px}.card-back strong{align-self:flex-end;background:#fff;color:#111;padding:8px 12px;border-radius:5px}.payment-explain{text-align:center}
@media(max-width:650px){.payment-methods{grid-template-columns:1fr}}

.pix-modal{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.58);display:grid;place-items:center;padding:20px}.pix-modal[hidden]{display:none}.pix-modal-card{position:relative;width:min(460px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:20px;padding:26px;text-align:center}.pix-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;cursor:pointer}.pix-modal-card img{width:230px;height:230px;object-fit:contain;margin:12px auto;display:block}.pix-modal-card textarea{width:100%;resize:none;border:1px solid var(--line);border-radius:10px;padding:10px;margin:7px 0 12px}.pix-modal-card .btn{margin-top:8px;width:100%}.modal-open{overflow:hidden}

/* =========================================================
   Checkout NUTRIUP — pagamento simples (TCC)
   ========================================================= */
.cep-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cep-check-row .cep-check-button {
  min-width: 92px;
  border: 1px solid #17181b;
  border-radius: 12px;
  background: #17181b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  transition: transform .16s ease, background .16s ease;
}

.cep-check-row .cep-check-button:hover {
  background: #2a2c30;
  transform: translateY(-1px);
}

.cep-check-row .cep-check-button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.shipping-service {
  display: block;
  margin-top: 2px;
  color: #8a8d92;
  font-size: 9px;
  font-weight: 700;
}

.checkout-page .payment-card {
  overflow: visible;
}

.checkout-page .payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}

.checkout-page .payment-choice {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe1e4;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.checkout-page .payment-choice:hover {
  border-color: #c6c9ce;
  transform: translateY(-1px);
}

.checkout-page .payment-choice.is-active {
  border-color: #d2a500;
  box-shadow: 0 0 0 3px rgba(226, 180, 16, .12);
  transform: none;
}

.checkout-page .payment-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.payment-choice-mark {
  display: grid;
  width: 44px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #17181b;
  color: #f1c40f;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .05em;
}

.payment-choice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.payment-choice-copy strong {
  color: #202226;
  font-size: 13px;
}

.payment-choice-copy small {
  overflow: hidden;
  color: #777b82;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-choice-dot {
  width: 17px;
  height: 17px;
  border: 1.5px solid #b7bbc1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
}

.payment-choice.is-active .payment-choice-dot {
  border-color: #c89d00;
  background: #e2b410;
}

.payment-panels {
  margin-top: 4px;
}

.payment-panel {
  padding: 16px;
  border: 1px solid #e4e5e8;
  border-radius: 14px;
  background: #fafafa;
}

.payment-panel[hidden] {
  display: none !important;
}

.payment-simple-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-simple-note strong {
  color: #24262a;
  font-size: 13px;
}

.payment-simple-note span {
  max-width: 660px;
  color: #73777e;
  font-size: 11px;
  line-height: 1.5;
}

.card-checkout-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.checkout-page .card-demo {
  width: 100%;
  height: 190px;
  margin: 0;
  perspective: 1000px;
}

.checkout-page .card-demo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

.checkout-page .card-demo.is-flipped .card-demo-inner {
  transform: rotateY(180deg);
}

.checkout-page .card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px;
  border-radius: 18px;
  background: linear-gradient(145deg, #151619, #2b2e33);
  color: #fff;
  box-shadow: 0 16px 34px rgba(20, 22, 25, .17);
  backface-visibility: hidden;
}

.checkout-page .card-front > strong {
  font-size: clamp(17px, 2.3vw, 21px);
  letter-spacing: .1em;
}

.card-brand-row,
.card-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.checkout-page .card-brand-row > span {
  color: #f1c40f;
  font-size: 13px;
  font-weight: 950;
}

.checkout-page .card-brand-row small,
.checkout-page .card-bottom-row span {
  color: #d9dbdf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}

.checkout-page .card-back {
  justify-content: center;
  transform: rotateY(180deg);
}

.checkout-page .card-strip {
  height: 42px;
  margin: 0 -21px 20px;
  background: #050506;
}

.card-cvv-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.card-cvv-line span {
  color: #d7d9dd;
  font-size: 10px;
  font-weight: 800;
}

.checkout-page .card-back .card-cvv-line strong {
  min-width: 60px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  color: #17181b;
  font-size: 12px;
  text-align: center;
}

.card-fields {
  display: grid;
  gap: 10px;
}

.card-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-kind-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid #dedfe3;
  border-radius: 11px;
  background: #fff;
}

.card-kind-switch label {
  position: relative;
  cursor: pointer;
}

.card-kind-switch input {
  position: absolute;
  opacity: 0;
}

.card-kind-switch span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #73767c;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.card-kind-switch input:checked + span {
  background: #17181b;
  color: #fff;
}

.payment-local-note {
  margin: 12px 0 0;
  color: #85888e;
  font-size: 10px;
  line-height: 1.45;
}

.checkout-submit {
  min-height: 52px;
  letter-spacing: .02em;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 12, 14, .62);
  backdrop-filter: blur(3px);
}

.payment-modal[hidden] {
  display: none !important;
}

.payment-modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
}

.payment-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f3f4;
  color: #34363a;
  cursor: pointer;
  font-size: 22px;
}

.payment-modal-view {
  text-align: center;
}

.payment-modal-view[hidden] {
  display: none !important;
}

.payment-modal-tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff3bd;
  color: #765900;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
}

.payment-modal-view h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.payment-modal-order {
  margin: 0 0 16px;
  color: #74777d;
  font-size: 11px;
}

.pix-qr {
  display: grid;
  width: min(244px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto 17px;
  place-items: center;
  border: 10px solid #fff;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 0 0 1px #dedfe2;
}

.pix-qr svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

.payment-modal-view label {
  display: block;
  margin-bottom: 6px;
  color: #303237;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
}

.payment-modal-view textarea {
  width: 100%;
  resize: none;
  padding: 11px;
  border: 1px solid #d9dbdf;
  border-radius: 10px;
  outline: none;
  background: #fafafa;
  color: #4b4e54;
  font: 10px/1.45 monospace;
}

.payment-modal-view .btn {
  margin-top: 9px;
}

.payment-demo-disclaimer {
  margin: 12px 0 0;
  color: #8a8d92;
  font-size: 9px;
  line-height: 1.5;
}

.boleto-bars {
  height: 78px;
  margin: 10px 0 18px;
  border: 8px solid #fff;
  background: repeating-linear-gradient(
    90deg,
    #111 0,
    #111 2px,
    transparent 2px,
    transparent 4px,
    #111 4px,
    #111 5px,
    transparent 5px,
    transparent 9px,
    #111 9px,
    #111 12px,
    transparent 12px,
    transparent 14px
  );
  box-shadow: 0 0 0 1px #e0e1e4;
}

.boleto-due {
  margin: 8px 0 0;
  color: #65686e;
  font-size: 10px;
  font-weight: 750;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .checkout-page .payment-methods {
    grid-template-columns: 1fr;
  }

  .card-checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-page .card-demo {
    width: min(340px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .cep-check-row {
    grid-template-columns: 1fr;
  }

  .cep-check-row .cep-check-button {
    min-height: 42px;
  }

  .card-fields-row {
    grid-template-columns: 1fr;
  }

  .payment-modal-card {
    padding: 24px 18px 20px;
  }
}
.checkout-page .payment-choice .payment-choice-mark { display: grid; }
.checkout-page .payment-choice .payment-choice-dot { display: block; }


/* Checkout final — resumo compacto, cupom e confirmação Pix */
.checkout-grid { align-items: start; }
.checkout-summary {
  align-self: start;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 18px;
}
.checkout-summary .checkout-items { margin-bottom: 10px; padding-bottom: 10px; }
.checkout-summary .checkout-item-mini { grid-template-columns: 46px 1fr; gap: 8px; }
.checkout-summary .checkout-item-mini img { width: 46px; height: 46px; }
.checkout-coupon-box { margin: 0 0 10px; padding: 11px; }
.checkout-coupon-box .coupon-form label { margin-bottom: 6px; font-size: 11px; }
.checkout-coupon-box .coupon-entry input { height: 38px; font-size: 11px; }
.checkout-coupon-box .coupon-entry .btn { min-height: 38px; font-size: 10px; }
.checkout-summary .sum-row { padding: 7px 0; font-size: 12px; }
.checkout-summary .sum-row.total { margin-top: 5px; padding-top: 12px; }
.checkout-summary .secure-note { margin-top: 10px; padding: 10px; }

.pix-auto-status {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e1e2e5;
  border-radius: 12px;
  background: #fafafa;
  text-align: left;
}
.pix-auto-status strong,
.pix-auto-status span { display: block; }
.pix-auto-status strong { margin-bottom: 3px; font-size: 12px; }
.pix-auto-status span { color: #74777d; font-size: 10px; }
.pix-auto-status .pix-approved { color: #16703a; font-size: 14px; }
.pix-progress {
  width: 100%;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e6e8;
}
.pix-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #e2b410;
  transition: width .25s linear;
}
.payment-modal-close:disabled { opacity: .35; cursor: not-allowed; }

@media (min-width: 851px) {
  .checkout-summary { position: sticky; top: 90px; }
}
