/* Asteris Cart — Side cart drawer */
/* CLS-safe: position:fixed + transform:translateX() — page content never shifts */

.asteris-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
	/* Without this, the offscreen panel (translateX(100%) ~400px to the right)
	   grows the document's scrollable width and the storefront scrolls
	   horizontally. The fixed container clips it cleanly. */
	overflow: hidden;
}

.asteris-cart-drawer:not([hidden]) {
	pointer-events: auto;
}

.asteris-cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.asteris-cart-drawer:not([hidden]) .asteris-cart-drawer__overlay {
	opacity: 1;
}

.asteris-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(400px, 92vw);
	background: #fff;
	display: flex;
	flex-direction: column;
	/* CLS-safe: transform only — compositor layer, no layout reflow */
	transform: translateX(100%);
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
	box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}

.asteris-cart-drawer:not([hidden]) .asteris-cart-drawer__panel {
	transform: translateX(0);
}

.asteris-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.asteris-cart-drawer__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.asteris-cart-drawer__close {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #6b7280;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.asteris-cart-drawer__close:hover {
	color: #111;
	background: #f3f4f6;
}

.asteris-cart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
}

.asteris-cart-drawer__footer {
	padding: 16px 20px;
	border-top: 1px solid #e5e7eb;
}

.asteris-cart-drawer__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 12px;
}

