/* E-HUB Order Bump. Colors come from the site palette unless overridden in the settings. */
.ehub-ob {
	--ob-heading: var(--e-global-color-text, #1e1f24);
	--ob-highlight: var(--e-global-color-secondary, #e0301e);
	--ob-border: var(--e-global-color-demuted, #9a9ea6);
	--ob-bg: var(--e-global-color-debg, #fff);
	--ob-muted: var(--e-global-color-demuted, #5c6660);
	--ob-font: var(--e-global-typography-text-font-family, inherit), sans-serif;
	display: flex;
	flex-direction: column;
	margin: 0 0 24px;
	border: 2px dashed var(--ob-border);
	border-radius: 12px;
	background: var(--ob-bg);
	color: var(--ob-heading);
	font-family: var(--ob-font);
	font-size: 16px;
	line-height: 1.5;
	overflow: hidden;
	text-align: left;
}
.ehub-ob *, .ehub-ob *::before, .ehub-ob *::after { box-sizing: border-box; }

.ehub-ob__body { display: flex; gap: 16px; align-items: flex-start; padding: 16px; }
.ehub-ob__img { flex: none; width: 88px; height: 88px; object-fit: cover; border-radius: 8px; display: block; }
.ehub-ob__img--empty { background: color-mix(in srgb, var(--ob-border) 25%, transparent); }
.ehub-ob__text { flex: 1; min-width: 0; }
.ehub-ob__label { font-weight: 700; font-size: 17px; margin-bottom: 4px; color: var(--ob-heading); }
.ehub-ob__label:empty { display: none; }
.ehub-ob__desc { color: var(--ob-muted); font-size: 15px; }
.ehub-ob__desc:empty { display: none; }

.ehub-ob__action {
	display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; cursor: pointer;
	border-top: 2px dashed var(--ob-border); min-height: 56px;
}
.ehub-ob__arrow { flex: none; color: var(--ob-highlight); font-size: 20px; line-height: 1; }
.ehub-ob__check {
	flex: none; appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0;
	border: 2px solid var(--ob-heading); border-radius: 5px; background: #fff; cursor: pointer; position: relative;
}
.ehub-ob__check:checked { background: var(--ob-heading); }
.ehub-ob__check:checked::after {
	content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px;
	border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.ehub-ob__check:focus-visible { outline: 2px solid var(--ob-highlight); outline-offset: 2px; }
.ehub-ob__switch { display: none; }
.ehub-ob__cta { flex: 1; min-width: 0; font-weight: 600; color: var(--ob-heading); }
.ehub-ob__cta strong { color: var(--ob-highlight); font-weight: 700; }
.ehub-ob__price { flex: none; text-align: right; white-space: nowrap; font-weight: 700; }
.ehub-ob__price del { color: var(--ob-highlight); font-weight: 400; margin-right: 6px; opacity: .9; }
.ehub-ob__price ins { text-decoration: none; color: var(--ob-heading); background: none; }

/* --- Skin: One Time Offer (default) — offer on top, tick row below. */

/* --- Skin: Highlight Bar — tinted tick row on top, offer below. */
.ehub-ob--highlight-bar .ehub-ob__action {
	order: -1; border-top: 0; border-bottom: 2px dashed var(--ob-border);
	background: color-mix(in srgb, var(--ob-highlight) 14%, var(--ob-bg));
}

/* --- Skin: Toggle Switch — solid tinted card, switch instead of a tick. */
.ehub-ob--toggle-switch {
	border-style: solid; border-width: 1px; border-color: var(--ob-highlight);
	background: color-mix(in srgb, var(--ob-highlight) 7%, var(--ob-bg));
	display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 16px;
}
.ehub-ob--toggle-switch .ehub-ob__body { display: contents; }
.ehub-ob--toggle-switch .ehub-ob__img { grid-column: 1; grid-row: 1 / span 2; }
.ehub-ob--toggle-switch .ehub-ob__action {
	grid-column: 2; grid-row: 1; border: 0; padding: 0 0 8px; min-height: 0; align-items: flex-start; flex-wrap: wrap;
}
.ehub-ob--toggle-switch .ehub-ob__text { grid-column: 2; grid-row: 2; }
.ehub-ob--toggle-switch .ehub-ob__arrow { display: none; }
.ehub-ob--toggle-switch .ehub-ob__cta { order: 1; }
.ehub-ob--toggle-switch .ehub-ob__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ehub-ob--toggle-switch .ehub-ob__switch {
	display: block; order: 2; flex: none; width: 46px; height: 26px; border-radius: 13px; position: relative;
	background: color-mix(in srgb, var(--ob-border) 45%, #fff); transition: background .15s ease;
}
.ehub-ob--toggle-switch .ehub-ob__switch::after {
	content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease;
}
.ehub-ob--toggle-switch .ehub-ob__check:checked + .ehub-ob__switch { background: var(--ob-highlight); }
.ehub-ob--toggle-switch .ehub-ob__check:checked + .ehub-ob__switch::after { transform: translateX(20px); }
.ehub-ob--toggle-switch .ehub-ob__check:focus-visible + .ehub-ob__switch { outline: 2px solid var(--ob-highlight); outline-offset: 2px; }
.ehub-ob--toggle-switch .ehub-ob__price { order: 3; flex-basis: 100%; text-align: left; padding-top: 4px; }
.ehub-ob--toggle-switch .ehub-ob__label {
	display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px;
	background: var(--ob-highlight); color: #fff; margin-bottom: 8px;
}
.ehub-ob--toggle-switch .ehub-ob__label:empty { display: none; }

@media (max-width: 767px) {
	.ehub-ob__img { width: 64px; height: 64px; }
	.ehub-ob__action { flex-wrap: wrap; }
	.ehub-ob__price { flex-basis: 100%; text-align: left; padding-left: 68px; }
	.ehub-ob--toggle-switch .ehub-ob__price { padding-left: 0; }
}

/* Admin preview */
.ehub-ob-preview { max-width: 560px; padding: 24px; background: #f6f7f7; border-radius: 8px; }
.ehub-ob-preview .ehub-ob { margin: 0; }
.ehub-ob-admin .ehub-ob-colors label { display: inline-block; margin-right: 24px; vertical-align: top; }
