/* =================================================================
   Jusa Kids — Envíos UY (frontend)
   ================================================================= */
.jke-modal,
.jke-modal * { box-sizing: border-box; }

:root {
	--jke-primary: #FF9D6B;
	--jke-ink: #2D1B0F;
	--jke-mvd: #7EC4E8;
	--jke-interior: #FF8FA3;
	--jke-cream: #FFFCF5;
}

/* ---- Modal ---- */
.jke-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.jke-modal[hidden] { display: none; }
.jke-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(45, 27, 15, 0.55);
	backdrop-filter: blur(2px);
}
.jke-modal__panel {
	position: relative;
	background: var(--jke-cream);
	border-radius: 26px;
	padding: 34px 32px 26px;
	width: 100%;
	max-width: 540px;
	box-shadow: 0 18px 0 rgba(45, 27, 15, 0.20);
	text-align: center;
	animation: jke-pop .25s ease;
}
@keyframes jke-pop {
	from { transform: translateY(14px) scale(.97); opacity: 0; }
	to   { transform: translateY(0) scale(1); opacity: 1; }
}
.jke-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: none;
	background: #fff;
	color: var(--jke-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 0 rgba(45, 27, 15, 0.15);
}
.jke-modal__title {
	font-family: 'Bagel Fat One', 'Fredoka', system-ui, sans-serif;
	font-size: 30px;
	color: var(--jke-ink);
	margin: 0 0 8px;
	line-height: 1.1;
	font-weight: 400;
}
.jke-modal__subtitle {
	font-size: 15px;
	color: #7B5530;
	margin: 0 0 24px;
	line-height: 1.45;
}
.jke-modal__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 18px;
}
@media (max-width: 460px) {
	.jke-modal__options { grid-template-columns: 1fr; }
}
.jke-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 26px 16px 22px;
	border: 3px solid rgba(45, 27, 15, 0.10);
	border-radius: 20px;
	background: #fff;
	cursor: pointer;
	transition: transform .15s, border-color .15s, box-shadow .15s;
	text-align: center;
}
.jke-option:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 0 rgba(45, 27, 15, 0.10);
}
.jke-option--mvd:hover,
.jke-option--mvd.is-selected { border-color: var(--jke-mvd); }
.jke-option--interior:hover,
.jke-option--interior.is-selected { border-color: var(--jke-interior); }
.jke-option.is-selected { box-shadow: 0 6px 0 rgba(45, 27, 15, 0.12); }
.jke-option__emoji { font-size: 44px; line-height: 1; }
.jke-option__title {
	font-family: 'Fredoka', system-ui, sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: var(--jke-ink);
}
.jke-option__detail {
	font-size: 12.5px;
	color: #7B5530;
	font-weight: 600;
	line-height: 1.35;
}
.jke-modal__footnote {
	font-size: 12px;
	color: rgba(123, 85, 48, 0.8);
	margin: 0;
}

/* ---- Chip (topbar/header) ---- */
.jke-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: inherit;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	cursor: pointer;
	line-height: 1.4;
	transition: background .15s;
}
.jke-chip:hover { background: rgba(255, 255, 255, 0.30); }
.jke-chip__emoji { font-size: 15px; }
.jke-chip__edit { font-size: 10px; opacity: .8; }

/* ---- Botón flotante de zona (escritorio, lado izquierdo) ---- */
/* top: 65% para no superponerse con .jk-cats-stick__trigger del tema,
   que ocupa top: 50%. */
.jke-fab {
	position: fixed;
	left: 0;
	top: 65%;
	transform: translateY(-50%);
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	color: var(--jke-ink);
	border: none;
	border-left: 5px solid var(--jke-primary);
	border-radius: 0 16px 16px 0;
	padding: 10px 16px 10px 12px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(45, 27, 15, 0.18);
	font-family: inherit;
	transition: transform .18s ease, box-shadow .18s ease;
}
.jke-fab:hover {
	transform: translateY(-50%) translateX(2px);
	box-shadow: 0 8px 22px rgba(45, 27, 15, 0.26);
}
.jke-fab__emoji { font-size: 26px; line-height: 1; }
.jke-fab__body { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.jke-fab__caption {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #7B5530;
}
.jke-fab__label {
	font-size: 14px;
	font-weight: 800;
	color: var(--jke-ink);
}
/* En móvil/tablet el botón flotante se oculta — ahí se usa el del menú móvil. */
@media (max-width: 768px) {
	.jke-fab { display: none; }
}

/* ---- Chip de zona dentro del menú móvil ---- */
.jk-menu__zone {
	margin: 4px 0 14px;
}
.jk-menu__zone .jke-chip {
	display: flex;
	width: 100%;
	justify-content: center;
	background: var(--jke-cream);
	border: 2px solid rgba(45, 27, 15, 0.12);
	color: var(--jke-ink);
	font-size: 15px;
	padding: 12px 16px;
	border-radius: 14px;
}
.jk-menu__zone .jke-chip:hover { background: #fff; }
.jk-menu__zone .jke-chip__emoji { font-size: 18px; }

/* ---- Barra envío gratis (cart/checkout) ---- */
.jke-bar {
	background: var(--jke-cream);
	border: 2px dashed rgba(45, 27, 15, 0.18);
	border-radius: 16px;
	padding: 14px 16px;
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--jke-ink);
	font-weight: 600;
}
.jke-bar.is-free {
	background: #E9F7E7;
	border-color: var(--jke-bar, #9FD49C);
	border-style: solid;
}
.jke-bar__row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.jke-bar__icon { font-size: 20px; flex-shrink: 0; }
.jke-bar__text { flex: 1; }
.jke-bar__change {
	background: none;
	border: none;
	color: var(--jke-primary);
	font-weight: 800;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
	white-space: nowrap;
	padding: 0;
}
.jke-bar__progress {
	margin-top: 12px;
	height: 10px;
	background: rgba(45, 27, 15, 0.10);
	border-radius: 999px;
	overflow: hidden;
}
.jke-bar__progress-fill {
	display: block;
	height: 100%;
	background: var(--jke-bar, #9FD49C);
	border-radius: 999px;
	transition: width .4s ease;
}

/* ---- Aviso en el checkout ---- */
.jke-checkout-notice {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid rgba(45, 27, 15, 0.12);
	border-left: 6px solid var(--jke-primary);
	border-radius: 14px;
	padding: 14px 16px;
	margin: 0 0 22px;
}
.jke-checkout-notice--mvd { border-left-color: var(--jke-mvd); }
.jke-checkout-notice--interior { border-left-color: var(--jke-interior); }
.jke-checkout-notice__emoji { font-size: 26px; }
.jke-checkout-notice__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.jke-checkout-notice__body strong { color: var(--jke-ink); font-size: 15px; }
.jke-checkout-notice__body small { color: #7B5530; font-size: 13px; }
.jke-checkout-notice__change {
	background: none;
	border: none;
	color: var(--jke-primary);
	font-weight: 800;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
}

/* ---- Pasos del envío al interior (DAC) ---- */
.jke-steps {
	background: var(--jke-cream);
	border: 1px solid rgba(45, 27, 15, 0.12);
	border-radius: 14px;
	padding: 16px 18px;
	margin: 0 0 22px;
}
.jke-steps__title {
	font-weight: 800;
	color: var(--jke-ink);
	font-size: 15px;
	margin-bottom: 10px;
}
.jke-steps__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	counter-reset: jke;
}
.jke-steps__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--jke-ink);
	line-height: 1.4;
}
.jke-steps__num {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: var(--jke-interior);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
