/* ============================================
   Address Form & Cart — Responsive Fixes
   Mantido em usthemelibrary para organização.
   ============================================ */

/* Cart header: título + telefones na mesma linha */
h1.block-title {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-align-items: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}
h1.block-title span.h3 {
    display: -webkit-inline-flex !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 4px;
}
h1.block-title span.h3 a {
    display: inline !important;
    white-space: nowrap;
}
.cart-phone {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff !important;
    display: -webkit-inline-flex;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cart-phone a,
a .cart-phone {
    text-decoration: none !important;
}
.cart-phone--whatsapp {
    color: #25D366 !important;
}
.cart-phone-sep {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.5) !important;
    margin: 0 4px;
}
@media only screen and (max-width: 767px) {
    .cart-phone,
    .cart-phone-sep {
        display: none !important;
    }
}

/* Espaçamento do grupo de telefone + corrige sup sobreposto */
.phone-group-wrap {
    margin-top: 14px;
}
.phone-group-wrap label sup {
    vertical-align: middle;
    font-size: 90%;
    line-height: 0;
}
/* Phone group: DDD + número lado a lado */
.phone-group {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.phone-group #ddd_mobile,
.phone-group #ddd_home {
    -webkit-flex: 0 0 60px;
    flex: 0 0 60px;
    width: 60px !important;
    min-width: 0;
    box-sizing: border-box;
}
.phone-group #phone_mobile,
.phone-group #phone {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    box-sizing: border-box;
}

/* ─── Checkout Steps ─────────────────────────────────────── */
.checkout-steps {
    margin-bottom: 12px;
}

/* Mobile: label compacto */
.checkout-steps__mobile {
    background: rgba(22,35,43,0.15);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 14px;
    border-left: 4px solid var(--fox-purple, #16232b);
    border-radius: 2px;
}
.checkout-steps__mobile-count {
    font-weight: 400;
    opacity: 0.6;
    margin-left: 4px;
}

/* Desktop: lista — override ul#order_step defaults */
ul.checkout-steps__list {
    list-style: none !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: #f0ecff !important;
    border: none !important;
    border-radius: 4px !important;
    overflow: hidden;
    display: -webkit-flex !important;
    display: flex !important;
    float: none !important;
}
.checkout-steps__item {
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(22,35,43,0.55);
    position: relative;
    text-align: center;
    white-space: nowrap;
    float: none !important;
    width: auto !important;
    background: none !important;
}
/* divisor vertical entre steps */
.checkout-steps__item + .checkout-steps__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(22,35,43,0.25);
}
/* Estados */
.checkout-steps__item.is-done { color: #16a34a !important; }
.checkout-steps__item.is-done a {
    color: #16a34a !important;
    text-decoration: none !important;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 7px;
}
.checkout-steps__item.is-current {
    color: var(--fox-purple, #16232b) !important;
    background: rgba(22,35,43,0.12) !important;
}
.checkout-steps__item.is-todo { color: rgba(22,35,43,0.55) !important; }

/* Círculo com número */
.checkout-steps__num {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid currentColor;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    line-height: 1;
}
.checkout-steps__item.is-current .checkout-steps__num {
    background: var(--fox-purple, #16232b);
    border-color: var(--fox-purple, #16232b);
    color: #fff;
}
.checkout-steps__item.is-done .checkout-steps__num {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    font-size: 13px;
}

@media only screen and (max-width: 767px) {

    /* Botão "Buscar Endereço" — largura total em mobile */
    #buscarendereco {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-top: 8px;
    }

    /* Inputs fora de #center_column (ex: checkout opc, modal) */
    .fieldset .text input,
    .fieldset .required.password input,
    .fieldset .password input,
    .fieldset .textarea textarea,
    .fieldset p.select select {
        width: 100%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
}
