/* Version 2.4.1 Nombre + telefono */

/* ==========================================================================
   1. ESTILOS DEL POPUP MODAL (RECOGIDA / DOMICILIO)
   ========================================================================== */

/* Estilos base del elemento dialog nativo */
.wad-dialog {
    border: none;
    border-radius: 10px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
	background: #fff; 
	text-align: center
}

/* El fondo oscuro tras el popup se controla ahora con el pseudo-elemento ::backdrop */
.wad-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px); /* Opcional: difumina ligeramente el fondo */
}

/* Posicionamiento de la aspa estándar */
.wad-form-close {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
}

.wad-dialog-close-btn {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.wad-dialog-close-btn img {
    width: 14px;
    height: 14px;
    display: block;
}

.wad-btn-group { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.wad-btn { padding: 12px 24px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 16px; }
.wad-btn-recogida { background: #ff5722; color: #fff; }
.wad-btn-domicilio { background: #eceff1; color: #37474f; }

/* ==========================================================================
   2. SECCIÓN AUTOCOMPLETE DE GOOGLE Y MENSAJES
   ========================================================================== */
#wad-autofill-section { display: none; margin-top: 25px; border-top: 1px solid #eee; padding-top: 20px; }
.wad-input { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
#wad-msg { margin-top: 15px; font-weight: bold; font-size: 14px; display: none; }

/* ==========================================================================
   3. BOTÓN CONTINUAR (PISO / PUERTA)
   ========================================================================== */
.wad-btn-continuar-full {
    width: 100%; padding: 14px; background-color: #cccccc; color: #ffffff;
    border: none; border-radius: 6px; font-weight: bold; font-size: 16px;
    cursor: not-allowed; margin-top: 20px; transition: background-color 0.2s, cursor 0.2s; box-sizing: border-box;
}

/* Estado activo e interacciones del botón Continuar */
.wad-btn-continuar-full:not([disabled]) { background-color: #ff5722; cursor: pointer; }
.wad-btn-continuar-full:not([disabled]):hover { background-color: #e64a19; }

/* ==========================================================================
   DISEÑO DE LA PASTILLA DE UBICACIÓN
   ========================================================================== */
.wad-pastilla-wrapper {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 240px; /* Limita el ancho total del componente */
    box-sizing: border-box;
}

.wad-pastilla-wrapper:hover {
    border-color: #ff5722;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* Icono delantero (Pin de localización) */
.wad-pastilla-icon-front {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Texto truncado a longitud fija (aprox 20 caracteres con puntos suspensivos) */
.wad-pastilla-text {
    /*font-size: 13px;
    font-weight: 600;
    color: #495057;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Controla la extensión visible del texto */
    font-family: sans-serif;
}

/* Icono trasero (Flecha hacia abajo) */
.wad-pastilla-icon-back {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-left: 8px;
    flex-shrink: 0;
}
/*campos direccion en mi cuenta*/
.woocommerce-address-fields input[readonly],
.woocommerce-address-fields select[readonly],
.woocommerce-address-fields textarea[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Bloque C: conflicto de dirección (oculto por defecto, lo muestra el JS) */
#wad-bloque-conflicto { display: none; }
#wad-bloque-conflicto .wad-btn-group { flex-direction: column; }
#wad-bloque-conflicto small { display: block; font-weight: normal; margin-top: 4px; font-size: 13px; }
#wad-msg-conflicto { margin-top: 15px; font-weight: bold; font-size: 14px; display: none; }


/* Checkout: ocultar campos envio en checkout*/
.wc-block-checkout__shipping-method 
/*.wc-block-checkout__pickup-options,*/
/*.wc-block-checkout__shipping-option*/
{
    display: none;
	pointer-events: none;
}

#shipping-fields,
#billing-fields,
.wc-block-components-local-pickup-rates-control .wc-block-components-radio-control {
    display: none;
}

/*Exterior*/ 
.mi_wc-block-components-checkout-step {
    background: none;
    border: none;
    margin: 0 0 24px;
    padding: 0;
    position: relative;
	font-family: 'Lato', sans-serif;
}
/*header*/ 
.mi_wc-block-components-checkout-step__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 22px;
}
/*cajita*/ 
.mi_wc-block-components-text-input {
    background-color: #fff;
    border: 1px solid color-mix(in srgb,currentColor 80%,transparent);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    height: 50px;
    line-height: 25px;
    margin: 0;
    min-height: 0;
    padding: 12px 12px;
    width: 100%;
}




.woocommerce-cart .wc-block-cart-items, 
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block, 
.wp-block-woocommerce-checkout-order-summary-block,
#contact-fields, 
#payment-method,
#shipping-option,
#pickup-options,
.mi_wc-block-components-checkout-step{
		border-radius: 10px;
		box-shadow: 0px 10px 20px #afafaf;
		margin-bottom :5px;
		padding: 15px;
}
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block, .wp-block-woocommerce-checkout-order-summary-block  {
	background-color: whitesmoke;
}
.woocommerce-checkout .wc-block-components-totals-shipping, .wc-block-checkout__login-prompt {
	background-color: yellow;
}
.components-base-control__label{
	font-size: 14px !important;
			margin-left :10px;
}
.woocommerce-cart .orddd-lite-checkout-fields{
	border-radius: 10px;
		box-shadow: 0px 10px 20px #afafaf;
			padding: 15px;
			margin-top :15px;
			margin-bottom :15px;
}
.wc-block-components-address-form__country { 
	display:none;
}