﻿:root {
	--wmls-modal-bg: #fff;
	--wmls-modal-text: #1d2327;
	--wmls-modal-radius: 8px;
	--wmls-modal-max-width: 480px;
	--wmls-modal-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
	--wmls-btn-primary-bg: #cb1a2f;
	--wmls-btn-primary-text: #fff;
	--wmls-btn-secondary-bg: #f6f7f7;
	--wmls-btn-secondary-text: #1d2327;
}

.wmls-selector-wrapper {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	max-width: 100%;
}

.wmls-selector-wrapper select {
	min-width: 260px;
	max-width: 100%;
}

.wmls-location-select-global {
	appearance: none;
	-webkit-appearance: none;
	background-color: #fff;
	background-image: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(20, 34, 52, 0.22);
	border-radius: 12px;
	padding: 10px 42px 10px 14px;
	font-weight: 600;
	color: #142234;
	box-shadow: 0 8px 18px rgba(20, 34, 52, 0.08);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	background-image:
		linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23142234' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wmls-location-select-global:hover {
	border-color: rgba(20, 34, 52, 0.38);
	box-shadow: 0 10px 22px rgba(20, 34, 52, 0.12);
}

.wmls-location-select-global:focus,
.wmls-location-select-global:focus-visible {
	outline: none;
	border-color: #cb1a2f;
	box-shadow: 0 0 0 3px rgba(203, 26, 47, 0.16), 0 10px 22px rgba(20, 34, 52, 0.12);
	transform: translateY(-1px);
}

.wmls-modal {
	position: fixed;
	inset: 0;
	background: rgba(10, 20, 33, 0.54);
	backdrop-filter: blur(2px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
}

.wmls-modal.is-visible {
	display: flex;
}

.wmls-modal-content {
	background: var(--wmls-modal-bg);
	color: var(--wmls-modal-text);
	max-width: var(--wmls-modal-max-width);
	width: min(100%, var(--wmls-modal-max-width));
	padding: 20px 20px 18px;
	border-radius: var(--wmls-modal-radius);
	box-shadow: var(--wmls-modal-shadow);
	font-family: inherit;
	border: 1px solid rgba(20, 34, 52, 0.08);
	position: relative;
	overflow: hidden;
}

.wmls-modal-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wmls-modal-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wmls-modal-title {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
	line-height: 1.28;
	font-weight: 700;
	color: inherit;
}

.wmls-modal-description {
	margin: 0;
	line-height: 1.55;
	color: inherit;
	opacity: 0.92;
}

.wmls-confirm-message p {
	margin: 0 0 0.55em;
}

.wmls-confirm-message p:last-child {
	margin-bottom: 0;
}

.wmls-modal-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wmls-modal-content .wmls-location-select {
	width: 100%;
	min-height: 40px;
	margin: 0;
}

.wmls-feedback {
	margin: 0;
	padding: 9px 11px;
	border-radius: 8px;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 0.93rem;
	line-height: 1.4;
}

.wmls-feedback.is-error {
	background: #fbeaea;
	color: #8a2424;
}

.wmls-feedback.is-success {
	background: #e8f6ea;
	color: #156a2f;
}

.wmls-feedback.is-info {
	background: #e6f4ff;
	color: #003a6d;
}

.wmls-modal-actions,
.wmls-confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
}

.wmls-button-primary,
.wmls-confirm-accept {
	background: var(--wmls-btn-primary-bg);
	border-color: var(--wmls-btn-primary-bg);
	color: var(--wmls-btn-primary-text);
}

.wmls-button-primary:hover,
.wmls-button-primary:focus,
.wmls-confirm-accept:hover,
.wmls-confirm-accept:focus {
	opacity: 0.92;
	color: var(--wmls-btn-primary-text);
}

.wmls-button-secondary,
.wmls-confirm-cancel {
	background: var(--wmls-btn-secondary-bg);
	border-color: var(--wmls-btn-secondary-bg);
	color: var(--wmls-btn-secondary-text);
}

.wmls-button-secondary:hover,
.wmls-button-secondary:focus,
.wmls-confirm-cancel:hover,
.wmls-confirm-cancel:focus {
	opacity: 0.92;
	color: var(--wmls-btn-secondary-text);
}

.wmls-modal-content .button {
	min-height: 38px;
	padding-inline: 14px;
	font-weight: 600;
}

.wmls-modal-content .button:focus-visible,
.wmls-modal-content .wmls-location-select:focus-visible {
	outline: 2px solid rgba(11, 94, 215, 0.6);
	outline-offset: 2px;
}

.wmls-modal-content-select,
.wmls-modal-content-confirm {
	border-top: 5px solid var(--wmls-btn-primary-bg);
}

