:root {
	--agm-commerce-ink: #15171b;
	--agm-commerce-muted: #66717f;
	--agm-commerce-line: #e1e7ef;
	--agm-commerce-soft: #f6f8fb;
	--agm-commerce-panel: #ffffff;
	--agm-commerce-primary: #b71922;
	--agm-commerce-primary-dark: #8f1018;
	--agm-commerce-gap-xs: 8px;
	--agm-commerce-gap-sm: 12px;
	--agm-commerce-gap-md: 18px;
	--agm-commerce-gap-lg: 26px;
	--agm-commerce-radius: 12px;
	--agm-commerce-input-height: 46px;
	--agm-commerce-shadow: 0 10px 28px rgba(15, 23, 42, .08);
	--agm-commerce-drawer-shadow: 0 20px 58px rgba(15, 23, 42, .18);
}

/* Header cart trigger and single drawer. */
body:not(.wp-admin) .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container {
	display: none !important;
}

body:not(.wp-admin) .agm-commerce-header-cart {
	cursor: pointer;
	display: inline-flex !important;
	position: relative;
	width: auto !important;
}

body:not(.wp-admin) .agm-commerce-header-cart .agm-commerce-cart-trigger {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(20, 24, 31, .12);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
	color: var(--agm-commerce-ink);
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	gap: 9px;
	min-height: 42px;
	padding: 9px 15px;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
	white-space: nowrap;
	width: 100%;
}

body:not(.wp-admin) .agm-commerce-header-cart:hover .agm-commerce-cart-trigger,
body:not(.wp-admin) .agm-commerce-header-cart .agm-commerce-cart-trigger:hover,
body:not(.wp-admin) .agm-commerce-header-cart .agm-commerce-cart-trigger:focus-visible {
	background: #fff7f7;
	border-color: rgba(183, 25, 34, .28);
	box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
	color: var(--agm-commerce-primary);
	outline: none;
	transform: translateY(-1px);
}

body:not(.wp-admin) .agm-commerce-header-cart .agm-commerce-cart-trigger__inner {
	align-items: center !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	cursor: inherit !important;
	display: inline-flex !important;
	gap: 9px;
	min-height: 0 !important;
	padding: 0 !important;
	pointer-events: none;
	text-decoration: none !important;
	transform: none !important;
	width: auto !important;
}

body:not(.wp-admin) .agm-commerce-header-cart .agm-commerce-cart-trigger > * {
	pointer-events: none;
}

body:not(.wp-admin) .agm-commerce-header-cart .elementor-button-icon {
	display: inline-grid;
	place-items: center;
	position: relative;
}

body:not(.wp-admin) .agm-commerce-header-cart .elementor-button-icon-qty {
	background: var(--agm-commerce-primary);
	border: 2px solid #fff;
	border-radius: 999px;
	color: #fff;
	display: grid !important;
	font-size: 11px;
	font-weight: 900;
	height: 19px;
	justify-content: center;
	line-height: 1;
	min-width: 19px;
	overflow: visible;
	padding: 0 5px;
	place-items: center;
	position: absolute;
	right: -10px;
	text-indent: 0;
	top: -10px;
	white-space: nowrap;
	z-index: 2;
}

#agm-commerce-drawer {
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	visibility: hidden;
	z-index: 99990;
}

.agm-commerce-drawer__backdrop {
	background: rgba(12, 16, 22, .28);
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 180ms ease;
}

.agm-commerce-drawer__panel {
	background: var(--agm-commerce-panel);
	border: 1px solid rgba(15, 23, 42, .12);
	border-radius: var(--agm-commerce-radius);
	box-shadow: var(--agm-commerce-drawer-shadow);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 120px);
	opacity: 0;
	overflow: hidden;
	position: absolute;
	right: 18px;
	top: 78px;
	transform: translateY(-8px);
	transition: opacity 180ms ease, transform 180ms ease;
	width: min(420px, calc(100vw - 24px));
}

#agm-commerce-drawer.is-open {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}

#agm-commerce-drawer.is-open .agm-commerce-drawer__backdrop {
	opacity: 1;
}

#agm-commerce-drawer.is-open .agm-commerce-drawer__panel {
	opacity: 1;
	transform: translateY(0);
}

.agm-commerce-drawer__header {
	align-items: center;
	border-bottom: 1px solid var(--agm-commerce-line);
	display: flex;
	justify-content: space-between;
	padding: 16px 18px;
}

.agm-commerce-drawer__title {
	color: var(--agm-commerce-ink);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.2;
	margin: 0;
}

.agm-commerce-drawer__close {
	align-items: center;
	background: #fff !important;
	border: 1px solid #e1e6ee !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: transparent !important;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 30px;
	font-size: 0;
	height: 30px;
	justify-content: center;
	line-height: 1;
	padding: 0 !important;
	position: relative;
	width: 30px;
}

