.bc-wp-twenty-twenty-theme {
	/* Case: Theme Site header need higher z-index than 1. */
	#site-header {
		z-index: 10;
	}

	/* Case: Content widths need to be wider for bc content pages. */
	.entry-content > * {
		max-width: var(--container-960) !important;

		&.bc-product-card__featured-image {
			max-width: 370px !important;
			z-index: 0;

			@media (--viewport-420) {
				margin-right: calc((100vw - 370px) - 20px);
			}

			@media (--viewport-min-1000) {
				margin-left: calc((100vw - 960px) / 2);
				margin-right: auto;
			}
		}
	}

	&.bc-gallery-size-bc-xmedium {

		.entry-content > * {
			max-width: var(--container-1440) !important;
		}
	}

	.entry-content *[class^="bc-"] {

		h1,
		h2:not(.bc-product-archive__title), /* Product Archive Title needs top spacing. */
		h3,
		h4,
		h5 {
			margin-top: 0;
		}
	}

	/* Case: Product archive view needs to be wider to allow space for the refinery. */
	.entry-content .bc-product-archive {
		max-width: 1260px !important;
	}

	/* Case: Reset section padding for Single product content. */
	.single-bigcommerce_product {

		section {
			padding: inherit;
		}

		.bc-product-single {
			padding-top: 4rem;
		}

		.bc-single-product__section-title,
		.bc-single-product__section-title--related {
			margin-top: 0;
		}
	}

	label.bc-product-form__quantity-label {
		font-size: inherit;
	}

	/* Case: Quick View modal font sizes influenced by html wrapper setting. */
	+ .bc-product-quick-view__wrapper {
		font-size: 2em;

		label.bc-product-form__quantity-label {
			font-size: inherit;
		}
	}

	/* Case: addresses and overlap issue with rating stars. */
	.bc-single-product__rating--mask {
		z-index: 0;
	}

	/* BC Product Gallery interferes with the cart dropdown. */
	.bc-product-single .bc-product__gallery {
		z-index: 0;
	}

	/* Footer Widgets */
	.footer-widgets-wrapper {
		/* Case: Mini Cart in the footer has a link wrapping issue. */
		.bc-mini-cart .bc-cart-item-image {
			flex: 0 0 100px;

			img {
				max-width: 100px;
			}
		}
	}

	/* Case: Address dialog overlay needs to inherit the BG color of the Customizer setting. */
	.bc-account-address-form__overlay {
		background: inherit;
	}

	/* Case: Wish List dialog box font size is too small. */
	~ .bc-wish-list-dialog__wrapper {
		font-size: 16px;

		label,
		.bc-wish-list-dialog-description {
			font-size: 1.2em;
		}

		input.bc-wish-list-name-field {
			margin-top: 4px;
			margin-bottom: 12px;
		}

		button.bc-product-quick-view__close-button {
			background-color: inherit;
			text-decoration: none;
			opacity: 0.4;

			&:hover,
			&:focus {
				opacity: 1;
			}
		}
	}

	/* Case: Address form modal is cut off. */
	.bc-account-addresses__list.bc-account-address--form-active {
		position: absolute;
	}

	.bc-account-address-form__wrapper {
		position: relative;
	}
}
