/* «Haz tu oferta» (inc/ofertas.php). Visible solo en la variante B del A/B pdp_oferta. */
.sh-of { display: none; }
html[data-ab-pdp_oferta="b"] .sh-of--col { display: flex; }
html[data-ab-pdp_oferta="b"] .sh-of--stc { display: inline-flex; }

.sh-of--col {
	width: 100%; margin: 10px 0 0; padding: 12px 14px; align-items: center; gap: 12px;
	background: #fff; border: 1.5px dashed var(--petroleo-700, #0F3B3A); border-radius: 4px;
	color: var(--petroleo-700, #0F3B3A); font: inherit; text-align: left; cursor: pointer;
}
.sh-of--col:hover { background: var(--cal, #F3F2EF); border-style: solid; }
.sh-of--col:focus-visible, .sh-of--stc:focus-visible { outline: 2px solid var(--laton, #D29B3D); outline-offset: 2px; }
.sh-of-ico { width: 26px; height: 26px; flex: none; }
.sh-of-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sh-of-txt b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.sh-of-txt em { font-style: normal; font-size: 12.5px; color: var(--salvia, #5A6B68); }
.sh-of-chev { font-size: 22px; line-height: 1; }

.sh-of--stc {
	align-items: center; height: 46px; padding: 0 12px; margin-right: 6px;
	background: #fff; border: 1.5px solid var(--petroleo-700, #0F3B3A); border-radius: 4px;
	color: var(--petroleo-700, #0F3B3A); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ---- Ventana ---- */
html.sh-of-lock { overflow: hidden; }
.sh-of-dlg {
	border: 0; padding: 0; margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
	background: transparent; color: var(--grafito, #1C2422); font-family: var(--font-sans, Inter, sans-serif);
}
.sh-of-dlg::backdrop { background: rgba(8, 32, 31, .55); backdrop-filter: blur(2px); }
.sh-of-dlg[open] { display: block; }
.sh-of-sheet {
	background: #fff; border-radius: 10px; padding: 20px; max-height: calc(100vh - 32px); overflow: auto;
	box-sizing: border-box; display: flex; flex-direction: column; gap: 14px;
}
.sh-of-dlg [hidden] { display: none !important; }
.sh-of-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sh-of-h { margin: 0; font-family: var(--font-heading, Fraunces, serif); font-size: 24px; font-weight: 600; color: var(--petroleo-700, #0F3B3A); line-height: 1.2; }
.sh-of-h:focus { outline: none; }
.sh-of-sub { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--salvia, #5A6B68); }
.sh-of-x { width: 44px; height: 44px; flex: none; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--grafito, #1C2422); cursor: pointer; border-radius: 4px; }
.sh-of-x:hover { background: var(--cal, #F3F2EF); }

.sh-of-form { display: flex; flex-direction: column; gap: 12px; }
.sh-of-prod { display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--cal, #F3F2EF); border-radius: 4px; }
.sh-of-prod img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; flex: none; margin: 0; }
.sh-of-prod > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.sh-of-pname { font-weight: 600; }
.sh-of-plist, .sh-of-pvar { color: var(--salvia, #5A6B68); }

.sh-of-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }
.sh-of-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sh-of-l { font-size: 13px; font-weight: 600; }
.sh-of-l small { font-weight: 400; color: var(--salvia, #5A6B68); }
.sh-of-form input[type=text], .sh-of-form input[type=email], .sh-of-form input[type=tel], .sh-of-form select {
	height: 46px; width: 100%; box-sizing: border-box; padding: 0 12px; margin: 0;
	border: 1px solid var(--lino, #DEDCD6); border-radius: 4px; background: #fff; font: inherit; font-size: 15px; color: inherit;
}
.sh-of-form select:disabled { background: var(--cal, #F3F2EF); }
.sh-of-form input:focus, .sh-of-form select:focus { outline: 2px solid var(--petroleo-500, #2A5B57); outline-offset: 0; border-color: transparent; }

.sh-of-step { display: flex; height: 46px; border: 1px solid var(--lino, #DEDCD6); border-radius: 4px; overflow: hidden; }
.sh-of-step button { width: 44px; border: 0; background: var(--cal, #F3F2EF); font-size: 18px; color: var(--petroleo-700, #0F3B3A); cursor: pointer; }
.sh-of-form .sh-of-step input { border: 0; height: 100%; text-align: center; font-weight: 700; padding: 0; border-radius: 0; }

.sh-of-money { display: flex; align-items: center; height: 46px; border: 2px solid var(--petroleo-700, #0F3B3A); border-radius: 4px; padding: 0 0 0 10px; }
.sh-of-money span { font-weight: 700; color: var(--salvia, #5A6B68); }
.sh-of-form .sh-of-money input { border: 0; height: 100%; font-size: 17px; font-weight: 700; padding: 0 8px; }
.sh-of-form .sh-of-money input:focus { outline: none; }
.sh-of-money:focus-within { outline: 2px solid var(--laton, #D29B3D); outline-offset: 1px; }

.sh-of-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-of-chip { height: 36px; padding: 0 12px; border: 1px solid var(--lino, #DEDCD6); background: #fff; border-radius: 18px; font: inherit; font-size: 13px; color: var(--petroleo-700, #0F3B3A); cursor: pointer; }
.sh-of-chip:hover { border-color: var(--petroleo-700, #0F3B3A); }
.sh-of-hint { margin: 0; font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 4px; background: var(--cal, #F3F2EF); }
.sh-of-hint:empty { display: none; }
.sh-of-hint.is-info { background: #E7EFF2; color: var(--azul-info, #1F5F7A); }

.sh-of-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sh-of-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--salvia, #5A6B68); }
.sh-of-ok input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--petroleo-700, #0F3B3A); }
.sh-of-err { margin: 0; padding: 8px 10px; border-radius: 4px; background: #FBECEB; color: var(--rojo-precio, #B3251F); font-size: 13px; }

.sh-of-send {
	height: 52px; border: 1.5px solid var(--petroleo-700, #0F3B3A); border-radius: 4px; cursor: pointer;
	background: var(--laton, #D29B3D); color: var(--petroleo-700, #0F3B3A); font: inherit; font-size: 16px; font-weight: 700;
}
.sh-of-send:hover { background: var(--laton-oscuro, #B8842C); }
.sh-of-send:disabled { background: var(--lino, #DEDCD6); border-color: var(--lino, #DEDCD6); color: var(--salvia, #5A6B68); cursor: not-allowed; }
.sh-of-foot { margin: 0; font-size: 12px; line-height: 1.4; text-align: center; color: var(--salvia, #5A6B68); }

.sh-of-done { display: flex; flex-direction: column; gap: 14px; }
.sh-of-check { width: 52px; height: 52px; border-radius: 26px; background: #E3EFE8; color: var(--verde-aval, #1D6F4A); display: flex; align-items: center; justify-content: center; }
.sh-of-check svg { width: 26px; height: 26px; }
.sh-of-donetxt { margin: 0; font-size: 15px; line-height: 1.5; }
.sh-of-next { margin: 0; padding: 14px 14px 14px 32px; background: var(--cal, #F3F2EF); border-radius: 4px; font-size: 13.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.sh-of-next li::marker { color: var(--laton-oscuro, #B8842C); font-weight: 700; }
.sh-of-sec { height: 50px; border: 1.5px solid var(--petroleo-700, #0F3B3A); border-radius: 4px; background: #fff; color: var(--petroleo-700, #0F3B3A); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

@media (max-width: 600px) {
	.sh-of-dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; }
	.sh-of-sheet { border-radius: 12px 12px 0 0; max-height: 92vh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
	.sh-of-h { font-size: 22px; }
	.sh-of-row { grid-template-columns: minmax(0, 1fr); }
	.sh-of-row--qty { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}
@media (prefers-reduced-motion: no-preference) {
	.sh-of-dlg[open] .sh-of-sheet { animation: shOfIn .18s ease-out; }
	@keyframes shOfIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
