/* Custom checkout UI styles for Woo BG Custom Frontend. Scoped under #woo-bg-cf-checkout for priority. */

:root {
	--primary-color: #5f7f6d;
}

#woo-bg-cf-checkout .woo-bg-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#woo-bg-cf-checkout .woo-bg-shipping-method {
	position: relative;
}

#woo-bg-cf-checkout .woo-bg-shipping-method .shipping_method {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

#woo-bg-cf-checkout .woo-bg-shipping-label {
	display: flex !important;
	align-items: center !important;
	border: 1px solid rgba(170, 170, 170, 1);
	border-radius: 1px;
	background: #fff;
	cursor: pointer;
	line-height: 1.2;
	position: relative;
	border-radius: 10px;
}

#woo-bg-cf-checkout .woo-bg-shipping-label-text {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	font-size: 14px;
	color: #242424;
	height: 100%;
	margin-left: 5px;
	padding: 10px;
}

#woo-bg-cf-checkout .woo-bg-shipping-label-text .woocommerce-Price-amount {
	display: none;
}

#woo-bg-cf-checkout .woo-bg-shipping-price {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	background: #f8f8f8;
	padding: 12px 10px;
	border-left: 1px solid rgba(200, 200, 200, 1);
	justify-content: flex-end;
	min-width: 170px;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}

#woo-bg-cf-checkout .woo-bg-shipping-price .woocommerce-Price-amount {
	color: #242424 !important;
}

#woo-bg-cf-checkout .woo-shipping-image {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 2px;
	margin-left: 5px;
	padding-right: 10px;
	border-right: 1px solid rgba(200, 200, 200, 1);
}

#woo-bg-cf-checkout .woo-shipping-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-width: 30px;
	max-height: 30px;
}

#woo-bg-cf-checkout .woo-bg-shipping-method[data-carrier="econt"] .woo-bg-shipping-icon {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><rect width='30' height='30' rx='4' fill='%231c6fd1'/><text x='15' y='20' font-size='14' text-anchor='middle' fill='white' font-family='Arial' font-weight='700'>E</text></svg>");
}

#woo-bg-cf-checkout .woo-bg-shipping-method[data-carrier="speedy"] .woo-bg-shipping-icon {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><rect width='30' height='30' rx='4' fill='%231c6fd1'/><text x='15' y='20' font-size='14' text-anchor='middle' fill='white' font-family='Arial' font-weight='700'>S</text></svg>");
}

#woo-bg-cf-checkout .woo-bg-shipping-method[data-carrier="boxnow"] .woo-bg-shipping-icon {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><rect width='30' height='30' rx='4' fill='%231c6fd1'/><text x='15' y='20' font-size='14' text-anchor='middle' fill='white' font-family='Arial' font-weight='700'>B</text></svg>");
}

#woo-bg-cf-checkout .woo-bg-shipping-method[data-carrier="other"] .woo-bg-shipping-icon {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><rect width='30' height='30' rx='4' fill='%231c6fd1'/><text x='15' y='20' font-size='14' text-anchor='middle' fill='white' font-family='Arial' font-weight='700'>&#8226;</text></svg>");
}

#woo-bg-cf-checkout .woo-bg-shipping-check {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: absolute;
	right: -10px;
	top: -10px;
	display: none;
	border: 2px solid var(--primary-color);
}

#woo-bg-cf-checkout .woo-bg-shipping-method .shipping_method:checked+.woo-bg-shipping-label .woo-bg-shipping-check {
	display: inline-flex;
}

#woo-bg-cf-checkout .woo-bg-shipping-method.is-selected .woo-bg-shipping-label,
#woo-bg-cf-checkout .woo-bg-shipping-method .shipping_method:checked+.woo-bg-shipping-label {
	border-color: var(--primary-color);
}

#woo-bg-cf-checkout .woo-bg-shipping-method.is-selected .woo-bg-shipping-check,
#woo-bg-cf-checkout .woo-bg-shipping-method .shipping_method:checked+.woo-bg-shipping-label .woo-bg-shipping-check {
	border-color: var(--primary-color);
}

