/* Bought-together block ---------------------------------------------------- */

.ccbn-bundle {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	margin: 32px 0;
	max-width: 100%;
	padding: 20px;
}

.ccbn-bundle__title {
	font-size: 1.25em;
	margin: 0 0 16px;
}

.ccbn-bundle__grid {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ccbn-bundle__plus {
	align-self: center;
	font-size: 1.5em;
	line-height: 1;
	opacity: 0.5;
}

.ccbn-bundle__item {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	flex: 1 1 220px;
	min-width: 0;
	padding: 12px;
}

.ccbn-bundle__item--off {
	opacity: 0.55;
}

.ccbn-bundle__pick {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 10px;
	margin: 0;
}

.ccbn-bundle__thumb {
	flex: 0 0 auto;
	max-width: 72px;
}

.ccbn-bundle__thumb img {
	border-radius: 4px;
	display: block;
	height: auto;
	max-width: 100%;
}

.ccbn-bundle__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ccbn-bundle__name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.ccbn-bundle__this,
.ccbn-bundle__off {
	font-size: 0.82em;
	opacity: 0.7;
}

.ccbn-bundle__summary {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 18px;
}

.ccbn-bundle__totals {
	margin: 0;
}

.ccbn-bundle__new {
	font-size: 1.2em;
}

.ccbn-bundle__old {
	opacity: 0.6;
}

.ccbn-bundle__save {
	color: #1a7f37;
	font-weight: 600;
	margin: 0;
}

.ccbn-bundle__hint,
.ccbn-bundle__msg {
	flex: 1 1 100%;
	margin: 0;
	opacity: 0.8;
}

.ccbn-bundle__msg.is-error {
	color: #b32d2e;
	opacity: 1;
}

.ccbn-bundle__submit {
	min-height: 42px;
}

/* Gift panel --------------------------------------------------------------- */

.ccbn-gift-panel {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	margin: 0 0 24px;
	max-width: 100%;
	padding: 16px 20px;
}

.ccbn-gift-progress__text,
.ccbn-gift-progress--done {
	margin: 0 0 8px;
}

.ccbn-gift-progress--done {
	color: #1a7f37;
	font-weight: 600;
}

.ccbn-gift-progress__bar {
	background: rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	min-height: 8px;
	overflow: hidden;
}

.ccbn-gift-progress__bar > span {
	background: #1a7f37;
	display: block;
	min-height: 8px;
	transition: width 0.3s ease;
}

.ccbn-gift-choice {
	margin-top: 16px;
}

.ccbn-gift-choice__title {
	font-weight: 600;
	margin: 0 0 8px;
}

.ccbn-gift-choice__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ccbn-gift-choice__item {
	flex: 1 1 200px;
	margin: 0;
	min-width: 0;
}

.ccbn-gift-choice__item label {
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	gap: 10px;
	padding: 8px;
}

.ccbn-gift-choice__thumb {
	flex: 0 0 auto;
	max-width: 56px;
}

.ccbn-gift-choice__thumb img {
	display: block;
	height: auto;
	max-width: 100%;
}

.ccbn-gift-choice__msg.is-error {
	color: #b32d2e;
}

.ccbn-gift-qty {
	display: inline-block;
	opacity: 0.8;
}

/* Cart discounts: progress to the next tier shares the gift bar look. */
.ccbn-discount-progress + .ccbn-gift-progress {
	margin-top: 12px;
}

.ccbn-promo-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.ccbn-promo-label {
	background: #d63638;
	border-radius: 4px;
	color: #fff;
	display: inline-block;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.4;
	padding: 2px 8px;
}
