/**
 * storefront-cart-runtime.css
 * Gerenciamento responsivo do carrinho e checkout com hierarquia visual refinada.
 */

.store-header-action--cart { position: relative; }
.store-header-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--loja-secondary, #0d1b3d);
  border-radius: 999px;
  background: var(--loja-primary, #22c55e);
  color: var(--loja-on-primary, #ffffff);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
  pointer-events: none;
}
.store-header-cart-count[hidden] { display: none !important; }

/* ==========================================================================
   ESTRATÉGIA RESPONSIVA DE CARRINHO (DESKTOP × TABLET × MOBILE)
   ========================================================================== */

/* Regra Padrão Global */
.store-cart-bar {
  display: none !important;
}

/* 1. Mobile & Telas Menores (<= 860px) */
@media (max-width: 860px) {
  .store-content {
    padding-bottom: max(104px, calc(80px + env(safe-area-inset-bottom))) !important;
  }
  .detail-content {
    padding-bottom: max(120px, calc(96px + env(safe-area-inset-bottom, 0px))) !important;
  }
  .detail-content form[data-item-options] {
    padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom, 0px)));
  }
  .store-footer {
    padding-bottom: max(96px, calc(76px + env(safe-area-inset-bottom))) !important;
  }
  .store-cart-bar[data-visible="true"],
  .store-cart-bar--detail,
  .store-cart-bar--checkout {
    display: block !important;
    position: fixed;
    bottom: max(14px, calc(10px + env(safe-area-inset-bottom, 0px)));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    z-index: 25;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .cart-side-col .cart-cta-button {
    display: none; /* No mobile usa a barra fixa no rodapé */
  }
}

/* 2. Desktop / Notebook (>= 861px) */
@media (min-width: 861px) {
  .store-content {
    padding-bottom: 40px !important;
  }
  .detail-content {
    padding-bottom: 0 !important;
  }
  .store-footer {
    padding-bottom: 24px !important;
  }
  .store-cart-bar {
    display: none !important;
  }
  .store-cart-bar--detail {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 18px !important;
    z-index: auto !important;
    display: block !important;
  }
}

.store-cart-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--brand-primary, var(--loja-primary, #22c55e));
  color: var(--brand-primary-text, var(--loja-on-primary, #ffffff));
  border: 1.5px solid var(--brand-primary-border, transparent);
  padding: 14px 20px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.store-cart-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  stroke: currentColor;
}
.store-cart-button:hover {
  background: var(--brand-primary-hover, var(--store-primary-hover, var(--loja-primary)));
  color: var(--brand-primary-text, var(--loja-on-primary, #ffffff));
  border-color: var(--brand-primary-border, transparent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.store-cart-button:active {
  background: var(--brand-primary-active, var(--store-primary-active, var(--loja-primary)));
  transform: translateY(0);
}
.store-cart-button:focus-visible {
  outline: 2px solid var(--brand-primary-border, currentColor);
  outline-offset: 2px;
}
.store-cart-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
.store-cart-button {
  min-height: 48px;
  box-sizing: border-box;
}
.store-cart-count {
  background: rgba(0, 0, 0, 0.16);
  color: var(--loja-on-primary, #ffffff);
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}
.store-cart-button [data-cart-total] {
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   LAYOUT E POLIMENTO VISUAL DO CARRINHO (ESTRUTURA ATÉ 1240PX)
   ========================================================================== */

.store-shell--cart {
  max-width: 1240px;
  margin: 0 auto;
}

.cart-layout {
  padding: 24px 20px 48px;
}

@media (min-width: 861px) {
  .cart-layout {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 36px;
    align-items: start;
    padding: 32px 32px 48px;
  }
}

/* Estado Vazio */
.cart-empty-runtime {
  grid-column: 1 / -1;
  padding: 64px 24px;
  border: 1px dashed var(--sd-slate-300);
  border-radius: 14px;
  background: #f8fafc;
  text-align: center;
}
.cart-empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--loja-primary) 12%, white);
  color: var(--loja-primary);
  font-size: 24px;
}
.cart-empty-runtime h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--loja-secondary);
}
.cart-empty-runtime p {
  margin: 6px auto 18px;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
}

/* Coluna Principal (Cards de Etapas) */
.cart-main-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.cart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.025);
}

.cart-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

/* Número do Passo Atenuado */
.cart-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--loja-primary) 12%, white);
  color: var(--loja-primary);
  border: 1px solid color-mix(in srgb, var(--loja-primary) 28%, transparent);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cart-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--loja-secondary);
  margin: 0;
  line-height: 1.3;
}

