/**
 * MV Shipping Restrictions — front-end styles.
 *
 * Deliberately minimal. Colour and font family are inherited from WoodMart so
 * the description matches whichever cart, checkout or CheckoutWC template is in
 * use, rather than fighting the theme for control of the rate list.
 */

.mv-shipping-method-description {
	display: block;
	margin-top: 3px;
	font-size: 0.85em;
	line-height: 1.4;
	opacity: 0.8;
}

/* Uses WooCommerce's native amount classes as well, so CheckoutWC places this
 * exactly where a paid rate is displayed. Every typography property inherits
 * from the active checkout instead of introducing a plugin font. */
.mvsr-free-shipping-label {
	float: right;
	margin-left: auto;
	padding-left: 12px;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-style: normal;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-transform: none;
	white-space: nowrap;
}

.mvsr-shipping-message-group {
	display: block;
	width: 100%;
	margin: 0;
}

.mvsr-shipping-message-title {
	margin: 0 0 14px;
	color: #111;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.mvsr-shipping-message {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 64px;
	width: 100%;
	padding: 18px 24px;
	border: 0;
	border-radius: 14px;
	background: #f5f5f5;
	box-shadow: none;
	color: #707070;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	text-align: center;
}

/* CheckoutWC/WooCommerce can wrap no-rate text in an error notice. The class is
 * added by our small checkout script so the red notice chrome can be removed
 * without changing unrelated checkout errors. :has() is a no-JS fallback for
 * current browsers. */
.mvsr-shipping-message-wrapper,
.woocommerce-error:has(.mvsr-shipping-message-group),
.cfw-alert:has(.mvsr-shipping-message-group),
.cfw-alert-error:has(.mvsr-shipping-message-group) {
	display: block !important;
	box-sizing: border-box !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	list-style: none !important;
}

.mvsr-shipping-message-wrapper::before,
.mvsr-shipping-message-wrapper::after,
.woocommerce-error:has(.mvsr-shipping-message-group)::before,
.cfw-alert:has(.mvsr-shipping-message-group)::before,
.cfw-alert-error:has(.mvsr-shipping-message-group)::before {
	display: none !important;
	content: none !important;
}

@media (max-width: 600px) {
	.mvsr-shipping-message-title {
		font-size: 17px;
	}

	.mvsr-shipping-message {
		min-height: 60px;
		padding: 16px 18px;
		font-size: 14px;
	}
}
