/* Treethemes header utilities: search, login, cart */

body.tt-header-panel-open {
	overflow: hidden;
}

body.tt-header-panel-open #smooth-wrapper,
body.tt-header-panel-open #smooth-content {
	pointer-events: none;
}

.tt-header-search,
.tt-header-login,
.tt-header-cart,
.tt-header-account {
	display: inline-flex;
	align-items: center;
	background: transparent !important;
}

.tt-header-search button,
.tt-header-login button,
.tt-header-cart button,
.tt-header-account button,
.tt-header-trigger,
a.tt-header-trigger--link {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	color: inherit;
	cursor: pointer;
	line-height: 1;
	min-height: 0;
	min-width: 0;
}

a.tt-header-trigger--link {
	text-decoration: none;
	color: inherit;
}

.tt-header-search button:hover,
.tt-header-search button:focus,
.tt-header-search button:active,
.tt-header-login button:hover,
.tt-header-login button:focus,
.tt-header-login button:active,
.tt-header-cart button:hover,
.tt-header-cart button:focus,
.tt-header-cart button:active,
a.tt-header-trigger--link:hover,
a.tt-header-trigger--link:focus,
a.tt-header-trigger--link:active,
.tt-header-account button:hover,
.tt-header-account button:focus,
.tt-header-account button:active,
.tt-header-trigger:hover,
.tt-header-trigger:focus,
.tt-header-trigger:active {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.elementor-widget-treethemes-header-search > .elementor-widget-container,
.elementor-widget-treethemes-header-login > .elementor-widget-container,
.elementor-widget-treethemes-header-cart > .elementor-widget-container {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.tt-header-trigger img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.tt-header-trigger__label {
	font-size: 14px;
	font-weight: 500;
}

.tt-header-trigger__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #10b466;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.tt-header-trigger__count.is-empty,
.tt-header-trigger__count[hidden] {
	display: none !important;
}

/* Search slide-down */
.tt-header-search-panel {
	position: fixed;
	inset: 0 0 auto;
	z-index: 99990;
	background: #fff;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
	transform: translateY(-100%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.tt-header-search-panel.is-open {
	transform: translateY(0);
	pointer-events: auto;
}

.tt-header-search-panel__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 42px 24px 28px;
}

.tt-header-search-form {
	display: flex;
	align-items: center;
	gap: 16px;
	border-bottom: 1px solid #d7dce3;
	padding-bottom: 14px;
}

.tt-header-search-input {
	flex: 1;
	border: 0;
	background: transparent;
	color: #1f2a44;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 500;
	line-height: 1.1;
	outline: none;
}

.tt-header-search-input::placeholder {
	color: #8d98ab;
}

.tt-header-search-close {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	border: 0;
	background: transparent !important;
	color: #667085;
	font-size: 12px;
	cursor: pointer;
}

.tt-header-search-close span:first-child {
	font-size: 22px;
	line-height: 1;
}

.tt-header-search-results {
	margin-top: 24px;
}

.tt-header-search-results.is-loading {
	opacity: 0.55;
}

.tt-header-search-results-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-header-search-result + .tt-header-search-result {
	border-top: 1px solid #eceff4;
}

.tt-header-search-result-link {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 16px 0;
	color: inherit;
	text-decoration: none;
}

.tt-header-search-result-link:hover {
	opacity: 0.85;
}

.tt-header-search-result-thumb img,
.tt-header-search-result-thumb-placeholder {
	display: block;
	width: 55px;
    height: 56px;
	border-radius: 8px;
	object-fit: cover;
	background: #fff;
	border: 1px solid #e7ebf0;
}

.tt-header-search-result-title {
	margin: 0;
	color: #1f2a44;
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1.3;
}

.tt-header-search-result-price {
	color: #10b466;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.tt-header-search-empty,
.tt-header-search-hint {
	margin: 0;
	color: #667085;
	font-size: 15px;
}

/* Login fullscreen modal */
.tt-header-login-panel {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.72);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	-webkit-overflow-scrolling: touch;
	overflow-y: auto;
}

.tt-header-login-panel.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.tt-header-login-card {
	position: relative;
	flex-shrink: 0;
	width: min(100%, 420px);
	margin: auto;
	padding: 36px 32px 32px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.tt-header-login-card h2 {
	margin: 0 0 24px;
	color: #1f2a44;
	font-size: 28px;
	font-weight: 700;
}

.tt-header-login-close {
	position: absolute;
	top: 16px;
	right: 16px;
	border: 0;
	background: transparent;
	color: #667085;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.tt-header-login-form label {
	display: block;
	margin-bottom: 8px;
	color: #667085;
	font-size: 13px;
}

.tt-header-login-form input[type="text"],
.tt-header-login-form input[type="password"] {
	width: 100%;
	margin-bottom: 14px;
	padding: 14px 16px;
	border: 0;
	border-radius: 8px;
	background: #eef0f8;
	color: #1f2a44;
	font-size: 15px;
}

.tt-header-login-form input[type="submit"],
.tt-header-login-submit {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 8px;
	border: 0;
	border-radius: 8px;
	background: #10b466;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.tt-header-login-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
	text-align: center;
}

.tt-header-login-links a {
	color: #1f2a44;
	font-size: 14px;
	text-decoration: none;
}

.tt-header-login-links a:hover {
	text-decoration: underline;
}

/* Logged-in dropdown */
.tt-header-account {
	position: relative;
}

.tt-header-account-menu {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 99980;
	min-width: 220px;
	padding: 14px 0 10px;
	border-radius: 12px;
	background: #1f2a44;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.tt-header-account-menu::before {
	content: '';
	position: absolute;
	top: -6px;
	right: 18px;
	width: 14px;
	height: 14px;
	background: #1f2a44;
	transform: rotate(45deg);
}

.tt-header-account.is-open .tt-header-account-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tt-header-account-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 16px 12px;
}

.tt-header-account-profile img {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
}

.tt-header-account-name {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.tt-header-account-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-header-account-links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	color: #fff !important;
	font-size: 14px;
	text-decoration: none;
}

.tt-header-account-links a:hover {
	background: rgba(255, 255, 255, 0.08);
}

.tt-header-account-divider {
	height: 1px;
	margin: 6px 0;
	background: rgba(255, 255, 255, 0.12);
}

/* Cart fullscreen */
.tt-header-cart-panel {
	position: fixed;
	inset: 0;
	z-index: 99992;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tt-header-cart-panel.is-open {
	opacity: 1;
	visibility: visible;
}

.tt-header-cart-panel__close {
	position: absolute;
	top: 20px;
	right: 24px;
	z-index: 2;
	border: 0;
	background: transparent;
	color: #1f2a44;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.tt-header-cart-panel__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	min-height: 100%;
}

.tt-header-cart-services,
.tt-header-cart-main {
	padding: 56px 40px 40px;
}

.tt-header-cart-services {
	background: #fff;
}


.tt-header-panel-title {
	margin: 0 0 28px;
	color: #1f2a44;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 500;
	line-height: 1.1;
}

.tt-header-services-list,
.tt-header-cart-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-header-service-item,
.tt-header-cart-item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid #ece8e1;
}

.tt-header-service-icon,
.tt-header-cart-item-thumb {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.tt-header-service-icon-img,
.tt-header-cart-item-thumb img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.tt-header-service-icon-fallback {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: linear-gradient(135deg, #dfe5f2, #c8d2e5);
}

.tt-header-service-title-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px;
}

.tt-header-service-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tt-header-service-title-row .tt-edd-tooltip {
	margin-left: -1px;
	flex-shrink: 0;
	top: -2px;
	position: relative;
}

.tt-edd-tooltip--float .tt-edd-tooltip__content {
	display: none;
}

.tt-header-service-title,
.tt-header-cart-item-title {
	color: #1f2a44;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.tt-header-service-title-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tt-header-service-title-link:hover,
.tt-header-service-title-link:focus-visible {
	color: #563be3;
	text-decoration: underline;
	outline: none;
}

.tt-header-service-help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1px solid #c5ccd8;
	border-radius: 50%;
	background: #fff;
	color: #667085;
	font-size: 11px;
	cursor: help;
}

.tt-header-service-price-row {
	margin-top: -5px;
}

.tt-header-service-prices {
	display: inline-flex;
	flex-direction: row;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.tt-header-service-price-regular {
	color: #98a2b3;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: line-through;
}

.tt-header-service-price-sale {
	color: #10b466;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.tt-header-service-buy {
	min-width: 72px;
	padding: 8px 18px;
	border: 0;
	border-radius: 6px;
	background: #10b466;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	pointer-events: auto;
	text-transform: unset !important;
}
.tt-header-service-buy:hover{
	background: #0d9a57;
}
.tt-header-service-buy.is-loading,
.tt-header-service-buy:disabled {
	opacity: 0.7;
	cursor: wait;
}

.tt-header-cart-item {
	grid-template-columns: 72px minmax(0, 1fr) auto;
	align-items: center;
}

.tt-header-cart-item-thumb img {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
}

.tt-header-cart-item-qty {
	margin: 4px 0 0;
	color: #667085;
	font-size: 13px;
}

.tt-header-cart-item-side {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tt-header-cart-item-price {
	color: #1f2a44;
	font-size: 16px;
	font-weight: 700;
}

.tt-header-cart-item-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #98a2b3;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tt-header-cart-item-remove svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: 0.65;
}

.tt-header-cart-item-remove:hover,
.tt-header-cart-item-remove:focus-visible {
	background: #f3f4f6;
	color: #374151;
	outline: none;
}

.tt-header-cart-item-remove:hover svg,
.tt-header-cart-item-remove:focus-visible svg {
	opacity: 0.9;
}

.tt-header-cart-empty {
	margin: 0;
	color: #667085;
	font-size: 15px;
	margin: 30px 0 50px;
}

.tt-header-cart-summary {
	margin-top: 28px;
}

.tt-header-cart-total-block {
	margin-bottom: 16px;
}

.tt-header-cart-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0;
	color: #1f2a44;
	font-size: 18px;
}

.tt-header-cart-vat-note {
	margin: 6px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: #667085;
	text-align: right;
}

.tt-header-cart-discount {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	color: #667085;
	font-size: 14px;
}

.tt-header-cart-discount-toggle {
	border: 0;
	background: transparent !important;
	color: #10b466;
	font-size: 14px;
	cursor: pointer;
	display: none;
}

.tt-header-cart-discount-form {
	display: flex;
	width: 100%;
	gap: 8px;
}

.tt-header-cart-discount-form input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #d7dce3;
	border-radius: 8px;
}

.tt-header-cart-discount-form button {
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: #1f2a44 !important;
	color: #fff !important;
	cursor: pointer;
	text-transform: unset !important;
}

.tt-header-cart-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border-radius: 999px;
	background: #10b466;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.tt-header-cart-checkout:hover {
	color: #fff;
	opacity: 0.92;
}

@media (max-width: 1024px) {
	.tt-header-cart-panel__layout {
		grid-template-columns: 1fr;
		overflow-y: auto;
	}

	.tt-header-cart-services {
		border-right: 0;
	}
}

@media (max-width: 767px) {
	.tt-header-search-panel__inner,
	.tt-header-cart-services,
	.tt-header-cart-main {
		padding-left: 20px;
		padding-right: 20px;
	}

	.tt-header-service-item,
	.tt-header-cart-item {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.tt-header-cart-item-side {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}
	body.tt-edd-funnel--cart .tt-header-cart-item-thumb {height: 55px;}
	.tt-header-service-item, .tt-header-cart-item {gap: 30px;row-gap: 5px;}
	
}
