/*
 * Amoli Cart Flow — frontend design.
 * Card-based cart & checkout matching the approved mockups (PC + mobile).
 * Tokens are injected inline as CSS custom properties by the plugin.
 */

/* ---------- Page scaffolding ---------- */

body.amoli-page {
	background: var(--amoli-bg, #12141f) !important;
	--amoli-muted: #6b7180;
	--am-line: #eceef2;
	--am-input-bg: #f4f5f7;
	--am-ok: #22c55e;
	--am-err: #e5484d;
}

body.amoli-page .site-content,
body.amoli-page .entry-content,
body.amoli-page .wp-site-blocks,
body.amoli-page main {
	background: transparent;
}

.amoli-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 20px 96px;
	color: var(--amoli-text, #14151a);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.amoli-logo {
	margin: 0 auto 24px;
	max-width: 180px;
}

.amoli-logo__img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------- Grid ---------- */

.amoli-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 396px;
	gap: 20px;
	align-items: start;
}

.amoli-col > .amoli-card:last-child {
	margin-bottom: 0;
}

/* ---------- Cards ---------- */

.amoli-card {
	background: var(--amoli-card, #fff);
	border-radius: var(--amoli-radius, 6px);
	box-shadow: 0 12px 32px rgba(8, 10, 22, 0.35);
	margin-bottom: 16px;
	overflow: hidden;
}

.amoli-card__head {
	padding: 22px 24px 0;
}

.amoli-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--amoli-text, #14151a);
}

.amoli-card__sub {
	color: var(--amoli-muted);
	font-size: 13px;
}

.amoli-card__body {
	padding: 16px 24px 24px;
}

/* Collapsible cards (cart page, mobile) */

.amoli-card__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

.amoli-card__chev {
	margin-left: auto;
	width: 14px;
	height: 10px;
	color: #b3b8c4;
	transition: transform 0.2s ease;
}

.amoli-card.is-open .amoli-card__chev {
	transform: rotate(180deg);
}

.amoli-card.is-collapse.is-closed .amoli-card__body {
	display: none;
}

/* ---------- Fields ---------- */

.amoli-sec + .amoli-sec {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--am-line);
}

.amoli-sec__title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--amoli-muted);
	text-transform: none;
	letter-spacing: 0.01em;
}

.amoli-fields {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 12px;
}

.amoli-w25  { grid-column: span 3; }
.amoli-w33  { grid-column: span 4; }
.amoli-w50  { grid-column: span 6; }
.amoli-w66  { grid-column: span 8; }
.amoli-w75  { grid-column: span 9; }
.amoli-w100 { grid-column: span 12; }

/* Floating label inputs */

.amoli-float {
	position: relative;
}

.amoli-float__control {
	width: 100%;
	height: 50px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	background: var(--am-input-bg);
	padding: 16px 14px 4px;
	font-size: 15px;
	color: var(--amoli-text);
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.amoli-float__control:focus {
	outline: none;
	border-color: var(--amoli-brand);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(173, 38, 28, 0.12);
}

.amoli-float__label {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	color: #878da0;
	font-size: 15px;
	pointer-events: none;
	transition: all 0.14s ease;
	white-space: nowrap;
	overflow: hidden;
	max-width: calc(100% - 28px);
}

.amoli-float__control:focus ~ .amoli-float__label,
.amoli-float__control:not(:placeholder-shown) ~ .amoli-float__label,
.amoli-float.is-floated .amoli-float__label {
	top: 0;
	transform: translateY(-50%);
	font-size: 11px;
	letter-spacing: 0.02em;
	padding: 0 4px;
	background: var(--am-input-bg);
	color: #9aa0ae;
}

.amoli-float__control:focus ~ .amoli-float__label {
	background: #fff;
	color: var(--amoli-brand);
}

.amoli-req {
	color: var(--amoli-brand, #ad261c);
	font-weight: 700;
}

/* Selects (country / province / custom) */

.amoli-select {
	position: relative;
	display: block;
}

.amoli-field__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--amoli-muted);
	margin-bottom: 6px;
}

