/**
 * WooCommerce notices (Shoptimizer / test3).
 *
 * @package Hq_Accessories
 */

.woocommerce-message {
	max-width: var(--hq-col-full, 1170px);
	margin-right: auto;
	margin-left: auto;
}

.woocommerce-error,
.woocommerce-info:not(.cart-empty),
.woocommerce-message,
.woocommerce-noreviews,
p.no-comments {
	clear: both;
	position: static;
	margin-bottom: 2rem;
	margin-left: 0;
	padding: 1em 1.618em;
	border-top: 0;
	border-left: 0.4180469716em solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	font-size: clamp(0.8125rem, 0.749rem + 0.2033vw, 0.875rem);
	color: #fff;
	outline: 0;
	list-style: none;
}

/* WooCommerce general.css adds ::before icons — hide them (Shoptimizer has no icons). */
.woocommerce-error::before,
.woocommerce-error::after,
.woocommerce-info:not(.cart-empty)::before,
.woocommerce-info:not(.cart-empty)::after,
.woocommerce-message::before,
.woocommerce-message::after,
.woocommerce-noreviews::before,
.woocommerce-noreviews::after,
p.no-comments::before,
p.no-comments::after {
	display: none;
	content: none;
}

ul.woocommerce-error li,
ul.woocommerce-info li {
	margin-bottom: 0;
}

.woocommerce-info:not(.cart-empty),
.woocommerce-noreviews,
p.no-comments {
	background-color: #3d9cd2;
}

.woocommerce-error {
	background-color: #e2401c;
}

.woocommerce-message {
	background-color: #3bb54a;
}

.woocommerce-error a,
.woocommerce-info:not(.cart-empty) a,
.woocommerce-message a,
.woocommerce-noreviews a,
p.no-comments a {
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s;
}

.woocommerce-error a:hover,
.woocommerce-info:not(.cart-empty) a:hover,
.woocommerce-message a:hover {
	opacity: 0.75;
	color: #fff;
}

.woocommerce-message .button,
.woocommerce-info:not(.cart-empty) .button,
.woocommerce-error .button {
	float: right;
	padding: 0 0 0 1em;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 0;
	color: #fff;
	background: transparent;
	box-shadow: none;
	line-height: 1.618;
	font-weight: 600;
}

.woocommerce-message .buttons-wrapper {
	display: none;
}

@media (min-width: 993px) {
	.woocommerce-message .message-content {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}

	.woocommerce-message .message-content a.button {
		float: none;
		margin-left: auto;
		flex-shrink: 0;
	}
}

/* Cart page (test3 / Shoptimizer) */
body.woocommerce-cart .woocommerce > .woocommerce-error {
	margin-top: 1.5rem;
	margin-bottom: 0;
}

body.woocommerce-cart .woocommerce-notices-wrapper {
	margin-bottom: 2rem;
}

body.woocommerce-cart .woocommerce-notices-wrapper:empty {
	margin: 0;
}

body.woocommerce-cart .woocommerce-notices-wrapper:not(:empty) + .checkout-wrap {
	margin-top: 2.5rem;
}
