/**
 * Ozis Header Cart frontend styles.
 * Values mirror the former Elementor Pro Menu Cart widget in header template 266.
 */

.ozis-header-cart,
.ozis-header-cart *,
.ozis-header-cart *::before,
.ozis-header-cart *::after {
	box-sizing: border-box;
}

.ozis-header-cart {
	display: inline-block;
	position: relative;
	align-self: center;
	flex: 0 1 auto;
	font-family: "Kodchasan", sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	vertical-align: middle;
}

.ozis-header-cart__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 12px 24px;
	color: #ffffff;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease;
}

.ozis-header-cart__toggle:hover,
.ozis-header-cart__toggle:focus {
	color: #6f6f6f;
	background: transparent;
	text-decoration: none;
}

.ozis-header-cart__toggle:focus {
	outline: none;
}

.ozis-header-cart__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ozis-header-cart__icon-wrap {
	display: inline-flex;
	position: relative;
	width: 36px;
	height: 36px;
	color: inherit;
}

.ozis-header-cart__icon {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ozis-header-cart__badge {
	display: block;
	position: absolute;
	top: -0.7em;
	right: -0.7em;
	z-index: 1;
	min-width: 1.6em;
	height: 1.6em;
	color: #ffffff;
	background: #d9534f;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.5em;
	text-align: center;
	white-space: nowrap;
}

.ozis-header-cart__badge[data-count="0"] {
	display: none;
}

.ozis-header-cart__overlay {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 9998;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	color: #ffffff;
	background: transparent;
	text-align: start;
	pointer-events: none;
	transition: background-color 0.4s ease;
}

.ozis-header-cart__overlay[hidden] {
	display: none !important;
}

.ozis-header-cart__overlay.is-open {
	background: rgba(0, 0, 0, 0.25);
	pointer-events: auto;
}

.ozis-header-cart__drawer {
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	flex-direction: column;
	align-items: stretch;
	width: 350px;
	max-width: 100%;
	min-height: 200px;
	margin: 0;
	padding: 20px 30px;
	overflow: visible;
	color: #ffffff;
	background: #1f1f1f;
	border: 0;
	border-radius: 0;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	font-family: "Kodchasan", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	opacity: 0;
	transform: translateX(100%);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.ozis-header-cart__overlay.is-open .ozis-header-cart__drawer {
	opacity: 1;
	transform: translateX(0);
}

.ozis-header-cart__drawer:focus {
	outline: none;
}

.ozis-header-cart__close {
	display: inline-block;
	position: relative;
	align-self: flex-end;
	flex: 0 0 25px;
	width: 25px;
	height: 25px;
	margin: 0 0 20px;
	padding: 0;
	color: #ffffff;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.ozis-header-cart__close::before,
.ozis-header-cart__close::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 3px;
	margin-top: -1px;
	background: currentColor;
	border-radius: 1px;
}

.ozis-header-cart__close::before {
	transform: rotate(45deg);
}

.ozis-header-cart__close::after {
	transform: rotate(-45deg);
}

.ozis-header-cart__close:hover,
.ozis-header-cart__close:focus {
	color: #6f6f6f;
	background: transparent;
}

.ozis-header-cart__close:focus {
	outline: none;
}

.ozis-header-cart__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.ozis-header-cart__contents {
	display: flex;
	min-width: 0;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
}

.ozis-header-cart__contents[aria-busy="true"] {
	cursor: progress;
}

.ozis-header-cart__products {
	display: block;
	max-height: calc(100vh - 250px);
	max-height: calc(100dvh - 250px);
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: #6f6f6f #1f1f1f;
	scrollbar-width: thin;
}

.ozis-header-cart__product {
	display: grid;
	position: relative;
	grid-template-columns: 28% minmax(0, 1fr);
	grid-template-rows: auto auto;
	width: 100%;
	margin: 0;
	padding: 0 30px 20px 0;
	color: #ffffff;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #d5d8dc;
}

.ozis-header-cart__product + .ozis-header-cart__product {
	padding-top: 20px;
}

.ozis-header-cart__product:last-child {
	border-bottom: 0;
}

.ozis-header-cart__product.is-removing {
	opacity: 0.55;
	pointer-events: none;
}

.ozis-header-cart__product-image {
	grid-column: 1;
	grid-row: 1 / 3;
	width: 100%;
	margin: 0;
	padding: 0;
}

.ozis-header-cart__product-image a,
.ozis-header-cart__product-image img {
	display: block;
}

.ozis-header-cart__product-image a {
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.ozis-header-cart__product-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 0;
	border-radius: 50%;
}

.ozis-header-cart__product-name {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	margin: 0;
	padding: 0 0 0 20px;
	color: #ffffff;
	font-family: "Kodchasan", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.ozis-header-cart__product-name > a {
	display: block;
	color: #ffffff;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 0.15s ease;
}

.ozis-header-cart__product-name > a:hover,
.ozis-header-cart__product-name > a:focus {
	color: #6f6f6f;
	text-decoration: none;
}

.ozis-header-cart__product-name .delivery-time-info,
.ozis-header-cart__product-name .delivery-time-inner,
.ozis-header-cart__product-name .delivery-time-data {
	color: #8fdca2;
}

.ozis-header-cart__product-name .delivery-time-info {
	margin: 5px 0 0;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.ozis-header-cart__product-name .tc-epo-metadata.variation {
	display: none;
}

.ozis-header-cart__product-name .variation {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 2px 5px;
	margin: 10px 0 0;
	color: #ffffff;
	font-size: 14px;
}

.ozis-header-cart__product-name .variation dt,
.ozis-header-cart__product-name .variation dd,
.ozis-header-cart__product-name .variation p {
	margin: 0;
	padding: 0;
}

.ozis-header-cart__product-price {
	display: block;
	align-self: end;
	grid-column: 2;
	grid-row: 2;
	min-width: 0;
	margin: 12px 0 0;
	padding: 0 0 0 20px;
	color: #ffffff;
	font-family: "Kodchasan", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

.ozis-header-cart__product-price > .quantity {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 6px;
	width: auto;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.ozis-header-cart__product-price .product-quantity,
.ozis-header-cart__product-price .woocommerce-Price-amount,
.ozis-header-cart__product-price .woocommerce-Price-amount bdi {
	display: inline;
	width: auto;
	margin: 0;
	float: none;
	line-height: inherit;
}

.ozis-header-cart__product-price .wc-gzd-cart-info.unit-price.unit-price-cart {
	display: none;
}

.ozis-header-cart__product-remove {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ozis-header-cart__remove {
	display: block;
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 2;
	width: 22px;
	height: 22px;
	margin: -11px 0 0;
	padding: 0;
	overflow: hidden;
	color: #ffffff;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 50%;
	box-shadow: none;
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	pointer-events: auto;
	transition: color 0.15s ease;
}

.ozis-header-cart__remove::before,
.ozis-header-cart__remove::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 25%;
	width: 50%;
	height: 1px;
	margin-top: -0.5px;
	background: currentColor;
}

.ozis-header-cart__remove::before {
	transform: rotate(45deg);
}

.ozis-header-cart__remove::after {
	transform: rotate(-45deg);
}

.ozis-header-cart__remove:hover,
.ozis-header-cart__remove:focus {
	color: #6f6f6f;
	background: transparent;
	text-decoration: none;
}

.ozis-header-cart__remove:focus {
	outline: none;
}

.ozis-header-cart__remove:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ozis-header-cart__subtotal {
	display: block;
	margin: 0;
	padding: 20px 0;
	color: #ffffff;
	border: 1px solid #d5d8dc;
	border-right-width: 0;
	border-left-width: 0;
	font-family: "Kodchasan", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.ozis-header-cart__subtotal strong {
	color: inherit;
	font-weight: 600;
}

.ozis-header-cart__footer {
	display: block;
	margin: 0;
	padding: 20px 0 0;
	font-family: "Kodchasan", sans-serif;
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
}

.ozis-header-cart__view-cart {
	display: inline-block;
	width: auto;
	height: auto;
	margin: 0;
	padding: 15px;
	color: #ffffff;
	background: #313131;
	border: 0;
	border-radius: 20px;
	box-shadow: none;
	font: inherit;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.ozis-header-cart__view-cart:hover,
.ozis-header-cart__view-cart:focus {
	color: #ffffff;
	background: #6f6f6f;
	text-decoration: none;
}

.ozis-header-cart__view-cart:focus {
	outline: none;
}

.ozis-header-cart__view-cart:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.ozis-header-cart__empty {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-family: "Kodchasan", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.4;
	text-align: start;
}

.ozis-header-cart__screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

body.ozis-header-cart-is-open {
	overflow: hidden !important;
}

.elementor-widget-shortcode:has(.ozis-header-cart),
.elementor-widget-shortcode.ozis-header-cart-host {
	align-self: center;
	flex-grow: 0;
	flex-shrink: 1;
	width: auto;
	max-width: none;
}

.elementor-widget-shortcode:has(.ozis-header-cart) > .elementor-widget-container,
.elementor-widget-shortcode.ozis-header-cart-host > .elementor-widget-container {
	text-align: center;
}

@media (max-width: 1024px) {
	.ozis-header-cart {
		margin: 0 -5px 0 -15px;
	}

	.ozis-header-cart__icon-wrap {
		width: 30px;
		height: 30px;
	}
}

@media (max-width: 767px) {
	.ozis-header-cart__view-cart {
		padding-right: 10px;
		padding-left: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ozis-header-cart__overlay,
	.ozis-header-cart__drawer,
	.ozis-header-cart__toggle,
	.ozis-header-cart__close,
	.ozis-header-cart__remove,
	.ozis-header-cart__view-cart {
		transition-duration: 0.01ms !important;
	}
}