.amoli-select__control {
	width: 100%;
	height: 50px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	background: var(--am-input-bg);
	padding: 0 38px 0 14px;
	font-size: 15px;
	color: var(--amoli-text);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.amoli-select__control:focus {
	outline: none;
	border-color: var(--amoli-brand);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(173, 38, 28, 0.12);
}

.amoli-select__chev {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 8px;
	color: #878da0;
	pointer-events: none;
}

/* Textarea */

.amoli-textarea {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	background: var(--am-input-bg);
	padding: 14px;
	font-size: 15px;
	font-family: inherit;
	color: var(--amoli-text);
	resize: vertical;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.amoli-textarea:focus {
	outline: none;
	border-color: var(--amoli-brand);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(173, 38, 28, 0.12);
}

/* Phone with prefix */

.amoli-float--phone {
	display: flex;
	gap: 8px;
}

.amoli-float--phone .amoli-select--inline {
	flex: 0 0 96px;
	width: 96px;
}

.amoli-float--phone .amoli-select__control {
	height: 50px;
	padding: 0 26px 0 12px;
	font-size: 14px;
}

.amoli-float--phone .amoli-select__chev {
	right: 10px;
}

.amoli-float__pair {
	position: relative;
	flex: 1;
	min-width: 0;
}

/* Checkbox */

.amoli-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.amoli-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.amoli-check__box {
	flex: 0 0 22px;
	height: 22px;
	border: 1.5px solid #c9cdd6;
	border-radius: 7px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
	transition: all 0.15s ease;
}

.amoli-check__box svg {
	width: 12px;
	height: 10px;
	color: #fff;
	opacity: 0;
	transform: scale(0.6);
	transition: all 0.15s ease;
}

.amoli-check input:checked ~ .amoli-check__box {
	background: var(--amoli-accent);
	border-color: var(--amoli-accent);
}

.amoli-check input:checked ~ .amoli-check__box svg {
	opacity: 1;
	transform: scale(1);
}

.amoli-check input:focus-visible ~ .amoli-check__box {
	box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.15);
}

.amoli-check__label {
	font-size: 13px;
	color: #4b5160;
	line-height: 1.45;
}

.amoli-check__label a {
	color: var(--amoli-accent);
	text-decoration: underline;
}

/* Radio pills */

.amoli-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.amoli-radio-pill {
	position: relative;
	display: inline-flex;
}

.amoli-radio-pill input {
	position: absolute;
	opacity: 0;
}

.amoli-radio-pill span {
	padding: 9px 16px;
	border: 1.5px solid #d9dce3;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: #4b5160;
	transition: all 0.15s ease;
	cursor: pointer;
}

.amoli-radio-pill input:checked + span {
	border-color: var(--amoli-accent);
	background: rgba(47, 91, 255, 0.08);
	color: var(--amoli-accent);
}

/* Field validation states (WooCommerce classes) */

.amoli-field.woocommerce-invalid .amoli-float__control,
.amoli-field.woocommerce-invalid .amoli-select__control,
.amoli-field.woocommerce-invalid .amoli-textarea {
	border-color: var(--am-err);
	background: #fff5f5;
}

.amoli-field.woocommerce-invalid .amoli-float__label,
.amoli-field.woocommerce-invalid .amoli-field__label {
	color: var(--am-err);
}

.checkout-inline-error-message {
	margin: 6px 2px 0;
	font-size: 12px;
	color: var(--am-err);
}

/* Ship-to-different-address switch */

.amoli-ship-toggle {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--am-line);
}

.amoli-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.amoli-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.amoli-switch__track {
	width: 40px;
	height: 24px;
	border-radius: 999px;
	background: #d9dce3;
	position: relative;
	transition: background 0.18s ease;
	flex: 0 0 40px;
}

.amoli-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.18s ease;
}

.amoli-switch input:checked ~ .amoli-switch__track {
	background: var(--amoli-accent);
}

.amoli-switch input:checked ~ .amoli-switch__track .amoli-switch__thumb {
	transform: translateX(16px);
}

.amoli-switch__label {
	font-size: 14px;
	font-weight: 600;
	color: #4b5160;
}

.amoli-fields-wrap {
	margin-top: 16px;
}

/* ---------- Shipping methods ---------- */

.amoli-ship__pkg {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--amoli-muted);
}

.amoli-ship-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1.5px solid #e3e5eb;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
	cursor: pointer;
	position: relative;
	transition: all 0.15s ease;
}

.amoli-ship-opt:last-child {
	margin-bottom: 0;
}

.amoli-ship-opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.amoli-ship-opt__name {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--amoli-text);
}

.amoli-ship-opt__price {
	margin-left: auto;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--amoli-text);
}

.amoli-ship-opt__badge,
.amoli-pay-method__badge {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--am-ok);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
}

.amoli-ship-opt__badge svg,
.amoli-pay-method__badge svg {
	width: 12px;
	height: 12px;
}

