.ta-header-icons a.ta-header-cart {
	position: relative;
}

.ta-header-cart-count {
	position: absolute;
	top: -0.4rem;
	right: -0.55rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.28rem;
	border-radius: 999px;
	background: #c72127;
	color: #fff;
	font-family: Oswald, Inter, sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.15rem;
	text-align: center;
	letter-spacing: 0.02em;
}

.ta-header-cart-count[hidden] {
	display: none;
}

.ta-cart-drawer,
.ta-cart-drawer *,
.ta-catalog-atc-modal,
.ta-catalog-atc-modal * {
	box-sizing: border-box;
}

.ta-cart-drawer,
.ta-catalog-atc-modal {
	position: fixed;
	inset: 0;
	z-index: 120;
}

.ta-cart-drawer[hidden],
.ta-catalog-atc-modal[hidden] {
	display: none;
}

.ta-cart-drawer-backdrop,
.ta-catalog-atc-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.ta-cart-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(26rem, 100%);
	height: 100%;
	height: 100dvh;
	max-height: 100dvh;
	padding-top: env(safe-area-inset-top);
	padding-bottom: env(safe-area-inset-bottom);
	background: #fafae1;
	color: #141414;
	box-shadow: -16px 0 40px rgba(0, 0, 0, 0.28);
	overscroll-behavior: contain;
}

.ta-cart-drawer-head,
.ta-cart-drawer-foot {
	padding: 1rem 1.15rem;
	background: #fff;
}

.ta-cart-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border-bottom: 3px solid #ecc918;
}

.ta-cart-drawer-head h2,
.ta-catalog-atc-sheet h2 {
	margin: 0;
	font-family: Oswald, Inter, sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ta-cart-drawer-close,
.ta-catalog-atc-close {
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid #e0e2e0;
	border-radius: 999px;
	background: #fff;
	color: #141414;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.ta-cart-drawer-added {
	margin: 0.85rem 1.15rem 0;
	padding: 0.55rem 0.75rem;
	background: #141414;
	color: #fafae1;
	font-size: 0.92rem;
	font-weight: 700;
}

.ta-cart-drawer-added[hidden] {
	display: none;
}

.ta-cart-drawer-body {
	flex: 1;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0.85rem 1.15rem 1.15rem;
}

.ta-cart-drawer-body .woocommerce-mini-cart__buttons {
	display: none;
}

.ta-cart-drawer-body .woocommerce-mini-cart__empty-message {
	margin: 1.5rem 0;
	text-align: center;
	color: #626162;
}

.ta-cart-drawer-body .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-cart-drawer-body .woocommerce-mini-cart-item {
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid #e0e2e0;
}

.ta-cart-drawer-body .woocommerce-mini-cart-item img {
	width: 4.25rem;
	height: auto;
	border: 1px solid #e0e2e0;
	background: #fff;
}

.ta-cart-drawer-foot {
	display: grid;
	gap: 0.55rem;
	border-top: 1px solid #e0e2e0;
}

.ta-cart-drawer-panel:has(.woocommerce-mini-cart__empty-message) .ta-cart-drawer-checkout,
.ta-cart-drawer-panel:has(.woocommerce-mini-cart__empty-message) .ta-cart-drawer-view {
	display: none;
}

.ta-cart-drawer-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	background: #c72127 !important;
	color: #fff !important;
	border: 0 !important;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 800;
}

.ta-cart-drawer-view,
.ta-cart-drawer-keep {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.45rem;
	border: 0;
	background: transparent;
	color: #141414;
	font-weight: 700;
	text-align: center;
	text-decoration: underline;
	cursor: pointer;
}

.ta-catalog-atc-sheet {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(28rem, calc(100% - 1.5rem));
	max-height: min(calc(100% - 2rem), calc(100dvh - 2rem));
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 1.15rem 1.15rem max(1.25rem, env(safe-area-inset-bottom));
	background: #fff;
	border-top: 4px solid #ecc918;
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.ta-catalog-atc-close {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
}

.ta-catalog-atc-product {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: center;
	padding-right: 2rem;
}

.ta-catalog-atc-product img {
	width: 5rem;
	height: 5rem;
	object-fit: cover;
	border: 1px solid #e0e2e0;
	background: #faf5ee;
}

.ta-catalog-atc-price {
	margin: 0.25rem 0 0;
	font-weight: 700;
}

.ta-catalog-atc-lead,
.ta-catalog-atc-status {
	margin: 0.85rem 0 0.55rem;
	color: #626162;
	font-size: 0.95rem;
}

.ta-catalog-atc-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ta-catalog-atc-option {
	min-height: 2.75rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid #e0e2e0;
	background: #fafae1;
	color: #141414;
	font-weight: 700;
	cursor: pointer;
}

.ta-catalog-atc-option.is-selected {
	border-color: #141414;
	background: #141414;
	color: #fafae1;
}

.ta-catalog-atc-submit {
	width: 100%;
	margin-top: 1rem;
	min-height: 3rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 800;
}

.ta-exclusives-card__actions .ta-catalog-atc,
.products .ta-catalog-atc {
	width: 100%;
}

body.ta-cart-drawer-open {
	overflow: hidden;
}

@media (max-width: 1023px) {
	.ta-cart-drawer-panel {
		width: min(24rem, 100%);
	}
}

@media (max-width: 720px) {
	.ta-cart-drawer-panel {
		width: 100%;
	}

	.ta-catalog-atc-sheet {
		top: auto;
		bottom: 0;
		left: 0;
		transform: none;
		width: 100%;
		max-height: min(88vh, calc(100dvh - env(safe-area-inset-top)));
		padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
		border-radius: 14px 14px 0 0;
	}

	.ta-cart-drawer-checkout,
	.ta-catalog-atc-submit {
		min-height: 2.75rem;
	}
}

@media (max-width: 479px) {
	.ta-catalog-atc-product {
		grid-template-columns: 4.25rem minmax(0, 1fr);
		gap: 0.65rem;
	}

	.ta-catalog-atc-product img {
		width: 4.25rem;
		height: 4.25rem;
	}

	.ta-catalog-atc-options {
		gap: 0.4rem;
	}
}