.wmls-modal-content-select::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -80px;
	width: 180px;
	height: 180px;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(203, 26, 47, 0.22) 0%, rgba(203, 26, 47, 0) 72%);
	pointer-events: none;
}

.wmls-modal-content-select .wmls-modal-title {
	max-width: 90%;
}

.wmls-modal-content-select .wmls-modal-description {
	font-size: 0.97rem;
}

.wmls-modal-content-select .wmls-location-select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(20, 34, 52, 0.22);
	border-radius: 12px;
	padding: 10px 42px 10px 14px;
	font-weight: 600;
	color: #142234;
	box-shadow: 0 8px 18px rgba(20, 34, 52, 0.08);
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	background-image:
		linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23142234' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wmls-modal-content-select .wmls-location-select:hover {
	border-color: rgba(20, 34, 52, 0.38);
	box-shadow: 0 10px 22px rgba(20, 34, 52, 0.12);
}

.wmls-modal-content-select .wmls-location-select:focus,
.wmls-modal-content-select .wmls-location-select:focus-visible {
	outline: none;
	border-color: #cb1a2f;
	box-shadow: 0 0 0 3px rgba(203, 26, 47, 0.16), 0 10px 22px rgba(20, 34, 52, 0.12);
	transform: translateY(-1px);
}

.wmls-notify-availability-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--wmls-btn-primary-bg);
	border-radius: 4px;
	background: #fff;
	color: var(--wmls-btn-primary-bg);
	font-weight: 600;
	text-decoration: none;
}

.wmls-checkout-modalidad-entrega {
	margin: 0 0 1.25rem;
	padding: 14px 16px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.wmls-checkout-modalidad-entrega__titulo {
	margin: 0 0 0.35rem;
}

.wmls-checkout-modalidad-entrega__intro {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
}

.wmls-checkout-modalidad-entrega__lista {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	gap: 8px;
}

.wmls-checkout-modalidad-entrega__opcion {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	cursor: pointer;
}

.wmls-checkout-modalidad-entrega__opcion.is-selected {
	border-color: #1d2327;
	background: #f6f7f7;
}

.wmls-checkout-modalidad-entrega__radio {
	margin-top: 2px;
}

.wmls-checkout-modalidad-entrega__label {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
}

.wmls-checkout-modalidad-entrega__estado,
.wmls-checkout-modalidad-entrega__ayuda,
.wmls-checkout-modalidad-entrega__noscript {
	margin: 0.65rem 0 0;
	font-size: 0.92rem;
}

.wmls-opciones-entrega-ayuda {
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
	color: #50575e;
}

.wc-block-checkout .wmls-checkout-blocks-modalidad {
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.wmls-checkout-blocks-modalidad__ayuda {
	margin: 0 0 0.8rem;
	font-size: 0.92rem;
	color: #50575e;
}

.wmls-cart-modalidad-entrega {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed #dcdcde;
}

.wmls-cart-modalidad-entrega__titulo {
	margin: 0 0 8px;
	font-weight: 600;
	font-size: 0.92rem;
	color: #1d2327;
}

.wmls-cart-modalidad-entrega__lista {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	gap: 8px;
}

.wmls-cart-modalidad-entrega__opcion {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 9px 10px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	cursor: pointer;
}

.wmls-cart-modalidad-entrega__opcion.is-selected {
	background: #f6f7f7;
	border-color: #1d2327;
}

.wmls-cart-modalidad-entrega__radio {
	margin-top: 2px;
}

.wmls-cart-modalidad-entrega__label {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	font-size: 0.92rem;
}

.wmls-cart-modalidad-entrega__estado {
	margin: 0;
	font-size: 0.9rem;
	color: #50575e;
}

.wmls-cart-modalidad-entrega__feedback {
	margin: 8px 0 0;
	font-size: 0.88rem;
	color: #50575e;
}

.wmls-cart-modalidad-entrega__feedback.is-error {
	color: #8a2424;
}

.wmls-cart-modalidad-entrega__opcion:hover,
.wmls-cart-modalidad-entrega__opcion:focus-within {
	border-color: #1d2327;
}

.wmls-notify-availability-button:hover,
.wmls-notify-availability-button:focus {
	background: rgba(203, 26, 47, 0.08);
	color: var(--wmls-btn-primary-bg);
}

.wmls-modal.is-saving .wmls-modal-content {
	opacity: 0.72;
	pointer-events: none;
}

@media (max-width: 640px) {
	.wmls-selector-wrapper,
	.wmls-selector-wrapper select {
		width: 100%;
	}

	.wmls-modal {
		padding: 12px;
	}

	.wmls-modal-content {
		padding: 16px;
	}

	.wmls-modal-actions,
	.wmls-confirm-actions {
		justify-content: stretch;
	}

	.wmls-modal-content .button {
		width: 100%;
	}
}