.amoli-ship-opt:has(input:checked),
.amoli-ship-opt.is-selected {
	border-color: var(--amoli-accent);
	background: rgba(47, 91, 255, 0.05);
}

.amoli-ship-opt:has(input:checked) .amoli-ship-opt__badge,
.amoli-ship-opt.is-selected .amoli-ship-opt__badge {
	display: inline-flex;
}

.amoli-ship__empty {
	margin: 0;
	font-size: 14px;
	color: var(--amoli-muted);
}

/* ---------- Payment ---------- */

.amoli-pay-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.amoli-pay-method {
	border: 1.5px solid #e3e5eb;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
	position: relative;
	transition: all 0.15s ease;
}

.amoli-pay-method:last-child {
	margin-bottom: 0;
}

.amoli-pay-method > input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.amoli-pay-method__head {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.amoli-pay-method__icons {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #3b3f4a;
}

.amoli-pay-method__icons img {
	height: 22px;
	width: auto;
	display: block;
}

.amoli-mark {
	height: 20px;
	width: auto;
	display: inline-block;
}

.amoli-mark--text {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.01em;
	font-style: italic;
	color: #003087;
}

.amoli-pay-method__name {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--amoli-text);
}

.amoli-pay-method__head .amoli-pay-method__badge {
	margin-left: auto;
}

.amoli-pay-method:has(> input:checked),
.amoli-pay-method.is-selected {
	border-color: var(--amoli-accent);
	background: rgba(47, 91, 255, 0.05);
}

.amoli-pay-method:has(> input:checked) .amoli-pay-method__badge,
.amoli-pay-method.is-selected .amoli-pay-method__badge {
	display: inline-flex;
}

.amoli-pay-method__desc {
	font-size: 13px;
	color: var(--amoli-muted);
	margin: 0 0 4px;
}

/* Generic styles for gateway-provided fields inside payment boxes */

.amoli-pay-method__box {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e3e5eb;
}

.amoli-pay-method__box p {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--amoli-muted);
}

.amoli-pay-method__box input[type="text"],
.amoli-pay-method__box input[type="email"],
.amoli-pay-method__box input[type="tel"],
.amoli-pay-method__box input[type="password"],
.amoli-pay-method__box input[type="number"],
.amoli-pay-method__box select {
	width: 100%;
	height: 44px;
	border: 1.5px solid #e3e5eb;
	border-radius: 10px;
	padding: 0 12px;
	font-size: 14.5px;
	margin: 4px 0;
	box-sizing: border-box;
	background: #fff;
}

.amoli-pay-none {
	font-size: 14px;
	color: var(--amoli-muted);
	margin: 0;
}

/* ---------- Order summary items ---------- */

.amoli-items__sub {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--amoli-muted);
}

.amoli-item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto auto;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f0f1f4;
}

.amoli-item:last-of-type {
	border-bottom: 0;
	padding-bottom: 4px;
}

.amoli-item__thumb img,
.amoli-item__thumb .wp-post-image {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.amoli-item__name {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--amoli-text);
	line-height: 1.3;
}

.amoli-item__name a {
	color: inherit;
	text-decoration: none;
}

.amoli-item__vars {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 3px;
}

.amoli-item__vars span {
	font-size: 12px;
	color: var(--amoli-muted);
}

.amoli-item__each {
	margin: 3px 0 0;
	font-size: 12.5px;
	color: var(--amoli-muted);
}

.amoli-item__line {
	font-size: 15px;
	font-weight: 700;
	color: var(--amoli-text);
	white-space: nowrap;
}

.amoli-item__line .woocommerce-Price-currencySymbol {
	font-size: 0.85em;
}

.amoli-item__remove {
	grid-column: 4;
	grid-row: 1;
	justify-self: end;
	align-self: start;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #b3b8c4;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.amoli-item__remove:hover {
	background: #f4f5f7;
	color: var(--am-err);
}

/* Quantity stepper — flat brand circles with the count between (per design) */

.amoli-qty {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	border: 0;
	background: transparent;
	padding: 0;
}

.amoli-qty__btn {
	width: 32px;
	height: 32px;
	border: 0;
	background: var(--amoli-brand, #ad261c);
	border-radius: 50%;
	font-size: 21px;
	font-weight: 300;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: filter 0.15s ease, transform 0.05s ease;
}

.amoli-qty__btn:hover {
	filter: brightness(0.92);
}

.amoli-qty__btn:active {
	transform: scale(0.94);
}

.amoli-qty__btn:focus-visible {
	outline: 2px solid var(--amoli-accent);
	outline-offset: 2px;
}

.amoli-qty__val {
	width: 22px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--amoli-text);
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
}