#woo-bg-cf-checkout .woo-bg-shipping-method.is-selected .woo-bg-shipping-check::before,
#woo-bg-cf-checkout .woo-bg-shipping-method .shipping_method:checked+.woo-bg-shipping-label .woo-bg-shipping-check::before {
	content: "✓";
	font-size: 12px;
	color: var(--primary-color);
}

#woo-bg-cf-checkout .woo-bg-shipping-extra {
	margin: 8px 0 0;
	padding: 10px 12px;
	border: 1px solid #e3e6ea;
	border-radius: 4px;
	background: #fafafa;
}

#woo-bg-cf-checkout .woo-bg-shipping-method .woo-bg-shipping-extra[hidden] {
	display: none;
}

/* Modals: body scope so they match when appended outside form */
body.woocommerce-checkout .woo-bg-city-modal[hidden] {
	display: none;
}

body.woocommerce-checkout .woo-bg-city-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.woocommerce-checkout .woo-bg-city-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

body.woocommerce-checkout .woo-bg-city-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 6px;
	width: min(520px, 90vw);
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

body.woocommerce-checkout .woo-bg-city-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #e5e5e5;
}

body.woocommerce-checkout .woo-bg-city-modal__title {
	font-size: 14px;
	font-weight: 600;
	color: #242424;
}

body.woocommerce-checkout .woo-bg-city-modal__close {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #242424;
}

body.woocommerce-checkout .woo-bg-city-modal__search {
	padding: 12px 16px;
	border-bottom: 1px solid #e5e5e5;
}

body.woocommerce-checkout .woo-bg-city-modal__search-input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

body.woocommerce-checkout .woo-bg-city-modal__list {
	overflow: auto;
	padding: 10px 15px;
	display: grid;
	flex: 1;
}

body.woocommerce-checkout .woo-bg-city-modal__item {
	text-align: left;
	border-radius: 4px;
	padding: 8px 10px;
	background: var(--primary-color);
	cursor: pointer;
	font-size: 13px;
	display: flex;
	align-items: center;
	height: fit-content;
	white-space: normal;
	justify-content: start;
	color: #fff;
	margin-bottom: 10px;
}

body.woocommerce-checkout .woo-bg-city-modal__item:hover {
	background: #f5f5f5;
	color: #242424;
}

body.woocommerce-checkout .woo-bg-city-modal__loading,
body.woocommerce-checkout .woo-bg-city-modal__empty {
	padding: 12px 16px;
	color: #666;
	font-size: 13px;
}

body.woocommerce-checkout .woo-bg-inline-notice {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 13px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 99999;
}

body.woocommerce-checkout .woo-bg-inline-notice.is-visible {
	opacity: 1;
}

#woo-bg-cf-checkout .woo-bg-office-field input[readonly] {
	cursor: pointer;
	background: #fff;
}

#woo-bg-cf-checkout ul#shipping_method li input+label::after {
	display: none;
}

#woo-bg-cf-checkout .woocommerce-shipping-fields {
	position: relative;
	display: block !important;
}

#woo-bg-cf-checkout .woocommerce-shipping-fields .checkout-order-comments-section {
	padding: 20px 0 0;
}

#woo-bg-cf-checkout .woocommerce-shipping-fields .woo-bg-office-locator-btn {
	background: #6a8877;
	padding: 10px 15px;
	height: fit-content;
	width: fit-content;
	color: #fff;
	border-radius: 10px;
}

/* Office Locator Modal (body scope – modal appended outside form) */
body.woocommerce-checkout .woo-bg-office-locator-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.woocommerce-checkout .woo-bg-office-locator-modal[hidden] {
	display: none;
}

body.woocommerce-checkout .woo-bg-office-locator-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

body.woocommerce-checkout .woo-bg-office-locator-modal__dialog {
	position: relative;
	width: 90%;
	max-width: 1200px;
	height: 90%;
	max-height: 800px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	z-index: 1;
}

body.woocommerce-checkout .woo-bg-office-locator-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	border-bottom: 1px solid #ddd;
}

