/**
 * Estilos estructurales del widget de ubicación. Colores/tipografía desde
 * Elementor; aquí solo la maquetación.
 */

.edl-title {
	font-weight: 600;
	margin-bottom: 12px;
}

.edl-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 16px;
	align-items: stretch;
}

/* La tarjeta (.edl-location) lleva el fondo/relleno; el panel es transparente por
   defecto para que panel + mapa se vean como UN solo componente. */
.edl-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	background: transparent;
	border-radius: 10px;
}

.edl-intro {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.4;
}

.edl-saved-wrap,
.edl-search-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.edl-saved-label {
	font-size: 0.9em;
	font-weight: 600;
}

.edl-saved,
.edl-search {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	border-radius: 8px;
	background: #fff;
}

.edl-search-wrap {
	flex-direction: row;
}

.edl-search {
	flex: 1 1 auto;
}

.edl-search-btn {
	flex: 0 0 auto;
	border: 0;
	border-radius: 8px;
	padding: 0 14px;
	cursor: pointer;
	background: rgba( 0, 0, 0, 0.08 );
}

.edl-btn-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	padding: 12px 16px;
	border-radius: 8px;
	font-weight: 600;
	line-height: 1.2;
}

.edl-status {
	font-size: 0.9em;
	min-height: 1.2em;
}

.edl-status.is-ok {
	font-weight: 600;
}

.edl-picked-address {
	font-size: 0.88em;
	opacity: 0.85;
	line-height: 1.35;
}

/* La casilla «Guardar esta dirección» se retiró en la 1.7.6: no gobernaba nada. */

.edl-map {
	width: 100%;
	min-height: 220px;
	height: 300px;
	border-radius: 10px;
	overflow: hidden;
	z-index: 0;
}

.edl-map .leaflet-container {
	height: 100%;
	width: 100%;
}

@media ( max-width: 700px ) {
	.edl-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Referencia de entrega (debajo del mapa) --- */
.edl-reference {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
}

.edl-reference__label {
	font-size: 0.9em;
	font-weight: 500;
}

.edl-reference__input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	border-radius: 8px;
	background: #fff;
}

/* --- Libreta de direcciones (Mi Cuenta) --- */
.edl-account__intro {
	margin: 0 0 16px;
}

.edl-addr-cards {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.edl-addr-card {
	border: 1px solid rgba( 0, 0, 0, 0.14 );
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.edl-addr-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.edl-addr-card__label {
	font-weight: 700;
}

.edl-addr-card__default {
	font-size: 0.78em;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eaf3fb;
	color: #1b5fa8;
	white-space: nowrap;
}

.edl-addr-card__addr {
	font-size: 0.92em;
}

.edl-addr-card__meta {
	font-size: 0.85em;
	opacity: 0.8;
}

.edl-addr-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.edl-addr-card__actions button {
	border: 0;
	background: transparent;
	padding: 4px 6px;
	cursor: pointer;
	font-size: 0.86em;
	color: #1b5fa8;
}

.edl-addr-card__delete {
	color: #b3261e !important;
}

.edl-account__editor {
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 10px;
	padding: 16px;
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.edl-account__editor[hidden] {
	display: none;
}

.edl-account__editor-title {
	margin: 0;
	font-size: 1.05em;
	font-weight: 700;
}

.edl-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.edl-field__label {
	font-size: 0.9em;
	font-weight: 500;
}

.edl-field input[type="text"],
.edl-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	border-radius: 8px;
	background: #fff;
}

.edl-field-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.edl-account__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.edl-account__cancel {
	background: transparent;
}

.edl-account__msg {
	font-size: 0.9em;
	min-height: 1.1em;
	color: #b3261e;
}

/* Teléfono y celular van en pareja: ocupan media fila cada uno en escritorio. */
.edl-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.edl-field-row .edl-field { flex: 1 1 160px; margin: 0 0 12px; }

/* Referencia de entrega: es la que usa el repartidor, así que se separa del mapa
   y lleva su propia ayuda. */
.edl-reference {
	margin-top: 12px;
}

/* El atributo `hidden` sólo trae display:none de la hoja del navegador, que
   cualquier regla del tema o de Elementor con una clase gana. Sin este !important
   el campo seguía visible aunque el JS lo ocultara. */
.edl-reference[hidden] {
	display: none !important;
}

.edl-reference__label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.edl-reference__input {
	width: 100%;
	box-sizing: border-box;
}

.edl-reference__help {
	margin: 4px 0 0;
	font-size: 12px;
	opacity: .75;
}
.edl-reference--oculta {
	display: none !important;
}
