/* Slide-out cart drawer. */

.woscent-drawer-open,
.woscent-drawer-open body { overflow:hidden; }

.woscent-drawer { position:fixed; inset:0; z-index:100000; }
.woscent-drawer__overlay { position:absolute; inset:0; background:rgba(32,29,26,.45); opacity:0; transition:opacity .3s ease; }
.woscent-drawer__panel { position:absolute; top:0; right:0; bottom:0; display:flex; width:min(420px,100vw); flex-direction:column; background:var(--woscent-paper); box-shadow:-12px 0 40px rgba(32,29,26,.18); transform:translateX(100%); transition:transform .3s cubic-bezier(.32,.72,0,1); }
.woscent-drawer__panel:focus { outline:none; }
.woscent-drawer.is-open .woscent-drawer__overlay { opacity:1; }
.woscent-drawer.is-open .woscent-drawer__panel { transform:translateX(0); }

.woscent-drawer__header { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; padding:1.4rem 1.5rem 1.2rem; border-bottom:1px solid var(--woscent-line); }
.woscent-drawer__header h2 { margin:0; color:var(--woscent-ink); font-family:Georgia,'Times New Roman',serif; font-size:1.5rem; font-weight:400; line-height:1.1; text-transform:none; }
.woscent-drawer__close { display:grid; width:40px; height:40px; margin:-.5rem -.6rem -.5rem 0; padding:0; place-items:center; border:0; border-radius:0; background:transparent; color:var(--woscent-ink); cursor:pointer; }
.woscent-drawer__close:hover,
.woscent-drawer__close:focus { background:transparent; color:var(--woscent-ink); }
.woscent-drawer__close:hover svg { transform:scale(1.1); }

.woscent-drawer__status:empty { display:none; }
.woscent-drawer__status p { margin:0; padding:.75rem 1.5rem; border-bottom:1px solid var(--woscent-line); background:#f3ece1; color:var(--woscent-ink); font-size:.85rem; }

.woscent-drawer__body { flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:0 1.5rem; }
.woscent-drawer__items { margin:0; padding:0; list-style:none; }
.woscent-drawer__item { display:grid; grid-template-columns:80px minmax(0,1fr) auto; gap:1rem; padding:1.4rem 0; border-bottom:1px solid var(--woscent-line); transition:opacity .2s ease; }
.woscent-drawer__item:last-child { border-bottom:0; }
.woscent-drawer__item.is-updating { opacity:.45; pointer-events:none; }
.woscent-drawer__thumb img { display:block; width:80px; height:100px; object-fit:cover; background:#f0e7d8; }
.woscent-drawer__name { display:block; color:var(--woscent-ink); font-family:Georgia,'Times New Roman',serif; font-size:1rem; line-height:1.3; text-decoration:none; }
a.woscent-drawer__name:hover { color:var(--woscent-ink); text-decoration:underline; text-underline-offset:.2rem; }
.woscent-drawer__price { margin-top:.3rem; color:#5c544b; font-size:.85rem; }
.woscent-drawer__price del { margin-right:.3rem; opacity:.65; }
.woscent-drawer__price ins { text-decoration:none; }
.woscent-drawer__info dl.variation { margin:.3rem 0 0; color:#5c544b; font-size:.8rem; }
.woscent-drawer__info dl.variation dt,
.woscent-drawer__info dl.variation dd { display:inline; margin:0; }
.woscent-drawer__info dl.variation dd p { display:inline; margin:0; }
.woscent-drawer__controls { display:flex; align-items:center; gap:.5rem; margin-top:.8rem; }
.woscent-drawer__controls .woscent-qty { height:40px; }
.woscent-drawer__controls .woscent-qty__button { width:36px; }
.woscent-drawer__controls .woscent-qty__input { width:2.5rem; }
.woscent-drawer__remove { display:grid; width:36px; height:36px; padding:0; place-items:center; border:0; border-radius:0; background:transparent; color:#5c544b; cursor:pointer; }
.woscent-drawer__remove:hover,
.woscent-drawer__remove:focus { background:transparent; color:var(--woscent-ink); }
.woscent-drawer__line-total { color:var(--woscent-ink); font-size:.92rem; text-align:right; white-space:nowrap; }

.woscent-drawer__empty { display:flex; min-height:100%; flex-direction:column; align-items:center; justify-content:center; gap:1.5rem; padding:3rem 0; text-align:center; }
.woscent-drawer__empty p { margin:0; color:var(--woscent-ink); font-family:Georgia,'Times New Roman',serif; font-size:1.5rem; }

.woscent-drawer__footer { flex:0 0 auto; padding:1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); border-top:1px solid var(--woscent-line); background:var(--woscent-paper); }
.woscent-drawer__footer[hidden] { display:none; }
.woscent-drawer__total { display:flex; align-items:baseline; justify-content:space-between; margin:0 0 .3rem; color:var(--woscent-ink); }
.woscent-drawer__total strong { font-size:1.1rem; font-weight:600; }
.woscent-drawer__note { margin:0 0 1rem; color:#6b6359; font-size:.8rem; line-height:1.5; }
.woscent-drawer__button { display:flex; width:100%; min-height:50px; align-items:center; justify-content:center; padding:.8rem 1.5rem; background:var(--woscent-ink); color:#fff; font-size:1rem; font-weight:500; letter-spacing:.04em; text-decoration:none; }
.woscent-drawer__empty .woscent-drawer__button { width:auto; padding-inline:2.5rem; }
.woscent-drawer__button:hover,
.woscent-drawer__button:focus { background:#3a3631; color:#fff; }
.woscent-drawer__view-cart { display:block; margin-top:.85rem; color:var(--woscent-ink); font-size:.9rem; text-align:center; text-decoration:underline; text-underline-offset:.25rem; }
.woscent-drawer__view-cart:hover { color:var(--woscent-ink); }

/* Header cart count and single-product loading state. */
.woscent-cart .woscent-cart-count { display:inline; }
.single_add_to_cart_button.loading { opacity:.7; cursor:progress; }

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

/* Rounded corners (sizes shared with style.css). */
.woscent-drawer__button { border-radius:var(--woscent-radius-sm); }
.woscent-drawer__status p { margin:.75rem 1.5rem 0; border:0; border-radius:var(--woscent-radius-sm); }