body.woocommerce-checkout .woo-bg-office-locator-modal__title {
	font-size: 18px;
	font-weight: 600;
	color: #242424;
}

body.woocommerce-checkout .woo-bg-office-locator-modal__close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.woocommerce-checkout .woo-bg-office-locator-modal__close:hover {
	color: #000;
}

body.woocommerce-checkout .woo-bg-office-locator-modal__content {
	flex: 1;
	position: relative;
	overflow: hidden;
}

body.woocommerce-checkout .woo-bg-office-locator-modal__iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* BoxNow APM Locator Modal (body scope) */
body.woocommerce-checkout .woo-bg-apm-locator-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.woocommerce-checkout .woo-bg-apm-locator-modal[hidden] {
	display: none;
}

body.woocommerce-checkout .woo-bg-apm-locator-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
}

body.woocommerce-checkout .woo-bg-apm-locator-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	width: 90%;
	max-width: 1200px;
	height: 90%;
	max-height: 800px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 1;
}

body.woocommerce-checkout .woo-bg-apm-locator-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e0e0e0;
}

body.woocommerce-checkout .woo-bg-apm-locator-modal__title {
	font-size: 18px;
	font-weight: 600;
}

body.woocommerce-checkout .woo-bg-apm-locator-modal__close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.woocommerce-checkout .woo-bg-apm-locator-modal__close:hover {
	color: #000;
}

body.woocommerce-checkout .woo-bg-apm-locator-modal__content {
	flex: 1;
	position: relative;
	overflow: hidden;
}

body.woocommerce-checkout .woo-bg-apm-locator-modal__iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* BoxNow APM Locator Button */
#woo-bg-cf-checkout .woo-bg-apm-locator-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	grid-row-start: 2;
	grid-column-start: 1;
	grid-column-end: 3;
	background: #84c33f;
	color: #fff;
	border-radius: 5px;
}

/* Other field notice */
#woo-bg-cf-checkout .woo-bg-other-field-notice {
	display: none;
	/* Hidden by default, shown via JS for specific shipping methods */
	color: #f00;
	font-size: 13px;
	margin: 1rem 0 0 !important;
	padding: 1rem 0 0;
	line-height: 1.4;
	border-top: 1px solid #E4E4E4;
}

/* ========== Checkout layout and design (two-column, cart, payment, etc.) ========== */
/* Scoped under #woo-bg-cf-checkout so plugin styles always win over theme. */
:root {
	--border-color: #ddd;
	--border-color-dark: #aaaaaa;
}

body.woocommerce-checkout .page:not(.elementor-page) article.page {
	padding: 20px;
}

#woo-bg-cf-checkout.custom-checkout-design,
#woo-bg-cf-checkout {
	display: block !important;
}

#woo-bg-cf-checkout .checkout-wrapper {
	display: flex;
	gap: 2rem;
	margin: 2rem 0;
	justify-content: space-between;
	width: 100%;
}

/* During update_checkout (quantity, shipping method, etc.) dim layout so wrong state is not visible */
body.woo-bg-checkout-updating #woo-bg-cf-checkout .checkout-wrapper {
	opacity: 0.65;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

#woo-bg-cf-checkout .checkout-left-column,
#woo-bg-cf-checkout .checkout-right-column {
	flex: 1;
}

#woo-bg-cf-checkout .checkout-left-column {
	max-width: 41%;
}

#woo-bg-cf-checkout .checkout-right-column {
	max-width: 59%;
	padding: 30px;
	background: #f7f7f7;
	position: relative;
}

#woo-bg-cf-checkout .checkout-right-column #order_review {
	margin-bottom: 2rem;
	position: relative;
}

#woo-bg-cf-checkout .checkout-right-column:before,
#woo-bg-cf-checkout .checkout-right-column:after  {
	content: "";
	position: absolute;
	inset-inline: 0;
	height: 10px;
	background-image: radial-gradient(farthest-side, transparent 6px, var(--bgcolor-gray-200) 0);
	background-size: 15px 15px;
}

#woo-bg-cf-checkout .checkout-right-column:before {
	top: -10px;
	background-position: -2px -6px, 0 0;
}

