.imta-cart-drawer {
	inset: 0;
	pointer-events: none;
	position: fixed;
	visibility: hidden;
	z-index: 100000;
}

.imta-cart-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.imta-cart-drawer__backdrop {
	appearance: none;
	background: rgba(0, 0, 0, .45);
	border: 0;
	cursor: default;
	inset: 0;
	opacity: 0;
	padding: 0;
	position: absolute;
	transition: opacity .32s ease;
	width: 100%;
}

.imta-cart-drawer.is-open .imta-cart-drawer__backdrop {
	opacity: 1;
}

.imta-cart-drawer__panel {
	background: #fff;
	border: 1px solid #111;
	bottom: 3px;
	box-shadow: 0 0 24px rgba(0, 0, 0, .32);
	color: #111;
	display: flex;
	flex-direction: column;
	inset-inline: 3px;
	max-height: calc(100vh - 6px);
	outline: 0;
	overflow: hidden;
	position: absolute;
	transform: translateY(calc(100% + 8px));
	transition: transform .36s cubic-bezier(.22, .8, .25, 1);
}

.imta-cart-drawer.is-open .imta-cart-drawer__panel {
	transform: translateY(0);
}

.imta-cart-drawer__header {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 64px;
	padding: 10px 64px;
	position: relative;
}

.imta-cart-drawer__header h2 {
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	margin: 0;
	text-transform: uppercase;
}

.imta-cart-drawer__close {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid #111;
	color: #111;
	cursor: pointer;
	display: inline-flex;
	font-family: Arial, sans-serif;
	font-size: 25px;
	font-weight: 300;
	height: 20px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 2px;
	position: absolute;
	right: 16px;
	top: 20px;
	width: 30px;
}

.imta-cart-drawer__content {
	overflow: auto;
}

.imta-cart-drawer__grid {
	display: grid;
	grid-template-columns: minmax(0, 59%) minmax(320px, 41%);
	min-height: 440px;
}

.imta-cart-drawer__items {
	padding: 0 66px 58px;
}

.imta-cart-drawer__item {
	display: grid;
	grid-template-columns: 155px minmax(0, 1fr) 24px;
	gap: 30px;
	min-height: 205px;
}

.imta-cart-drawer__item + .imta-cart-drawer__item {
	margin-top: 10px;
}

.imta-cart-drawer__image {
	align-items: center;
	display: flex;
	height: 195px;
	justify-content: center;
	width: 155px;
}

.imta-cart-drawer__image img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.imta-cart-drawer__item-info {
	align-self: start;
	padding-top: 27px;
}