.agm-commerce-drawer__close:hover,
.agm-commerce-drawer__close:focus-visible {
	background: #fff7f7 !important;
	border-color: rgba(183, 25, 34, .28) !important;
	color: var(--agm-commerce-primary) !important;
	outline: none;
}

.agm-commerce-drawer__close::before,
.agm-commerce-drawer__close::after {
	background: var(--agm-commerce-primary);
	border-radius: 999px;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 13px;
}

.agm-commerce-drawer__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.agm-commerce-drawer__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

#agm-commerce-drawer .widget_shopping_cart_content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	padding: 14px 16px 16px;
}

#agm-commerce-drawer .woocommerce-mini-cart,
#agm-commerce-drawer .elementor-menu-cart__products {
	display: grid;
	flex: 1 1 auto;
	margin: 0;
	max-height: min(430px, calc(100vh - 310px));
	min-height: 0;
	overflow: auto;
	padding: 0;
}

#agm-commerce-drawer .woocommerce-mini-cart-item,
#agm-commerce-drawer .mini_cart_item,
#agm-commerce-drawer .elementor-menu-cart__product {
	align-items: start;
	border-bottom: 1px solid var(--agm-commerce-line);
	display: grid;
	gap: var(--agm-commerce-gap-sm);
	grid-template-columns: 60px minmax(0, 1fr) 28px;
	list-style: none;
	margin: 0;
	padding: 11px 0;
	position: relative;
	text-align: left;
}

#agm-commerce-drawer .woocommerce-mini-cart-item > a:not(.remove),
#agm-commerce-drawer .mini_cart_item > a:not(.remove),
#agm-commerce-drawer .elementor-menu-cart__product-name a {
	color: var(--agm-commerce-ink);
	display: block;
	font-size: 14px;
	font-weight: 800;
	gap: var(--agm-commerce-gap-sm);
	line-height: 1.32;
	text-decoration: none;
	word-break: normal;
	overflow-wrap: break-word;
}

#agm-commerce-drawer .woocommerce-mini-cart-item > a:not(.remove),
#agm-commerce-drawer .mini_cart_item > a:not(.remove) {
	display: grid;
	grid-column: 1 / 3;
	grid-template-columns: 60px minmax(0, 1fr);
}

#agm-commerce-drawer .elementor-menu-cart__product-image {
	grid-column: 1;
	grid-row: 1 / span 2;
}

#agm-commerce-drawer .elementor-menu-cart__product-name {
	display: block !important;
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

#agm-commerce-drawer img {
	background: var(--agm-commerce-soft);
	border: 1px solid var(--agm-commerce-line);
	border-radius: 10px;
	height: 60px;
	object-fit: contain;
	padding: 6px;
	width: 60px;
}

#agm-commerce-drawer .quantity,
#agm-commerce-drawer .elementor-menu-cart__product-price {
	color: var(--agm-commerce-muted);
	display: block;
	font-size: 13px;
	font-weight: 700;
	grid-column: 2 / 3;
	grid-row: 2;
	margin-top: 5px;
	text-align: left;
}

#agm-commerce-drawer .remove,
#agm-commerce-drawer .elementor-menu-cart__product-remove a {
	align-items: center;
	background: #f3f5f8;
	border: 1px solid #e1e6ee;
	border-radius: 999px;
	color: #66707c !important;
	display: inline-flex;
	font-size: 0;
	grid-column: 3;
	grid-row: 1;
	height: 26px;
	justify-content: center;
	line-height: 1;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	width: 26px;
}

#agm-commerce-drawer .remove::before,
#agm-commerce-drawer .remove::after,
#agm-commerce-drawer .elementor-menu-cart__product-remove a::before,
#agm-commerce-drawer .elementor-menu-cart__product-remove a::after {
	background: currentColor;
	border-radius: 999px;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 11px;
}

#agm-commerce-drawer .remove::before,
#agm-commerce-drawer .elementor-menu-cart__product-remove a::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

#agm-commerce-drawer .remove::after,
#agm-commerce-drawer .elementor-menu-cart__product-remove a::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

#agm-commerce-drawer .elementor-menu-cart__product-remove {
	display: block;
	grid-column: 3;
	grid-row: 1 / span 2;
	height: 26px;
	justify-self: end;
	position: relative !important;
	width: 26px;
}

#agm-commerce-drawer .elementor-menu-cart__product-remove > a {
	inset: 0;
	position: absolute;
}

#agm-commerce-drawer .elementor-menu-cart__product-remove > .remove_from_cart_button:not(.elementor_remove_from_cart_button) {
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

#agm-commerce-drawer .woocommerce-mini-cart__total,
#agm-commerce-drawer .elementor-menu-cart__subtotal {
	align-items: center;
	border-top: 1px solid var(--agm-commerce-line);
	color: var(--agm-commerce-ink);
	display: grid;
	font-size: 15px;
	font-weight: 800;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) max-content;
	margin: 12px 0 0;
	padding: 15px 2px 8px;
	text-align: left;
	width: 100%;
}

