/* ==========================================================================
   Cart drawer
   ========================================================================== */

.dc-drawer { position: fixed; inset: 0; z-index: 100; }
.dc-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.dc-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 440px);
	display: flex; flex-direction: column; background: var(--white); color: var(--ink);
	transform: translateX(100%); transition: transform .32s var(--ease); outline: none;
	box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
}
.dc-drawer.is-open .dc-drawer__overlay { opacity: 1; }
.dc-drawer.is-open .dc-drawer__panel { transform: none; }
.dc-drawer__content { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dc-drawer__content.is-busy { opacity: .6; pointer-events: none; }
.dc-drawer__loading { padding: 40px 20px; text-align: center; color: var(--g600); }

.dc-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 10px 10px 20px; background: var(--black); color: var(--white);
}
.dc-drawer__head .dc-iconbtn { color: var(--white); }
.dc-drawer__head .dc-iconbtn:hover { background: rgba(255, 255, 255, .1); }
.dc-drawer__title { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dc-drawer__title span { font-weight: 500; }

/* Free-shipping progress */
.dc-ship { padding: 14px 20px; border-bottom: 1px solid var(--g100); background: var(--g50); }
.dc-ship__msg { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; text-align: center; }
.dc-ship__msg--done { color: var(--ok); }
.dc-ship__msg .dc-icon { width: 18px; height: 18px; }
.dc-ship__bar { margin-top: 10px; height: 8px; border-radius: var(--r-pill); background: var(--g200); overflow: hidden; }
.dc-ship__fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--gold); background-size: 100% 400%; background-position: center; transition: width .4s var(--ease); }

/* Lines */
.dc-lines { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px; }
.dc-line { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 30px 14px 0; border-bottom: 1px solid var(--g100); }
.dc-line:last-child { border-bottom: 0; }
.dc-line__img { display: block; width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--g50); border: var(--card-border); }
.dc-line__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-line__info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.dc-line__name { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.dc-line__name:hover { text-decoration: underline; }
.dc-line__meta { font-size: 12.5px; color: var(--g600); }
.dc-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.dc-line__price { font-weight: 700; font-size: 14px; }
.dc-line__remove {
	position: absolute; top: 12px; right: -6px; display: grid; place-items: center;
	width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--g500);
}
.dc-line__remove:hover { color: var(--sale); background: var(--g50); }
.dc-line__remove .dc-icon { width: 18px; height: 18px; }

/* One recommended add-on */
.dc-upsell { padding: 12px 20px 14px; border-top: 1px solid var(--g100); background: var(--g50); }
.dc-upsell__title { margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dc-upsell__card { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: var(--card-border); border-radius: var(--r); background: var(--white); }
.dc-upsell__img { display: block; width: 60px; height: 60px; border-radius: var(--r-sm); overflow: hidden; background: var(--g100); }
.dc-upsell__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-upsell__info { display: grid; gap: 4px; min-width: 0; }
.dc-upsell__name { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.dc-upsell__info .dc-price { font-size: 13px; }
.dc-upsell__info .dc-select { max-width: 100%; }

/* Footer */
.dc-drawer__foot { padding: 14px 20px 20px; border-top: 1px solid var(--g200); display: grid; gap: 10px; background: var(--white); }
.dc-drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.dc-drawer__total strong { font-size: 18px; }
.dc-drawer__total--save { font-size: 14px; color: var(--ok); }
.dc-drawer__total--save strong { font-size: 14px; }
.dc-drawer__note { font-size: 12.5px; color: var(--g600); }
.dc-drawer__continue { border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }

.dc-drawer__empty { display: grid; gap: 10px; padding: 48px 24px; text-align: center; }
.dc-drawer__empty-title { font-size: 20px; font-weight: 800; }
.dc-drawer__empty .dc-btn { margin-top: 6px; }

.dc-drawer__error { margin: 10px 20px 0; padding: 10px 12px; border-radius: var(--r); background: #fdf2f2; color: #8a1c1c; font-size: 14px; }