.amoli-qty__val::-webkit-outer-spin-button,
.amoli-qty__val::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------- Coupon ---------- */

.amoli-coupon__row {
	position: relative;
}

.amoli-coupon__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: #9aa0ae;
	pointer-events: none;
	display: inline-flex;
}

.amoli-coupon__row .amoli-float__control {
	padding-left: 44px;
}

.amoli-coupon__row .amoli-float__label {
	left: 44px;
}

.amoli-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.amoli-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(47, 91, 255, 0.08);
	border: 1px solid rgba(47, 91, 255, 0.25);
	color: var(--amoli-accent);
	border-radius: 999px;
	padding: 5px 6px 5px 12px;
	font-size: 13px;
	font-weight: 600;
}

.amoli-chip__amt {
	color: var(--am-err);
	font-weight: 700;
}

.amoli-chip__x {
	border: 0;
	background: transparent;
	color: inherit;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.amoli-chip__x:hover {
	background: rgba(47, 91, 255, 0.15);
}

/* ---------- Totals ---------- */

.amoli-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	font-size: 14px;
	color: var(--amoli-muted);
}

.amoli-row__val {
	font-weight: 600;
	color: var(--amoli-text);
}

.amoli-row__val .woocommerce-Price-currencySymbol {
	font-size: 0.85em;
}

.amoli-row--total {
	margin-top: 8px;
	padding: 14px 0 4px;
	border-top: 1px solid var(--am-line);
	font-size: 16px;
	color: var(--amoli-text);
}

.amoli-row--total > span:first-child {
	font-weight: 700;
}

.amoli-row--total .amoli-row__val {
	font-size: 19px;
	font-weight: 800;
}

/* ---------- Buttons ---------- */

.amoli-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	background: var(--amoli-accent);
	color: #fff;
	font-size: 15.5px;
	font-weight: 600;
	height: 50px;
	padding: 0 28px;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.05s ease;
	box-sizing: border-box;
}

.amoli-btn:hover {
	filter: brightness(0.94);
	color: #fff;
}

.amoli-btn:active {
	transform: translateY(1px);
}

.amoli-btn--ghost {
	background: transparent;
	border: 1.5px solid #d9dce3;
	color: var(--amoli-text);
	height: 46px;
	padding: 0 20px;
	font-size: 14px;
}

.amoli-btn--ghost:hover {
	border-color: #b9bec9;
	color: var(--amoli-text);
	background: #fafbfc;
	filter: none;
}

.amoli-place {
	margin-top: 16px;
}

.amoli-btn--pay {
	width: 100%;
	height: 50px;
	font-size: 16px;
	font-weight: 700;
	background: var(--amoli-btn, #ad261c);
	border-radius: 10px;
}

.amoli-btn--pay:hover {
	filter: brightness(1.15);
	color: #fff;
}

form.checkout.processing .amoli-btn--pay {
	opacity: 0.6;
	pointer-events: none;
}

.amoli-pay-link {
	width: 100%;
	margin-top: 14px;
	background: var(--amoli-btn, #ad261c);
	border-radius: 10px;
}

.amoli-pay-link:hover {
	filter: brightness(1.15);
	color: #fff;
}

/* Cart privacy consent row (above the pay link, per design) */

.amoli-cart-consent {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--am-line);
}

/* Terms (classic terms.php) inside the place-order block */

.amoli-place .form-row {
	margin: 0 0 12px;
}

.amoli-place .form-row label {
	font-size: 13px;
	color: #4b5160;
}

.amoli-place .form-row input[type="checkbox"] {
	margin-right: 6px;
}

/* ---------- Notes / privacy ---------- */

.amoli-notes {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--am-line);
}

.amoli-notes .amoli-field {
	margin-bottom: 12px;
}

.amoli-notes .amoli-field:last-child {
	margin-bottom: 0;
}

/* ---------- Notices ---------- */

.amoli-notices > * {
	margin-bottom: 16px;
}

.amoli-notices ul,
.woocommerce-NoticeGroup-checkout ul {
	list-style: none;
	margin: 0 0 16px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14px;
}

