/* Side cart (Figma: Side cart / Desktop 1920, Mobile 390 full-screen sheet, States). */

.ac-sc { position: fixed; inset: var(--ac-adminbar) 0 0; z-index: 1150; }
.ac-sc[hidden] { display: none; }
.ac-sc__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity 240ms ease; }
.ac-sc__panel { position: absolute; right: 0; top: 0; bottom: 0; width: 480px; max-width: 100%; background: var(--ac-white); outline: 0; transform: translateX(100%); transition: transform 280ms var(--ac-ease-out); }
.ac-sc.is-open .ac-sc__overlay { opacity: 1; }
.ac-sc.is-open .ac-sc__panel { transform: none; }
.ac-sc.is-busy .ac-sc__body, .ac-sc.is-busy .ac-sc__foot { opacity: .6; pointer-events: none; transition: opacity 120ms ease; }
.ac-sc__inner { display: flex; flex-direction: column; height: 100%; }

.ac-sc__head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--ac-grey-200); }
.ac-sc__title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.ac-sc__count { padding: 2px 8px; border-radius: 999px; background: var(--ac-light); color: var(--ac-text-2); font-size: 13px; font-weight: 500; line-height: 1.4; }
.ac-sc__close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--ac-light); transition: background-color var(--ac-fast) ease; }
.ac-sc__close:hover { background: var(--ac-grey-200); }

.ac-sc__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 20px; padding: 16px 24px 24px; }
.ac-sc__free { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; border-radius: 10px; background: var(--ac-light); }
.ac-sc__free p { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ac-text-2); }
.ac-sc__free strong { font-weight: 500; color: var(--ac-black); }
.ac-sc__bar { position: relative; height: 4px; border-radius: 2px; background: var(--ac-white); overflow: hidden; }
.ac-sc__bar span { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--ac-green); }
.ac-sc__free.is-done { background: var(--ac-green-tint); }
.ac-sc__free.is-done p { color: var(--ac-green-text); font-weight: 500; }
.ac-sc__free.is-done .ac-sc__bar span { background: var(--ac-green-text); }
.ac-sc__added { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ac-green-tint); color: var(--ac-green-text); font-size: 15px; font-weight: 500; line-height: 1.5; animation: ac-fade 300ms ease; }
.ac-sc__added[hidden] { display: none; }
.ac-sc.is-added .ac-sc__added[hidden] { display: flex; }
.ac-sc__added > span { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ac-green-text); color: var(--ac-white); }

.ac-sc__items { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ac-sc__item { display: flex; gap: 14px; }
.ac-sc__thumb { flex: none; display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; padding: 4px; border: 1px solid var(--ac-grey-200); border-radius: 10px; }
.ac-sc__thumb img { width: 80px; height: 80px; object-fit: contain; }
.ac-sc__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ac-sc__top { display: flex; align-items: flex-start; gap: 8px; }
.ac-sc__name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.ac-sc__name > span { font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; color: var(--ac-mid); }
.ac-sc__name a:hover { text-decoration: underline; }
.ac-sc__remove { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ac-text-2); transition: background-color var(--ac-fast) ease, color var(--ac-fast) ease; }
.ac-sc__remove:hover { background: var(--ac-light); color: var(--ac-black); }
.ac-sc__specs { align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--ac-light); color: var(--ac-dark); font-size: 13px; font-weight: 500; line-height: 1.4; }
.ac-sc__stock { gap: 6px; font-size: 13px; font-weight: 400; line-height: 1.45; }
.ac-sc__stock .ac-card__dot { width: 7px; height: 7px; }
.ac-sc__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.ac-sc .ac-stepper--s { width: 102px; height: 38px; border-radius: 8px; }
.ac-sc .ac-stepper--s button { width: 36px; }
.ac-sc .ac-stepper--s input { width: 28px; }
.ac-sc__price { font-size: 22px; font-weight: 700; line-height: 1.1; }

.ac-sc__install { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--ac-grey-200); border-radius: 12px; cursor: pointer; transition: border-color var(--ac-fast) ease, background-color var(--ac-fast) ease; }
.ac-sc__install:hover { border-color: var(--ac-grey-300); }
.ac-sc__install input { position: absolute; opacity: 0; pointer-events: none; }
.ac-sc__install .ac-check__box { flex: none; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--ac-grey-300); background: var(--ac-white); color: var(--ac-green); }
.ac-sc__install .ac-check__box .ac-icon { opacity: 0; }
.ac-sc__install:has(input:checked) { border-color: var(--ac-black); background: var(--ac-green-tint); }
.ac-sc__install:has(input:checked) .ac-check__box { background: var(--ac-black); border-color: var(--ac-black); }
.ac-sc__install:has(input:checked) .ac-check__box .ac-icon { opacity: 1; }
.ac-sc__install:has(input:focus-visible) { outline: 2px solid var(--ac-green-text); outline-offset: 2px; }
.ac-sc__install-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--ac-text-2); }
.ac-sc__install-text strong { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ac-black); }
.ac-sc__install > .ac-icon { flex: none; color: var(--ac-dark); }

