/* Source cart drawer. The full cart and checkout keep their own styles. */
#cp-cart-drawer {
	inset: 0 0 0 auto;
	width: min(420px, 95vw);
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	overflow: hidden;
	color: #000;
}

#cp-cart-drawer::backdrop { background: #000c; }
html:has(#cp-cart-drawer[open]) { overflow: hidden; }
#cp-cart-drawer .cp-dialog-inner { display: flex; flex-direction: column; height: 100%; padding: 0; }
#cp-cart-drawer .cp-drawer-header { position: relative; flex: none; height: 63px; padding: 19px 15px 0; text-align: center; }
#cp-cart-drawer #cp-cart-heading { margin: 0; font: 650 22px/26px var(--cp-font); color: #000; }
#cp-cart-drawer .cp-dialog-close { inset: 13px auto auto 15px; }
#cp-cart-drawer .cp-dialog-close button { width: 36px; height: 38px; }
#cp-cart-drawer .cp-dialog-close span { width: 10px; height: 10px; border: solid #000; border-width: 0 0 3px 3px; transform: rotate(45deg); }
#cp-cart-drawer .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#cp-cart-drawer .woocommerce-mini-cart__empty-message { margin: 0; padding: 30px 15px; color: #666; text-align: center; }

.cp-drawer-form { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.cp-drawer-items { min-height: 0; flex: 1; overflow-y: auto; padding: 10px 15px; scrollbar-width: thin; }
#cp-cart-drawer .woocommerce-mini-cart-item {
	display: grid;
	grid-template-columns: minmax(70px, 30%) minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 15px;
	min-height: 128px;
	padding: 10px 15px;
	border: 0;
	color: #000;
}
#cp-cart-drawer .woocommerce-mini-cart-item + .woocommerce-mini-cart-item { border-top: 1px solid #eee; }
#cp-cart-drawer .woocommerce-mini-cart-item::before,
#cp-cart-drawer .woocommerce-mini-cart-item::after { display: none; }
#cp-cart-drawer .cp-drawer-image { grid-area: 1 / 1; }
#cp-cart-drawer .cp-drawer-item-info { grid-area: 1 / 2; }
#cp-cart-drawer .cp-drawer-item-price { grid-area: 1 / 3; }
#cp-cart-drawer .cp-drawer-image img { display: block; width: 105px; max-width: 100%; height: auto; margin: 0; object-fit: contain; }
#cp-cart-drawer .cp-drawer-product-name { display: block; color: #000; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.cp-drawer-item-info .variation { margin: 2px 0; font-size: 12px; }
.cp-drawer-item-info .variation dt, .cp-drawer-item-info .variation dd { display: inline-block; margin: 0 4px 0 0; }
.cp-drawer-item-info .variation p { margin: 0; }
.cp-drawer-stepper { display: inline-flex; align-items: center; margin-top: 9px; border: 1px solid #ccc; border-radius: 20px; }
.cp-drawer-stepper button { border: 0; padding: 0; background: transparent; color: #000; width: 30px; height: 29px; cursor: pointer; }
#cp-cart-drawer .cp-drawer-stepper input.qty { width: 35px; height: 28px; padding: 0; border: 0; background: #fff; text-align: center; appearance: textfield; }
.cp-drawer-stepper input::-webkit-inner-spin-button,
.cp-drawer-stepper input::-webkit-outer-spin-button { appearance: none; }
.cp-drawer-item-price { display: grid; justify-items: end; align-content: start; gap: 10px; align-self: center; min-height: 62px; font-size: 14px; font-weight: 600; white-space: nowrap; }
#cp-cart-drawer .cp-drawer-item-price .remove { position: static; display: grid; place-items: center; padding: 0; color: #000 !important; width: 24px; height: 24px; background: transparent; }

.cp-drawer-coupon { display: flex; align-items: center; gap: 10px; min-height: 86px; padding: 12px 32px 12px 24px; }
.cp-drawer-coupon input { flex: 1; min-width: 0; padding: 8px 0; border: 0; border-bottom: 1px solid #ddd; color: #000; font: 600 14px var(--cp-font); }
.cp-drawer-coupon input::placeholder { color: #000; opacity: 1; }
.cp-drawer-coupon button { width: 80px; height: 32px; border: 0; border-radius: 20px; background: #000; color: #fff; cursor: pointer; font: 600 13px var(--cp-font); }
.cp-drawer-status:not(:empty) { padding: 4px 24px; font-size: 13px; color: #762e1c; }
.cp-drawer-summary { flex: none; margin: 10px 20px 0; padding: 25px; border-radius: 45px 45px 0 0; box-shadow: 0 -2px 17px #0002; }
.cp-drawer-summary dl { margin: 0 10px 19px; }
.cp-drawer-summary dl > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 32px; padding-inline: 3px; font-size: 14px; font-weight: 600; }
.cp-drawer-summary dl > div:first-child { min-height: 40px; border-bottom: 1px solid #bbb; margin-bottom: 16px; }
.cp-drawer-summary dl > .cp-drawer-total { min-height: 45px; margin-top: 10px; border-top: 1px solid #bbb; font-size: 18px; font-weight: 700; }
.cp-drawer-summary dd { margin: 0; text-align: end; }
.cp-drawer-summary :is(.cp-drawer-checkout, .cp-drawer-return) { display: grid; place-items: center; min-height: 50px; margin-inline: 15px; border-radius: 32px; text-align: center; text-decoration: none; text-transform: uppercase; color: white; font: 650 15px var(--cp-font); }
.cp-drawer-checkout { background: #ca8b2b; }
.cp-drawer-return { background: #000; margin-top: 5px; }

@media (max-height: 680px) {
	.cp-drawer-items { min-height: 100px; }
	#cp-cart-drawer .widget_shopping_cart_content { overflow-y: auto; }
	.cp-drawer-summary { padding-block: 12px; }
	.cp-drawer-coupon { min-height: 55px; }
}

@media (max-width: 430px) {
	#cp-cart-drawer .woocommerce-mini-cart-item { gap: 0 8px; padding-inline: 4px; }
	.cp-drawer-summary { padding-inline: 17px; }
}
