/* Estetikos studija – šoninis krepšelis (papildo main.css). */

.es-drawer { position: fixed; inset: 0; z-index: 1000; }
/* Kol skydelis atidarytas, puslapis po juo neslenka (ir kompiuteryje). */
body.es-lock-krepselis { overflow: hidden; }
.es-drawer[hidden] { display: none; }
.es-drawer__overlay { position: absolute; inset: 0; background: rgba(23, 25, 26, 0.5); opacity: 0; transition: opacity 0.25s ease; }
.es-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: #FFFFFF; box-shadow: -12px 0 40px rgba(23, 25, 26, 0.18); transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); outline: none; }
.es-drawer.is-open .es-drawer__overlay { opacity: 1; }
.es-drawer.is-open .es-drawer__panel { transform: none; }

.es-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 24px; border-bottom: 1px solid var(--es-line); }
body.es .es-drawer__head h2 { font-size: 20px; font-weight: 700; }
.es-drawer__count { font-weight: 500; color: var(--es-muted); }

.es-drawer__notice:empty { display: none; }
.es-drawer__notice { margin: 12px 24px 0; padding: 10px 14px; border-radius: var(--es-r); font-size: 14px; font-weight: 600; }
.es-drawer__notice.is-ok { background: var(--es-tint); color: var(--es-accent); }
.es-drawer__notice.is-ok::before { content: "✓ "; }
.es-drawer__notice.is-error { background: #FBECEA; color: #A23B2A; }

.es-drawer .widget_shopping_cart_content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

/* ---------- Turinys ---------- */
.es-mini { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.es .es-mini__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 8px 24px; list-style: none; }
body.es .es-mini__item { position: relative; display: flex; gap: 14px; margin: 0; padding: 16px 32px 16px 0; border-bottom: 1px solid var(--es-line); transition: opacity 0.15s; }
.es-mini__item:last-child { border-bottom: 0; }
.es-mini__item.is-loading, body.es .es-mini__item.is-loading { opacity: 0.45; pointer-events: none; }

.es-mini__img { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 12px; background: var(--es-surface); overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* WooCommerce valdiklio stilius (ul.product_list_widget li img) nuotrauką sumažina iki 32 px – perrašoma. */
body.es .es-drawer ul.es-mini__list li .es-mini__img img, body.es .es-mini__img img { width: 100%; height: 100%; max-width: none; margin: 0; padding: 6px; object-fit: contain; float: none; box-shadow: none; }
.es-mini__img .es-kortele, .es-mini__img svg { width: 100%; height: 100%; }

.es-mini__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-mini__brand { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--es-muted); }
.es-mini__name { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--es-ink); }
.es-mini__body dl.variation { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 2px 0 0; font-size: 13px; color: var(--es-muted); }
.es-mini__body dl.variation dt, .es-mini__body dl.variation dd { margin: 0; float: none; padding: 0; }
.es-mini__body dl.variation dd p { margin: 0; }

.es-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.es-mini__qty { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--es-line2); border-radius: 19px; overflow: hidden; }
body.es .es-mini__qty button { width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 18px; font-weight: 500; line-height: 1; color: var(--es-ink); }
body.es .es-mini__qty button:hover:not(:disabled) { background: var(--es-surface); }
body.es .es-mini__qty button:disabled { color: var(--es-line2); cursor: default; }
body.es .es-mini__qty input { width: 34px; height: 36px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.es-mini__qty input::-webkit-outer-spin-button, .es-mini__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.es-mini__single { font-size: 14px; color: var(--es-muted); }
.es-mini__price { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-weight: 700; white-space: nowrap; }
.es-mini__price small { font-size: 12px; font-weight: 500; color: var(--es-muted); }
.es-mini__price del { font-weight: 500; color: var(--es-muted); }

body.es .es-drawer a.remove.es-mini__remove { position: absolute; top: 12px; right: -6px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--es-muted) !important; background: transparent; font-size: 0; line-height: 1; }
body.es .es-drawer a.remove.es-mini__remove:hover { background: var(--es-surface); color: var(--es-ink) !important; }

.es-mini__foot { flex: 0 0 auto; padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--es-line); background: #FFFFFF; }
body.es .es-mini__total { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 0; border: 0; font-size: 17px; }
body.es .es-mini__total strong { font-weight: 600; }
body.es .es-mini__total .amount { font-size: 20px; font-weight: 700; }
.es-mini__note { margin: 4px 0 14px !important; font-size: 13px; color: var(--es-muted); }
.es-mini__buttons { display: flex; flex-direction: column; gap: 8px; }
body.es .es-mini__buttons .es-btn { width: 100%; }

.es-mini--empty { align-items: center; justify-content: center; gap: 10px; padding: 40px 32px; text-align: center; color: var(--es-muted); }
.es-mini--empty svg { color: var(--es-line2); }
body.es .es-mini--empty p { margin: 6px 0 0; font-size: 18px; font-weight: 700; color: var(--es-ink); }
.es-mini--empty span { max-width: 280px; font-size: 15px; }
.es-mini--empty .es-btn { margin-top: 14px; }

/* Po „Į krepšelį“ WooCommerce prideda nuorodą „Peržiūrėti krepšelį“ – jos nebereikia. */
body.es a.added_to_cart.wc-forward { display: none; }

/* Prekės puslapio klaida (pvz. nepakanka likučio) */
.es-form-klaida { flex: 1 1 100%; margin: 10px 0 0; padding: 10px 14px; border-radius: var(--es-r); background: #FBECEA; color: #A23B2A; font-size: 14px; font-weight: 600; }

@media (max-width: 600px) {
	.es-drawer__panel { width: 100%; }
	body.es .es-mini__list { padding: 4px 18px; }
	.es-drawer__head { padding-left: 18px; }
	.es-mini__foot { padding-left: 18px; padding-right: 18px; }
	.es-drawer__notice { margin: 10px 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.es-drawer__overlay, .es-drawer__panel { transition: none; }
}

/* Kai prekė turi tik vieną variantą, „Išvalyti“ nerodoma. */
body.es form.es-vienas-variantas .reset_variations { display: none !important; }