.amoli-notices ul.woocommerce-error,
.woocommerce-NoticeGroup-checkout ul.woocommerce-error {
	background: #fff2f2;
	border: 1px solid rgba(229, 72, 77, 0.35);
	color: #b3261e;
}

.amoli-notices ul.woocommerce-message,
.woocommerce-NoticeGroup-checkout ul.woocommerce-message {
	background: #f0fdf4;
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #15803d;
}

.amoli-notices ul.woocommerce-info,
.woocommerce-NoticeGroup-checkout ul.woocommerce-info {
	background: #f5f7ff;
	border: 1px solid rgba(47, 91, 255, 0.3);
	color: #2f5bff;
}

.amoli-notices li,
.woocommerce-NoticeGroup-checkout li {
	margin: 0;
}

.amoli-notices li + li,
.woocommerce-NoticeGroup-checkout li + li {
	margin-top: 6px;
}

.amoli-notices a,
.woocommerce-NoticeGroup-checkout a {
	color: inherit;
}

.amoli-notice {
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	margin-bottom: 12px;
}

.amoli-notice--error {
	background: #fff2f2;
	border: 1px solid rgba(229, 72, 77, 0.35);
	color: #b3261e;
}

.amoli-notice--success {
	background: #f0fdf4;
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #15803d;
}

/* ---------- Login card ---------- */

.amoli-login__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.amoli-login__title {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--amoli-text);
}

.amoli-link {
	color: var(--amoli-accent);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.amoli-link:hover {
	text-decoration: underline;
}

.amoli-login form.login,
.amoli-login form.woocommerce-form-login {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--am-line);
}

.amoli-login form.login p {
	margin: 0 0 10px;
	font-size: 14px;
}

.amoli-login form.login input[type="text"],
.amoli-login form.login input[type="password"] {
	width: 100%;
	height: 46px;
	border: 1.5px solid #e3e5eb;
	border-radius: 10px;
	padding: 0 12px;
	font-size: 14.5px;
	box-sizing: border-box;
}

.amoli-login .woocommerce-button,
.amoli-login .button {
	background: var(--amoli-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 12px 24px;
	font-weight: 600;
	cursor: pointer;
}

/* ---------- Empty cart ---------- */

.amoli-empty .amoli-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 56px 24px;
	text-align: center;
}

.amoli-empty__icon {
	width: 56px;
	height: 56px;
	color: #c9cdd6;
}

.amoli-empty__text {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #3b3f4a;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.amoli-grid {
		grid-template-columns: 1fr;
	}

	.amoli-col--aside .amoli-card {
		margin-bottom: 16px;
	}
}

@media (max-width: 640px) {
	.amoli-wrap {
		padding: 16px 12px 64px;
	}

	.amoli-card__head {
		padding: 18px 18px 0;
	}

	.amoli-card__body {
		padding: 14px 18px 18px;
	}

	/* All fields stack full width on small screens. */
	.amoli-fields {
		gap: 10px;
	}

	.amoli-w25,
	.amoli-w33,
	.amoli-w50,
	.amoli-w66,
	.amoli-w75,
	.amoli-w100 {
		grid-column: span 12;
	}

	/* Checkout summary: two tidy rows (thumb | name … price / stepper below). */
	.amoli-item {
		grid-template-columns: 48px minmax(0, 1fr) auto auto;
		row-gap: 8px;
	}

	.amoli-item__thumb img,
	.amoli-item__thumb .wp-post-image {
		width: 48px;
		height: 48px;
	}

	.amoli-qty {
		grid-column: 2;
	}

	.amoli-item__line {
		grid-column: 4;
		grid-row: 2;
	}

	.amoli-item__remove {
		grid-row: 1;
	}

	/*
	 * Cart page: minimal single row — image, stepper, price (+ remove).
	 * No title, no unit price, no wrapping. Matches the approved mockups.
	 */
	.amoli-cart .amoli-items__sub {
		display: none;
	}

	.amoli-cart .amoli-item {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr) auto auto;
		grid-template-rows: auto auto;
		align-items: center;
		row-gap: 4px;
		padding: 10px 0;
	}

	.amoli-cart .amoli-item__info {
		display: none;
	}

	.amoli-cart .amoli-item__thumb {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-self: center;
	}

	.amoli-cart .amoli-item__thumb img,
	.amoli-cart .amoli-item__thumb .wp-post-image {
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	.amoli-cart .amoli-qty {
		grid-column: 2;
		grid-row: 1;
		justify-self: start;
	}

	.amoli-cart .amoli-item__line {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
		margin-left: 0;
		white-space: nowrap;
	}

	.amoli-cart .amoli-item__remove {
		grid-column: 4;
		grid-row: 1;
	}
}