#woo-bg-cf-checkout .checkout-right-column:after {
	bottom: -10px;
	background-position: -2px 1px, 0 0;
}

#woo-bg-cf-checkout .checkout-section:not(.checkout-payment-methods):not(.checkout-submit-section):not(.checkout-shipping-address) {
	margin-bottom: 1rem;
}

#woo-bg-cf-checkout .checkout-right-column .wc_payment_methods.payment_methods li {
	width: 100%;
}

#woo-bg-cf-checkout .checkout-section-heading,
#woo-bg-cf-checkout #order_review_heading.checkout-section-heading {
	font-weight: 500;
	color: #242424;
	font-size: 22px;
	text-align: center;
}

#woo-bg-cf-checkout .checkout-section.checkout-payment-methods {
	margin-bottom: 20px;
}

#woo-bg-cf-checkout .checkout-section h3 i,
#woo-bg-cf-checkout #order_review_heading.checkout-section-heading i {
	font-size: .875rem;
	color: var(--primary-color);
}

#woo-bg-cf-checkout .checkout-section h3 span,
#woo-bg-cf-checkout #order_review_heading.checkout-section-heading span {
	position: relative;
}

#woo-bg-cf-checkout .checkout-section h3 span:before,
#woo-bg-cf-checkout #order_review_heading.checkout-section-heading span:before {
	content: '';
	width: 50px;
	height: 1px;
	background: var(--primary-color);
	display: block;
	position: absolute;
	bottom: -2px;
}

#woo-bg-cf-checkout .checkout-submit-section {
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 0 !important;
}

#woo-bg-cf-checkout .checkout-submit-section .woocommerce-privacy-policy-text a {
	font-weight: 600;
}

#woo-bg-cf-checkout .checkout-order-comments {
	width: 100%;
}

#woo-bg-cf-checkout .checkout-order-comments .form-row {
	margin-bottom: 0;
}

#woo-bg-cf-checkout .checkout-order-comments textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 14px;
	font-family: inherit;
	resize: none;
	min-height: 100px;
	background: #fff;
	transition: border-color 0.3s ease;
}

#woo-bg-cf-checkout .checkout-order-comments textarea:focus {
	outline: none;
	border-color: #22711f;
}

#woo-bg-cf-checkout .checkout-order-comments textarea::placeholder {
	color: #999;
}

#woo-bg-cf-checkout .checkout-order-comments label {
	display: none;
}

#woo-bg-cf-checkout .checkout-terms-wrapper {
	width: 100%;
}

#woo-bg-cf-checkout .checkout-terms-checkbox {
	margin: 0;
	padding: 0;
}

#woo-bg-cf-checkout .checkout-terms-checkbox .woocommerce-form__label {
	display: flex;
	gap: 5px;
}

#woo-bg-cf-checkout .checkout-terms-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 2px;
}

#woo-bg-cf-checkout .checkout-terms-checkbox .woocommerce-terms-and-conditions-checkbox-text {
	flex: 1;
	color: #242424;
}

#woo-bg-cf-checkout .checkout-terms-checkbox .woocommerce-terms-and-conditions-checkbox-text strong {
	font-weight: 600;
}

#woo-bg-cf-checkout .checkout-submit-section #place_order {
	width: 100%;
	padding: 12px 30px;
	font-size: .875rem;
	font-weight: 600;
	min-height: 48px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s ease;
}

#woo-bg-cf-checkout .checkout-submit-section #place_order:hover {
	background: #af846e;
	color: #fff;
}

#woo-bg-cf-checkout .checkout-mandatory-note {
	margin: 10px 0 0 0;
	padding: 0;
	font-size: 12px;
	color: #242424;
	text-align: left;
	line-height: 1.5;
}

#woo-bg-cf-checkout .required-asterisk {
	color: #d43f3a;
	font-weight: bold;
}

#woo-bg-cf-checkout.woocommerce-checkout .checkout-wrapper .form-row,
#woo-bg-cf-checkout .checkout-wrapper .form-row {
	width: 100%;
	position: relative;
	margin-bottom: 0;
}