.asteris-cart-drawer__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.asteris-cart-drawer__view-cart-btn,
.asteris-cart-drawer__checkout-btn {
	display: block;
	padding: 14px 12px;
	text-align: center;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.asteris-cart-drawer__view-cart-btn {
	background: #fff !important;
	color: var(--ac-green, #00C853) !important;
	border: 1px solid var(--ac-green, #00C853);
}

.asteris-cart-drawer__view-cart-btn:hover {
	background: var(--ac-green-light, #E8FFF1) !important;
}

.asteris-cart-drawer__checkout-btn {
	background: var(--ac-green, #00C853) !important;
	color: #fff !important;
	border: 1px solid var(--ac-green, #00C853);
}

.asteris-cart-drawer__checkout-btn:hover {
	background: var(--ac-green-hover, #00A846) !important;
	border-color: var(--ac-green-hover, #00A846) !important;
	color: #fff !important;
}

/* ============================
 * COUPON FORM in drawer footer (alpha.20)
 * ============================ */
.asteris-cart-drawer__coupon {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}
.asteris-cart-drawer__coupon-input {
	flex: 1;
	min-width: 0;
	padding: 12px 12px;
	border: 1px solid #d8dce6;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
	color: #0a0a0a;
	box-shadow: none;
	line-height: 1.2;
}
.asteris-cart-drawer__coupon-input:focus {
	outline: 0;
	border-color: var(--ac-green, #00C853);
	box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}
.asteris-cart-drawer__coupon-btn {
	padding: 12px 18px;
	border: 1px solid var(--ac-green, #00C853);
	background: #fff;
	color: var(--ac-green, #00C853);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.asteris-cart-drawer__coupon-btn:hover {
	background: var(--ac-green, #00C853);
	color: #fff;
}
.asteris-cart-drawer__coupon-msg {
	font-size: 12px;
	margin-bottom: 10px;
	padding: 8px 10px;
	border-radius: 4px;
}
.asteris-cart-drawer__coupon-msg.is-success { background: #e8fff1; color: #00813a; }
.asteris-cart-drawer__coupon-msg.is-error   { background: #fdecea; color: #b32d2e; }

/* ============================
 * BUY NOW button on product page (alpha.28)
 * Inherits .single_add_to_cart_button styling from the theme — this rule
 * just stacks it below the Add to Cart row so they don't sit inline.
 * ============================ */
.asteris-cart-buy-now.single_add_to_cart_button {
	display: block;
	width: 100%;
	margin-top: 8px;
}
.asteris-cart-buy-now[disabled] { opacity: 0.6; cursor: wait; }

/* Free shipping progress bar */
.asteris-cart-shipping-bar {
	padding: 12px 14px;
	margin: -16px -20px 16px;
	background: linear-gradient(180deg, #F9FAFB 0%, #fff 100%);
	border-bottom: 1px solid #f3f4f6;
}

.asteris-cart-shipping-bar__message {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 8px;
}

.asteris-cart-shipping-bar__icon {
	font-size: 16px;
	line-height: 1;
}

.asteris-cart-shipping-bar__text {
	flex: 1;
}

.asteris-cart-shipping-bar__text .woocommerce-Price-amount {
	font-weight: 700;
	color: var(--ac-green, #00C853);
}

.asteris-cart-shipping-bar__track {
	height: 6px;
	background: #E5E7EB;
	border-radius: 99px;
	overflow: hidden;
}

.asteris-cart-shipping-bar__fill {
	height: 100%;
	background: var(--ac-green, #00C853);
	border-radius: 99px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.asteris-cart-shipping-bar.is-achieved .asteris-cart-shipping-bar__message {
	color: #064E3B;
	font-weight: 600;
}

/* Checkout variant — placed inside customer details, not drawer */
.asteris-cart-checkout .asteris-cart-shipping-bar {
	margin: 0 0 1.25rem;
	padding: 14px 18px;
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
}

/* Cart item rows */
.asteris-cart-drawer__item {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f3f4f6;
}

.asteris-cart-drawer__item:last-child {
	border-bottom: none;
}

.asteris-cart-drawer__item img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	background: #f9fafb;
}

.asteris-cart-drawer__item-details {
	min-width: 0;
}

.asteris-cart-drawer__item-name {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #111827 !important;
	text-decoration: none !important;
	margin-bottom: 6px;
	line-height: 1.3;
}

.asteris-cart-drawer__item-name:hover {
	color: var(--ac-green, #00C853) !important;
}

.asteris-cart-drawer__item-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.asteris-cart-drawer__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.asteris-cart-drawer__qty-btn {
	width: 24px;
	height: 24px;
	background: #fff;
	border: none;
	font-size: 16px;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
	line-height: 1;
}

.asteris-cart-drawer__qty-btn:hover {
	background: #f3f4f6;
	color: var(--ac-green, #00C853);
}

.asteris-cart-drawer__qty-value {
	min-width: 24px;
	padding: 0 6px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #111827;
}

.asteris-cart-drawer__item-price {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	white-space: nowrap;
}

.asteris-cart-drawer__remove {
	background: none;
	border: none;
	padding: 4px;
	border-radius: 4px;
	color: #9ca3af;
	cursor: pointer;
	display: flex;
	align-self: start;
}

.asteris-cart-drawer__remove:hover {
	color: #DC2626;
	background: #FEF2F2;
}

/* Empty cart state */
.asteris-cart-drawer__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
	color: #6b7280;
	min-height: 60vh;
}

.asteris-cart-drawer__empty svg {
	margin-bottom: 12px;
}

.asteris-cart-drawer__empty-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

.asteris-cart-drawer__empty-text {
	margin: 0 0 20px;
	font-size: 14px;
	color: #6b7280;
}

.asteris-cart-drawer__empty-btn {
	display: inline-block;
	padding: 10px 20px;
	background: var(--ac-green, #00C853);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.15s;
}

.asteris-cart-drawer__empty-btn:hover {
	background: var(--ac-green-hover, #00A846);
	color: #fff !important;
}

/* ===== Add to Cart Popup ===== */
.asteris-cart-add-popup[hidden] {
	display: none !important;
}

.asteris-cart-add-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 20px 20px;
	overflow-y: auto;
}

.asteris-cart-add-popup__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	animation: asteris-popup-fade 0.18s ease;
}

@keyframes asteris-popup-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.asteris-cart-add-popup__panel {
	position: relative;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: asteris-popup-pop 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes asteris-popup-pop {
	from { opacity: 0; transform: translateY(-8px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

.asteris-cart-add-popup__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	border-bottom: 1px solid #f3f4f6;
}

.asteris-cart-add-popup__icon {
	color: var(--ac-green, #00C853);
	display: inline-flex;
}

.asteris-cart-add-popup__title {
	flex: 1;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.asteris-cart-add-popup__close {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #6b7280;
	border-radius: 4px;
	display: inline-flex;
}

.asteris-cart-add-popup__close:hover {
	color: #111;
	background: #f3f4f6;
}

.asteris-cart-add-popup__body {
	padding: 20px;
	overflow-y: auto;
}

/* Product card inside popup */
.asteris-cart-add-popup__product {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 12px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid #f3f4f6;
}

.asteris-cart-add-popup__product img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	background: #f9fafb;
}

.asteris-cart-add-popup__product-name {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #111827 !important;
	text-decoration: none !important;
	margin-bottom: 4px;
}

.asteris-cart-add-popup__product-price {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 6px;
}

.asteris-cart-add-popup__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.asteris-cart-add-popup__qty-btn {
	width: 26px;
	height: 26px;
	background: #fff;
	border: none;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
}

.asteris-cart-add-popup__qty-btn:hover {
	background: #f3f4f6;
	color: var(--ac-green, #00C853);
}

.asteris-cart-add-popup__qty-value {
	min-width: 28px;
	padding: 0 6px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
}

.asteris-cart-add-popup__remove {
	background: none;
	border: none;
	padding: 4px;
	border-radius: 4px;
	color: #9ca3af;
	cursor: pointer;
	align-self: start;
}

.asteris-cart-add-popup__remove:hover {
	color: #DC2626;
	background: #FEF2F2;
}

/* Totals */
.asteris-cart-add-popup__totals {
	padding: 14px 0;
	border-bottom: 1px solid #f3f4f6;
}

.asteris-cart-add-popup__totals-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #374151;
	padding: 4px 0;
}

.asteris-cart-add-popup__totals-row--total {
	font-weight: 700;
	color: #111827;
	font-size: 15px;
}

/* Actions */
.asteris-cart-add-popup__actions {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
	padding: 16px 0;
}

.asteris-cart-add-popup__btn {
	display: block;
	padding: 12px 8px;
	text-align: center;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	border: 1px solid;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.asteris-cart-add-popup__btn--secondary {
	background: #fff;
	color: #111827 !important;
	border-color: #d1d5db;
}

.asteris-cart-add-popup__btn--secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.asteris-cart-add-popup__btn--primary {
	background: var(--ac-green, #00C853);
	color: #fff !important;
	border-color: var(--ac-green, #00C853);
}

.asteris-cart-add-popup__btn--primary:hover {
	background: var(--ac-green-hover, #00A846);
	border-color: var(--ac-green-hover, #00A846);
}

/* Cross-sells */
.asteris-cart-add-popup__crosssells {
	padding-top: 14px;
	border-top: 1px solid #f3f4f6;
}

.asteris-cart-add-popup__crosssells-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.asteris-cart-add-popup__crosssells-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.asteris-cart-add-popup__crosssell {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	border: 1px solid #f3f4f6;
	border-radius: 6px;
	text-decoration: none !important;
	color: #111827 !important;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.asteris-cart-add-popup__crosssell:hover {
	border-color: var(--ac-green, #00C853);
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.asteris-cart-add-popup__crosssell img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 4px;
	background: #f9fafb;
}

.asteris-cart-add-popup__crosssell-name {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.asteris-cart-add-popup__crosssell-price {
	font-size: 12px;
	font-weight: 700;
	color: var(--ac-green, #00C853);
}

.asteris-cart-add-popup__crosssell-add {
	margin-top: 4px;
	padding: 6px 8px;
	border: 1px solid var(--ac-green, #00C853);
	background: #fff;
	color: var(--ac-green, #00C853);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.asteris-cart-add-popup__crosssell-add:hover {
	background: var(--ac-green, #00C853);
	color: #fff;
}

/* Mobile responsive — popup goes full-screen on phones */
@media (max-width: 640px) {
	.asteris-cart-add-popup {
		padding: 0;
		align-items: stretch;
	}
	.asteris-cart-add-popup__panel {
		max-width: 100%;
		max-height: 100%;
		height: 100%;
		border-radius: 0;
	}
	.asteris-cart-add-popup__actions {
		grid-template-columns: 1fr;
	}
	.asteris-cart-add-popup__crosssells-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Cross-sells in drawer */
.asteris-cart-drawer__crosssells {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #f3f4f6;
}

.asteris-cart-drawer__crosssells-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.asteris-cart-drawer__crosssells-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.asteris-cart-drawer__crosssell {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	border: 1px solid #f3f4f6;
	border-radius: 6px;
	text-decoration: none !important;
	color: #111827 !important;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.asteris-cart-drawer__crosssell:hover {
	border-color: var(--ac-green, #00C853);
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.asteris-cart-drawer__crosssell img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 4px;
	background: #f9fafb;
}

.asteris-cart-drawer__crosssell-name {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.asteris-cart-drawer__crosssell-price {
	font-size: 12px;
	font-weight: 700;
	color: var(--ac-green, #00C853);
}

.asteris-cart-drawer__crosssell-add {
	margin-top: 4px;
	padding: 6px 8px;
	border: 1px solid var(--ac-green, #00C853);
	background: #fff;
	color: var(--ac-green, #00C853);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.asteris-cart-drawer__crosssell-add:hover {
	background: var(--ac-green, #00C853);
	color: #fff;
}

/* Mobile sticky bar */
.asteris-cart-sticky-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99998;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
	padding: 10px 14px;
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	align-items: center;
	gap: 10px;
}

@media (max-width: 768px) {
	.asteris-cart-sticky-bar:not([hidden]) {
		display: flex;
	}
	/* Bump floating cart up so it doesn't sit behind the sticky bar */
	.asteris-cart-sticky-bar:not([hidden]) ~ .asteris-cart-trigger {
		bottom: 80px;
	}
}

.asteris-cart-sticky-bar__cart {
	position: relative;
	flex: 0 0 auto;
	background: none;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px;
	color: #374151;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.asteris-cart-sticky-bar__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	background: var(--ac-green, #00C853);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.asteris-cart-sticky-bar__total {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
	line-height: 1.1;
}

.asteris-cart-sticky-bar__label {
	font-size: 11px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.asteris-cart-sticky-bar__amount {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.asteris-cart-sticky-bar__checkout {
	flex: 0 0 auto;
	background: var(--ac-green, #00C853);
	color: #fff !important;
	text-decoration: none !important;
	padding: 12px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s;
}

.asteris-cart-sticky-bar__checkout:hover {
	background: var(--ac-green-hover, #00A846);
}

/* Floating cart trigger */
.asteris-cart-trigger {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ac-green, #00C853);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 200, 83, 0.35);
	transition: background 0.15s, transform 0.15s;
	will-change: transform;
}

.asteris-cart-trigger:hover {
	background: var(--ac-green-hover, #00A846);
	transform: scale(1.06);
}

.asteris-cart-trigger__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	background: #fff;
	color: var(--ac-green, #00C853);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid var(--ac-green, #00C853);
	transition: opacity 0.15s;
}

.asteris-cart-trigger__count--hidden {
	opacity: 0;
}

/* Mobile responsive */
@media (max-width: 640px) {
	.asteris-cart-drawer__panel {
		width: 100vw;
		box-shadow: none;
	}

	.asteris-cart-trigger {
		bottom: 16px;
		right: 16px;
		width: 48px;
		height: 48px;
	}

	.asteris-cart-drawer__header {
		padding: 14px 16px;
	}

	.asteris-cart-drawer__body {
		padding: 12px 16px;
	}

	.asteris-cart-drawer__footer {
		padding: 14px 16px;
		padding-bottom: env(safe-area-inset-bottom, 14px);
	}
}

/* Sister-override fallback — hide Asteris for WooCommerce's Side_Cart frontend elements
   in case the PHP-level disable didn't take. Asteris Cart's drawer is the unified surface. */
.asteris-side-cart,
#asteris-side-cart,
.asteris-side-cart-drawer,
.asteris-mini-cart-trigger,
[id^="asteris-side-cart-"],
[class*="asteris-side-cart"] {
	display: none !important;
}

/* Hide theme's mini-cart / header cart icons — Asteris Cart's floating button is the unified UX
   across all themes. This is the side cart equivalent of the locked-for-life pricing —
   one consistent UX regardless of which theme the store uses. */
.wp-block-woocommerce-mini-cart,
.wc-block-mini-cart,
.wp-block-woocommerce-mini-cart-button,
.wp-block-woocommerce-mini-cart-contents,
.woocommerce-mini-cart,
.cart-contents-count,
header .cart-contents:not(.asteris-cart-trigger),
header .header-cart,
nav .cart-contents:not(.asteris-cart-trigger) {
	display: none !important;
}

/* ============================================================
   Side-cart shipping estimate block — REMOVED in alpha.83.
   Block no longer renders in the drawer. CSS retained as a no-op
   so existing class hooks don't leak into other components if a
   theme or third-party plugin renders matching markup.
   ============================================================ */
.asteris-cart-drawer__shipping { display: none !important; }
/* Legacy styling retained below in case the block is reinstated. */
.asteris-cart-drawer__shipping {
	padding: 12px 14px;
	border-top: 1px solid #e5e7eb;
	background: #fafbfc;
	font-size: 13px;
	color: #374151;
}
.asteris-cart-drawer__shipping-inner { display: block; }

/* "Address set" state */
.asteris-cart-drawer__shipping-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
	line-height: 1.4;
}
.asteris-cart-drawer__shipping-row span { color: #6b7280; }
.asteris-cart-drawer__shipping-row strong {
	font-weight: 700;
	color: #0a0a0a;
	text-align: right;
	white-space: nowrap;
}
.asteris-cart-drawer__shipping-edit {
	background: transparent;
	border: 0;
	padding: 0;
	color: var(--ac-green, #00C853);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-top: 2px;
}
.asteris-cart-drawer__shipping-edit:hover { color: var(--ac-green-hover, #00A846); }

/* "No address" state — form */
.asteris-cart-drawer__shipping-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 4px;
}
.asteris-cart-drawer__shipping-form select,
.asteris-cart-drawer__shipping-form input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: #0a0a0a;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.asteris-cart-drawer__shipping-form select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%236b7280' d='M6 8 0 0h12z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 10px;
	padding-right: 32px;
}
.asteris-cart-drawer__shipping-form select:focus,
.asteris-cart-drawer__shipping-form input[type="text"]:focus {
	outline: 0;
	border-color: var(--ac-green, #00C853);
	box-shadow: 0 0 0 3px var(--ac-green-light, #E8FFF1);
}

/* Postcode + Calculate sit on one row */
.asteris-cart-drawer__shipping-form {
	grid-template-areas:
		"country country"
		"postcode calc";
	grid-template-columns: 1fr auto;
}
.asteris-cart-drawer__shipping-form select[name="country"]  { grid-area: country; }
.asteris-cart-drawer__shipping-form input[name="postcode"]  { grid-area: postcode; }
.asteris-cart-drawer__shipping-form button[type="submit"]   {
	grid-area: calc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ac-green, #00C853);
	color: #ffffff;
	border: 0;
	padding: 0 18px;
	min-height: 40px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
	box-shadow: none;
}
.asteris-cart-drawer__shipping-form button[type="submit"]:hover {
	background: var(--ac-green-hover, #00A846);
	color: #ffffff;
}
.asteris-cart-drawer__shipping-form button[type="submit"]:focus {
	outline: 0;
	box-shadow: 0 0 0 3px var(--ac-green-light, #E8FFF1);
}