/* Desktop: collapsed cards always open, chevron hidden (cart page is desktop-flat) */

@media (min-width: 641px) {
	.amoli-card.is-collapse .amoli-card__body,
	.amoli-card.is-collapse.is-closed .amoli-card__body,
	.amoli-card.is-collapse.is-open .amoli-card__body {
		display: block;
	}

	.amoli-card.is-collapse .amoli-card__chev {
		display: none;
	}
}

/* Fade-in for replaced fragments */

@keyframes amoli-fade {
	from {
		opacity: 0.4;
	}
	to {
		opacity: 1;
	}
}

.amoli-frag-items,
.amoli-frag-totals,
.amoli-frag-coupon,
.amoli-frag-shipping {
	animation: amoli-fade 0.25s ease;
}

.amoli-ship-opt__meta {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: #9aa0ae;
}

/* Theme header/footer adaptation on dark pages */

body.amoli-page .wp-site-blocks {
	color: #e7e9f2;
}

body.amoli-page .wp-site-blocks > header a,
body.amoli-page .wp-site-blocks > footer a,
body.amoli-page header .wp-block-site-title a,
body.amoli-page footer .wp-block-site-title a,
body.amoli-page .wp-block-group.global-footer a {
	color: #e7e9f2;
}

/* ---------- Shortcode / page-builder embed ---------- */

/*
 * The dark stage is normally the <body> (takeover pages). Inside builder
 * pages the shortcode renders its own full-bleed dark section instead.
 */

.amoli-wrap--embed {
	max-width: none;
	margin-inline: calc(50% - 50vw);
	background: var(--amoli-bg, #12141f);
	padding-inline: max(20px, calc(50vw - 590px));
	box-sizing: border-box;
}

/* Builder sections sometimes constrain width with overflow; keep the
   full-bleed math contained so no horizontal scrollbar appears. */

body:has(.amoli-wrap--embed) {
	overflow-x: clip;
}

/* WooCommerce block-format notices (Woo 9+) inside our areas */

.amoli-notices .wc-block-components-notice-banner,
.woocommerce-NoticeGroup-checkout .wc-block-components-notice-banner {
	margin: 0 0 16px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.amoli-notices .wc-block-components-notice-banner svg,
.woocommerce-NoticeGroup-checkout .wc-block-components-notice-banner svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.amoli-notices .wc-block-components-notice-banner.is-error,
.woocommerce-NoticeGroup-checkout .wc-block-components-notice-banner.is-error {
	background: #fff2f2;
	border: 1px solid rgba(229, 72, 77, 0.35);
	color: #b3261e;
}

.amoli-notices .wc-block-components-notice-banner.is-success,
.woocommerce-NoticeGroup-checkout .wc-block-components-notice-banner.is-success {
	background: #f0fdf4;
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #15803d;
}

.amoli-notices .wc-block-components-notice-banner.is-info,
.woocommerce-NoticeGroup-checkout .wc-block-components-notice-banner.is-info {
	background: #f5f7ff;
	border: 1px solid rgba(47, 91, 255, 0.3);
	color: #2f5bff;
}

.amoli-row--coupon .amoli-row__val {
	color: var(--am-err);
}

/*
 * Collapsed cards: the body carries the bottom padding and is hidden when
 * closed, so the header needs its own bottom padding to stay balanced.
 */

@media (max-width: 640px) {
	.amoli-card.is-collapse.is-closed .amoli-card__head {
		padding-bottom: 18px;
	}
}

/* Desktop (PC): price sits on its own row directly under the title row */

@media (min-width: 641px) {
	.amoli-item {
		grid-template-columns: 56px minmax(0, 1fr) auto auto;
		grid-template-rows: auto auto;
		row-gap: 2px;
		align-items: start;
	}

	.amoli-item__thumb {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-self: center;
	}

	.amoli-item__info {
		grid-column: 2;
		grid-row: 1;
	}

	.amoli-item__line {
		grid-column: 2;
		grid-row: 2;
		font-size: 17px;
		margin-top: 2px;
	}

	.amoli-qty {
		grid-column: 3;
		grid-row: 1;
		align-self: center;
	}

	.amoli-item__remove {
		grid-column: 4;
		grid-row: 1;
	}

	/* The unit-price hint is not part of the desktop design */
	.amoli-item__each {
		display: none;
	}
}