#agm-commerce-drawer .woocommerce-mini-cart__total strong,
#agm-commerce-drawer .elementor-menu-cart__subtotal strong {
	min-width: 0;
	white-space: nowrap;
}

#agm-commerce-drawer .woocommerce-mini-cart__total .amount,
#agm-commerce-drawer .elementor-menu-cart__subtotal .amount {
	justify-self: end;
	text-align: right;
	white-space: nowrap;
}

body.agm-commerce-ui-active:not(.woocommerce-checkout) .woocommerce-message,
body.agm-commerce-ui-active:not(.woocommerce-checkout) .woocommerce-notices-wrapper .woocommerce-message {
	display: none !important;
}

#agm-commerce-drawer .woocommerce-mini-cart__buttons,
#agm-commerce-drawer .elementor-menu-cart__footer-buttons {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
	margin: 10px 0 0;
}

#agm-commerce-drawer .woocommerce-mini-cart__buttons a,
#agm-commerce-drawer .elementor-menu-cart__footer-buttons a {
	align-items: center;
	border-radius: 10px;
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	justify-content: center;
	min-height: 44px;
	padding: 12px 14px;
	text-decoration: none;
}

#agm-commerce-drawer .woocommerce-mini-cart__buttons a:first-child,
#agm-commerce-drawer .elementor-menu-cart__footer-buttons a:first-child {
	background: #f3f5f8;
	border: 1px solid #dbe2ea;
	color: var(--agm-commerce-ink);
}

#agm-commerce-drawer .woocommerce-mini-cart__buttons a:last-child,
#agm-commerce-drawer .elementor-menu-cart__footer-buttons a:last-child {
	background: linear-gradient(135deg, var(--agm-commerce-primary), var(--agm-commerce-primary-dark));
	border: 1px solid rgba(128, 9, 17, .22);
	color: #fff;
}

/* Plugin-owned cart and checkout shells. */
.agm-commerce-ui-active .agm-commerce-cart,
.agm-commerce-ui-active .agm-commerce-checkout {
	color: var(--agm-commerce-ink);
	margin: 0 auto;
	max-width: 1240px;
	width: calc(100% - 40px);
}

.agm-commerce-ui-active .agm-commerce-cart {
	align-items: start;
	display: grid;
	gap: var(--agm-commerce-gap-lg);
	grid-template-columns: 1fr;
}

.agm-commerce-cart__main,
.agm-commerce-checkout__shell {
	display: grid;
	gap: var(--agm-commerce-gap-md);
	min-width: 0;
}

.agm-commerce-cart__aside {
	min-width: 0;
	position: static;
}

.agm-cart-top {
	align-items: start;
	display: grid;
	gap: var(--agm-commerce-gap-lg);
	grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
}

.agm-cart-top__products,
.agm-cart-lower {
	display: grid;
	gap: var(--agm-commerce-gap-md);
	min-width: 0;
}

.agm-cart-lower {
	grid-template-columns: minmax(320px, 520px);
}

.agm-commerce-panel,
.agm-checkout-section,
.agm-cart-next-panel {
	background: var(--agm-commerce-panel);
	border: 1px solid var(--agm-commerce-line);
	border-radius: var(--agm-commerce-radius);
	box-shadow: var(--agm-commerce-shadow);
	padding: 22px;
}

.agm-commerce-panel h2,
.agm-checkout-section h2,
.agm-cart-next-panel h2,
.agm-checkout-title {
	background: none !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #4b5563;
	display: block;
	font-size: 21px;
	font-stretch: normal;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.32;
	margin: 0 0 16px;
	padding: 0 !important;
	position: relative;
	text-shadow: none !important;
	text-decoration: none !important;
	word-spacing: 0.02em;
}

.agm-commerce-ui-active .agm-commerce-panel h2::before,
.agm-commerce-ui-active .agm-commerce-panel h2::after,
.agm-commerce-ui-active .agm-checkout-section h2::before,
.agm-commerce-ui-active .agm-checkout-section h2::after,
.agm-commerce-ui-active .agm-checkout-title::before,
.agm-commerce-ui-active .agm-checkout-title::after {
	background: none !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	content: none !important;
	display: none !important;
	height: 0 !important;
	width: 0 !important;
}

.agm-section-eyebrow {
	color: var(--agm-commerce-primary);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.agm-commerce-muted {
	color: var(--agm-commerce-muted);
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}

.agm-commerce-primary,
.agm-commerce-ui-active .button.checkout-button,
.agm-commerce-ui-active #place_order {
	background: linear-gradient(135deg, var(--agm-commerce-primary), var(--agm-commerce-primary-dark)) !important;
	border: 1px solid rgba(128, 9, 17, .22) !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 22px rgba(183, 25, 34, .16);
	color: #fff !important;
	font-weight: 900 !important;
	min-height: 46px;
	padding: 12px 18px !important;
	text-align: center;
	text-decoration: none !important;
}

