/**
 * Estilos de la interfaz de entrega (recoger / domicilio).
 * Diseño limpio y moderno: tarjetas blancas, acento naranja,
 * esquinas redondeadas y sombras suaves.
 */

.wet-wrapper {
	--wet-bg: #f5f5f3;
	--wet-card: #ffffff;
	--wet-text: #16181d;
	--wet-muted: #6b7280;
	--wet-accent: #e4572e;
	--wet-accent-soft: rgba(228, 87, 46, .10);
	--wet-line: rgba(0, 0, 0, .08);
	--wet-radius: 12px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--wet-text);
	background: var(--wet-bg);
	border: 1px solid var(--wet-line);
	border-radius: var(--wet-radius);
	padding: 12px;
	margin: 12px auto;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
	max-width: 520px;
	box-sizing: border-box;
}

.wet-wrapper * {
	box-sizing: border-box;
}

/* Neutraliza espaciados que algunos temas inyectan en inputs/labels dentro del carrito. */
.wet-wrapper p,
.wet-wrapper label {
	margin: 0;
	line-height: 1.3;
}

.wet-wrapper input[type="text"],
.wet-wrapper select,
.wet-wrapper textarea {
	margin: 0 !important;
	min-height: 0 !important;
	line-height: 1.3 !important;
	height: auto !important;
}

/* Cabecera */
.wet-title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
}

/* Métodos: tarjetas seleccionables.
   Móvil: apiladas, alargadas y centradas. Ordenador: una al lado de la otra. */
.wet-methods {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

@media (min-width: 560px) {
	.wet-methods {
		flex-direction: row;
	}
}

.wet-method {
	position: relative;
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--wet-card);
	border: 2px solid var(--wet-line);
	border-radius: 12px;
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

/* En ordenador las tarjetas son algo más compactas verticalmente. */
@media (min-width: 560px) {
	.wet-method {
		padding: 12px 14px;
	}
}

.wet-method:hover {
	border-color: rgba(228, 87, 46, .45);
}

.wet-method:active {
	transform: scale(.99);
}

.wet-method.is-active {
	border-color: var(--wet-accent);
	box-shadow: 0 4px 14px rgba(228, 87, 46, .15);
}

/* Ocultamos el radio nativo, la tarjeta hace de control */
.wet-method input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.wet-method-icon {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--wet-accent-soft);
	color: var(--wet-accent);
}

.wet-method-icon svg {
	width: 19px;
	height: 19px;
}

.wet-method-label {
	flex: 0 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.wet-method-price {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	color: var(--wet-accent);
	background: var(--wet-accent-soft);
	padding: 4px 9px;
	border-radius: 999px;
	white-space: nowrap;
}

/* Normaliza el importe que genera WooCommerce dentro del badge de precio. */
.wet-method-price .woocommerce-Price-amount,
.wet-method-price bdi {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1;
}

/* Método deshabilitado (pedido por debajo del mínimo para domicilio) */
.wet-method-disabled {
	opacity: .5;
	cursor: not-allowed;
	pointer-events: none;
}

.wet-method-disabled:hover {
	border-color: var(--wet-line);
}

/* Aviso de pedido mínimo para domicilio */
.wet-min-notice {
	display: none;
	margin: 0 0 10px;
	background: var(--wet-accent-soft);
	color: var(--wet-accent);
	border: 1px solid rgba(228, 87, 46, .3);
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.wet-min-notice.is-visible {
	display: block;
}

/* Campos */
.wet-field {
	margin-bottom: 8px;
}

.wet-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 3px;
	color: var(--wet-text);
}

.wet-req {
	color: var(--wet-accent);
}

.wet-wrapper input[type="text"],
.wet-wrapper select,
.wet-wrapper textarea {
	width: 100%;
	background: var(--wet-card);
	border: 1px solid var(--wet-line);
	border-radius: 9px;
	padding: 8px 11px;
	font-size: 14px;
	color: var(--wet-text);
	transition: border-color .18s ease, box-shadow .18s ease;
	box-sizing: border-box;
}

.wet-wrapper select:disabled {
	opacity: .65;
	cursor: not-allowed;
}

.wet-wrapper input[type="text"]:focus,
.wet-wrapper select:focus,
.wet-wrapper textarea:focus {
	outline: none;
	border-color: var(--wet-accent);
	box-shadow: 0 0 0 3px var(--wet-accent-soft);
}

.wet-wrapper textarea {
	resize: vertical;
	min-height: 44px;
}

/* Filas responsivas */
.wet-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wet-row .wet-field {
	flex: 1 1 100%;
}

.wet-col-4 {
	flex: 1 1 calc(33.333% - 6px) !important;
}

.wet-col-8 {
	flex: 1 1 calc(66.666% - 4px) !important;
}

/* Avisos */
.wet-notice {
	background: var(--wet-accent-soft);
	color: var(--wet-accent);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13.5px;
	font-weight: 600;
}

.wet-feedback:empty {
	display: none;
}

.wet-feedback {
	margin-top: 6px;
	font-size: 13px;
	color: var(--wet-muted);
}

.wet-feedback.is-error {
	color: var(--wet-accent);
}

.wet-feedback.is-ok {
	color: #1a7f37;
}

/* Estado de carga */
.wet-is-loading {
	opacity: .7;
	pointer-events: none;
	position: relative;
}
