/* Ajustes da página inicial, com tamanhos próprios para celular e desktop. */
.store-home .legal-consent { display: flex; align-items: center; gap: 6px; cursor: default; }
.store-home .legal-consent-icon { display: block; flex: 0 0 24px; width: 24px; height: 24px; object-fit: contain; }
.store-home .legal-consent > span { min-width: 0; }
.store-home .paynote .pn {
  font-size: clamp(9px, 2.55vw, 12px);
  white-space: normal;
  overflow-wrap: anywhere;
}

.store-home .service-description {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field-bg);
  color: #0E7A3C; /* Mesmo verde dos preços dos pacotes brasileiros. */
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .store-home .app {
    width: calc(100% - 48px);
    max-width: 1120px;
    container-type: inline-size;
  }

  /* A altura configurada considera a largura original de 460px da loja.
     cqw acompanha a largura do painel, inclusive em monitores maiores. */
  .store-home .banner {
    min-height: 220px !important;
    min-height: calc(100cqw * var(--home-banner-height, 132) / 460) !important;
  }
  .store-home .banner.foot { margin-top: 24px; }
  .store-home .banner .wabtn {
    top: 20px;
    right: 24px;
    height: 46px;
    gap: 10px;
    padding: 0 9px 0 16px;
  }
  .store-home .banner .wabtn .txt { font-size: 14px; }
  .store-home .banner .wabtn .ic { width: 32px; height: 32px; }
  .store-home .banner .mascot-ph { font-size: 18px; }

  .store-home .step { gap: 12px; font-size: 18px; line-height: 1.4; }
  .store-home .step i { width: 28px; height: 28px; font-size: 15px; }
  .store-home .app > .step { margin: 24px 48px 12px; }
  .store-home .netbar {
    margin: 12px 24px;
    padding: 18px 16px;
    gap: 12px 0;
    border-radius: 24px;
  }
  .store-home .nettab { gap: 7px; padding: 10px 4px 6px; border-radius: 14px; }
  .store-home .nettab .chip { width: 48px; height: 48px; border-radius: 14px; }
  .store-home .nettab .lbl,
  .store-home .nettab .lbl.sm,
  .store-home .nettab .lbl.xs {
    font-size: 13px;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }
  .store-home .nettab .bar { width: 24px; height: 3px; }

  .store-home .statuscard { margin: 16px 24px 0; padding: 14px 18px; gap: 12px; }
  .store-home .statuscard .sic { width: 32px; height: 32px; flex-basis: 32px; }
  .store-home .statuscard .sic .ic { width: 20px; height: 20px; }
  .store-home .statusline { font-size: 14px; white-space: normal; }
  .store-home .frases { margin: 14px 24px 0; }
  .store-home .frases .linha { gap: 12px; }
  .store-home .frases .chip { min-height: 44px; padding: 10px 14px; font-size: 14px; gap: 9px; }
  .store-home .frases .baixo { margin-top: 10px; font-size: 13px; }

  .store-home #content > .card { margin: 20px 24px; border-radius: 24px; }
  .store-home #content > .card > .step { margin: 0 24px 14px; padding-top: 24px; }
  .store-home .subtabs { margin: 0 24px; gap: 8px; padding-bottom: 16px; }
  .store-home .subtab { min-height: 42px; padding: 10px 15px; gap: 7px; font-size: 13px; }
  .store-home .subtab .ic { width: 18px; height: 18px; }
  .store-home .svcform { padding: 0 24px 24px; }
  .store-home .svcform .step { margin: 0 0 12px; padding-top: 24px; }
  .store-home .field { padding: 18px; border-radius: 18px; }
  .store-home .lbl { font-size: 14px; margin-bottom: 8px; }
  .store-home .lbl:not(:first-child) { margin-top: 16px; }
  .store-home .inp { min-height: 48px; padding: 13px 15px; font-size: 15px; }
  .store-home .hint { font-size: 13px; line-height: 1.5; }
  .store-home .legal-consent { font-size: 13px; line-height: 1.6; margin: 18px 0 16px; }
  .store-home .btn { min-height: 48px; font-size: 15px; padding: 15px 20px; }
  .store-home .paynote { gap: 6px; margin: 14px 0 0; }
  .store-home .paynote .pn { font-size: 13px; white-space: normal; }
  .store-home .ordersum { font-size: 14px; padding: 12px 14px; margin-top: 16px; }

  .store-home .packs { gap: 10px; }
  .store-home .packs[data-layout="cards"] .pack {
    min-height: 52px;
    padding: 12px;
    gap: 8px;
    border-radius: 14px;
  }
  .store-home .packs[data-layout="cards"] .pack .mark {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 13px;
  }
  .store-home .packs[data-layout="cards"] .pack .q { font-size: 14px; letter-spacing: -.2px; }
  .store-home .packs[data-layout="cards"] .pack .nat { font-size: 11px; }
  .store-home .packs[data-layout="cards"] .pack .cap { font-size: 12px; }
  .store-home .packs[data-layout="cards"] .pack .p { font-size: 15px; letter-spacing: -.2px; }
  .store-home .packs-more { min-height: 44px; padding: 12px 16px; font-size: 14px; }
  .store-home .kinds { gap: 10px; margin-top: 20px; }
  .store-home .kind { min-height: 64px; gap: 5px; padding: 14px; }
  .store-home .kind .kt { font-size: 15px; }
  .store-home .kind .kh { font-size: 13px; }
  .store-home .service-video { width: 100%; max-width: 720px; margin: 24px auto 0; border-radius: 18px; }
  .store-home .service-description { margin-top: 24px; padding: 18px 20px; border-radius: 18px; font-size: 13px; }

  .store-home .paybar { width: calc(100% - 48px); max-width: 1120px; padding: 14px 24px; gap: 24px; }
  .store-home .paybar:not([hidden]) { display: flex; align-items: center; }
  .store-home .paybar .sum { flex: 1; font-size: 14px; min-width: 0; margin-bottom: 0; }
  .store-home .paybar .btn { width: auto; min-width: 220px; }

  .store-home .buysheet {
    top: 50%;
    bottom: auto;
    width: calc(100% - 64px);
    max-width: 700px;
    height: auto;
    max-height: min(780px, calc(100vh - 64px));
    max-height: min(780px, calc(100dvh - 64px));
    border-radius: 24px;
    transform: translate(-50%, calc(-50% + 24px));
    opacity: 0;
    transition: transform .34s cubic-bezier(.4,0,.2,1), opacity .3s;
  }
  .store-home .buysheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .store-home .buysheet::before { display: none; }
  .store-home .buyhead { padding: 20px 24px; gap: 16px; }
  .store-home .buyhead .iconbtn { width: 44px; height: 44px; }
  .store-home .buyhead .hstep { font-size: 12px; }
  .store-home .buyhead .htitle { font-size: 20px; margin-top: 4px; }
  .store-home .buysteps { padding: 16px 24px 4px; gap: 10px; }
  .store-home .buybody .card { margin: 16px 24px; padding: 20px; }
  .store-home .buybody .card:first-child { margin-top: 16px; }
  .store-home .buybody .kv { gap: 20px; font-size: 14px; }
  .store-home .buybody .qr { width: 210px; height: 210px; }
}

@media (min-width: 1024px) {
  /* Ordem visual acompanha a ordem original: esquerda → direita → próxima linha. */
  .store-home .packs[data-layout="cards"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-home .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .store-home .buysheet { transition: none; }
}
