/* Bena Pets — Ecuador */

.bpec-tax-note {
    display: inline-block;
    margin-left: 0.35em;
    font-size: 0.72em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.65;
}

.bpec-sale-price del {
    margin-right: 0.4em;
    opacity: 0.5;
}

.bpec-sale-price ins {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.bpec-sale-savings th,
.bpec-sale-savings td {
    color: #486b2f;
}

.bpec-total-savings td {
    padding: 0.85rem 1rem !important;
    border: 1px solid rgba(47, 107, 70, 0.25) !important;
    background: rgba(47, 107, 70, 0.07);
    color: #2f6b46;
}

.bpec-total-savings strong,
.bpec-total-savings small {
    display: block;
}

.bpec-total-savings strong {
    font-size: 0.9375rem;
    font-weight: 600;
}

.bpec-total-savings small {
    margin-top: 0.15rem;
    color: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.75;
}

#billing_identification,
#billing_phone,
#shipping_phone {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Mantiene el logotipo oficial de PayPhone legible sin desbordar el pago. */
.bena-checkout #payment li.payment_method_payphone > label img {
    width: min(15rem, 100%);
    height: auto;
    margin-left: auto !important;
}

@media (max-width: 30rem) {
    .bena-checkout #payment li.payment_method_payphone > label {
        flex-wrap: wrap;
    }

    .bena-checkout #payment li.payment_method_payphone > label img {
        flex: 0 1 15rem;
        margin: 0.35rem 0 0 !important;
    }
}

.bpec-whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bpec-whatsapp-float:hover,
.bpec-whatsapp-float:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.bpec-whatsapp-product {
    margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .bpec-whatsapp-float {
        transition: none;
    }
}

/* --------------------------------------------------- estado del pedido */

.bpec-timeline {
    margin: 0 0 2.5rem;
}

.bpec-timeline__title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin: 0 0 1.25rem;
}

.bpec-timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bpec-step {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 0 0 1.5rem 0;
}

.bpec-step::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 1.1rem;
    bottom: -0.4rem;
    width: 1px;
    background: currentColor;
    opacity: 0.15;
}

.bpec-step:last-child::before {
    display: none;
}

.bpec-step__dot {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin-top: 0.32rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.3;
    background: transparent;
}

.bpec-step.is-done .bpec-step__dot {
    opacity: 1;
    background: currentColor;
}

.bpec-step__body {
    display: block;
}

.bpec-step:not(.is-done) .bpec-step__body {
    opacity: 0.5;
}

.bpec-step__detail,
.bpec-step__date {
    display: block;
    font-size: 0.875rem;
    opacity: 0.7;
}

.bpec-step__date {
    margin-top: 0.15rem;
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
}

.bpec-track {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.2rem;
}

/* ------------------------------------------------------------ reclamos */

.bpec-claims {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.bpec-claim {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: rgba(0, 0, 0, 0.035);
}

.bpec-claim__head {
    margin: 0 0 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: baseline;
}

.bpec-claim__state {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border: 1px solid currentColor;
    opacity: 0.75;
}

.bpec-claim__state--resuelto {
    color: #1f6b3f;
}

.bpec-claim__state--rechazado {
    color: #8a3a2a;
}

.bpec-claim__answer {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9375rem;
}

.bpec-claim-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.bpec-claim-form select,
.bpec-claim-form textarea {
    width: 100%;
    max-width: 34rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font: inherit;
    background: #fff;
}

.bpec-claim__closed {
    font-size: 0.9375rem;
    opacity: 0.7;
}

/* ------------------------------------------------------- celular con país */

/* El selector y el número son un solo campo a la vista: separarlos en dos
   cajas hace dudar de si el prefijo se escribe también dentro del número,
   que es de donde salen los +593593. */
.bpec-tel__campo {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* El selector se escribe con el peso del tema delante a propósito.
   `main.css` declara `.woocommerce form .form-row select { width:100%;
   padding:0.95rem }` y eso gana a cualquier regla de dos clases: sin igualar la
   especificidad, el selector se comía el ancho entero y, con el relleno de un
   campo ancho más la flecha nativa de macOS —otros ~22 px—, «+593» se cortaba
   en «+59». Medido en el Chrome de Rony, que es donde se vio. */
.woocommerce form .form-row.bpec-tel select.bpec-tel__pais {
    flex: 0 0 7.5rem;
    width: 7.5rem;
    min-width: 0;
    padding-left: 0.6rem;
    padding-right: 0.4rem;
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    /* La bandera es un emoji y hereda la tipografía del tema, que no la
       dibuja: esta pila se la deja al sistema, que sí. */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", inherit;
}

.woocommerce form .form-row.bpec-tel input.bpec-tel__numero {
    flex: 1 1 auto;
    min-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    /* Un poco de aire entre cifras: es lo que hace legible «99 123 4567». */
    letter-spacing: 0.04em;
}

@media (max-width: 26rem) {
    .woocommerce form .form-row.bpec-tel select.bpec-tel__pais {
        flex-basis: 6.25rem;
        width: 6.25rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.875rem;
    }
}