.agm-commerce-ui-active .button,
.agm-commerce-ui-active button.button {
	border-radius: 10px !important;
	font-weight: 900 !important;
	min-height: 44px;
	padding: 11px 16px !important;
}

/* Cart products. */
.agm-cart-products__head,
.agm-cart-row {
	align-items: center;
	display: grid;
	gap: var(--agm-commerce-gap-sm);
	grid-template-columns: 52px 82px minmax(180px, 1fr) minmax(90px, .5fr) minmax(96px, .45fr) minmax(100px, .55fr);
}

.agm-cart-products__head {
	border-bottom: 1px solid var(--agm-commerce-line);
	color: var(--agm-commerce-muted);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .03em;
	padding-bottom: 12px;
	text-transform: uppercase;
}

.agm-cart-row {
	border-bottom: 1px solid var(--agm-commerce-line);
	padding: 16px 0;
}

.agm-cart-row:last-of-type {
	border-bottom: 0;
}

.agm-cart-row__remove .remove {
	align-items: center;
	background: #f3f5f8;
	border: 1px solid #e0e6ef;
	border-radius: 999px;
	color: #69727d !important;
	display: inline-flex;
	font-size: 20px;
	height: 30px;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	width: 30px;
}

.agm-cart-row__image img {
	background: var(--agm-commerce-soft);
	border: 1px solid var(--agm-commerce-line);
	border-radius: 10px;
	height: 72px;
	object-fit: contain;
	padding: 8px;
	width: 72px;
}

.agm-cart-row__product a,
.agm-order-row__product {
	color: var(--agm-commerce-ink);
	font-weight: 850;
	line-height: 1.35;
	text-decoration: none;
	word-break: normal;
	overflow-wrap: break-word;
}

.agm-cart-row__price,
.agm-cart-row__total,
.agm-order-row__total {
	font-weight: 850;
	white-space: nowrap;
}

.agm-cart-row__quantity .quantity,
.agm-cart-row__quantity .qty {
	max-width: 86px;
}

.agm-commerce-ui-active input[type="text"],
.agm-commerce-ui-active input[type="email"],
.agm-commerce-ui-active input[type="tel"],
.agm-commerce-ui-active input[type="number"],
.agm-commerce-ui-active input[type="password"],
.agm-commerce-ui-active textarea,
.agm-commerce-ui-active select,
.agm-commerce-ui-active .select2-container .select2-selection {
	background: #fff;
	border: 1px solid #d7dee8;
	border-radius: 10px;
	color: var(--agm-commerce-ink);
	font-size: 15px;
	font-weight: 700;
	min-height: var(--agm-commerce-input-height);
	padding: 11px 12px;
	width: 100%;
}

.agm-cart-actions {
	align-items: center;
	display: flex;
	justify-content: flex-end;
	padding-top: var(--agm-commerce-gap-sm);
}

.agm-cart-coupon {
	align-items: center;
	display: grid;
	gap: var(--agm-commerce-gap-sm);
	grid-template-columns: minmax(0, 1fr) auto;
}

.agm-commerce-summary {
	display: grid;
	gap: var(--agm-commerce-gap-sm);
}

.agm-commerce-summary__row {
	align-items: center;
	color: var(--agm-commerce-muted);
	display: flex;
	font-size: 15px;
	font-weight: 750;
	justify-content: space-between;
}

.agm-commerce-summary__row strong {
	color: var(--agm-commerce-ink);
	font-size: 16px;
	font-weight: 900;
}

.agm-commerce-summary__row--gross strong {
	font-size: 19px;
}

.agm-commerce-summary__divider {
	background: var(--agm-commerce-line);
	height: 1px;
}

.agm-commerce-summary__tax-note {
	color: var(--agm-commerce-muted);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
	margin: 2px 0 0;
}

