/**
 * BFM storefront notices + checkout shipping row + order bump
 * Soften WooCommerce/Extra dual-border notice styling to match Flavor/CC theme.
 */

/* ---- Notices (info / message / error) ---- */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-noreviews,
ul.woocommerce-info,
ul.woocommerce-message,
ul.woocommerce-error {
	background: #faf8f5 !important;
	background-color: #faf8f5 !important;
	border: 1px solid #e5e5e5 !important;
	border-top: 1px solid #e5e5e5 !important;
	border-left: 3px solid #cf6c3f !important;
	border-right: 1px solid #e5e5e5 !important;
	border-bottom: 1px solid #e5e5e5 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	color: #2c2c2c !important;
	padding: 1em 1.25em !important;
	margin: 0 0 1.25em !important;
	list-style: none !important;
	font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.woocommerce-message { border-left-color: #1e7e34 !important; }

.woocommerce-error {
	border-left-color: #b32d2e !important;
	background: #fdf6f6 !important;
	background-color: #fdf6f6 !important;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::after,
.woocommerce-message::after,
.woocommerce-error::after,
li.woocommerce-info::before,
li.woocommerce-message::before,
li.woocommerce-error::before {
	display: none !important;
	content: none !important;
	speak: never;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-coupon-toggle .woocommerce-info:before {
	padding-left: 1.25em !important;
}

.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a {
	color: #b55a32 !important;
	text-decoration: underline;
	font-weight: 600;
}

.woocommerce-info a:hover,
.woocommerce-message a:hover,
.woocommerce-error a:hover {
	color: #cf6c3f !important;
}

/* ---- Checkout / cart shipping totals row ---- */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
.woocommerce-checkout-review-order-table tr.shipping th,
.cart_totals tr.woocommerce-shipping-totals th,
.cart_totals tr.shipping th {
	vertical-align: middle;
	white-space: nowrap;
}

.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
.woocommerce-checkout-review-order-table tr.shipping td,
.cart_totals tr.woocommerce-shipping-totals td,
.cart_totals tr.shipping td {
	vertical-align: middle;
	text-align: right;
	white-space: nowrap;
}

.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table tr.shipping td .woocommerce-Price-amount,
.cart_totals tr.shipping td .woocommerce-Price-amount {
	white-space: nowrap;
}

.woocommerce-shipping-methods,
ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-shipping-methods li,
ul#shipping_method li {
	white-space: nowrap;
	margin: 0;
}

@media (max-width: 600px) {
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
	.woocommerce-checkout-review-order-table tr.shipping th,
	.cart_totals tr.shipping th {
		white-space: normal;
	}
	.woocommerce-checkout-review-order-table tr.shipping td,
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
	.cart_totals tr.shipping td,
	.woocommerce-shipping-methods li,
	ul#shipping_method li {
		white-space: normal;
		word-break: normal;
		overflow-wrap: anywhere;
		line-height: 1.35;
	}
	.woocommerce-checkout-review-order-table tr.shipping td .amount,
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td .amount,
	.cart_totals tr.shipping td .amount {
		white-space: nowrap;
	}
}

/* ---- Order bump (cc-bump / bfm-bump): checkbox + hanging indent ---- */
.cc-bump,
.bfm-bump {
	background: #fff !important;
	border: 2px dashed #9B3B13 !important;
	border-radius: 10px !important;
	padding: 16px 18px !important;
	margin: 16px 0 !important;
	max-width: 760px;
	box-sizing: border-box;
	display: block;
}

.cc-bump.is-added,
.bfm-bump.is-added {
	border-style: solid !important;
	background: #FBF4F0 !important;
}

.cc-bump.is-updating,
.bfm-bump.is-updating {
	opacity: 0.65;
	pointer-events: none;
}

/* Grid: checkbox column | text column (hanging indent for wrap + body) */
.cc-bump__row,
.bfm-bump__row {
	display: grid !important;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
}

.cc-bump__check,
.bfm-bump__check,
.cc-bump input[type="checkbox"],
.bfm-bump input[type="checkbox"] {
	width: 20px !important;
	height: 20px !important;
	margin: 2px 0 0 !important; /* optically align with first headline line */
	padding: 0 !important;
	flex: none !important;
	accent-color: #9B3B13;
	cursor: pointer;
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.cc-bump__content,
.bfm-bump__content {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	display: block;
}

.cc-bump__label,
.bfm-bump__label,
.cc-bump__content > label,
.bfm-bump__content > label {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font: 700 16px/1.4 "Montserrat", "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif !important;
	color: #9B3B13 !important;
	cursor: pointer;
}

.cc-bump__body,
.bfm-bump__body,
.cc-main .cc-bump__body {
	display: block !important;
	margin: 8px 0 0 !important; /* no left indent — aligns with headline text start */
	padding: 0 !important;
	font: 400 15px/1.55 "Montserrat", "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif !important;
	color: #2c2c2c !important;
}

/* Legacy markup fallback: label wraps checkbox + text */
.cc-bump__choice,
.bfm-bump > label {
	display: grid !important;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
	margin: 0 !important;
	cursor: pointer;
}

.cc-bump__choice .cc-bump__check,
.cc-bump__choice input[type="checkbox"],
.bfm-bump > label > input[type="checkbox"] {
	grid-column: 1;
	margin-top: 2px !important;
}

.cc-bump__choice .cc-bump__label,
.bfm-bump > label > strong,
.bfm-bump > label > span {
	grid-column: 2;
	min-width: 0;
}

/* If body still follows legacy choice label as sibling */
.cc-bump > .cc-bump__body,
.bfm-bump > .bfm-bump__body {
	margin-left: 34px !important; /* 22px checkbox + 12px gap — only for legacy sibling layout */
}

.cc-bump__row + .cc-bump__body,
.cc-bump__content .cc-bump__body,
.bfm-bump__content .bfm-bump__body {
	margin-left: 0 !important;
}

@media (max-width: 600px) {
	.cc-bump,
	.bfm-bump {
		padding: 14px 14px !important;
	}
	.cc-bump__label,
	.bfm-bump__label {
		font-size: 15px !important;
	}
	.cc-bump__body,
	.bfm-bump__body,
	.cc-main .cc-bump__body {
		font-size: 14px !important;
	}
}
