.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
}

.checkout-product-thumbnail {
    display: flex;
    align-items: center;
}

.checkout-product-thumbnail img{
    width: 50px;
}

.elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-checkout-review-order-table .cart_item td.product-name{
    display: flex;
    max-width: 100%;
    align-items: center;
    width: 100%;
    gap: 20px;
    justify-content: space-between;
}

.elementor-widget-woocommerce-checkout-page .woocommerce .product-name .variation {
    display: flex;
}
.elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-checkout-review-order-table .cart_item td.product-total {
    vertical-align: middle;
}

.woocommerce-table--order-details, .woocommerce-thankyou-order-details{
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, .1) !important;
}

.woocommerce-table--order-details .order-product-thumbnail{
    display: flex;
    align-items: center;
    gap: 20px;
}

.woocommerce-table--order-details .woocommerce-table__product-name{
    display: flex;
    align-items: center;
    gap: 20px;
}


.elementor-widget-woocommerce-checkout-page .select2-selection, .woocommerce-address-fields .select2-selection {
    padding: 0 0 0 0 !important;
}

#location_picker_container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease-in;
    min-height: 300px; /* evita saltos de layout antes de mostrarse */
}

@media (min-width: 767px) {
    .woocommerce-table .order-product-thumbnail a {
        width: 400px !important;
    }


    .woocommerce-table--order-details .wc-item-meta {
        width: 300px;
    }
}


@media (max-width: 767px) {
    .elementor-widget-woocommerce-checkout-page .woocommerce .product-name .variation {
        display: none;
    }

    .elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-checkout-review-order-table .cart_item td.product-name {
        gap: 10px;
    }
}

#ship-to-different-address{
    display: none;
}

/* Hide WC login toggle/form before JS runs (prevents red border flash) */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-login {
    display: none !important;
}

/* Hide WC native "Crear una contraseña" section — we handle this in our modal */
.woocommerce-checkout .woocommerce-account-fields {
    display: none !important;
}

.woocommerce-checkout .readonly-email input.input-text[readonly] {
    background-color: #f3f3f3 !important;
    color: #555;
    cursor: not-allowed;
}

/* =========================================================================
 * Email step — intro text & continue button
 * ========================================================================= */
.latbit-email-intro {
    margin-bottom: 4px;
}

.latbit-email-subtitle {
    color: #4a5568;
    font-size: 0.93rem;
    margin: 0 0 4px;
}

#latbit-email-step {
    margin-top: 4px;
}

#latbit-continue-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background-color: #198847 !important;
    border-color: #198847 !important;
    color: #fff !important;
    border-radius: 25px !important;
    padding: 13px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

#latbit-continue-btn:hover {
    background-color: #146e3a !important;
    border-color: #146e3a !important;
}

.latbit-step-error {
    color: #e53e3e;
    font-size: 0.87rem;
    min-height: 1.2em;
    margin-top: 6px;
    display: none;
}

.latbit-step-error.is-visible {
    display: block;
}

/* =========================================================================
 * Email Verification Modal
 * ========================================================================= */
#latbit-email-modal-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#latbit-email-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#latbit-email-modal {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 32px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#latbit-modal-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
}

#latbit-modal-subtitle {
    color: #4a5568;
    font-size: 0.93rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Six digit inputs */
.latbit-code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.latbit-digit {
    width: 46px;
    height: 54px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #2d3748;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
}

.latbit-digit:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.latbit-digit:disabled {
    background: #f7fafc;
    color: #a0aec0;
}

/* Remove number spinners */
.latbit-digit::-webkit-outer-spin-button,
.latbit-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Error message */
.latbit-code-error {
    color: #e53e3e;
    font-size: 0.87rem;
    min-height: 1.2em;
    margin: 6px 0 10px;
    display: none;
}

.latbit-code-error.is-visible {
    display: block;
}

/* Resend line */
.latbit-resend-line {
    color: #718096;
    font-size: 0.87rem;
    margin: 10px 0 0;
}

.latbit-resend-line a {
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
}

/* Divider */
.latbit-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: #a0aec0;
    font-size: 0.82rem;
}

.latbit-modal-divider::before,
.latbit-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Google button row */
.latbit-modal-google {
    display: flex;
    justify-content: center;
}

/* =========================================================================
 * Password step
 * ========================================================================= */
#latbit-password-step {
    text-align: left;
}

.latbit-password-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.latbit-password-field {
    position: relative;
}

.latbit-password-field label {
    display: block;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 5px;
    font-weight: 500;
}

.latbit-pwd-input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 12px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.latbit-pwd-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Eye toggle button — aligned to the input bottom edge */
.latbit-toggle-pwd {
    position: absolute;
    right: 12px;
    bottom: 0;
    height: 46px;
    display: flex;
    align-items: center;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 4px;
    color: #a0aec0;
    line-height: 1;
}

.latbit-toggle-pwd:hover {
    color: #4a5568;
}

.latbit-toggle-pwd svg {
    width: 20px;
    height: 20px;
    display: block;
}

.latbit-toggle-pwd.is-visible-pwd {
    color: #3b82f6;
}

.latbit-pwd-submit {
    display: block;
    width: 100%;
    margin-top: 18px;
    text-align: center;
    background-color: #198847 !important;
    border-color: #198847 !important;
    color: #fff !important;
    border-radius: 25px !important;
    padding: 13px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.latbit-pwd-submit:hover {
    background-color: #146e3a !important;
    border-color: #146e3a !important;
}

/* Forgot password link */
.latbit-forgot-line {
    margin-top: 12px;
    font-size: 0.85rem;
    text-align: center;
}

.latbit-forgot-line a {
    color: #718096;
    text-decoration: underline;
    cursor: pointer;
}

.latbit-forgot-line a:hover {
    color: #4a5568;
}

/* Page-level OR + Google button (below Continuar button) */
#latbit-page-google-wrap {
    margin-top: 14px;
}

/* "Continuar como invitado" button — same style as #latbit-continue-btn */
#latbit-page-guest-wrap {
    margin-top: 14px;
}

#latbit-guest-checkout {
    display: block;
    width: 100%;
    margin-top: 0;
    background-color: #198847 !important;
    border-color: #198847 !important;
    color: #fff !important;
    border-radius: 25px !important;
    padding: 13px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

#latbit-guest-checkout:hover {
    background-color: #146e3a !important;
    border-color: #146e3a !important;
}

.latbit-page-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a0aec0;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.latbit-page-or-divider::before,
.latbit-page-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

#latbit-page-google-wrap .latbit-modal-google {
    justify-content: center;
}

/* =========================================================================
 * Responsive tweaks for modal
 * ========================================================================= */
@media (max-width: 480px) {
    #latbit-email-modal {
        padding: 28px 18px 24px;
    }

    .latbit-digit {
        width: 38px;
        height: 46px;
        font-size: 1.25rem;
        gap: 6px;
    }

    .latbit-code-inputs {
        gap: 6px;
    }
}