/* ==========================================================================
   Online Addict — "Bundle & Save" product type front-end styles.
   Uses the theme's design tokens (--oa-navy / --oa-cyan / --oa-yellow) with
   safe fallbacks so this still looks right if the theme vars aren't present.
   ========================================================================== */

.oac-bundle-form{
	--oab-navy:var(--oa-navy,#1D204F);
	--oab-cyan:var(--oa-cyan,#55C9ED);
	--oab-yellow:var(--oa-yellow,#FFD900);
	--oab-line:var(--oa-line,#E4E6F0);
	--oab-bg:var(--oa-bg,#F5F6FA);
	--oab-muted:var(--oa-muted,#5D6280);
	--oab-green:var(--oa-green,#1E7F45);
	--oab-radius:var(--oa-radius,16px);
	--oab-radius-sm:var(--oa-radius-sm,10px);
	margin:0 0 24px;
}

.oac-bundle-save{
	display:inline-flex;
	align-items:center;
	gap:6px;
	margin:0 0 14px;
	padding:8px 14px;
	border-radius:999px;
	background:rgba(85,201,237,.16);
	color:var(--oa-navy,#1D204F);
	font-size:14px;
	font-weight:600;
}
.oac-bundle-save strong{color:var(--oa-green,#1E7F45);font-weight:800}

.oac-bundle-items{
	list-style:none;
	margin:0 0 16px;
	padding:0;
	display:flex;
	flex-direction:column;
	gap:10px;
}

.oac-bundle-item{
	display:grid;
	grid-template-columns:auto 56px 1fr auto;
	align-items:center;
	gap:12px;
	padding:10px 12px;
	border:1.5px solid var(--oab-line);
	border-radius:var(--oab-radius-sm);
	background:#fff;
	transition:border-color .15s,background .15s,opacity .15s;
}
.oac-bundle-item:has(input:checked){
	border-color:var(--oab-cyan);
	background:rgba(85,201,237,.08);
}
.oac-bundle-item.is-out{opacity:.55}
.oac-bundle-item.is-unavailable{opacity:.4;filter:grayscale(.3)}

.oac-bundle-check{
	position:relative;
	display:inline-grid;
	place-items:center;
	width:26px;
	height:26px;
	cursor:pointer;
}
.oac-bundle-check input[type="checkbox"]{
	position:absolute;
	inset:0;
	margin:0;
	width:26px;
	height:26px;
	opacity:0;
	cursor:pointer;
}
.oac-bundle-check input[type="checkbox"]:disabled{cursor:not-allowed}
.oac-bundle-tick{
	display:inline-grid;
	place-items:center;
	width:26px;
	height:26px;
	border-radius:7px;
	background:var(--oab-navy);
	color:#fff;
	font-size:14px;
	font-weight:800;
	flex:none;
}
.oac-bundle-check .oac-bundle-tick{
	position:relative;
	border:2px solid var(--oab-line);
	background:#fff;
	color:transparent;
	pointer-events:none;
}
.oac-bundle-check input[type="checkbox"]:checked ~ .oac-bundle-tick,
.oac-bundle-check input[type="checkbox"]:focus-visible ~ .oac-bundle-tick{
	border-color:var(--oab-navy);
}
.oac-bundle-check input[type="checkbox"]:checked ~ .oac-bundle-tick{
	background:var(--oab-navy);
	color:#fff;
}
.oac-bundle-check input[type="checkbox"]:disabled ~ .oac-bundle-tick{
	border-color:var(--oab-line);
	background:var(--oab-bg);
}

.oac-bundle-img{
	display:block;
	width:56px;
	height:56px;
	border-radius:8px;
	overflow:hidden;
	background:var(--oab-bg);
	flex:none;
}
.oac-bundle-img img{width:100%;height:100%;object-fit:cover;display:block}

.oac-bundle-name{
	display:flex;
	flex-direction:column;
	gap:2px;
	min-width:0;
}
.oac-bundle-name a{
	font-weight:700;
	color:var(--oab-navy);
	text-decoration:none;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.oac-bundle-name a:hover{text-decoration:underline}
.oac-bundle-name small{
	color:var(--oab-muted);
	font-size:12.5px;
}
.oac-bundle-name small strong{color:var(--oa-red,#C2261C)}

.oac-bundle-add{
	flex:none;
	font-weight:800;
	font-size:14px;
	color:var(--oab-green);
	white-space:nowrap;
}

.oac-bundle-total{
	display:flex;
	align-items:baseline;
	flex-wrap:wrap;
	gap:10px;
	padding:14px 16px;
	border-radius:var(--oab-radius-sm);
	background:var(--oab-navy);
	color:#fff;
	margin:0 0 10px;
}
.oac-bundle-total span{
	font-size:13px;
	font-weight:600;
	opacity:.8;
	text-transform:uppercase;
	letter-spacing:.03em;
}
.oac-bundle-total strong{
	font-size:24px;
	font-weight:800;
}
.oac-bundle-total em{
	font-style:normal;
	font-size:13px;
	font-weight:700;
	color:var(--oab-yellow);
	margin-left:auto;
}

.oac-bundle-rule{
	margin:0 0 12px;
	font-size:13.5px;
	color:var(--oab-muted);
}
.oac-bundle-rule.is-invalid{
	color:var(--oa-red,#C2261C);
	font-weight:700;
}

.oac-bundle-form .quantity{margin:0 0 12px}

.oac-bundle-form .single_add_to_cart_button{
	margin-top:4px;
}
.oac-bundle-form .single_add_to_cart_button:disabled,
.oac-bundle-form .single_add_to_cart_button.disabled{
	opacity:.5;
	cursor:not-allowed;
	pointer-events:none;
}

@media (max-width:480px){
	.oac-bundle-item{grid-template-columns:auto 44px 1fr auto;padding:8px 10px}
	.oac-bundle-img{width:44px;height:44px}
	.oac-bundle-total strong{font-size:20px}
}


/* ---- Amazon-style: items side by side in one row, "Included" instead of ticks ---- */
.oac-bundle-form .oac-bundle-items{flex-direction:row;flex-wrap:nowrap;gap:0;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.oac-bundle-form .oac-bundle-item{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;flex:1 1 0;min-width:136px;max-width:200px;margin-left:30px;padding:12px 10px;scroll-snap-align:start}
.oac-bundle-form .oac-bundle-item:first-child{margin-left:0}
.oac-bundle-form .oac-bundle-plus{position:absolute;left:-26px;top:38px;width:22px;text-align:center;font-size:22px;font-weight:800;color:var(--oab-muted)}
.oac-bundle-form .oac-bundle-img{width:100%;max-width:120px;height:auto;aspect-ratio:1/1}
.oac-bundle-form .oac-bundle-name{align-items:center;width:100%}
.oac-bundle-form .oac-bundle-name a{white-space:normal;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.oac-bundle-form .oac-bundle-prices{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:14px}
.oac-bundle-form .oac-bundle-prices del{color:var(--oab-muted);font-size:12.5px}
.oac-bundle-form .oac-bundle-prices strong{color:var(--oab-navy);font-size:15px}
.oac-bundle-form .oac-bundle-prices small{color:var(--oab-muted);font-size:11.5px}
.oac-bundle-incl{display:inline-block;background:#e6f4ea;color:#17692d;font-weight:800;font-size:12px;padding:3px 10px;border-radius:99px}
.oac-bundle-form .oac-bundle-check{width:auto;height:auto;display:inline-flex;align-items:center;gap:6px}
.oac-bundle-form .oac-bundle-check input[type="checkbox"]{width:100%;height:100%}
.oac-bundle-add-txt{font-size:12.5px;font-weight:700;color:var(--oab-navy)}
@media(max-width:480px){.oac-bundle-form .oac-bundle-item{min-width:126px;margin-left:28px;grid-template-columns:none;padding:10px 8px}}

/* ---- Bundle price bar with a cart icon ---- */
.oac-bundle-form .oac-bundle-total{display:flex;align-items:center;flex-wrap:nowrap;gap:12px;padding:12px 14px;border-radius:14px;background:linear-gradient(135deg,var(--oab-navy),#2b2f73);color:#fff;margin:0 0 12px}
.oac-bundle-cart{flex:none;width:46px;height:46px;border-radius:50%;background:var(--oab-yellow);color:var(--oab-navy);display:grid;place-items:center;box-shadow:0 3px 0 rgba(0,0,0,.18)}
.oac-bundle-total__txt{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.oac-bundle-form .oac-bundle-total__txt small{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;opacity:.8}
.oac-bundle-form .oac-bundle-total__txt strong{font-size:26px;font-weight:900;margin-top:2px}
.oac-bundle-form .oac-bundle-total em{margin-left:auto;flex:none;font-style:normal;font-weight:800;font-size:13px;background:var(--oab-yellow);color:var(--oab-navy);border-radius:99px;padding:6px 12px;white-space:nowrap}
.oac-bundle-form .oac-bundle-total em:empty{display:none}
@media(max-width:420px){.oac-bundle-form .oac-bundle-total{flex-wrap:wrap}.oac-bundle-form .oac-bundle-total em{margin-left:58px}}
.oac-bundle-form .oac-bundle-total span{text-transform:none;opacity:1;font-size:inherit;letter-spacing:0;font-weight:inherit}