.agm-commerce-shipping-methods {
	display: grid;
	gap: var(--agm-commerce-gap-sm);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.agm-shipping-card {
	align-items: flex-start;
	background: #f8fafc;
	border: 1px solid var(--agm-commerce-line);
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 14px;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.agm-shipping-card:hover,
.agm-shipping-card:focus-within,
.agm-shipping-card:has(input:checked) {
	background: #fffafa;
	border-color: rgba(183, 25, 34, .24);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.agm-shipping-card input {
	margin-top: 4px;
}

.agm-shipping-card__title {
	color: var(--agm-commerce-ink);
	display: block;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.4;
}

.agm-shipping-card__meta {
	color: var(--agm-commerce-muted);
	display: block;
	font-size: 12px;
	font-weight: 800;
	margin-top: 4px;
}

.agm-shipping-card__privileges {
	color: var(--agm-commerce-muted);
	display: none;
	font-size: 11px;
	font-weight: 760;
	line-height: 1.45;
	margin-top: 7px;
}

.agm-shipping-card:has(input:checked) .agm-shipping-card__privileges {
	display: block;
}

.agm-cart-address__value {
	color: var(--agm-commerce-ink);
	font-size: 15px;
	font-weight: 800;
	margin: 0 0 var(--agm-commerce-gap-sm);
}

.agm-cart-address--pickup .agm-cart-address__value {
	font-size: 17px;
}

.agm-cart-address--pickup .woocommerce-shipping-calculator,
.agm-cart-address--pickup .shipping-calculator-form {
	display: none !important;
}

.agm-cart-address--delivery .shipping-calculator-form {
	display: none;
}

.agm-cart-address .shipping-calculator-button {
	align-items: center;
	background: #f7f9fc;
	border: 1px solid #dce3ec;
	border-radius: 10px;
	color: var(--agm-commerce-ink);
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	min-height: 42px;
	padding: 10px 14px;
	text-decoration: none;
}

.agm-cart-next-panel ol {
	counter-reset: agm-steps;
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
}

.agm-cart-next-panel li {
	align-items: center;
	color: var(--agm-commerce-muted);
	counter-increment: agm-steps;
	display: grid;
	font-size: 14px;
	font-weight: 750;
	gap: 10px;
	grid-template-columns: 28px 1fr;
	list-style: none;
}

.agm-cart-next-panel li::before {
	align-items: center;
	background: #fff4f5;
	border: 1px solid rgba(183, 25, 34, .18);
	border-radius: 999px;
	color: var(--agm-commerce-primary);
	content: counter(agm-steps);
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.agm-cart-next-panel .agm-commerce-primary {
	display: flex;
	justify-content: center;
	width: 100%;
}

/* Checkout. */
.agm-commerce-checkout__shell {
	margin: 0 auto;
	max-width: 1180px;
	width: 100%;
}

.agm-commerce-checkout .agm-customer-details,
.agm-commerce-checkout #customer_details .col-1,
.agm-commerce-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

.agm-commerce-checkout .agm-customer-details {
	display: grid;
	gap: var(--agm-commerce-gap-md);
}

.agm-commerce-checkout .woocommerce-billing-fields > h3,
.agm-commerce-checkout .woocommerce-additional-fields > h3 {
	display: none;
}

.agm-commerce-checkout .woocommerce-billing-fields__field-wrapper,
.agm-commerce-checkout .woocommerce-shipping-fields__field-wrapper {
	display: grid;
	gap: 15px var(--agm-commerce-gap-sm);
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.agm-commerce-checkout .form-row {
	display: block;
	grid-column: span 4;
	margin: 0;
	padding: 0;
	width: 100% !important;
}

.agm-commerce-checkout .form-row label {
	color: var(--agm-commerce-muted);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .02em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.agm-commerce-checkout textarea {
	min-height: 112px;
	resize: vertical;
}

#billing_first_name_field,
#billing_last_name_field,
#billing_company_field,
#billing_companynumber_field,
#billing_pvm_field,
#billing_country_field,
#billing_city_field,
#billing_postcode_field,
#billing_phone_field,
#billing_email_field,
#shipping_first_name_field,
#shipping_last_name_field,
#shipping_phone_field {
	grid-column: span 3;
}

#shipping_country_field {
	grid-column: span 3;
}

#billing_address_1_field,
#shipping_address_1_field {
	grid-column: span 6;
}

#billing_city_field,
#billing_postcode_field,
#preferred_delivery_time_field,
#door_code_field,
#shipping_city_field,
#shipping_postcode_field {
	grid-column: span 3;
}

#order_comments_field {
	grid-column: 1 / -1;
}

#billing_first_name_field {
	order: 1;
}

#billing_last_name_field {
	order: 2;
}

#billing_company_field {
	order: 3;
}

#billing_companynumber_field {
	order: 4;
}

#billing_pvm_field {
	order: 5;
}

#billing_country_field {
	order: 6;
}

#billing_address_1_field {
	order: 7;
}

#billing_city_field {
	order: 8;
}

#billing_postcode_field {
	order: 9;
}

#billing_phone_field {
	order: 10;
}

#billing_email_field {
	order: 11;
}

.agm-commerce-checkout .woocommerce-shipping-fields {
	margin-top: var(--agm-commerce-gap-md);
}

.agm-checkout-section--shipping-address:has(#ship-to-different-address-checkbox:not(:checked)) {
	box-shadow: none;
	padding: 14px 18px;
}

.agm-checkout-section--shipping-address:has(#ship-to-different-address-checkbox:not(:checked)) > h2,
.agm-checkout-section--shipping-address:not(.is-active) .shipping_address {
	display: none !important;
}

.agm-checkout-section--shipping-address.is-active > h2 {
	display: block;
}

.agm-commerce-checkout #ship-to-different-address {
	margin: 0 0 var(--agm-commerce-gap-sm);
}

