/* CT Aurelle Core: small additions on top of the Aurelle theme styles. */

/* Header wishlist link */
.ct-wishlist-link {
	position: relative;
}

.ct-wishlist-link__count {
	position: absolute;
	top: 0.25rem;
	right: 0.125rem;
	min-width: 1.125rem;
	height: 1.125rem;
	padding: 0 0.25rem;
	border-radius: 50rem;
	background-color: var(--color-secondary, #a85a35);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.125rem;
	text-align: center;
}

.ct-wishlist-link__count[hidden] {
	display: none;
}

/* Product page heart */
.ct-wishlist-single {
	flex-shrink: 0;
	width: 3.5rem;
	min-height: 3.5rem;
	padding: 0;
}

.ct-wishlist-single.is-active,
.product-card__wish.is-active {
	color: var(--color-sale, #b3261e);
}

.ct-wishlist-single.is-active .icon {
	fill: currentColor;
}

.js-ct-wishlist.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* Newsletter form */
.ct-newsletter {
	width: 100%;
	max-width: 32rem;
	margin-inline: auto;
}

/* Inside the dark newsletter card the form takes the card's text width */
.newsletter .ct-newsletter {
	max-width: none;
}

.ct-newsletter .newsletter__note:empty {
	display: none;
}

.ct-newsletter__trap {
	position: absolute !important;
	left: -999rem;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ct-newsletter__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.75rem;
	text-align: left;
	color: var(--color-on-dark-muted, rgba(255, 255, 255, 0.72));
	cursor: pointer;
}

.ct-newsletter__consent input {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.05em;
	accent-color: var(--color-highlight, #dfe9b8);
}

.ct-newsletter__consent a {
	color: inherit;
	text-decoration: underline;
}

.ct-newsletter.is-busy button {
	opacity: 0.6;
	pointer-events: none;
}

.ct-newsletter.is-success .ct-newsletter__message {
	color: var(--color-highlight, #dfe9b8);
}

/* On light backgrounds (anywhere outside the dark .newsletter card: page
   content, sidebars, other builders) the form switches to dark-on-light. */
.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe,
.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe__input {
	border-color: var(--color-border, #e4ded3);
	background-color: var(--color-surface, #fff);
}

.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe:focus-within,
.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe__input:focus {
	border-color: var(--color-primary, #1f3d36);
}

.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe__input {
	color: var(--color-text, #1c1c1a);
}

/* From 36em the field and button share one pill: only the pill has a border */
@media (min-width: 36em) {
	.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe__input,
	.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe__input:focus {
		border-color: transparent;
		background-color: transparent;
	}
}

.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe__input::placeholder,
.ct-newsletter:not(.newsletter .ct-newsletter) .subscribe__icon,
.ct-newsletter:not(.newsletter .ct-newsletter) .ct-newsletter__consent,
.ct-newsletter:not(.newsletter .ct-newsletter) .newsletter__note {
	color: var(--color-text-muted, #5f5e59);
}

.ct-newsletter:not(.newsletter .ct-newsletter) .btn-light {
	--bs-btn-bg: var(--color-primary, #1f3d36);
	--bs-btn-color: var(--color-white, #fff);
	--bs-btn-hover-bg: var(--color-primary-dark, #142a25);
	--bs-btn-hover-color: var(--color-white, #fff);
	background-color: var(--color-primary, #1f3d36);
	color: var(--color-white, #fff);
}

.ct-newsletter:not(.newsletter .ct-newsletter) .btn-light:hover {
	background-color: var(--color-primary-dark, #142a25);
	color: var(--color-white, #fff);
}

.ct-newsletter:not(.newsletter .ct-newsletter) .ct-newsletter__consent input {
	accent-color: var(--color-primary, #1f3d36);
}

.ct-newsletter:not(.newsletter .ct-newsletter) .newsletter__message {
	color: var(--color-success, #2e7d4f);
}

.share__link--email .icon {
	width: 1rem;
	height: 1rem;
}

/* Elementor sets ".elementor img { height: auto; border-radius: 0 }": restore the
   Aurelle image sizes inside the widgets. */
.elementor .hero__image,
.elementor .collection-card__image,
.elementor .concern-card__media img,
.elementor .ugc-tile img,
.elementor .product-card__image {
	height: 100%;
}

.elementor .mini-product__image {
	height: 3.5rem;
	border-radius: var(--radius-md);
}

.elementor .avatar-stack img {
	height: 2.75rem;
	border-radius: var(--radius-round);
}

.elementor .statement__float {
	height: 9rem;
	border-radius: var(--radius-round);
}

.elementor .ingredient-card__image {
	height: 4.5rem;
	border-radius: var(--radius-round);
}

.elementor .testimonial-card__avatar {
	height: 3rem;
	border-radius: var(--radius-round);
}

.elementor .big-quote {
	/* Elementor zeroes figure margins with a very specific selector. */
	margin-inline: auto !important;
}

.elementor .big-quote__author img,
.elementor .collage__item img,
.elementor .team-card__image {
	border-radius: var(--radius-round);
}

.elementor .big-quote__author img {
	width: 3.5rem;
	height: 3.5rem;
}

.elementor .collage__item img,
.elementor .team-card__image {
	height: 100%;
	border-radius: inherit;
}

/* Product filters widget: the groups carry the borders, not the widget box */
.ct-filters-widget.filter-group,
.ct-filters-widget.widget {
	padding: 0;
	border: 0;
}

.ct-filters .filter-group__list {
	gap: 0.75rem;
	padding-bottom: 1rem;
}

.ct-filters .filter-group {
	padding-block: 0;
}

.ct-filters .filter-group__list > li {
	display: block;
	padding: 0;
}

.ct-filters.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* The contact status line takes no space until it has a message */
.ct-contact__message:empty {
	min-height: 0;
	margin: 0;
}