.cart-card__desc {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  margin: 3px 0 0;
  line-height: 1.4;
}

.cart-card__head-text {
  min-width: 0;
}

/* Link + Adicionar mais itens no Cabeçalho (Desktop) */
.cart-add-more-link--head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--loja-primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--loja-primary) 8%, white);
  border: 1px solid color-mix(in srgb, var(--loja-primary) 24%, transparent);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.cart-add-more-link--head:hover {
  background: color-mix(in srgb, var(--loja-primary) 15%, white);
  border-color: var(--loja-primary);
  transform: translateY(-1px);
}

/* Botão + Adicionar mais itens no Rodapé do Card 1 (Mobile / Tablet) */
.cart-card__footer {
  display: none;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}
.cart-add-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--loja-primary);
  text-decoration: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--loja-primary) 8%, white);
  border: 1px solid color-mix(in srgb, var(--loja-primary) 28%, transparent);
  transition: all 0.15s ease;
}
.cart-add-more-btn:hover {
  background: color-mix(in srgb, var(--loja-primary) 14%, white);
}

@media (max-width: 680px) {
  .cart-add-more-link--head {
    display: none;
  }
  .cart-card__footer {
    display: block;
  }
}

/* Itens do Carrinho */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item--runtime {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.cart-item--runtime:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cart-item__photo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.cart-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cart-item__body {
  min-width: 0;
}

.cart-item__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--loja-secondary);
  line-height: 1.35;
}

.cart-item__badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  letter-spacing: 0.3px;
}

.cart-item__options {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 5px;
}

.cart-item__option-tag {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  height: 30px;
}

.cart-quantity__btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--loja-secondary);
  transition: background 0.15s ease;
}
.cart-quantity__btn:hover {
  background: #e2e8f0;
}

.cart-quantity__value {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--loja-secondary);
}

.cart-remove {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease;
}
.cart-remove:hover {
  color: #ef4444;
}

.cart-item__price-box {
  text-align: right;
  min-width: 85px;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--loja-price, var(--loja-secondary));
  display: block;
}

.cart-item__unit-price {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

@media (max-width: 520px) {
  .cart-item--runtime {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .cart-item__photo {
    width: 56px;
    height: 56px;
  }
  .cart-item__price-box {
    grid-column: 2;
    text-align: left;
    margin-top: 4px;
  }
  .cart-item__unit-price {
    text-align: left;
  }
}

/* Formulário de Atendimento e Dados */
.cart-form-group {
  margin-top: 18px;
}

.cart-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
@media (max-width: 560px) {
  .cart-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.cart-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--loja-secondary);
  line-height: 1.35;
}

.cart-field-label > span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  min-height: 18px; /* Força alinhamento vertical preciso entre campos pares */
}

.cart-field-optional {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
}

.cart-input,
.cart-select,
.cart-textarea {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}
.cart-textarea {
  height: auto;
  min-height: 84px;
  line-height: 1.5;
  resize: vertical;
}
.cart-input:focus,
.cart-select:focus,
.cart-textarea:focus {
  border-color: var(--loja-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--loja-primary) 15%, transparent);
}

.request-intent__help {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.45;
}

/* Coluna Lateral de Resumo */
.cart-side-col {
  position: sticky;
  top: 96px;
  z-index: 10;
}

