.myd-cart {
	background: var(--myd-color-surface);
	flex-basis: 40%;
	display: flex;
	flex-direction: column;
	max-width: 480px;
	overflow: hidden;
	border-radius: var(--myd-radius-lg) 0 0 var(--myd-radius-lg);
}

.myd-checkout {
	background: var(--myd-color-overlay);
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	justify-content: flex-end;
	z-index: var(--myd-z-overlay);
	padding: 0;
	margin: 0;
}

.myd-checkout--open {
	display: flex;
}

.myd-float {
	display: flex;
	justify-content: space-between;
	padding: var(--myd-space-2) var(--myd-space-6);
	align-items: center;
	border-radius: var(--myd-radius-full);
	background: var(--myd-color-primary);
	position: fixed;
	bottom: var(--myd-space-5);
	left: 50%;
	width: 350px;
	transform: translateX(-50%);
	z-index: var(--myd-z-float);
	margin: var(--myd-space-8) 0 0 0;
	cursor: pointer;
	color: var(--myd-color-text-inverse);
	font-weight: 600;
	min-height: 45px;
	transition: all 0.3s ease;
}

.myd-float:hover {
	opacity: 0.95;
}

.myd-float__title,
.myd-float__button-subtotal {
	display: flex;
	align-items: center;
	gap: var(--myd-space-2);
}

#myd-float__qty {
	display: flex;
	color: var(--myd-color-text-inverse);
}

#myd-float__qty-text {
	margin-inline-start: -3px;
}

#myd-float__qty,
#myd-float__qty-text {
	font-size: 14px;
	font-weight: 500;
	color: var(--myd-color-text-inverse);
}

.myd-cart__nav {
	display: flex;
	flex-basis: 65px;
	flex-shrink: 0;
	align-items: center;
	padding-inline: var(--myd-space-2);
	background: var(--myd-color-primary);
}

.myd-cart__zipcode-obj {
	display: none;
	opacity: 0;
}

.myd-cart__coupons-obj {
	display: none;
	opacity: 0;
}

.myd-cart__nav-bag,
.myd-cart__nav-shipping,
.myd-cart__nav-payment {
	display: flex;
	justify-content: center;
	padding: var(--myd-space-2) 0;
	flex-grow: 1;
	flex-basis: 25%;
	flex-direction: column;
	align-items: center;
}

.myd-cart__nav-back,
.myd-cart__nav-close {
	width: 35px;
	height: 35px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	color: var(--myd-color-text-inverse);
	border-radius: var(--myd-radius-full);
	background-color: var(--myd-color-overlay-light);
	transition: all 0.3s ease;
}

.myd-cart__nav-back:hover,
.myd-cart__nav-close:hover {
	opacity: 0.8;
}

.myd-cart__nav-desc {
	font-size: 13px;
	font-weight: 400;
}

.myd-cart__nav-bag,
.myd-cart__nav-shipping,
.myd-cart__nav-payment {
	color: var(--myd-color-text-inverse);
	fill: var(--myd-color-text-inverse);
	opacity: 0.5;
	transition: all 0.3s ease;
}

.myd-cart__nav-bag.myd-cart__nav--active,
.myd-cart__nav-shipping.myd-cart__nav--active,
.myd-cart__nav-payment.myd-cart__nav--active {
	opacity: 1;
}

.myd-cart__content {
	padding: var(--myd-space-4);
	display: flex;
	flex-grow: 1;
	overflow: auto;
}

.myd-cart__footer {
	flex-basis: 160px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--myd-space-4);
	padding: var(--myd-space-4);
	border-radius: var(--myd-radius-md);
	border-top: solid 1px var(--myd-color-border);
}

.myd-cart__footer-summary {
	flex-shrink: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--myd-space-1);
	padding-inline: var(--myd-space-1);
}

.myd-cart__footer-summary p {
	margin: 0;
}

.myd-cart__footer-summary-notice {
	font-size: 0.75rem;
	color: var(--myd-color-text-subtle);
	line-height: 120%;
	font-weight: 400;
}

.myd-cart__footer-summary-headline {
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 110%;
}

