/**
 * AOV surfaces: "Complete the room" bundles on the product page, the checkout order bump and
 * the post-purchase offer. Loaded with the cart stylesheet.
 */

/* --------------------------------------------------- complete the room -- */

.cn-bundles {
	padding: 24px var(--cn-gutter) 56px;
}

.cn-bundles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.cn-bundle {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 20px;
	padding: 20px;
	background: var(--wp--preset--color--oat-deep);
}

.cn-bundle__media {
	display: block;
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--oat-shade);
	overflow: hidden;
}

.cn-bundle__collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	height: 100%;
}

.cn-bundle__collage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cn-bundle__collage img:first-child {
	grid-column: 1 / -1;
}

.cn-bundle__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.cn-bundle__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

.cn-bundle__name a {
	color: inherit;
	text-decoration: none;
}

.cn-bundle__contents {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--ink-soft);
	font-size: 13.5px;
	line-height: 1.5;
}

.cn-bundle__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
	font-size: 15px;
}

.cn-bundle__price .cn-bundle__was {
	color: var(--wp--preset--color--ink-muted);
	text-decoration: line-through;
}

.cn-bundle__price strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	font-weight: 400;
}

.cn-bundle__saving {
	color: var(--wp--preset--color--muted-olive);
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cn-bundle__add {
	margin-top: 6px;
	height: 46px;
	padding: 0 20px;
	border: 0;
	background: var(--wp--preset--color--warm-ink);
	color: var(--wp--preset--color--oat);
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.cn-bundle-contents {
	margin: 0 0 18px;
}

.cn-bundle-contents__label {
	display: block;
	margin-bottom: 6px;
	color: var(--wp--preset--color--ink-muted);
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cn-bundle-contents__list {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
	line-height: 1.7;
}

.cn-bundle-contents__qty {
	color: var(--wp--preset--color--ink-muted);
}

.cn-bundle-contents__saving {
	margin: 0;
	color: var(--wp--preset--color--muted-olive);
	font-size: 13.5px;
}

/* ---------------------------------------------------------- order bump -- */

.cn-bump {
	margin: 0 0 24px;
	border: 1px solid var(--wp--preset--color--greige);
	background: var(--wp--preset--color--oat-deep);
}

.cn-bump__label {
	display: grid;
	grid-template-columns: 22px 72px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 16px;
	cursor: pointer;
}

.cn-bump__check {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--wp--preset--color--walnut);
}

.cn-bump__thumb {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	background: var(--wp--preset--color--oat-shade);
}

/* The thumbnail opens the piece large in the quick view. */
.cn-bump__view {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.cn-bump__zoom {
	position: absolute;
	right: 4px;
	bottom: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgb(247 242 234 / 0.92);
	color: var(--wp--preset--color--warm-ink);
}

.cn-bump__zoom svg {
	width: 12px;
	height: 12px;
}

.cn-bump__more {
	align-self: flex-start;
	margin-top: 4px;
	padding: 0 0 1px;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	color: var(--wp--preset--color--ink-soft);
	font-family: var(--wp--preset--font-family--body);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.cn-bump__more:hover,
.cn-bump__view:hover + .cn-bump__body .cn-bump__more {
	color: var(--wp--preset--color--brass-deep);
}

.cn-bump__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.cn-bump__title {
	color: var(--wp--preset--color--brass-deep);
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cn-bump__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 17px;
	line-height: 1.25;
}

.cn-bump__copy {
	color: var(--wp--preset--color--ink-muted);
	font-size: 13px;
}

.cn-bump__price {
	margin-top: 2px;
	font-size: 14.5px;
}

.cn-bump.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* ------------------------------------------------------ post-purchase -- */

.cn-pp {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	margin: 0 0 40px;
	padding: 28px;
	border: 1px solid var(--wp--preset--color--greige);
	background: var(--wp--preset--color--oat-deep);
}

.cn-pp__media {
	aspect-ratio: 1;
	background: var(--wp--preset--color--oat-shade);
	overflow: hidden;
}

.cn-pp__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cn-pp__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.15;
}

.cn-pp__lede,
.cn-pp__copy {
	margin: 0;
	color: var(--wp--preset--color--ink-soft);
	font-size: 14.5px;
	line-height: 1.55;
}

.cn-pp__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
}

.cn-pp__ship {
	display: block;
	color: var(--wp--preset--color--muted-olive);
	font-family: var(--wp--preset--font-family--body);
	font-size: 12.5px;
}

.cn-pp__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.cn-pp__accept {
	height: 50px;
	padding: 0 24px;
	border: 0;
	background: var(--wp--preset--color--honey-brass);
	color: var(--wp--preset--color--ivory);
	font-family: var(--wp--preset--font-family--body);
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.cn-pp__accept:hover {
	background: var(--wp--preset--color--brass-deep);
}

.cn-pp__dismiss {
	height: 50px;
	padding: 0 18px;
	border: 1px solid var(--wp--preset--color--greige);
	background: transparent;
	color: var(--wp--preset--color--ink-muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.cn-pp__note,
.cn-pp__error {
	margin: 0;
	font-size: 12.5px;
}

.cn-pp__note {
	color: var(--wp--preset--color--ink-muted);
}

.cn-pp__error {
	color: var(--wp--preset--color--walnut);
	font-size: 13.5px;
}

.cn-pp.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 767px) {
	.cn-bundles {
		padding: 8px var(--cn-gutter) 40px;
	}

	.cn-bundle {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 14px;
	}

	.cn-bundle__media {
		aspect-ratio: 4 / 3;
	}

	.cn-pp {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 18px;
	}

	.cn-pp__media {
		aspect-ratio: 4 / 3;
	}

	.cn-bump__label {
		grid-template-columns: 20px 56px minmax(0, 1fr);
		gap: 12px;
		padding: 12px;
	}

	.cn-bump__thumb {
		width: 56px;
		height: 56px;
	}
}
