/* Gadget Chai cart drawer (includes/cart-drawer.php). Brown #2A1D17, orange #FF7A1A, greys #F5F5F5 / #ECECEC, muted #6F625B. */
.gc-drawer-overlay { position: fixed; inset: var(--gc-cart-top, 0px) 0 0 0; z-index: 100000; background: rgba(42, 29, 23, .45); opacity: 0; transition: opacity .25s ease; }
.gc-drawer {
	position: fixed; top: var(--gc-cart-top, 0px); right: 0; bottom: 0; z-index: 100001;
	width: min(420px, 100vw); background: #FFFFFF; color: #2A1D17;
	transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	box-shadow: -12px 0 40px rgba(42, 29, 23, .12); visibility: hidden;
}
html.gc-drawer-open, html.gc-drawer-open body { overflow: hidden; }
html.gc-drawer-open .gc-drawer-overlay { opacity: 1; }
html.gc-drawer-open .gc-drawer { transform: none; visibility: visible; }

.gc-drawer-body { display: flex; flex-direction: column; height: 100%; }
.gc-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #ECECEC; }
.gc-drawer-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; color: #2A1D17; }
.gc-drawer-head h2 span { font-size: 14px; font-weight: 500; color: #6F625B; }
.gc-drawer .gc-drawer-close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #2A1D17; cursor: pointer; box-shadow: none; }
.gc-drawer .gc-drawer-close:hover { background: #F5F5F5; color: #2A1D17; }

.gc-drawer-free { padding: 12px 20px 14px; background: #FFF1E6; }
.gc-drawer-free p { margin: 0 0 8px; font-size: 13px; color: #2A1D17; }
.gc-drawer-free.is-done p { font-weight: 700; }
.gc-drawer-bar { height: 6px; border-radius: 99px; background: #FFFFFF; overflow: hidden; }
.gc-drawer-bar span { display: block; height: 100%; border-radius: 99px; background: #FF7A1A; transition: width .3s ease; }

.gc-drawer-items { list-style: none; margin: 0; padding: 0 20px; overflow-y: auto; flex: 1; }
.gc-drawer-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #ECECEC; transition: opacity .15s; }
.gc-drawer-item.is-busy { opacity: .45; pointer-events: none; }
.gc-drawer-thumb { flex: 0 0 76px; height: 76px; border-radius: 14px; background: #F5F5F5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gc-drawer-thumb img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; margin: 0; }
.gc-drawer-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-drawer .gc-drawer-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: #2A1D17; text-decoration: none; }
.gc-drawer .gc-drawer-name:hover { color: #2A1D17; text-decoration: underline; }
.gc-drawer-meta { font-size: 12px; color: #6F625B; }
.gc-drawer-price { font-size: 14px; font-weight: 800; margin-top: 2px; }
.gc-qty { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 8px; border: 1px solid #ECECEC; border-radius: 99px; }
.gc-drawer .gc-qty button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #2A1D17; font-size: 16px; line-height: 1; cursor: pointer; box-shadow: none; }
.gc-drawer .gc-qty button:hover { background: #F5F5F5; color: #2A1D17; }
.gc-drawer .gc-qty button:disabled { opacity: .35; cursor: default; }
.gc-qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.gc-drawer .gc-drawer-remove { flex: 0 0 auto; display: flex; padding: 6px; margin: -4px -6px 0 0; border: 0; border-radius: 8px; background: transparent; color: #6F625B; cursor: pointer; box-shadow: none; }
.gc-drawer .gc-drawer-remove:hover { background: #F5F5F5; color: #E8432E; }

.gc-drawer-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #ECECEC; background: #FFFFFF; }
.gc-drawer-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.gc-drawer-sub strong { font-size: 18px; font-weight: 800; }
.gc-drawer-note { margin: 2px 0 14px; font-size: 12px; color: #6F625B; }
.gc-drawer .gc-drawer-btn { display: block; padding: 14px; border-radius: 99px; background: #FF7A1A; color: #2A1D17; text-align: center; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .15s; }
.gc-drawer .gc-drawer-btn:hover { background: #F06C0E; color: #2A1D17; }
.gc-drawer a.gc-drawer-wa-order { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 700; color: #2A1D17; text-decoration: none; }
.gc-drawer a.gc-drawer-wa-order:hover { color: #1A9E4B; }
.gc-drawer-wa-order .gc-wa-icon { width: 16px; height: 16px; color: #1A9E4B; }
.gc-drawer .gc-drawer-link { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: #2A1D17; text-decoration: underline; }

.gc-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 20px; text-align: center; }
.gc-drawer-empty p { margin: 0; color: #6F625B; }
.gc-drawer-empty .gc-drawer-btn { padding: 12px 28px; }

/* The "View cart" link WooCommerce adds next to card buttons after an AJAX add: the drawer replaces it. */
.woocommerce ul.products li.product a.added_to_cart { display: none !important; }

/* Header bag icon. */
.gc-bag-icon { width: 1em; height: 1em; display: block; }
.header-cart-button .gc-bag-iconset { font-size: 24px; }

@media (prefers-reduced-motion: reduce) {
	.gc-drawer, .gc-drawer-overlay { transition: none; }
}
