/*
 * Aiolos Checkout: side cart. Scoped under .acw-sc / .acw-sc-fab so theme styles stay untouched,
 * and hardened against theme rules for buttons, lists and tables.
 */

:root {
	--acw-primary: #2b4bff;
	--acw-text: #111827;
	--acw-success: #15803d;
	--acw-radius: 12px;
	--acw-sc-width: 440px;
	--acw-sc-muted: var(--acw-muted, #6b7280);
	--acw-sc-line: color-mix(in srgb, var(--acw-border, #d1d5db) 55%, var(--acw-bg, #fff));
	--acw-sc-surface: var(--acw-surface, #f4f5f7);
	--acw-sc-tint: color-mix(in srgb, var(--acw-primary) 8%, var(--acw-bg, #fff));
	--acw-sc-success-tint: color-mix(in srgb, var(--acw-success) 12%, var(--acw-bg, #fff));
}

/* Page scroll locked while open. The scrollbar's place is kept with scrollbar-gutter (padding on
   the body would make themes that set body { width: 100% } wider than the window). */
html:root.acw-sc-locked { overflow: hidden; }
html:root.acw-sc-locked.acw-sc-gutter { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
	html:root.acw-sc-locked body { padding-right: var(--acw-scrollbar, 0); }
}

:root .acw-sc, :root .acw-sc *, :root .acw-sc *::before, :root .acw-sc *::after, :root .acw-sc-fab, :root .acw-sc-fab * { box-sizing: border-box; }
:root .acw-sc[hidden], :root .acw-sc-fab[hidden] { display: none !important; }

:root .acw-sc {
	position: fixed; inset: 0; z-index: 999999; max-width: 100vw; overflow: hidden; overflow: clip;
	font-family: var(--acw-font, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: 16px; line-height: 1.45; color: var(--acw-text); text-align: start;
	-webkit-font-smoothing: antialiased;
}
:root .acw-sc__overlay { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(2px); }
:root .acw-sc__panel {
	position: absolute; top: 0; inset-inline-end: 0; bottom: 0; width: min(var(--acw-sc-width), 100vw);
	background: var(--acw-bg, #fff); display: flex; flex-direction: column; outline: none;
	transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
	box-shadow: -12px 0 40px rgba(17, 24, 39, .14);
}
:root .acw-sc.is-open .acw-sc__overlay { opacity: 1; }
:root .acw-sc.is-open .acw-sc__panel { transform: none; }
:root .acw-sc__panel.is-dragging { transition: none; }
:root .acw-sc__grip { display: none; }
@media (prefers-reduced-motion: reduce) { :root .acw-sc__panel, :root .acw-sc__overlay { transition: none; } }
@media (max-width: 560px) {
	:root .acw-sc__panel { top: auto; inset-inline: 0; width: 100%; height: min(94vh, 100%); height: min(94dvh, 100%); border-radius: 22px 22px 0 0; transform: translateY(100%); }
	:root .acw-sc__grip { display: block; flex: none; width: 40px; height: 5px; margin: 8px auto -10px; border-radius: 99px; background: var(--acw-sc-line); }
}

:root .acw-sc button { font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
:root .acw-sc a { color: inherit; }
:root .acw-sc ul { list-style: none; margin: 0; padding: 0; }
:root .acw-sc p { margin: 0; }
:root .acw-sc table { width: 100%; border-collapse: collapse; margin: 0; border: 0 !important; background: none !important; }
/* Themes style tables strongly (Storefront, Astra, Flatsome: striped or tinted cells). */
:root .acw-sc table th, :root .acw-sc table td, :root .acw-sc table tr { border: 0 !important; padding: 0; background: transparent !important; font-weight: 400; vertical-align: middle; box-shadow: none !important; }

/* head */
:root .acw-sc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
:root .acw-sc__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--acw-text); font-family: inherit; text-transform: none; }
:root .acw-sc__title-count { color: var(--acw-sc-muted); font-weight: 600; }
:root .acw-sc__close {
	width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--acw-sc-surface); color: var(--acw-text);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .15s;
}
:root .acw-sc__close:hover { background: #e5e7eb; color: var(--acw-text); }

/* content */
:root .acw-sc-content { flex: 1; min-height: 0; display: flex; flex-direction: column; transition: opacity .15s; }
:root .acw-sc.is-busy .acw-sc-content { opacity: .7; }
:root .acw-sc__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 16px; }
:root .acw-sc__loading { margin: auto; display: flex; gap: 6px; }
:root .acw-sc__loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--acw-primary); animation: acw-dot 1s infinite ease-in-out; }
:root .acw-sc__loading span:nth-child(2) { animation-delay: .15s; }
:root .acw-sc__loading span:nth-child(3) { animation-delay: .3s; }
@keyframes acw-dot { 0%, 80%, 100% { opacity: .2; transform: scale(.8); } 40% { opacity: 1; transform: none; } }

/* empty */
:root .acw-sc__empty { margin: auto; padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
:root .acw-sc__empty-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--acw-sc-surface); display: inline-flex; align-items: center; justify-content: center; color: var(--acw-sc-muted); }
:root .acw-sc__empty-title { font-size: 18px; font-weight: 700; }
:root .acw-sc__empty-image img { display: block; max-width: min(220px, 70vw); max-height: 180px; width: auto; height: auto; margin: 0 auto; border-radius: var(--acw-radius); }

/* rewards */
:root .acw-rewards { background: var(--acw-sc-tint); border-radius: calc(var(--acw-radius) + 2px); padding: 14px 16px 12px; margin-bottom: 8px; }
:root .acw-rewards__message { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
:root .acw-rewards__message strong, :root .acw-rewards__message .amount { color: var(--acw-primary); font-weight: 800; }
:root .acw-rewards__bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--acw-primary) 16%, var(--acw-bg, #fff)); overflow: hidden; }
:root .acw-rewards__fill { display: block; height: 100%; border-radius: inherit; background: var(--acw-primary); transition: width .5s cubic-bezier(.2, .8, .2, 1); max-width: 100%; }
:root .acw-rewards__tiers { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px !important; font-size: 13px; color: var(--acw-sc-muted); }
:root .acw-rewards__tier:only-child { margin-inline-start: auto; }
:root .acw-rewards__tier.is-unlocked { color: var(--acw-success); font-weight: 700; }

/* items */
:root .acw-sc-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--acw-sc-line); transition: opacity .2s; }
:root .acw-sc-item.is-removing { opacity: .4; pointer-events: none; }
:root .acw-sc-item__thumb { width: 104px; height: 104px; border-radius: var(--acw-radius); background: var(--acw-sc-surface); overflow: hidden; }
:root .acw-sc-item__thumb a { display: block; height: 100%; }
:root .acw-sc-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
:root .acw-sc-item__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
:root .acw-sc-item__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
:root .acw-sc-item__name { font-size: 17px; font-weight: 700; line-height: 1.3; }
:root .acw-sc-item__name a { text-decoration: none; color: var(--acw-text); }
:root .acw-sc-item__name a:hover { text-decoration: underline; }
:root .acw-sc-item__price { position: relative; text-align: end; white-space: nowrap; }
:root .acw-sc-item__now { font-size: 17px; font-weight: 800; }
:root .acw-sc-item__was { position: absolute; top: 100%; inset-inline-end: 0; color: var(--acw-sc-muted); font-size: 14px; line-height: 1.2; }
:root .acw-sc-item__meta { color: var(--acw-sc-muted); font-size: 15px; }
:root .acw-sc-item__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
:root .acw-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; line-height: 1.5; }
:root .acw-badge--success { background: var(--acw-sc-success-tint); color: var(--acw-success); }
:root .acw-badge--warning { background: #fef3c7; color: #92400e; }
:root .acw-sc-item__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
:root .acw-sc-item__remove { background: none !important; border: 0; padding: 4px 0; color: var(--acw-sc-muted) !important; text-decoration: underline; cursor: pointer; font-size: 14px; min-height: 0; }
:root .acw-sc-item__remove:hover { color: #b91c1c !important; }
:root .acw-sc-item__fixed-qty { color: var(--acw-sc-muted); font-size: 14px; }
/* A part of a bundle or kit: under its parent, smaller, without controls. */
:root .acw-sc-item.is-child { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; margin-top: -8px; padding-inline-start: 24px; position: relative; }
:root .acw-sc-item.is-child::before { content: ""; position: absolute; inset-inline-start: 8px; top: 0; bottom: 50%; width: 10px; border-inline-start: 2px solid var(--acw-sc-line); border-bottom: 2px solid var(--acw-sc-line); border-end-start-radius: 6px; }
:root .acw-sc-item.is-child .acw-sc-item__thumb { width: 56px; height: 56px; }
:root .acw-sc-item.is-child .acw-sc-item__name, :root .acw-sc-item.is-child .acw-sc-item__now { font-size: 15px; font-weight: 600; }
:root .acw-badge .amount { color: inherit; font-weight: inherit; }

/* quantity */
:root .acw-qty { display: inline-flex; align-items: center; border: 1px solid var(--acw-border, #d1d5db); border-radius: 99px; height: 44px; background: var(--acw-field, #fff); }
:root .acw-qty__btn {
	width: 44px; height: 42px; border: 0 !important; background: none !important; color: var(--acw-text) !important;
	font-size: 20px; line-height: 1; cursor: pointer; padding: 0 !important; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; min-height: 0;
}
:root .acw-qty__btn:hover { background: var(--acw-sc-surface) !important; }
:root .acw-qty__btn:disabled { opacity: .35; cursor: default; }
:root .acw-qty__input {
	width: 36px !important; height: 40px; border: 0 !important; background: none !important; text-align: center; font: inherit; font-weight: 700; font-size: 17px;
	padding: 0 !important; margin: 0 !important; box-shadow: none !important; color: var(--acw-text); -moz-appearance: textfield; appearance: textfield; min-height: 0;
}
:root .acw-qty__input::-webkit-outer-spin-button, :root .acw-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* cross-sells (Pro) */
:root .acw-sc-upsells { padding-top: 20px; }
:root .acw-sc-upsells__title { font-size: 17px; font-weight: 800; margin: 0 0 12px; }
:root .acw-sc-upsells__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 76%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
:root .acw-sc-upsell { scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--acw-sc-line); border-radius: var(--acw-radius); }
:root .acw-sc-upsell__thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; background: var(--acw-sc-surface); overflow: hidden; }
:root .acw-sc-upsell__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
:root .acw-sc-upsell__info { flex: 1; min-width: 0; font-size: 15px; }
:root .acw-sc-upsell__name { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:root .acw-sc-upsell__price { font-weight: 700; }
:root .acw-sc-upsell__add {
	width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--acw-text) !important; color: #fff !important;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; text-decoration: none; font-size: 22px; line-height: 1;
}
:root .acw-sc-upsell__add.loading { opacity: .5; pointer-events: none; }

/* footer */
:root .acw-sc__foot { border-top: 1px solid var(--acw-sc-line); padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: var(--acw-bg, #fff); }
:root .acw-sc__totals th, :root .acw-sc__totals td { padding: 2px 0; font-size: 16px; color: var(--acw-text); }
:root .acw-sc__totals th { text-align: start; font-weight: inherit; }
:root .acw-sc__totals td { text-align: end; }
:root .acw-sc__totals .acw-sc__saving td, :root .acw-sc__totals .acw-sc__saving td .amount { color: var(--acw-success); font-weight: 700; }
:root .acw-sc__totals .acw-sc__saving a.woocommerce-remove-coupon { display: none; }
:root .acw-sc__totals .acw-sc__total th, :root .acw-sc__totals .acw-sc__total td { padding-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
:root .acw-sc__muted { color: var(--acw-sc-muted); font-size: 14px; }
:root .acw-sc__note { color: var(--acw-sc-muted); font-size: 13px; text-align: right; margin: -2px 0 12px !important; }
:root .acw-sc__uncoupon {
	display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-start: 6px; padding: 0 !important;
	border: 0 !important; border-radius: 50%; background: var(--acw-sc-surface) !important; color: var(--acw-sc-muted) !important;
	font-size: 16px; line-height: 1; cursor: pointer; vertical-align: middle;
}
:root .acw-sc__uncoupon:hover { background: var(--acw-sc-line) !important; color: var(--acw-text) !important; }
:root .acw-sc__coupon { margin: 10px 0 0; }
:root .acw-sc__coupon summary { cursor: pointer; color: var(--acw-primary); font-size: 14px; font-weight: 700; list-style: none; min-height: 32px; display: flex; align-items: center; }
:root .acw-sc__coupon summary::-webkit-details-marker { display: none; }
:root .acw-sc__coupon summary::before { content: "+"; display: inline-block; width: 1em; font-weight: 800; }
:root .acw-sc__coupon[open] summary::before { content: "\2212"; }
:root .acw-sc__coupon-row { display: flex; gap: 8px; margin-top: 6px; }
:root .acw-sc__coupon-input {
	flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px !important; border: 1px solid var(--acw-sc-line) !important;
	border-radius: var(--acw-radius) !important; background: var(--acw-field, #fff) !important; color: var(--acw-text) !important; font-size: 16px; text-transform: uppercase; box-shadow: none !important;
}
:root .acw-sc__coupon-input:focus { border-color: var(--acw-primary) !important; outline: 2px solid color-mix(in srgb, var(--acw-primary) 25%, transparent); outline-offset: 0; }
:root .acw-sc__coupon-input::placeholder { text-transform: none; }
:root .acw-sc .acw-sc__coupon-apply { width: auto; min-height: 46px; padding: 0 18px; font-size: 15px; background: var(--acw-text); color: #fff !important; }
:root .acw-sc .acw-sc__coupon-apply:hover { background: color-mix(in srgb, var(--acw-text) 85%, #fff); }

:root .acw-sc-button {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-align: center;
	min-height: 54px; padding: 12px 20px; border-radius: var(--acw-radius);
	font-weight: 800; font-size: 18px; text-decoration: none !important; cursor: pointer; border: 1px solid transparent;
	transition: background .15s, transform .05s;
}
:root .acw-sc-button:active { transform: translateY(1px); }
:root .acw-sc-button--primary { background: var(--acw-primary); color: var(--acw-btn-text, #fff) !important; }
:root .acw-sc-button--primary:hover { background: color-mix(in srgb, var(--acw-primary) 88%, #000); color: var(--acw-btn-text, #fff) !important; }
:root .acw-sc__empty .acw-sc-button { width: auto; padding: 12px 28px; font-size: 16px; }
:root .acw-sc-button--secondary { margin-top: 10px; min-height: 48px; font-size: 16px; font-weight: 700; background: var(--acw-sc-surface); color: var(--acw-text) !important; border-color: var(--acw-sc-line); }
:root .acw-sc-button--secondary:hover { background: color-mix(in srgb, var(--acw-sc-surface) 85%, #000); color: var(--acw-text) !important; }
:root .acw-sc__express { display: grid; gap: 10px; }
:root .acw-sc__express:not(:empty) { margin-top: 10px; }
@supports selector(:has(*)) {
	:root .acw-sc__express:not(:empty) { margin-top: 0; }
	:root .acw-sc__express:has(> :not(script, style, link, template, input[type="hidden"])) { margin-top: 10px; }
}
/* Mini cart "View cart" / "Checkout" links a theme adds to the same hooks: the side cart has its own. */
:root .acw-sc__express a.wc-forward, :root .acw-sc__express .button.checkout { display: none !important; }
:root .acw-sc__express iframe { max-width: 100%; }
:root .acw-sc__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 12px !important; font-size: 13px; color: var(--acw-sc-muted); }
:root .acw-sc__trust span { color: var(--acw-success); font-weight: 800; }

/* toast */
:root .acw-sc__toast {
	position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
	padding: 12px 16px; border-radius: var(--acw-radius); background: var(--acw-text); color: #fff; font-size: 14px;
	opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
:root .acw-sc__toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
:root .acw-sc__toast.is-error { background: #b91c1c; }
:root .acw-sc__toast.is-success { background: var(--acw-success); }
:root .acw-sc__toast-action { background: none !important; border: 0; color: #fff !important; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0; }

/* floating button */
:root .acw-sc-fab {
	--acw-fab-box: calc(var(--acw-fab-icon, 34px) + 38px);
	position: fixed; bottom: calc(var(--acw-fab-y, 20px) + var(--acw-fab-lift, 0px) + env(safe-area-inset-bottom)); z-index: 99998;
	min-width: var(--acw-fab-box); height: var(--acw-fab-box); border-radius: 10px; margin: 0;
	border: 1px solid rgba(17, 24, 39, .06); padding: 0 calc(var(--acw-fab-icon, 34px) * .59); background: var(--acw-fab-bg, #fff); color: var(--acw-fab-color, #111827); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--acw-fab-icon, 34px) * .3);
	font: 500 16px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; text-transform: none; letter-spacing: normal;
	box-shadow: 0 10px 30px rgba(17, 24, 39, .18), 0 2px 6px rgba(17, 24, 39, .08); transition: transform .15s, box-shadow .15s;
}
:root .acw-sc-fab:hover, :root .acw-sc-fab:focus, :root .acw-sc-fab:active { background: var(--acw-fab-bg, #fff); color: var(--acw-fab-color, #111827); }
:root .acw-sc-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(17, 24, 39, .22), 0 2px 6px rgba(17, 24, 39, .08); }
:root .acw-sc-fab--bottom-right { right: var(--acw-fab-x, 20px); left: auto; }
:root .acw-sc-fab--bottom-left { left: var(--acw-fab-x, 20px); right: auto; }
:root .acw-sc-fab svg { width: var(--acw-fab-icon, 34px); height: var(--acw-fab-icon, 34px); flex: none; display: block; }
:root .acw-sc-fab .acw-sc-count {
	position: static; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none;
	color: inherit; font: 500 calc(var(--acw-fab-icon, 34px) * .53)/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center;
}
@media (max-width: 767.98px) { :root .acw-sc-fab--on-desktop { display: none !important; } }
@media (min-width: 768px) { :root .acw-sc-fab--on-mobile { display: none !important; } }

/* "Added": the button moves when the side cart does not open (a ring instead, without motion). */
:root .acw-sc-fab.is-bump, :root .acw-cart-link.is-bump { animation: acw-bump .6s cubic-bezier(.2, .8, .2, 1); }
:root .acw-sc-fab.is-shake, :root .acw-cart-link.is-shake { animation: acw-shake .7s ease-in-out; }
@keyframes acw-bump { 0% { transform: scale(1); } 30% { transform: scale(1.16); } 60% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes acw-shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-12deg); } 30% { transform: rotate(10deg); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
	:root .acw-sc-fab, :root .acw-sc-fab:hover { transition: none; transform: none; }
	:root .acw-sc-fab.is-bump, :root .acw-sc-fab.is-shake, :root .acw-cart-link.is-bump, :root .acw-cart-link.is-shake { animation: none; outline: 3px solid var(--acw-primary); outline-offset: 3px; }
}

/* Screen reader only: "Added: …" while the side cart stays closed. */
:root .acw-sc-live, :root .acw-sc .acw-visually-hidden {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}

/* [aiolos_cart] and the "Aiolos cart button" block: an icon with the count, in the theme's color. */
:root .acw-cart-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; line-height: 1; vertical-align: middle; cursor: pointer; }
:root .acw-cart-link:hover { color: inherit; text-decoration: none; }
:root .acw-cart-link__icon { position: relative; display: inline-flex; }
:root .acw-cart-link__icon svg { width: 24px; height: 24px; display: block; }
:root .acw-cart-link .acw-sc-count {
	position: absolute; top: -7px; inset-inline-end: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
	background: var(--acw-primary, #2b4bff); color: var(--acw-btn-text, #fff); font: 700 11px/18px ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center;
}
:root .acw-cart-link .acw-sc-count[data-count="0"] { display: none; }
:root .acw-cart-link__total, :root .acw-cart-link__label { font-size: .95em; font-weight: 600; }

:root .acw-sc :focus-visible, :root .acw-sc-fab:focus-visible { outline: 2px solid var(--acw-primary); outline-offset: 2px; }

@media (max-width: 560px) {
	:root .acw-sc__head { padding: 18px 18px 12px; }
	:root .acw-sc__title { font-size: 22px; }
	:root .acw-sc__scroll { padding: 0 18px 12px; }
	:root .acw-sc__foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
	:root .acw-sc-item { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
	:root .acw-sc-item__thumb { width: 84px; height: 84px; }
	:root .acw-sc-item__name, :root .acw-sc-item__now { font-size: 16px; }
}

/* Right-to-left languages: the cart slides in from the left. */
:root [dir="rtl"] .acw-sc__panel { transform: translateX(-100%); box-shadow: 12px 0 40px rgba(17, 24, 39, .14); }
:root [dir="rtl"] .acw-sc.is-open .acw-sc__panel { transform: none; }
@media (max-width: 560px) { :root [dir="rtl"] .acw-sc__panel { transform: translateY(100%); } }
:root [dir="rtl"] .acw-sc-button--checkout svg { transform: scaleX(-1); }

/* Discount link notice (shown while the side cart is closed). */
:root .acw-sc-notice {
	position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 999998; max-width: min(92vw, 460px);
	padding: 12px 18px; border-radius: var(--acw-radius, 12px); background: var(--acw-success, #15803d); color: #fff;
	font: 600 15px/1.4 var(--acw-font, ui-sans-serif, system-ui, sans-serif); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; pointer-events: none;
}
:root .acw-sc-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
:root .acw-sc-notice.is-error { background: #b91c1c; }
@media (prefers-reduced-motion: reduce) { :root .acw-sc-notice { transition: none; } }
