[data-me-size-widget] {
	--me-size-border: #dedede;
	--me-size-muted: #545454;
	--me-size-accent: #a11d30;
	color: #222;
	width: 100%;
	max-width: 40rem;
	align-self: flex-start;
	margin-block: 12px 0;
	min-width: 0;
}
[data-me-size-widget][hidden], [data-me-size-widget] [hidden] { display: none !important; }
[data-me-size-widget] .me-size__card {
	margin: 0;
	background: #fff;
	border: 1px solid var(--me-size-border);
	border-radius: 8px;
}
[data-me-size-widget] .me-size__open {
	display: block;
	list-style: none;
	cursor: pointer;
	padding: 12px;
	color: inherit;
}
[data-me-size-widget] summary::-webkit-details-marker { display: none; }
[data-me-size-widget] :is(a,button,summary):focus-visible {
	outline: 2px solid #235fa7;
	outline-offset: 2px;
}
[data-me-size-widget] .me-size__title { display: block; margin-bottom: 8px; font-size: 1em; }
[data-me-size-widget] .me-size__columns { display: flex; align-items: stretch; gap: 0; }
[data-me-size-widget] .me-size__cell { flex: 1 1 0; min-width: 0; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 4px; text-align: center; font-size: .9em; overflow-wrap: anywhere; }
[data-me-size-widget] .me-size__cell:not([hidden]) + .me-size__cell { border-inline-start: 1px solid var(--me-size-border); }
[data-me-size-widget] .me-size__icon { display: block; width: 75px; height: 40px; max-width: 100%; color: #333; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-me-size-widget] .me-size__rule {
	display: block; width: 78px; max-width: 100%; height: 5px;
	border: solid #777; border-width: 0 1px;
	background: repeating-linear-gradient(to right,#777 0 1px,transparent 1px 16.666%) left bottom / 100% 3px no-repeat,
		linear-gradient(#777,#777) center / 100% 1px no-repeat;
}
[data-me-size-widget] .me-size__link { display: block; margin-top: 8px; font-size: .88em; font-weight: 600; text-align: center; }
[data-me-size-widget] .me-size__panel { background: #fff; color: #222; overflow-wrap: anywhere; }
[data-me-size-widget] .me-size__dialog {
	box-sizing: border-box; border: 1px solid var(--me-size-border); border-radius: 12px;
	padding: 0; width: min(490px, calc(100% - 32px)); max-width: none;
	max-height: 88vh; max-height: 88dvh; margin: auto; overflow-y: auto; overscroll-behavior: contain;
	background: #fff; color: inherit;
}
[data-me-size-widget] dialog::backdrop { background: rgb(0 0 0 / 42%); }
[data-me-size-widget] .me-size__panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--me-size-border); }
[data-me-size-widget] .me-size__panel h2 { margin: 0; color: #111; font-size: 1.16rem; line-height: 1.35; }
[data-me-size-widget] .me-size__panel [data-size-close] { min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #242424; font-size: 24px; line-height: 1; cursor: pointer; }
[data-me-size-widget] .me-size__body { padding: 0 18px 18px; container: me-size-body / inline-size; }
[data-me-size-widget] .me-size__body section { padding: 16px 0; border-bottom: 1px solid var(--me-size-border); }
[data-me-size-widget] .me-size__body h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.35; }
[data-me-size-widget] .me-size__body p { margin: 6px 0; font-size: .92rem; line-height: 1.45; }
[data-me-size-widget] .me-size__body small { display: block; color: var(--me-size-muted); font-size: .78rem; line-height: 1.4; }
[data-me-size-widget] .me-size__measure .me-size__icon { width: 210px; height: 112px; margin: 6px auto 0; }
[data-me-size-widget] .me-size__measure .me-size__rule { width: 210px; margin: 8px auto; }
[data-me-size-widget] .me-size__measure [data-size-value="short"] { display: block; text-align: center; color: var(--me-size-accent); font-size: 1.1rem; }
[data-me-size-widget] .me-size__scale { display: table; margin: 6px auto; padding: 3px 8px; background: #f5f5f5; border-radius: 4px; font-size: .8rem; }
[data-me-size-widget] .me-size__body :is(a,[data-size-photo]) { display: inline-block; padding-block: 8px; font-weight: 600; text-decoration: underline; cursor: pointer; }
[data-me-size-widget] .me-size__presentation {
	display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; column-gap: 14px; row-gap: 3px;
}
[data-me-size-widget] .me-size__presentation > .me-size__icon {
	grid-column: 1; grid-row: 1 / span 2; width: 74px; height: 48px; color: #535e6d;
}
[data-me-size-widget] .me-size__presentation :is(h3,p) { margin: 0; }
[data-me-size-widget] .me-size__pack-type,
[data-me-size-widget] .me-size__presentation [data-size-value="description"] { grid-column: 2; }
[data-me-size-widget] .me-size__pack-type p { color: #353a40; margin-top: 2px; }
[data-me-size-widget] .me-size__presentation[data-size-pack=""] > .me-size__pack-type,
[data-me-size-widget] .me-size__presentation [data-size-value="detail"],
[data-me-size-widget] .me-size__presentation details { grid-column: 1 / -1; }
[data-me-size-widget] .me-size__presentation > [data-size-value="detail"]:not([hidden]) { margin-top: 4px; }
[data-me-size-widget] .me-size__presentation[data-size-pack="sin_caja"] [data-size-value="description"] {
	font-size: .875rem; color: var(--me-size-muted); line-height: 1.4;
}
@container me-size-body (max-width: 425px) {
	[data-me-size-widget] .me-size__presentation[data-size-pack="sin_caja"] { gap: 4px 10px; }
	[data-me-size-widget] .me-size__presentation[data-size-pack="sin_caja"] > svg { grid-row: 1; width: 64px; height: 38px; }
	[data-me-size-widget] .me-size__presentation[data-size-pack="sin_caja"] [data-size-value="description"] {
		grid-column: 1 / -1; font-size: clamp(11px, 4.15cqi, 14px);
	}
}
[data-me-size-widget] .me-size__guide summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 44px; padding-block: 8px; list-style: none; color: var(--me-size-accent); font-weight: 650; cursor: pointer;
}
[data-me-size-widget] .me-size__guide summary::after { content: "+"; font-size: 1.25em; line-height: 1; }
[data-me-size-widget] .me-size__guide[open] > summary::after { content: "×"; }
[data-me-size-widget] .me-size__guide p { margin: 0 0 8px; color: var(--me-size-muted); }
[data-me-size-widget] [data-size-show="photo"] img { display: block; width: auto; max-width: 100%; max-height: 56vh; margin: 6px auto; object-fit: contain; }
/* Native lazy-loading is disabled when scripting is off. Download the fallback when its disclosure opens. */
[data-me-size-widget] details[open] > noscript > .me-size__static-photo { display: block; height: min(56vh, 22rem); background: var(--me-package-photo) center / contain no-repeat; }
@media (min-width: 601px) {
	[data-me-size-widget] .me-size__dialog {
		height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
		margin: 0 0 0 auto; border-radius: 12px 0 0 12px;
	}
}
@media (max-width: 600px) {
	[data-me-size-widget] .me-size__dialog { width: 100%; max-height: 88vh; max-height: 88dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 360px) {
	[data-me-size-widget] .me-size__body { padding-inline: 12px; }
}

/* The size card stays in the product information column. */
.me-pdp-size-delivery {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
@media (width < 1025px) {
	.me-pdp-size-delivery > [data-me-size-widget] { align-self: center; }
	[data-me-size-widget] .me-size__open .me-size__title { text-align: center; }
}
@media (min-width: 1025px) {
	.me-pdp-size-delivery > [data-me-size-widget] { max-width: none; }
}
@media (768px < width < 1025px) {
	.me-pdp-size-delivery > [data-me-size-widget] {
		margin-block-start: 22px;
		font-size: 1rem;
		line-height: 1.6;
	}
}