.cart-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.cart-summary-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--loja-secondary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
}
.cart-summary-row strong {
  font-weight: 600;
  color: var(--loja-secondary);
}

.cart-summary-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

.cart-summary-row--total {
  font-size: 15px;
  font-weight: 700;
  color: var(--loja-secondary);
  padding-top: 8px;
}
.cart-summary-row--total strong {
  color: var(--loja-price, var(--loja-primary));
  font-size: 18px;
  font-weight: 700;
}

.cart-summary-note {
  margin: 18px 0 0;
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.cart-cta-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  margin-top: 18px;
  background: var(--brand-primary, var(--loja-primary, #22c55e));
  color: var(--brand-primary-text, var(--loja-on-primary, #ffffff));
  border: 1.5px solid var(--brand-primary-border, transparent);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-primary, var(--loja-primary)) 30%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.cart-cta-button:hover {
  background: var(--brand-primary-hover, var(--store-primary-hover, var(--loja-primary)));
  color: var(--brand-primary-text, var(--loja-on-primary, #ffffff));
  border-color: var(--brand-primary-border, transparent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary, var(--loja-primary)) 38%, transparent);
}
.cart-cta-button:active {
  background: var(--brand-primary-active, var(--store-primary-active, var(--loja-primary)));
  transform: translateY(0);
}
.cart-cta-button:focus-visible {
  outline: 2px solid var(--brand-primary-border, currentColor);
  outline-offset: 2px;
}
.cart-cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

[data-cart-when-filled][hidden] {
  display: none !important;
}

/* ==========================================================================
   FEEDBACK E PRÓXIMOS PASSOS PÓS-ADIÇÃO NA PÁGINA DE DETALHE
   ========================================================================== */

.detail-added-card {
  margin-top: 20px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1.5px solid color-mix(in srgb, var(--loja-primary) 35%, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--loja-primary) 12%, transparent);
  animation: sdFadeSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sdFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-added-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-added-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--loja-primary);
  color: var(--loja-on-primary, #ffffff);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}

.detail-added-card__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--loja-secondary);
  line-height: 1.3;
}

.detail-added-card__desc {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  margin: 2px 0 0;
}

.detail-added-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .detail-added-card__actions {
    grid-template-columns: 1fr;
  }
}

.detail-added-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.detail-added-btn--cart {
  background: var(--loja-primary);
  color: var(--loja-on-primary, #ffffff);
  border: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--loja-primary) 30%, transparent);
}

.detail-added-btn--cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--loja-primary) 40%, transparent);
}

.detail-added-btn--continue {
  background: #ffffff;
  color: var(--loja-secondary);
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.detail-added-btn--continue:hover {
  border-color: var(--loja-primary);
  color: var(--loja-primary);
  background: color-mix(in srgb, var(--loja-primary) 6%, white);
}

/* ==========================================================================
   SINCRONIZAÇÃO E INTEGRIDADE DO CARRINHO (NOTIFICAÇÕES & ESTADOS)
   ========================================================================== */

.cart-notices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}
.cart-notices:empty {
  display: none;
}

.cart-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  box-sizing: border-box;
}

.cart-notice__icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.3;
}

.cart-notice__text {
  flex: 1;
  min-width: 0;
}