#myd-cart__footer-summary-price {
	font-size: 1.4rem;
	font-weight: bold;
	line-height: 120%;
	font-variant-numeric: tabular-nums;
}

.myd-cart__footer-summary-details {
	display: flex;
	flex-direction: column;
	gap: var(--myd-space-2);
	padding-block-start: var(--myd-space-2);
	border-top: 1px dashed var(--myd-color-border);
	margin-block-start: var(--myd-space-2);
}

.myd-cart__footer-summary-details .myd-card__flex-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.myd-cart__footer-summary-details .myd-cart__title-inline {
	font-size: 0.85rem;
	margin: 0;
	font-weight: 500;
}

.myd-cart__footer-summary-details span {
	font-variant-numeric: tabular-nums;
}

#myd-cart-payment-total-label,
#myd-cart-payment-total-value {
	font-weight: bold;
}

.myd-cart__button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	flex-grow: 1;
	border-radius: var(--myd-radius-md);
	padding: var(--myd-space-2);
	height: 45px;
	max-height: 45px;
	background: var(--myd-color-primary);
	color: var(--myd-color-text-inverse);
	gap: var(--myd-space-1);
}

.myd-cart__button:hover {
	opacity: 0.95;
}

.myd-cart__button-text {
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--myd-color-text-inverse);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

.myd-cart-open {
	position: fixed;
}

.myd-cart__content--active {
	display: flex !important;
}

.myd-cart__checkout-option {
	flex-basis: 32%;
	margin: 0 2px;
	flex-grow: 1;
	padding: var(--myd-space-2) var(--myd-space-1);
	border: 1px solid var(--myd-color-border);
	border-radius: var(--myd-radius-sm);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	position: relative;
	align-items: center;
	text-align: center;
	line-height: 1.4em;
	font-size: 14px;
	cursor: pointer;
}

.myd-cart__checkout-option--active {
	background: var(--myd-color-primary);
	color: var(--myd-color-text-inverse);
}

.my-delivery-cart {
	background: var(--myd-color-surface-subtle);
	height: auto;
	max-height: 100vh;
	border-radius: var(--myd-radius-sm) var(--myd-radius-sm) 0 0;
	border: 1px solid var(--myd-color-border-subtle);
	position: sticky;
	top: 10px;
	overflow: auto;
}

.my-delivery-cart h3,
.my-delivery-cart h4 {
	margin: 0;
}

.my-delivery-cart-title {
	padding: var(--myd-space-4);
	border-radius: var(--myd-radius-sm) var(--myd-radius-sm) 0 0;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.my-delivery-cart-title h3 {
	color: var(--myd-color-text-inverse);
}

.my-delivery-cart-items {
	padding: var(--myd-space-4);
	border-bottom: var(--myd-color-border-subtle) solid 1px;
	overflow: hidden;
}

.my-delivery-cart-totals {
	padding: var(--myd-space-4);
	overflow: hidden;
}

.myd-cart__checkout-customer,
.myd-cart__checkout-delivery,
.myd-cart__checkout-in-store {
	display: none;
}

.myd-cart__checkout-field-group--active {
	display: block;
}

.myd-cart__checkout-option-wrap {
	display: flex;
	justify-content: space-between;
}

.myd-cart__checkout {
	display: none;
	flex-direction: column;
	justify-content: flex-start;
	flex-grow: 1;
}

.myd-cart__checkout-title {
	border-bottom: 1px dashed var(--myd-color-border);
	margin: 0 0 var(--myd-space-2) 0;
	font-weight: bold;
	flex-basis: 100%;
	padding-block-end: var(--myd-space-2);
}

.myd-cart__checkout-customer,
.myd-cart__checkout-delivery,
.myd-cart__checkout-in-store,
.myd-cart__checkout-type,
.myd-cart__checkout-payment,
.myd-cart__checkout-coupon {
	margin: 0 0 var(--myd-space-2) 0;
}

@media only screen and (max-width: 768px) {
	.myd-cart {
		flex-grow: 1;
		border-radius: var(--myd-radius-lg) var(--myd-radius-lg) 0 0;
	}

	.myd-float {
		transform: unset;
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: calc(100% - 20px);
	}
}
