@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";
@import "@wordpress/base-styles/variables";

.shopping-cart__menu {
	padding: 24px 16px 16px;
	border-radius: 4px;
	height: 100%;
	display: flex;
	flex-direction: column;

	@include break-medium {
		min-width: 500px;
		height: auto;
	}
}

.shopping-cart__menu-header {
	display: none;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;

	@include break-medium {
		display: flex;
	}
}

.shopping-cart__menu-header-title {
	@include heading-x-large;
}

.shopping-cart__menu-header-close-button {
	padding: 0;
	border-radius: 4px;
	max-width: 24px;
	max-height: 24px;

}

.shopping-cart__menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex-grow: 1;
}

.shopping-cart__menu-list-item {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 4px;
	margin-block-end: 8px;
}

.shopping-cart__menu-list-item-details {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
	@include body-medium;
}

.shopping-cart__menu-list-item-price-actual {
	text-decoration: line-through;
	display: inline-block;
	margin-inline-start: 4px;
}

.components-button.is-link.shopping-cart__menu-item-remove-button {
	color: var(--color-neutral-50);
	background-color: inherit;
}

.shopping-cart__menu-footer {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-block-start: 1px solid var(--color-neutral-10);
	padding-block-start: 16px;
	align-items: stretch;
}

.shopping-cart__menu-total {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	@include heading-large;
}

.shopping-cart__menu-checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	@include heading-medium;
	border-radius: 4px;
	margin-block-start: 20px;
}