#woo-bg-cf-checkout .form-row input[type="text"],
#woo-bg-cf-checkout .form-row input[type="email"],
#woo-bg-cf-checkout .form-row input[type="tel"],
#woo-bg-cf-checkout .form-row input[type="password"],
#woo-bg-cf-checkout .form-row input[type="number"],
#woo-bg-cf-checkout .form-row select,
#woo-bg-cf-checkout .form-row textarea {
	padding: 12px;
	border: 1px solid var(--border-color-dark);
	border-radius: 5px;
	background: #fff;
	transition: border-color 0.3s ease;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

#woo-bg-cf-checkout .form-row.floating-label:not(.checkout-terms-checkbox) label {
	top: -10px;
	transform: translateY(-50%);
	font-size: 10px;
	font-weight: 500;
}

/* Street number (address_2): always show label above input so it is never hidden */
#woo-bg-cf-checkout #shipping_address_2_field label {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

#woo-bg-cf-checkout #shipping_address_2_field label .required,
#woo-bg-cf-checkout #shipping_address_2_field label abbr[title*="required"] {
	display: inline !important;
}

#woo-bg-cf-checkout .form-row.validate-required input[type="text"],
#woo-bg-cf-checkout .form-row.validate-required input[type="email"],
#woo-bg-cf-checkout .form-row.validate-required input[type="tel"],
#woo-bg-cf-checkout .form-row.validate-required input[type="password"],
#woo-bg-cf-checkout .form-row.validate-required input[type="number"],
#woo-bg-cf-checkout .form-row.validate-required select,
#woo-bg-cf-checkout .form-row.validate-required textarea,
#woo-bg-cf-checkout .form-row input[required],
#woo-bg-cf-checkout .form-row select[required],
#woo-bg-cf-checkout .form-row textarea[required] {
	padding-left: 20px;
}

#woo-bg-cf-checkout .form-row input[type="text"]:focus,
#woo-bg-cf-checkout .form-row input[type="email"]:focus,
#woo-bg-cf-checkout .form-row input[type="tel"]:focus,
#woo-bg-cf-checkout .form-row input[type="password"]:focus,
#woo-bg-cf-checkout .form-row input[type="number"]:focus,
#woo-bg-cf-checkout .form-row select:focus,
#woo-bg-cf-checkout .form-row textarea:focus {
	outline: none;
	border-color: #22711f;
}

#woo-bg-cf-checkout .form-row.floating-label input::placeholder,
#woo-bg-cf-checkout .form-row.floating-label select option[value=""] {
	opacity: 0;
}

#woo-bg-cf-checkout .form-row input::placeholder {
	opacity: 0;
	transition: opacity 0.3s ease;
}

#woo-bg-cf-checkout .checkout-wrapper .checkout-layout-grid-wrapper {
	display: grid;
	grid-template-rows: auto;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

#woo-bg-cf-checkout .shop_table.custom-checkout-cart {
	display: grid;
	grid-template-rows: auto;
	border: none;
	background: #fff;
	padding: 10px 25px;
	box-shadow: 1px 1px 2px rgba(0,0,0,0.05);
	border-radius: 10px;
}

#woo-bg-cf-checkout .cart-heading {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

#woo-bg-cf-checkout .cart-body .cart-item {
	display: grid;
	grid-template-columns: .1fr .5fr 3fr;
	grid-template-rows: 1fr;
	column-gap: 5px;
	border-bottom: 1px solid rgba(0,0,0,0.105);
	padding: 5px 2px 10px;
	margin-bottom: 10px;
	font-size: 12px;
	align-items: center;
}

#woo-bg-cf-checkout .cart-heading span {
	padding: 3px 8px;
	font-size: 16px;
	font-weight: 500;
	color: #242424;
	text-transform: uppercase;
}

#woo-bg-cf-checkout .cart-heading span:last-child {
	text-align: right;
}

#woo-bg-cf-checkout .cart-item .product-image {
	width: 65px;
	height: 65px;
	border-radius: 10px;
	overflow: hidden;
}