.agm-commerce-checkout #ship-to-different-address label {
	align-items: center;
	background: #f7f9fc;
	border: 1px solid #dce3ec;
	border-radius: 10px;
	color: var(--agm-commerce-ink);
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	gap: 8px;
	min-height: 42px;
	padding: 10px 14px;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
	text-transform: uppercase;
}

.agm-commerce-checkout #ship-to-different-address.is-active label,
.agm-commerce-checkout #ship-to-different-address label:hover {
	background: #fff5f6;
	border-color: rgba(183, 25, 34, .24);
	color: var(--agm-commerce-primary);
}

.agm-commerce-checkout #ship-to-different-address.is-active label::before {
	content: "✓";
	font-weight: 900;
}

.agm-commerce-checkout #ship-to-different-address-checkbox {
	height: 1px;
	margin: 0;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.agm-commerce-checkout .woocommerce-account-fields,
.agm-commerce-checkout .woocommerce-account-fields__field-wrapper,
.agm-commerce-checkout .create-account,
.agm-commerce-checkout .create-account.woocommerce-validated,
.agm-commerce-checkout #createaccount,
.agm-commerce-checkout #account_password_field {
	display: none !important;
	pointer-events: none !important;
}

.agm-commerce-checkout .woocommerce-additional-fields {
	border-top: 1px solid var(--agm-commerce-line);
	margin-top: var(--agm-commerce-gap-md);
	padding-top: var(--agm-commerce-gap-md);
}

.agm-checkout-review,
.agm-checkout-review-fragment {
	display: grid;
	gap: var(--agm-commerce-gap-sm);
}

.agm-checkout-section--order,
.agm-checkout-section--shipping,
.agm-checkout-section--totals {
	padding: 18px;
}

.agm-checkout-section--payment {
	overflow: hidden;
	position: relative;
}

.agm-checkout-section--payment::before {
	background:
		linear-gradient(90deg, rgba(5, 71, 38, 0.28), rgba(255, 255, 255, 0.24) 18%, rgba(255, 255, 255, 0.06) 52%, rgba(2, 54, 28, 0.34)),
		linear-gradient(180deg, #35c978 0%, #169756 42%, #0b6f3d 72%, #064626 100%);
	box-shadow:
		0 15px 30px rgba(4, 70, 38, 0.28),
		0 0 0 1px rgba(2, 74, 38, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.42),
		inset 0 -9px 18px rgba(0, 0, 0, 0.18);
	color: #fff;
	content: "Saugus atsiskaitymas!";
	font-size: 13px;
	font-weight: 950;
	letter-spacing: 0;
	line-height: 1.08;
	padding: 12px 22px;
	pointer-events: none;
	position: absolute;
	right: -30px;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
	text-transform: uppercase;
	top: 38px;
	transform: rotate(34deg);
	width: 330px;
	z-index: 3;
}

.agm-checkout-section--payment::after {
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
	content: "";
	height: 58px;
	pointer-events: none;
	position: absolute;
	right: 17px;
	top: 13px;
	transform: rotate(34deg);
	width: 18px;
	z-index: 4;
}

.agm-checkout-section--payment > * {
	position: relative;
	z-index: 1;
}

.agm-order-head,
.agm-order-row {
	align-items: center;
	display: grid;
	gap: var(--agm-commerce-gap-sm);
	grid-template-columns: minmax(0, 1fr) 90px minmax(110px, auto);
}

.agm-order-head {
	border-bottom: 1px solid var(--agm-commerce-line);
	color: var(--agm-commerce-muted);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .03em;
	padding-bottom: var(--agm-commerce-gap-sm);
	text-transform: uppercase;
}

.agm-order-row {
	border-bottom: 1px solid var(--agm-commerce-line);
	padding: 11px 0;
}

.agm-order-row:last-child {
	border-bottom: 0;
}

.agm-order-row__qty,
.agm-order-row__total {
	text-align: right;
}

.agm-checkout-section--payment #payment {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.agm-checkout-section--payment #payment ul.payment_methods {
	border: 0;
	display: grid;
	gap: var(--agm-commerce-gap-sm);
	margin: 0;
	padding: 0;
}

.agm-checkout-section--payment #payment li.wc_payment_method {
	background: #f8fafc;
	border: 1px solid var(--agm-commerce-line);
	border-radius: 12px;
	list-style: none;
	margin: 0;
	padding: 14px;
}

.agm-checkout-section--payment #payment li.wc_payment_method > label {
	color: var(--agm-commerce-ink);
	font-size: 15px;
	font-weight: 900;
}

.agm-checkout-section--payment .payment_box {
	background: transparent !important;
	margin: 10px 0 0 !important;
	padding: 0 !important;
}

.agm-checkout-section--payment .payment_box::before {
	content: none !important;
}

.agm-checkout-section--payment .payment-countries.paysera-payments {
	width: 100%;
}