.ac-sc__ups { display: flex; flex-direction: column; gap: 12px; }
.ac-sc__ups-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--ac-text-2); }
.ac-sc__ups-head strong { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ac-black); }
.ac-sc__up { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--ac-light); }
.ac-sc__up-thumb { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 4px; border-radius: 10px; background: var(--ac-white); }
.ac-sc__up-thumb img { width: 48px; height: 48px; object-fit: contain; }
.ac-sc__up-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; }
.ac-sc__up-text > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sc__up-brand { font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; color: var(--ac-mid); }
.ac-sc__up-price { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.ac-sc__up-price .is-sale { color: var(--ac-error); }
.ac-sc__up-price del { font-weight: 400; color: var(--ac-mid); }
.ac-sc__up-price .ac-card__sale { padding: 1px 5px; font-size: 13px; }
.ac-sc__up-add { flex: none; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--ac-grey-300); border-radius: 8px; background: var(--ac-white); font-size: 13px; font-weight: 500; line-height: 1.4; transition: border-color var(--ac-fast) ease; }
.ac-sc__up-add span { font-size: 15px; }
.ac-sc__up-add:hover { border-color: var(--ac-black); }
.ac-sc__up-done { flex: none; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 8px; background: var(--ac-green-tint); font-size: 13px; font-weight: 500; }

.ac-sc__coupon { padding-top: 12px; border-top: 1px solid var(--ac-grey-200); }
.ac-sc__coupon-head { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 15px; font-weight: 500; line-height: 1.5; text-align: left; }
.ac-sc__coupon-head .ac-icon:first-child { color: var(--ac-mid); }
.ac-sc__coupon-head .ac-icon:last-child { margin-left: auto; transition: transform var(--ac-fast) ease; }
.ac-sc__coupon-head[aria-expanded="true"] .ac-icon:last-child { transform: rotate(180deg); }
.ac-sc__coupon-body { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.ac-sc__coupon-body[hidden] { display: none; }
.ac-sc__coupon-form { display: flex; gap: 8px; }
.ac-sc__coupon-form input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--ac-black); border-radius: 8px; font: inherit; font-size: 15px; font-weight: 500; }
.ac-sc__coupon-form input:focus { outline: 0; box-shadow: 0 0 0 3px rgba(128, 251, 0, .35); }
.ac-sc__coupon-form .ac-btn { height: 44px; padding-inline: 18px; }
.ac-sc__coupon-ok { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--ac-green-tint); color: var(--ac-green-text); font-size: 13px; font-weight: 500; line-height: 1.4; }
.ac-sc__coupon-ok span { flex: 1 1 auto; }
.ac-sc__coupon-ok button { color: var(--ac-black); text-decoration: underline; text-underline-offset: 3px; }
.ac-sc__coupon-error { font-size: 13px; line-height: 1.45; color: var(--ac-error); }

.ac-sc__foot { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 24px; border-top: 1px solid var(--ac-grey-200); }
.ac-sc__rows { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.ac-sc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 1.5; }
.ac-sc__row dt { color: var(--ac-text-2); }
.ac-sc__row dd { margin: 0; font-weight: 500; }
.ac-sc__row dd.is-later { font-size: 13px; font-weight: 400; color: var(--ac-text-2); }
.ac-sc__row dd.is-free { color: var(--ac-green-text); }
.ac-sc__row dd.is-discount { color: var(--ac-green-text); }
.ac-sc__total { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ac-sc__total dt, .ac-sc__total dd { display: flex; flex-direction: column; margin: 0; font-size: 13px; line-height: 1.45; }
.ac-sc__total dt { color: var(--ac-mid); }
.ac-sc__total dd { align-items: flex-end; color: var(--ac-text-2); padding-top: 2px; }
.ac-sc__total dt strong { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ac-black); }
.ac-sc__total dd strong { font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--ac-black); }
.ac-sc__checkout { height: 56px; gap: 10px; font-size: 16px; }

.ac-sc__empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; text-align: center; }
.ac-sc__empty-icon { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 999px; background: var(--ac-light); color: var(--ac-text-2); }
.ac-sc__empty-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.ac-sc__empty-text { max-width: 400px; margin-top: -4px; font-size: 15px; line-height: 1.5; color: var(--ac-text-2); }
.ac-sc__find { align-self: stretch; height: 52px; gap: 10px; }
.ac-sc__empty-label { padding-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ac-text-2); }
.ac-sc__empty-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: -4px; }
.ac-sc__empty-cats .ac-choice { padding: 8px 14px; }
.ac-sc__foot--empty a { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.5; }

/* Hide WooCommerce's own "View cart" link next to AJAX buttons: the drawer opens instead. */
.ac-shell .added_to_cart.wc-forward { display: none; }

@media (max-width: 767px) {
	.ac-sc__panel { width: 100%; }
	.ac-sc__head { padding: 18px 16px; }
	.ac-sc__body { padding: 16px 16px 24px; }
	.ac-sc__thumb { width: 80px; height: 80px; }
	.ac-sc__thumb img { width: 72px; height: 72px; }
	.ac-sc__foot { padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
	.ac-sc__empty { padding: 32px 16px; }
}