.imta-cart-drawer__item-name {
	color: #111;
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.imta-cart-drawer__item-meta,
.imta-cart-drawer__item-meta * {
	color: #777;
	font-size: 13px;
	line-height: 1.25;
}

.imta-cart-drawer__item-meta dl,
.imta-cart-drawer__item-meta dd,
.imta-cart-drawer__item-meta dt {
	display: inline;
	margin: 0;
}

/* Giữ các thuộc tính biến thể (Size, Color...) trên một dòng. */
.imta-cart-drawer__item-meta dl.variation {
	align-items: baseline;
	display: flex !important;
	flex-wrap: nowrap;
	gap: 0;
	white-space: nowrap;
}

/* WooCommerce bọc giá trị biến thể trong p: đưa về inline để không xuống dòng. */
.imta-cart-drawer__item-meta dl.variation dt {
	font-weight: 700;
}

.imta-cart-drawer__item-meta dl.variation dd p {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
}

.imta-cart-drawer__item-meta dd::after {
	content: ' / ';
}

.imta-cart-drawer__item-meta dd:last-child::after {
	content: '';
}

.imta-cart-drawer__item-price {
	font-size: 14px;
	font-weight: 500;
	margin: 10px 0 0;
}

.imta-cart-drawer__item-price .amount {
	font-weight: 500;
}

.imta-cart-drawer__item-price del {
	margin-right: 6px;
	opacity: .6;
}

.imta-cart-drawer__item-price ins {
	text-decoration: none;
}

.imta-cart-drawer__remove {
	align-self: start;
	appearance: none;
	background: #050505;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 20px;
	height: 20px;
	line-height: 17px;
	margin-top: 28px;
	padding: 0 0 2px;
	width: 22px;
}

.imta-cart-drawer__summary {
	align-self: end;
	padding: 0 28px 48px 28px;
}

.imta-cart-drawer__totals p,
.imta-cart-drawer__shipping,
.imta-cart-drawer__total {
	display: flex;
	font-size: 14px;
	justify-content: space-between;
	line-height: 1.2;
	margin: 0 0 3px;
	text-transform: uppercase;
}

.imta-cart-drawer__totals strong,
.imta-cart-drawer__shipping strong {
	font-weight: 500;
	text-align: right;
}

.imta-cart-drawer__applied-coupons {
	color: #777;
	font-size: 12px !important;
	justify-content: flex-start !important;
	margin: 2px 0 6px !important;
	text-transform: none !important;
}

.imta-cart-drawer__coupon {
	align-items: stretch;
	display: flex;
	margin: 6px 0 10px;
	max-width: 300px;
}

.imta-cart-drawer__coupon input,
.imta-cart-drawer__coupon button {
	box-sizing: border-box;
	height: 28px !important;
	max-height: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
}

.imta-cart-drawer__coupon input {
	border: 1px solid #a3a3a3;
	border-radius: 0;
	box-shadow: none;
	font-size: 12px;
	min-width: 0;
	padding: 0 8px;
	width: 100%;
}

.imta-cart-drawer__coupon button {
	appearance: none;
	background: #050505;
	border: 1px solid #050505;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	height: 28px;
	min-width: 68px;
	padding: 0 10px;
	text-transform: uppercase;
}

.imta-cart-drawer__notices:empty {
	display: none;
}

.imta-cart-drawer__notices {
	font-size: 12px;
	margin: 6px 0;
}

.imta-cart-drawer__notices .woocommerce-error,
.imta-cart-drawer__notices .woocommerce-message {
	background: transparent;
	border: 0;
	color: #111;
	list-style: none;
	margin: 0;
	padding: 0;
}

.imta-cart-drawer__shipping {
	border-top: 1px solid #111;
	margin-top: 12px;
	padding-top: 10px;
}

.imta-cart-drawer__total {
	align-items: baseline;
	font-size: 20px;
	margin-top: 10px;
}

.imta-cart-drawer__total strong {
	font-size: 23px;
	font-weight: 500;
}

.imta-cart-drawer__actions {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 20px;
}

.imta-cart-drawer__actions a {
	align-items: center;
	background: #050505;
	border: 1px solid #050505;
	color: #fff;
	display: flex;
	font-size: 13px;
	font-weight: 500;
	height: 38px;
	justify-content: center;
	text-decoration: none;
	text-transform: uppercase;
}

.imta-cart-drawer__actions a:hover,
.imta-cart-drawer__actions a:focus-visible {
	background: #fff;
	color: #111;
	outline: 0;
}

.imta-cart-drawer__empty {
	font-size: 15px;
	margin: 0;
	padding: 80px 30px;
	text-align: center;
}

@media (max-width: 849px) {
	.imta-cart-drawer__panel {
	bottom: 0;
	inset-inline: 0;
	max-height: 92vh;
	width: 100%;
}

	.imta-cart-drawer__header {
	min-height: 54px;
}

	.imta-cart-drawer__grid {
	grid-template-columns: 1fr;
	min-height: 0;
}

	.imta-cart-drawer__items {
	padding: 0 20px 20px;
}

	.imta-cart-drawer__item {
	grid-template-columns: 92px minmax(0, 1fr) 22px;
	gap: 16px;
	min-height: 125px;
}

	.imta-cart-drawer__image {
		height: 116px;
		width: 92px;
	}

	.imta-cart-drawer__item-info {
		padding-top: 14px;
	}

	.imta-cart-drawer__remove {
		margin-top: 16px;
	}

	.imta-cart-drawer__summary {
		border-top: 1px solid #111;
		padding: 20px;
	}
}

@media (max-width: 549px) {
	.imta-cart-drawer__header {
		padding-inline: 48px;
	}

	.imta-cart-drawer__header h2 {
		font-size: 13px;
	}

	.imta-cart-drawer__close {
		right: 12px;
		top: 17px;
	}

	.imta-cart-drawer__item-name {
		font-size: 13px;
	}

	.imta-cart-drawer__summary {
		padding: 16px;
	}

	.imta-cart-drawer__actions {
		gap: 8px;
	}

	.imta-cart-drawer__actions a {
		font-size: 12px;
		height: 40px;
	}
}
/* Drawer giỏ hàng: nửa màn hình, sát cạnh và danh sách sản phẩm cuộn độc lập. */
.imta-cart-drawer__panel {
	bottom: 0;
	height: 50vh;
	inset-inline: 0;
	max-height: 50vh;
}

.imta-cart-drawer__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.imta-cart-drawer__grid {
	height: 100%;
	min-height: 0;
}

.imta-cart-drawer__items {
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding-bottom: 20px;
}

.imta-cart-drawer__close {
	height: 28px;
	line-height: 24px;
	padding-bottom: 2px;
	width: 28px;
}

.imta-cart-drawer__remove {
	align-items: center;
	display: inline-flex;
	height: 24px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 1px;
	width: 24px;
}

@media (max-width: 849px) {
	.imta-cart-drawer__panel {
		height: 70vh;
		max-height: 70vh;
	}
}
/* Khóa kích thước nút X, không cho rule button của Flatsome kéo cao. */
.imta-cart-drawer__close,
.imta-cart-drawer__remove {
	box-sizing: border-box !important;
	flex: 0 0 26px !important;
	height: 26px !important;
	max-height: 26px !important;
	max-width: 26px !important;
	min-height: 26px !important;
	min-width: 26px !important;
	width: 26px !important;
}

.imta-cart-drawer__close {
	line-height: 22px !important;
}

.imta-cart-drawer__remove {
	line-height: 1 !important;
}