.agm-checkout-section--payment .payment-countries.paysera-payments.agm-paysera-native-hidden .payment-group-wrapper,
.agm-checkout-section--payment .payment-countries.paysera-payments.agm-paysera-native-hidden .paysera-payment-method,
.agm-checkout-section--payment .payment-countries.paysera-payments.agm-paysera-native-hidden .paysera-payment-method-label {
	display: none !important;
}

.agm-payment-selector {
	display: grid;
	gap: 12px;
	width: 100%;
}

.agm-payment-selector__heading {
	color: var(--agm-commerce-muted);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .04em;
	margin: 0;
	text-transform: uppercase;
}

.agm-payment-selector__grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(6, minmax(112px, 1fr));
}

.agm-payment-selector__grid[hidden] {
	display: none !important;
}

.agm-payment-tile {
	align-items: center;
	background: #fff;
	border: 1px solid #e2e7ee;
	border-radius: 10px;
	color: var(--agm-commerce-ink);
	cursor: pointer;
	display: grid;
	gap: 8px;
	grid-template-rows: 38px auto;
	height: 92px;
	justify-items: center;
	min-width: 0;
	padding: 10px;
	text-align: center;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
	width: 100%;
}

.agm-payment-tile:hover,
.agm-payment-tile:focus-visible {
	background: #fffafa;
	border-color: rgba(183, 25, 34, .24);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
	outline: none;
	transform: translateY(-1px);
}

.agm-payment-tile.is-selected {
	background: #fff4f5;
	border-color: var(--agm-commerce-primary);
	box-shadow: 0 8px 18px rgba(183, 25, 34, .1);
}

.agm-payment-tile__logo {
	align-items: center;
	display: flex;
	height: 38px;
	justify-content: center;
	min-width: 0;
	width: 100%;
}

.agm-payment-tile__logo img {
	height: auto;
	margin: 0 !important;
	max-height: 34px;
	max-width: 90px;
	object-fit: contain;
	position: static !important;
	width: auto;
}

.agm-payment-tile__label {
	color: var(--agm-commerce-ink);
	display: block;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.2;
	min-width: 68px;
	overflow-wrap: normal;
	text-align: center;
	white-space: normal;
	word-break: normal;
}

.agm-payment-selector__toggle {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(183, 25, 34, .26);
	border-radius: 10px;
	color: var(--agm-commerce-primary);
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	justify-self: start;
	min-height: 42px;
	padding: 10px 14px;
}

.agm-payment-selector__toggle:hover,
.agm-payment-selector__toggle:focus-visible {
	background: #fff7f7;
	border-color: rgba(183, 25, 34, .4);
	outline: none;
}

.agm-checkout-section--payment #payment .place-order {
	display: grid;
	gap: var(--agm-commerce-gap-sm);
	justify-items: center;
	margin: var(--agm-commerce-gap-md) 0 0;
	padding: 0;
}

.agm-checkout-section--payment #place_order {
	justify-self: center;
	max-width: 420px;
	text-transform: uppercase;
	width: min(420px, 100%);
}

.agm-commerce-ui-active .woocommerce-error,
.agm-commerce-ui-active .woocommerce-info,
.agm-commerce-ui-active .woocommerce-message {
	border-radius: 10px;
	box-shadow: none;
	font-weight: 700;
	margin-bottom: var(--agm-commerce-gap-md);
}

@media (max-width: 1349px) {
	.agm-payment-selector__grid {
		grid-template-columns: repeat(5, minmax(104px, 1fr));
	}
}

@media (max-width: 1024px) {
	.agm-cart-top,
	.agm-cart-lower {
		grid-template-columns: 1fr;
	}

	.agm-commerce-checkout #billing_first_name_field,
	.agm-commerce-checkout #billing_last_name_field,
	.agm-commerce-checkout #billing_phone_field,
	.agm-commerce-checkout #billing_email_field,
	.agm-commerce-checkout #billing_company_field,
	.agm-commerce-checkout #billing_companynumber_field,
	.agm-commerce-checkout #billing_pvm_field,
	.agm-commerce-checkout #billing_country_field,
	.agm-commerce-checkout #billing_city_field,
	.agm-commerce-checkout #billing_postcode_field,
	.agm-commerce-checkout #preferred_delivery_time_field,
	.agm-commerce-checkout #door_code_field,
	.agm-commerce-checkout #shipping_first_name_field,
	.agm-commerce-checkout #shipping_last_name_field,
	.agm-commerce-checkout #shipping_phone_field,
	.agm-commerce-checkout #shipping_country_field,
	.agm-commerce-checkout #shipping_city_field,
	.agm-commerce-checkout #shipping_postcode_field {
		grid-column: span 6;
	}
}

@media (max-width: 1023px) {
	.agm-payment-selector__grid {
		grid-template-columns: repeat(3, minmax(104px, 1fr));
	}
}