/* 1. Item Removido / Excluído */
.cart-notice--removed {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* 2. Item Pausado / Indisponível */
.cart-notice--paused {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* 3. Preço Atualizado */
.cart-notice--price {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Estado de Item Indisponível no Carrinho */
.cart-item--unavailable {
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.cart-item--unavailable .cart-item__photo {
  opacity: 0.65;
  filter: grayscale(0.5);
}

.cart-item--unavailable .cart-quantity {
  opacity: 0.5;
  pointer-events: none;
}

.cart-item__status-tag--paused {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 4px;
  white-space: nowrap;
}

/* Desabilitação do CTA de checkout com itens indisponíveis */
button[form="checkout"]:disabled,
.cart-cta-button:disabled,
.store-cart-button:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.5);
  box-shadow: none !important;
  transform: none !important;
}

/* ==========================================================================
   TELA PRÉ-WHATSAPP (ETAPA DE TRANSIÇÃO / ENVIO PENDENTE)
   ========================================================================== */
.store-status--pending {
  color: #d97706 !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.store-status--pending::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.pre-whatsapp-wrapper {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
  box-sizing: border-box;
}

.pre-whatsapp-badge-row {
  margin-bottom: 14px;
}

.pre-whatsapp-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.pre-whatsapp-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: #f0fdf4;
  border: 2px solid #86efac;
  color: #16a34a;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
}

.pre-whatsapp-icon-circle--neutral {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
  box-shadow: none;
}

.pre-whatsapp-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--sd-slate-900, #0f172a);
  line-height: 1.3;
}

.pre-whatsapp-desc {
  max-width: 420px;
  margin: 0 auto 18px;
  color: var(--sd-slate-600, #475569);
  font-size: 13.5px;
  line-height: 1.5;
}

.pre-whatsapp-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.pre-whatsapp-notice-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.pre-whatsapp-summary {
  background: #ffffff;
  border: 1px solid var(--sd-slate-200, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.pre-whatsapp-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sd-slate-100, #f1f5f9);
  margin-bottom: 12px;
}

.pre-whatsapp-code-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pre-whatsapp-code-label {
  font-size: 13px;
  color: var(--sd-slate-500, #64748b);
  font-weight: 500;
}

.pre-whatsapp-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.pre-whatsapp-code-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--sd-slate-800, #1e293b);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pre-whatsapp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.pre-whatsapp-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
  display: inline-block;
}

.pre-whatsapp-copy-btn {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
}
.pre-whatsapp-copy-btn:hover {
  background: #eff6ff;
}

.pre-whatsapp-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.pre-whatsapp-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--sd-slate-700, #334155);
}

.pre-whatsapp-item-main {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pre-whatsapp-item-qty {
  font-weight: 700;
  color: var(--sd-slate-900, #0f172a);
  flex-shrink: 0;
}

.pre-whatsapp-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pre-whatsapp-item-price {
  font-weight: 600;
  color: var(--sd-slate-800, #1e293b);
  flex-shrink: 0;
}

.pre-whatsapp-item-options {
  font-size: 11.5px;
  color: var(--sd-slate-500, #64748b);
  padding-left: 20px;
  margin-top: 2px;
  font-style: italic;
}

.pre-whatsapp-detail-pill {
  font-size: 12px;
  color: var(--sd-slate-600, #475569);
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 8px;
  border-left: 3px solid #cbd5e1;
}

.pre-whatsapp-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--sd-slate-100, #f1f5f9);
  font-size: 14px;
}

.pre-whatsapp-total-label {
  font-weight: 600;
  color: var(--sd-slate-700, #334155);
}

.pre-whatsapp-total-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-price, #0d1b3d);
}

.store-cart-button--whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
  border: 1.5px solid #1fa851 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  min-height: 48px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.store-cart-button--whatsapp:hover {
  background: #20ba59 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45) !important;
}

.store-cart-button--whatsapp:active {
  transform: translateY(0);
}

.pos-clique-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  text-align: left;
  animation: fadeInPreWa 0.25s ease-out;
}

@keyframes fadeInPreWa {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pos-clique-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 6px;
}

.pos-clique-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  display: inline-block;
}

.pos-clique-text {
  font-size: 13px;
  color: #14532d;
  line-height: 1.45;
  margin: 0 0 12px;
}

.btn-retry-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-retry-whatsapp:hover {
  background: #dcfce7;
}

.pre-whatsapp-footer-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-back-vitrine {
  color: var(--sd-slate-500, #64748b);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}
.btn-back-vitrine:hover {
  color: var(--sd-slate-800, #1e293b);
  text-decoration: underline;
}