#woo-bg-cf-checkout .cart-item .product-info {
	display: flex;
	gap: 10px;
}

#woo-bg-cf-checkout .cart-item .product-info .product-info-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#woo-bg-cf-checkout .cart-item .product-info .product-info-right .product-total {
	font-size: 16px;
}

#woo-bg-cf-checkout .cart-item .product-info .product-info-right .product-total .woocommerce-Price-amount {
	color: #242424;
	font-weight: 400;
}

#woo-bg-cf-checkout .cart-item .product-info .product-name {
	font-size: 16px;
}

#woo-bg-cf-checkout .cart-item .product-info .product-name .variation {
	margin-top: 5px;
}

#woo-bg-cf-checkout .cart-body {
	display: grid;
	grid-template-rows: auto;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--border-color);
}

#woo-bg-cf-checkout .cart-footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 10px;
}

#woo-bg-cf-checkout .cart-totals-row {
	display: flex;
	font-size: 14px;
	color: #242424;
	padding: 4px 0;
	margin-left: auto;
	gap: 15px;
}

#woo-bg-cf-checkout .cart-totals-label {
	flex: 1;
	text-align: left;
	font-weight: bold;
}

#woo-bg-cf-checkout .cart-totals-value {
	flex: 0 0 auto;
	text-align: right;
	font-weight: 400;
}

#woo-bg-cf-checkout .cart-totals-value strong {
	font-weight: 400;
}

#woo-bg-cf-checkout .checkout_coupon.woocommerce-form-coupon {
	display: flex;
	justify-content: flex-end;
}

#woo-bg-cf-checkout .checkout-coupon-form .coupon-form-row {
	display: flex;
	border: 1px solid #aaa;
	border-radius: 2px;
	width: fit-content;
	max-height: 36px;
}

#woo-bg-cf-checkout .checkout-coupon-form .coupon-code-input {
	flex: 1;
	padding: 10px 12px;
	border-radius: 5px;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.3s ease;
	border: none;
	width: 360px;
	width: 100%;
	height: 100%;
}

#woo-bg-cf-checkout .checkout-coupon-form .coupon-code-input:focus {
	outline: none;
	border-color: #22711f;
}

#woo-bg-cf-checkout .checkout-coupon-form .coupon-apply-btn {
	background-color: #f5f5f5;
	color: #2e6da4;
	transition: 0.2s ease all;
	display: flex;
	align-items: center;
	justify-content: center;
	border-left: 1px solid #aaa;
	border-radius: 0;
	min-width: 160px;
	height: 100%;
}

#woo-bg-cf-checkout .checkout-coupon-form .coupon-apply-btn:hover {
	background: #f5f5f5;
	color: #242424;
}

#woo-bg-cf-checkout .woocommerce-form-coupon-toggle,
#woo-bg-cf-checkout #woocommerce-checkout-form-coupon {
	display: none !important;
}

#woo-bg-cf-checkout .product-quantity.mobile-only {
	display: none;
}

#woo-bg-cf-checkout .product-quantity .product-quantity-value {
	display: block;
	text-align: center;
}

#woo-bg-cf-checkout .quantity-controls {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	max-height: 30px;
	border: 1px solid #E9E9E9;
	border-radius: 30px;
	width: fit-content;
	overflow: hidden;
}

#woo-bg-cf-checkout .quantity-controls .qty-minus-btn,
#woo-bg-cf-checkout .quantity-controls .qty-plus-btn {
	background: #fff;
	padding: 8px;

}

#woo-bg-cf-checkout .quantity-controls .qty-input {
	max-width: 30px;
	width: 100%;
	max-height: 30px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
	border: none;
	background: rgb(255, 255, 255);
	border-left: 1px solid #E9E9E9;
	border-radius: 0;
	border-right: 1px solid #E9E9E9;
}

#woo-bg-cf-checkout .quantity-controls .qty-input::-webkit-outer-spin-button,
#woo-bg-cf-checkout .quantity-controls .qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

#woo-bg-cf-checkout .quantity-buttons {
	display: flex;
	align-items: center;
}