@media (max-width: 768px) {
	.agm-commerce-ui-active .agm-commerce-cart,
	.agm-commerce-ui-active .agm-commerce-checkout {
		width: calc(100% - 24px);
	}

	.agm-commerce-panel,
	.agm-checkout-section,
	.agm-cart-next-panel {
		padding: 16px;
	}

	.agm-commerce-panel h2,
	.agm-checkout-section h2,
	.agm-cart-next-panel h2,
	.agm-checkout-title {
		color: #4b5563;
		font-size: 19px;
		font-stretch: normal;
		font-weight: 600;
		letter-spacing: 0;
		line-height: 1.34;
		text-shadow: none !important;
		word-spacing: 0.02em;
	}

	.agm-checkout-section--payment {
		overflow: visible;
	}

	.agm-checkout-section--payment::before,
	.agm-commerce-checkout .agm-checkout-section--payment::before,
	.agm-commerce-ui-active .agm-checkout-section--payment::before {
		content: none !important;
		display: none !important;
	}

	.agm-checkout-section--payment::after,
	.agm-commerce-checkout .agm-checkout-section--payment::after,
	.agm-commerce-ui-active .agm-checkout-section--payment::after {
		content: none !important;
		display: none !important;
	}

	.agm-checkout-section--payment > * {
		position: relative;
		z-index: 2;
	}

	.agm-cart-products__head {
		display: none;
	}

	.agm-cart-row {
		grid-template-columns: 78px minmax(0, 1fr) 34px;
	}

	.agm-cart-row__image {
		grid-column: 1;
		grid-row: 1 / span 4;
	}

	.agm-cart-row__product {
		grid-column: 2;
		grid-row: 1;
	}

	.agm-cart-row__remove {
		grid-column: 3;
		grid-row: 1;
	}

	.agm-cart-row__price,
	.agm-cart-row__quantity,
	.agm-cart-row__total {
		grid-column: 2 / -1;
	}

	.agm-cart-coupon,
	.agm-commerce-shipping-methods,
	.agm-checkout-section--payment .payment-countries.paysera-payments {
		grid-template-columns: 1fr !important;
	}

	.agm-commerce-checkout .woocommerce-billing-fields__field-wrapper,
	.agm-commerce-checkout .woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	.agm-commerce-checkout .form-row,
	.agm-commerce-checkout #billing_first_name_field,
	.agm-commerce-checkout #billing_last_name_field,
	.agm-commerce-checkout #billing_phone_field,
	.agm-commerce-checkout #billing_email_field,
	.agm-commerce-checkout #billing_company_field,
	.agm-commerce-checkout #billing_companynumber_field,
	.agm-commerce-checkout #billing_pvm_field,
	.agm-commerce-checkout #billing_country_field,
	.agm-commerce-checkout #billing_address_1_field,
	.agm-commerce-checkout #billing_city_field,
	.agm-commerce-checkout #billing_postcode_field,
	.agm-commerce-checkout #preferred_delivery_time_field,
	.agm-commerce-checkout #door_code_field,
	.agm-commerce-checkout #shipping_first_name_field,
	.agm-commerce-checkout #shipping_last_name_field,
	.agm-commerce-checkout #shipping_phone_field,
	.agm-commerce-checkout #shipping_country_field,
	.agm-commerce-checkout #shipping_address_1_field,
	.agm-commerce-checkout #shipping_city_field,
	.agm-commerce-checkout #shipping_postcode_field {
		grid-column: 1 / -1;
	}

	.agm-order-head {
		display: none;
	}

	.agm-order-row {
		grid-template-columns: 1fr;
	}

	.agm-order-row__qty,
	.agm-order-row__total {
		text-align: left;
	}
}

@media (max-width: 767px) {
	.agm-payment-selector__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 430px) {
	.agm-commerce-drawer__panel {
		max-height: calc(100vh - 82px);
		right: 8px;
		top: 58px;
		width: calc(100vw - 16px);
	}

	#agm-commerce-drawer .woocommerce-mini-cart-item,
	#agm-commerce-drawer .mini_cart_item,
	#agm-commerce-drawer .elementor-menu-cart__product {
		grid-template-columns: 52px minmax(0, 1fr) 24px;
	}

	#agm-commerce-drawer .woocommerce-mini-cart-item > a:not(.remove),
	#agm-commerce-drawer .mini_cart_item > a:not(.remove) {
		grid-template-columns: 52px minmax(0, 1fr);
	}

	#agm-commerce-drawer img {
		height: 52px;
		width: 52px;
	}

	#agm-commerce-drawer .woocommerce-mini-cart__buttons,
	#agm-commerce-drawer .elementor-menu-cart__footer-buttons {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.agm-commerce-ui-active .agm-checkout-section--payment::before,
	.agm-commerce-ui-active .agm-checkout-section--payment::after,
	.agm-commerce-checkout .agm-checkout-section--payment::before,
	.agm-commerce-checkout .agm-checkout-section--payment::after {
		content: none !important;
		display: none !important;
		height: 0 !important;
		opacity: 0 !important;
		padding: 0 !important;
		transform: none !important;
		visibility: hidden !important;
		width: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
