
.cart-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.checkout-step {
  display: none;
  padding: 26px 24px;
  overflow-y: auto;
}

.checkout-step.active {
  display: block;
}

.checkout-step h2 {
  margin: 8px 0 26px;
  font-size: 2rem;
}

.checkout-step label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 800;
  color: var(--choc);
}

.checkout-step input,
.checkout-step select {
  width: 100%;
  padding: 14px 15px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: #fff;
  color: var(--text);

  font: inherit;
}

.checkout-step input:focus,
.checkout-step select:focus {
  outline: 2px solid var(--pink);
  border-color: transparent;
}

.back-cart-btn {
  border: 0;

  background: transparent;

  color: var(--pink-dark);

  padding: 0;

  margin-bottom: 26px;

  font-weight: 800;

  cursor: pointer;
}

.checkout-total {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin: 30px 0 18px;

  padding-top: 20px;

  border-top: 1px solid var(--line);

  font-size: 1.1rem;
}

.checkout-total strong {
  color: var(--choc);

  font-size: 1.35rem;
}

.full-button {
  width: 100%;
}

.whatsapp {
  background: #25D366;
  color: #fff;
}

.cart-items {
  flex: 1;
}

.form-error {
  min-height: 20px;

  margin-top: 12px;

  text-align: center;

  color: #b42318;

  font-size: .9rem;
}


.clear-cart-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 18px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: transparent;
  color: var(--muted);

  font-weight: 750;
  cursor: pointer;
}

.clear-cart-btn:hover {
  background: #fff4f4;
  border-color: #d7a3a3;
  color: #9f2929;
}


/* =========================================================
   ENTREGA / RETIRADA
   ========================================================= */

.delivery-fields {
  display: none;
  margin-top: 6px;
}

.delivery-fields.active {
  display: block;
}

.delivery-fields label {
  display: block;
  margin-top: 16px;
}

.delivery-fields input {
  width: 100%;
}


/* CORRECAO EXIBICAO CAMPOS DE ENTREGA */
#deliveryFields {
  display: none;
}

#deliveryFields.active {
  display: block !important;
}

#deliveryFields input {
  display: block;
  width: 100%;
}

/* ==========================================================
   QUANTIDADE DIGITÁVEL
   ========================================================== */

.qty .qty-input {
    width: 64px;
    min-width: 64px;
    height: 38px;
    padding: 4px 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

/* Mantém as setas nativas do input number */
.qty .qty-input[type="number"] {
    appearance: auto;
    -moz-appearance: auto;
}

.qty .qty-input:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}



/* ==========================================================
   ANELEH - COMPRA POR CENTO
   ========================================================== */

.cento-pedido-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cento-pedido-box summary {
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}

.cento-pedido-conteudo {
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 247, 245, 0.85);
}

.cento-preco {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cento-preco span {
    font-size: 0.9rem;
}

.cento-preco strong {
    font-size: 1.15rem;
}

.cento-info {
    margin-top: 5px;
    font-size: 0.82rem;
    opacity: 0.72;
}

.cento-controle {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cento-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.cento-resumo {
    margin-top: 9px;
    font-size: 0.86rem;
    font-weight: 600;
}

.cento-add {
    width: 100%;
    margin-top: 13px;
}

.cart-tipo-cento {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
}



/* ==========================================================
   ANELEH - DISPONIBILIDADE E ENCOMENDAS
   ========================================================== */

.cento-encomenda-aviso {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.7);
}

.cento-encomenda-aviso strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.86rem;
}

.cento-encomenda-aviso span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    opacity: 0.78;
}


.cento-data-box {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cento-data-box label {
    font-size: 0.85rem;
    font-weight: 700;
}

.cento-data-box input[type="date"] {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    box-sizing: border-box;
}

.cento-data-box input[type="date"]:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.cento-data-box small {
    font-size: 0.75rem;
    line-height: 1.35;
    opacity: 0.68;
}


.cart-data-desejada {
    margin-top: 7px;
    font-size: 0.8rem;
    line-height: 1.4;
}


@media (max-width: 768px) {

    .aviso-disponibilidade {
        margin-left: 16px;
        margin-right: 16px;
    }

}



/* ==========================================================
   ANELEH - REFINO CENTO V2
   ========================================================== */

/*
 * Impede que todos os cards da mesma linha cresçam
 * quando somente um "Comprar por cento" é aberto.
 */
.card {
    align-self: start;
}


/* Disponibilidade junto ao subtítulo */




/* Data e horário */

.cento-data-box input[type="date"],
.cento-data-box input[type="time"] {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    box-sizing: border-box;
}

.cento-data-box input[type="date"]:focus,
.cento-data-box input[type="time"]:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}


/*
 * Mesmo desenho do pedido avulso:
 *
 * [-] [1] [+]   [Adicionar]
 */

.cento-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.cento-actions .qty {
    flex-shrink: 0;
}

.cento-actions .cento-add {
    flex: 1;
    width: auto;
    margin-top: 0;
    white-space: nowrap;
}

.cento-resumo {
    margin-top: 10px;
}


@media (max-width: 480px) {

    .cento-actions {
        gap: 10px;
    }

    .cento-actions .cento-add {
        padding-left: 14px;
        padding-right: 14px;
    }

}



/* ANELEH - REFINO CENTO V3 */

/* ----------------------------------------------------------
   Disponibilidade
   ---------------------------------------------------------- */




/* ----------------------------------------------------------
   Horário
   ---------------------------------------------------------- */

.cento-data-box select.cento-hora-desejada {
    width: 100%;
    min-height: 42px;
    padding: 8px 36px 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    box-sizing: border-box;
    cursor: pointer;
}

.cento-data-box select.cento-hora-desejada:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}


/* ----------------------------------------------------------
   Ações do pedido por cento

   Usa o mesmo princípio do pedido avulso:
   [-] [1] [+]   [Adicionar]
   ---------------------------------------------------------- */

.cento-actions.card-actions {
    margin-top: 0;
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.cento-actions .qty {
    flex-shrink: 0;
}

.cento-actions .cento-add {
    flex: 1;
    width: auto;
    min-height: 42px;
    height: auto;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Remove o comportamento antigo que deixava o botão fino */

.cento-add {
    margin-top: 0;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {

    .cento-actions.card-actions {
        gap: 10px;
    }

    .cento-actions .cento-add {
        min-height: 42px;
        padding-left: 14px;
        padding-right: 14px;
    }

}



/* ==========================================================
   ANELEH - COTAÇÃO DE ENTREGA / UBER DIRECT
   ========================================================== */

.cep-address-info {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 247, 245, 0.85);
  font-size: .92rem;
  line-height: 1.45;
}

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

.delivery-calculate-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.delivery-quote-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .92rem;
  line-height: 1.45;
}

.delivery-quote-status.success {
  background: #eef9f0;
  border: 1px solid #acd8b5;
}

.delivery-quote-status.info {
  background: #fff8e8;
  border: 1px solid #ead49d;
}

.delivery-quote-status.error {
  background: #fff1f0;
  border: 1px solid #e2aaa6;
}


/* Fallback para CEP sem logradouro retornado pelo ViaCEP */
.manual-street-group[hidden] {
  display: none !important;
}

.manual-street-group {
  margin-top: 4px;
}
