/**
 * Black Friday look for the PDP buy box (IndaCloud Linked Product Switcher).
 *
 * Loaded by ic-nov-buy-box.php only in the black-friday phase,
 * after the plugin's public.css.
 */

#autoship-schedule-options .autoship-type {
	border: 2px solid #d9d9d9;
	background-color: #fff;
}

#autoship-schedule-options .autoship-type.active {
	border-color: #f7a928;
	background-color: #fff8ec;
}

#autoship-schedule-options .autoship-type label.autoship-label .autoship-type-info .autoship-pricing-info .autoship-discount {
	display: none;
}

/*
 * Grid: radio and label on one row, the per-unit badge (e.g. $1.34/Gummy) below the label, price on
 * the right. The wrappers between them are display: contents so all four share this grid. The 1fr
 * rows above and below keep the label (and badge, when shown) centred against the price.
 */
#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: 1fr auto auto 1fr;
	margin-top: 6px;
}

#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label .autoship-type-info,
#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label .autoship-type-info .autoship-pricing-info {
	display: contents;
}

#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label input[type="radio"] {
	grid-column: 1;
	grid-row: 2;
	margin-bottom: 0;
}

#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label .label {
	grid-column: 2;
	grid-row: 2;
}

#autoship-schedule-options .autoship-type label.autoship-label .indacloud-lps-autoship-price {
	flex-direction: column;
	grid-column: 3;
	grid-row: 1 / -1;
	align-items: flex-end;
	gap: 0;
	padding-left: 8px;
}

#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label .autoship-type-info .autoship-pricing-info .autoship-item-price {
	grid-column: 2;
	grid-row: 3;
	justify-self: start;
	margin-top: 6px;
}

#autoship-schedule-options .autoship-type.autoship-yes .autoship-recurring-info {
	border-left-color: #f7a928;
	font-size: clamp(12px, 0.5vw + 8px, 14px);
}

#autoship-schedule-options .autoship-type .autoship-label {
	align-items: center;
}

.ic-nov-renewal-price {
	font-weight: 600;
}

#autoship-schedule-options .ic-otp-copy-col {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
}

#autoship-schedule-options .ic-nov-onetime-note {
	display: block;
	margin: 2px 6px 0 2px;
	color: #666;
	font-family: Poppins, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 18px;
}

#autoship-schedule-options .autoship-type.autoship-yes .autoship-features {
	font-size: clamp(14px, 0.5vw + 10px, 16px);
}

@media (max-width: 480px) {

	/* Top-aligned on mobile: the spacer row above the label collapses. */
	#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label {
		grid-template-rows: 0 auto auto 1fr;
		align-items: start;
		margin: 10px 0;
	}

	#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label .label {
		font-size: 13.5px;
	}

	#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label input[type="radio"] {
		width: 16px;
		height: 16px;
	}

	#autoship-schedule-options .autoship-type.autoship-yes label.autoship-label input[type="radio"]:checked::after {
		width: 8px;
		height: 8px;
	}

	#autoship-schedule-options .autoship-type label.autoship-label .indacloud-lps-autoship-price {
		font-size: 18px;
	}

	#autoship-schedule-options .autoship-type label.autoship-label .indacloud-lps-autoship-price s {
		font-size: 14px;
	}

	/* The BF40 note makes the one-time row taller; the item-swap thumb (align-self: stretch) would stretch with it. */
	#autoship-schedule-options .autoship-type.autoship-no .ic-otp-thumb {
		align-self: center;
		max-height: 70px;
		object-fit: contain;
	}
}

@media (max-width: 370px) {

	#autoship-schedule-options .autoship-type.autoship-yes .badge {
		left: 9px;
		font-size: 11px;
	}
}