#woo-bg-cf-checkout .quantity-buttons .button:hover {
	background: #d0cfcf;
}

#woo-bg-cf-checkout .quantity-buttons .update-quantity-btn {
	border-left: 1px solid var(--border-color-dark);
	border-right: 1px solid var(--border-color-dark);
	color: #1c6319;
}

#woo-bg-cf-checkout .remove-item-btn {
	background: none;
	font-size: 10px;
	width: fit-content;
}

#woo-bg-cf-checkout .quantity-buttons .button i {
	font-size: 12px;
}

#woo-bg-cf-checkout .woocommerce-checkout-payment {
	background: none;
}

#woo-bg-cf-checkout .woocommerce-checkout-payment ul.payment_methods::before {
	display: none;
}

#woo-bg-cf-checkout #payment .wc_payment_methods {
	padding: 0;
	background: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 0;
}

#woo-bg-cf-checkout .woocommerce-error {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
}

/* Hide inline validation messages under fields; errors stay visible at the top. */
#woo-bg-cf-checkout .checkout-inline-error-message {
	display: none !important;
}

#woo-bg-cf-checkout #shipping_other_field {
	grid-column-start: 2;
	grid-column-end: 3;
}

@media (max-width: 992px) {
	#woo-bg-cf-checkout .woo-bg-shipping-label {
		display: flex !important;
		flex-direction: column !important;
		padding: 10px 0 0;
	}

	#woo-bg-cf-checkout .woo-bg-shipping-label .woo-shipping-image {
		margin: 0;
		padding: 0;
		border: 0;
	}

	#woo-bg-cf-checkout .woo-bg-shipping-label .woo-bg-shipping-label-text {
		margin: 0;
		font-weight: 600;
	}

	#woo-bg-cf-checkout .woo-bg-shipping-label .woo-bg-shipping-price {
		border: 0;
		justify-content: center;
		width: 100%;
	}

	#woo-bg-cf-checkout .woo-bg-shipping-price {
		border-top-right-radius: 0;
		border-bottom-left-radius: 10px;
	}
}

@media (max-width: 768px) {
	#woo-bg-cf-checkout .checkout-left-column .checkout-shipping-address {
		margin-bottom: 30px;
	}

	#woo-bg-cf-checkout .checkout-wrapper {
		flex-direction: column;
		gap: 0;
	}

	#woo-bg-cf-checkout .checkout-section {
		padding: 0;
	}

	#woo-bg-cf-checkout .checkout-left-column,
	#woo-bg-cf-checkout .checkout-right-column {
		max-width: 100%;
	}

	#woo-bg-cf-checkout .checkout-right-column {
		padding: 20px;
	}
}

@media (max-width: 576px) {
	#woo-bg-cf-checkout .checkout-wrapper .checkout-layout-grid-wrapper {
		display: flex;
		flex-direction: column;
	}

	#woo-bg-cf-checkout .cart-body .cart-item .product-image {
		width: 60px;
		height: 60px;
	}

	#woo-bg-cf-checkout .cart-body .cart-item .remove-item-btn {
		padding: 5px;
	}

	#woo-bg-cf-checkout .cart-item .product-info {
		flex-direction: column;
	}

	#woo-bg-cf-checkout .cart-item .product-info .product-name,
	#woo-bg-cf-checkout .cart-item .product-info .product-info-right .product-total {
		font-size: 15px;
	}

	body.woocommerce-checkout .page:not(.elementor-page) article.page {
		margin: 0 -15px;
	}
}

/* Shipping price placeholder and loading states */
#woo-bg-cf-checkout .woo-bg-price-placeholder {
	color: #999;
	font-style: italic;
	font-size: 12px;
}

#woo-bg-cf-checkout .woo-bg-price-error {
	color: #b32d2e;
	font-size: 12px;
}

#woo-bg-cf-checkout .woo-bg-shipping-price.woo-bg-price-loading {
	opacity: 0.6;
	position: relative;
}

#woo-bg-cf-checkout .woo-bg-shipping-price.woo-bg-price-loading::after {
	animation: pulse 1s infinite;
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.3;
	}
}