/* WOW CACAO Умови — HoReCa badge, conditions card, minimum order note. */

.wcac-badge {
	--wcac-gold: #c49846;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 6px;
	border: 1px solid var(--wcac-gold);
	border-radius: 999px;
	background: #fffaf0;
	color: #7a5a1e;
	font-family: 'Cera Pro', sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .02em;
	white-space: nowrap;
}
.wcac-badge__icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	padding: 2px;
	border-radius: 50%;
	background: var(--wcac-gold);
	color: #fff;
}

/* Header: small round badge on the account icon. */
.header-icon.account { position: relative; }
.wcac-badge--dot {
	position: absolute;
	top: -5px;
	right: -7px;
	z-index: 4;
	width: 16px;
	height: 16px;
	padding: 0;
	gap: 0;
	border: 1.5px solid #fff;
	background: var(--wcac-gold);
	pointer-events: none;
}
.wcac-badge--dot .wcac-badge__icon {
	flex-basis: 100%;
	width: 100%;
	height: 100%;
	padding: 1.5px;
	background: transparent;
}

/* Conditions card. */
.wcac-terms {
	margin: 0 0 16px;
	padding: 16px 18px;
	border-radius: var(--radius, 16px);
	background: #f4f2ee;
	color: #220e0f;
	font-family: 'Cera Pro', sans-serif;
}
.wcac-terms.is-horeca {
	background: linear-gradient(135deg, #f7efe0 0%, #f4f2ee 60%);
	box-shadow: inset 0 0 0 1px rgba(196, 152, 70, .35);
}
.wcac-terms__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.wcac-terms__title {
	margin: 0;
	white-space: nowrap;
	font-family: 'Cera Pro', sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	color: #220e0f;
}
.wcac-terms__status {
	font-size: 13px;
	color: #6b6864;
}
.wcac-terms__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px;
	margin: 0;
}
.wcac-terms__row {
	padding: 10px 12px;
	border-radius: 10px;
	background: #fffefc;
}
.wcac-terms__row dt {
	margin: 0 0 4px;
	font-size: 12px;
	color: #6b6864;
}
.wcac-terms__row dd {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #220e0f;
}
.wcac-terms__rules {
	margin-top: 12px;
	font-size: 14px;
}
.wcac-terms__rules-title {
	margin: 0 0 6px;
	font-weight: 500;
}
.wcac-terms__rules ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.wcac-terms__rules li {
	position: relative;
	margin: 0 0 4px;
	padding-left: 16px;
	color: #4b4b4b;
}
.wcac-terms__rules li::before {
	content: '';
	position: absolute;
	top: .5em;
	left: 2px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #c49846;
}

/* Cart / checkout: compact. */
.wcac-terms--cart,
.wcac-terms--checkout {
	padding: 14px;
}
.wcac-terms--cart .wcac-terms__list,
.wcac-terms--checkout .wcac-terms__list {
	grid-template-columns: 1fr;
	gap: 6px;
}
.wcac-terms--cart .wcac-terms__row,
.wcac-terms--checkout .wcac-terms__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
}
.wcac-terms--cart .wcac-terms__row dt,
.wcac-terms--checkout .wcac-terms__row dt {
	margin: 0;
	font-size: 13px;
}
.wcac-terms--cart .wcac-terms__row dd,
.wcac-terms--checkout .wcac-terms__row dd {
	font-size: 14px;
	text-align: right;
	white-space: nowrap;
}

/* Minimum order: the note sits in the theme's flex row with the buttons, so give it its own line above them. */
.wc-proceed-to-checkout {
	flex-wrap: wrap;
}
.wc-proceed-to-checkout .wcac-min-note {
	flex: 0 0 100%;
	max-width: 100%;
	order: -1;
	margin: 0 0 4px;
}
.wcac-checkout-disabled,
.wcac-checkout-disabled:hover {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}
.wcac-min-note {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.35;
	color: #b94336;
}
.wcac-min-note--mini {
	margin: 0 0 12px;
}

@media (max-width: 575px) {
	.wcac-terms { padding: 14px 12px; }
	.wcac-terms__list { grid-template-columns: 1fr; }
	.wcac-badge { font-size: 12px; }
}

/* Wholesale price: the price, and under it the condition text, both left-aligned. */
.wcac-wholesale {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	margin-left: 12px;
	color: #9a958f;
	vertical-align: middle;
	text-align: left;
}
.wcac-wholesale__price,
.wcac-wholesale__price .amount,
.wcac-wholesale__price bdi {
	font-weight: 500;
	color: #9a958f;
	white-space: nowrap;
}
.wcac-wholesale__label {
	display: block;
	max-width: 170px;
	font-family: 'Cera Pro', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	text-align: left;
	white-space: normal;
}
/* Product page: the theme's price column is narrow, so the block goes on its own line under the main price. */
.singleProduct-summary .price .wcac-wholesale,
.singleProduct-main-mobile .price .wcac-wholesale {
	display: flex;
	margin: 8px 0 0;
	font-size: 20px;
}
.singleProduct-summary .price .wcac-wholesale__label,
.singleProduct-main-mobile .price .wcac-wholesale__label {
	max-width: none;
	font-size: 13px;
}
/* Catalog card: wholesale price under the main price, everything centered like the theme's price. */
.products-item__price .wcac-wholesale {
	display: flex;
	align-items: center;
	margin: 2px 0 0;
	font-size: .8em;
	text-align: center;
}
.products-item__price .wcac-wholesale__label {
	max-width: 200px;
	text-align: center;
}
.wcac-wholesale-progress .cart-freeDelivery-line span {
	background: #282015;
}

/* Mini cart: HoReCa amount crossed out, wholesale amount next to it. */
.wcac-mini-price del,
.wcac-mini-total del {
	margin-right: 6px;
	font-weight: 400;
	color: #9A9A9A;
	font-size: 0.8em;
}
.wcac-mini-price del *,
.wcac-mini-total del * {
	font-weight: 400;
	color: #9A9A9A;
}
.wcac-mini-price ins {
	text-decoration: none;
}
.wcac-mini-total {
	white-space: nowrap;
}

/* Cart page / checkout: HoReCa price small and crossed out above the wholesale price. */
.wcac-cart-price {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.15;
}
.wcac-cart-price del,
.wcac-cart-price del * {
	font-size: 0.75em;
	font-weight: 400;
	color: #9A9A9A;
}
.wcac-cart-price del .amount,
.wcac-cart-price del bdi {
	font-size: 1em;
}
.wcac-cart-price ins {
	text-decoration: none;
}
