/* CRO layer 2026-11 — heter iska, bought-together, drawer upsell, cart/checkout, thank-you. */

/* ---------------- free-ship bar ---------------- */
.ship-bar--free .ship-bar__fill { background: var(--fg); transition: width .5s var(--ease, ease); }
.ship-bar--done .ship-bar__fill { background: var(--success); }
.ship-bar--done p b { color: var(--success); }

/* ---------------- heter iska ---------------- */
.heter {
	display: flex;
	align-items: flex-start;
	gap: .45rem;
	margin: 0;
	font-size: var(--t-xs);
	line-height: 1.5;
	color: var(--ink-500, #555);
}
.heter svg { flex: none; margin-top: .15rem; }
.heter a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.pdp__assur .heter { font-size: inherit; color: inherit; }
.heter--footer { justify-content: center; padding: var(--sp-3) var(--gutter); text-align: center; }
.heter--box {
	margin-top: var(--sp-5);
	padding: var(--sp-3) var(--sp-4);
	border: 1px solid var(--line);
	border-radius: var(--r-sm, 6px);
}
.heter--drawer { margin-top: var(--sp-2); justify-content: center; text-align: center; }

/* ---------------- drawer ---------------- */
.drawer-trust {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .4rem;
	margin: var(--sp-2) 0 0;
	font-size: var(--t-xs);
	color: var(--ink-500, #555);
}
.drawer-ups { margin-top: var(--sp-4); }
.drawer-ups:empty { display: none; }
.drawer-ups__title { margin: 0 0 var(--sp-2); font-family: var(--font-meta); font-size: var(--t-sm); }
.drawer-ups__row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 78%;
	gap: var(--sp-2);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: var(--sp-2);
}
.drawer-ups__row .ucard { scroll-snap-align: start; grid-template-columns: 56px 1fr auto; border: 1px solid var(--line); }
.drawer-ups__row .ucard.is-busy .ucard__add { opacity: .6; }

/* External newsletter popup (r.js, classes rb-*) must never cover the cart. */
html.rbn-hush [class^="rb-"],
html.rbn-hush [class*=" rb-"] { display: none !important; }

/* ---------------- "נקנים יחד" ---------------- */
.fbt {
	margin: var(--sp-5) 0;
	padding: var(--sp-4);
	border: 1px solid var(--line);
	border-radius: var(--r-lg, 10px);
}
.fbt__title { margin: 0 0 var(--sp-3); font-family: var(--font-display); font-size: var(--d-sm); font-weight: var(--w-display); line-height: 1; }
.fbt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.fbt__item label {
	display: grid;
	grid-template-columns: auto 52px 1fr auto;
	align-items: center;
	gap: var(--sp-3);
	cursor: pointer;
	padding: var(--sp-2);
	border-radius: var(--r-sm, 6px);
}
.fbt__item label:hover { background: var(--line-soft); }
.fbt__item input { width: 1.15rem; height: 1.15rem; accent-color: var(--fg); }
.fbt__img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; }
.fbt__name { font-size: var(--t-sm); line-height: 1.35; }
.fbt__name small { display: block; color: var(--ink-500, #666); font-size: var(--t-xs); }
.fbt__price { font-family: var(--font-meta); font-size: var(--t-sm); white-space: nowrap; }
.fbt__price del { display: none; }
.fbt__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.fbt__sum b { font-family: var(--font-meta); font-size: var(--t-lg); }
.fbt__btn[disabled] { opacity: .55; }
.fbt__btn.is-done { background: var(--success); border-color: var(--success); }

/* ---------------- cart / checkout ---------------- */
.co-steps {
	display: flex;
	justify-content: center;
	gap: var(--sp-2);
	list-style: none;
	margin: 0 auto var(--sp-4);
	padding: 0;
	font-size: var(--t-xs);
	color: var(--ink-500, #777);
}
.co-steps__s { display: flex; align-items: center; gap: .4rem; }
.co-steps__s + .co-steps__s::before { content: '›'; margin-inline-end: var(--sp-2); color: var(--line); }
.co-steps__s span {
	display: inline-grid;
	place-items: center;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	border: 1px solid currentColor;
	font-family: var(--font-meta);
}
.co-steps__s.is-current { color: var(--fg); font-weight: 500; }
.co-steps__s.is-current span { background: var(--fg); color: var(--brand-ink, #fff); border-color: var(--fg); }
.co-steps__s.is-done { color: var(--success); }
.co-shipbar { max-width: 720px; margin: 0 auto var(--sp-4); }
.co-shipbar:empty { display: none; }

/* Filled cart: hide Blocks' empty-cart state + show a skeleton until hydration. */
body.rbn-has-items .wp-block-woocommerce-cart.is-loading .wp-block-woocommerce-empty-cart-block { display: none !important; }
body.rbn-has-items .wp-block-woocommerce-cart.is-loading { position: relative; min-height: 340px; }
body.rbn-has-items .wp-block-woocommerce-cart.is-loading::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--r-lg, 10px);
	background: linear-gradient(90deg, var(--line-soft) 25%, #f6f6f6 50%, var(--line-soft) 75%) 0 0 / 200% 100%;
	animation: rbn-shimmer 1.2s linear infinite;
}
@keyframes rbn-shimmer { to { background-position: -200% 0; } }

.trust {
	display: grid;
	gap: .45rem;
	margin: var(--sp-3) 0;
	padding: var(--sp-3);
	border: 1px solid var(--line);
	border-radius: var(--r-sm, 6px);
	background: #fafafa;
}
.trust__row { display: flex; align-items: flex-start; gap: .45rem; margin: 0; font-size: var(--t-xs); line-height: 1.5; }
.trust__row svg { flex: none; margin-top: .15rem; }

.co-sending {
	position: fixed;
	inset-inline: var(--gutter);
	bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
	z-index: var(--z-modal, 999);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-3);
	max-width: 460px;
	margin: 0 auto;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-pill, 99px);
	background: #000;
	color: #fff;
	font-size: var(--t-sm);
	pointer-events: none;
	box-shadow: var(--shadow-lift);
}
.co-sending[hidden] { display: none; }
.co-sending__spin {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rbn-spin .8s linear infinite;
}
@keyframes rbn-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
	.wp-block-woocommerce-checkout .wc-block-components-checkout-step { margin-bottom: var(--sp-4) !important; }
	.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading { margin-bottom: var(--sp-2) !important; }
	.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description { display: none; }
	.wp-block-woocommerce-checkout .wc-block-components-address-form { gap: var(--sp-2) !important; }
	.wp-block-woocommerce-checkout .wc-block-components-text-input { margin-top: var(--sp-2) !important; }
}

/* ---------------- thank-you ---------------- */
.ty { max-width: 760px; margin: 0 auto var(--sp-6); }
.ty__hero { text-align: center; padding: var(--sp-5) var(--sp-4); }
.ty__check {
	display: inline-grid;
	place-items: center;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 50%;
	background: var(--success);
	color: #fff;
	margin-bottom: var(--sp-3);
}
.ty__title { margin: 0; font-family: var(--font-display); font-size: var(--d-md); font-weight: var(--w-display); line-height: 1.05; }
.ty__num { margin: var(--sp-2) 0 0; font-family: var(--font-meta); font-size: var(--t-sm); color: var(--ink-500, #555); }
.ty__steps { list-style: none; margin: var(--sp-4) 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); counter-reset: ty; }
.ty__steps li {
	position: relative;
	padding: var(--sp-3);
	border: 1px solid var(--line);
	border-radius: var(--r-sm, 6px);
	font-size: var(--t-xs);
	counter-increment: ty;
}
.ty__steps li b { display: block; font-size: var(--t-sm); margin-bottom: .2rem; }
.ty__steps li b::before { content: counter(ty) '. '; font-family: var(--font-meta); }
.ty__steps li.is-done { border-color: var(--success); }
.ty__steps li.is-done b { color: var(--success); }
.ty__steps li.is-current { border-color: var(--fg); }
.ty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.ty__actions .btn { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 600px) { .ty__steps { grid-template-columns: 1fr; } }
