.wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.lg-cb.lgh-header {
	box-sizing: border-box;
	padding: 24px 36px;
	background: var(--header-background);
	color: var(--header-text);
	font-family: var(--font-family);
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	isolation: isolate;
	position: relative;
	z-index: 1000;

	@media (max-width: 1248px) {
		padding: 18px 24px;
	}

	@media (max-width: 768px) {
		padding: 6px 16px;
	}
}

.country-mobile-icon {
	@media (max-width: 768px) {
		border-radius: 50%;
		transform: scale(1.5);
		height: 24px;
		width: 24px !important;
	}
}

.lhp-header-grid {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
}

.lhp-logo-search {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-right: 24px;
	height: 48px;

	@media (max-width: 768px) {
		width: auto;
		justify-content: space-between;
	}
}

.lhp-logo-wrapper {
	height: 48px;
	display: flex;
	align-items: center;

	@media (max-width: 768px) {
		height: 32px;
	}
}

.lhp-logo-wrapper img {
	max-height: 100%;
	max-width: 100%;
	display: block;
	cursor: pointer;
}

.lhp-search-box {
	flex: 1;
	height: 48px;
	display: flex;
	align-items: center;
	position: relative;

	@media (max-width: 768px) {
		justify-content: flex-end;
	}
}

.lhp-search-box .search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	color: var(--header-text);
	pointer-events: none;
	z-index: 1;
	transition: all 0.3s ease-in-out;

	@media (max-width: 768px) {
		display: none;
	}
}

.search-icon-mobile {
	display: none;
	@media (max-width: 768px) {
		display: block;
		position: absolute;
		right: 16px;
	}
}

.lhp-search-box input[type='text'] {
	width: 300px;
	border: 1px solid #6B7280;
	border-radius: 16px;
	padding: 12px 16px 12px 40px;
	font-family: var(--font-family);
	font-size: 14px;
	color: var(--header-text);
	background: var(--header-background);

	&::placeholder {
		color: var(--header-text);
		opacity: 1;
	}

	@media (max-width: 768px) {
		width: 0px;
		border: none;
		cursor: pointer;
		padding: 8px 12px 8px 40px;

		&.active {
			width: 100%;
			border: 1px solid var(--header-text);
			border-radius: 8px;
			margin-right: 16px;
		}
	}
}

.lhp-hide-on-mobile {
	font-size: 14px;
	line-height: 18px;
	font-weight: 400;
	color: var(--header-text);
	display: flex;
	align-items: center;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		display: none;
	}
}

.lhp-country-language {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	height: 48px;
	position: relative;

	@media (max-width: 768px) {
		gap: 16px;
	}
}

.lhp-country-language[style*='cursor: pointer'] {
	cursor: pointer !important;
}

.lhp-country-language[style*='cursor: pointer'] * {
	cursor: pointer !important;
}

.lhp-country {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 20px;

	@media (max-width: 768px) {
		height: 24px;
		width: 24px;
		overflow: hidden;
		border-radius: 50%;
	}
}

.lhp-country img,
.lhp-country .flag {
	width: 20px;
	height: 20px;
	display: inline-block;
}

.lhp-country span {
	font-family: var(--font-family);
	font-size: 14px;
	color: var(--header-text);
}

.lhp-language {
	display: flex;
	gap: 8px;
	height: 20px;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		display: none;
	}
}

.lhp-divider {
	font-size: 22px;
	color: #959492;
	margin: 0 2px;
	font-weight: 400;
	line-height: 18px;
	user-select: none;
	width: 1px;
	height: 11px;
	background-color: #959492;
}

#lg-country-select {
	border: none;
	font-family: var(--font-family);
}

#lg-language-select {
	border: none;
	font-family: var(--font-family);
}

.country-selector-container {
	position: relative;
	display: inline-block;
}

.country-selector-trigger {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: white;
	min-width: 120px;
}

.country-selector-trigger:hover {
	background-color: #f5f5f5;
	border-color: #999;
}

.country-dropdown-form {
	position: absolute;
	background: white;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 16px;
	min-width: 280px;
	z-index: 99999;
	margin-top: 4px;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		position: fixed;
		top: 60px;
		left: 0;
		right: 0;
		bottom: auto;
		width: 100%;
		min-width: unset;
		border: none;
		border-radius: 0;
		box-shadow: 0px 6px 24px 0px #00000014;
		margin-top: 0;
		padding: 24px;
		transform: translateY(-100%);
		transition: transform 0.3s ease-in-out;
		min-height: 200px;
		background: #ffffff;
		border-radius: 0 0 16px 16px;
	}

	@media (max-width: 768px) {
		&.mobile-open {
			transform: translateY(0);
			width: auto;
		}
	}
}

.country-dropdown-form h4 {
	margin: 0 0 12px 0;
	font-size: 16px;
	color: #333;
	font-family: var(--font-family);
	font-weight: 600;
}

.country-selection {
	margin-bottom: 16px;
	font-family: var(--font-family);
}

.language-selection {
	margin-bottom: 16px;
	font-family: var(--font-family);
}

.country-selection select {
	width: 100%;
	padding: 12px;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
	background: white;
	font-family: var(--font-family);
}

.country-selection select:focus {
	border-color: #b8860b;
	outline: none;
}

.dropdown-overlay {
	position: fixed;
	top: 60px;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99998;
	background: transparent;

	@media (max-width: 768px) {
		background: rgba(0, 0, 0, 0.5);
		display: none;
	}
}

.custom-select-container {
	position: relative;
	width: 100%;
}

.custom-select-trigger {
	display: flex;
	align-items: center;
	padding: 12px;
	border: 2px solid #ddd;
	border-radius: 16px;
	background: white;
	cursor: pointer;
	font-family: var(--font-family);
	font-size: 16px;
	justify-content: space-between;
	color: #111827;
	height: 40px;
	font-weight: 400;
}

.custom-select-arrow {
	margin-left: auto;
	display: inline-block;
}

.custom-select-options {
	position: absolute;
	top: 120%;
	left: 0;
	right: 0;
	background: white;
	border: 2px solid #ddd;
	border-radius: 8px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 100000;
	max-height: 93px;
}

.custom-option {
	display: flex;
	align-items: center;
	padding: 12px;
	cursor: pointer;
	font-family: var(--font-family);
	font-size: 16px;
	border-bottom: 1px solid #eee;
	font-weight: 400;

	span {
		color: #111827;
		font-size: 14px;
		font-weight: 400;
		line-height: 18px;
		font-family: var(--font-family);
	}
}

.custom-option:hover {
	background-color: #f5f5f5;
}

.custom-option:last-child {
	border-bottom: none;
}

.hamburger-menu {
	display: none !important;
	flex-direction: column;
	gap: 5px;
	cursor: pointer !important;
	transition: all 0.3s ease;
	z-index: 10001;
	position: relative;
}

.hamburger-line {
	width: 20px;
	height: 2px;
	background-color: #212121;
	transition: all 0.3s ease;
	transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
	opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
	.lhp-country-language[onclick] {
		pointer-events: auto;
		cursor: pointer;
	}
}

/* Search Results Popup Styles */
.lhp-search-box {
	position: relative;
}

.search-results-overlay {
	display: none;

	@media (max-width: 768px) {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.4);
		z-index: 999;
	}
}

.search-results-popup {
	position: absolute;
	top: 110%;
	width: 100%;
	max-width: 400px;
	background: white;
	border: 1px solid #dcdbdb;
	border-top: none;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 1002;
	max-height: 400px;
	overflow-y: auto;
	font-family: var(--font-family);
}

.search-results-header {
	padding: 16px 20px 12px 20px;
	color: #666;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	position: relative;
	background: #f8f9fa;
	border-bottom: 1px solid #e9ecef;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		padding: 10px 16px;
	}

	&.none {
		margin-bottom: 0;
	}
}

.search-results-header::before {
	content: '';
	position: absolute;
	top: -8px;
	left: 32px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #f8f9fa;
}

.search-results-empty {
	text-align: center;
	padding: 24px;
	color: #667085;
	font-family: var(--font-family);
}

.search-results-empty-icon {
	width: 48px;
	height: 48px;
	margin: 8px auto 12px;
	background-color: #e9ecef;
	mask-image: url('../assets/icons/exclamation-mark.svg');
	-webkit-mask-image: url('../assets/icons/exclamation-mark.svg');
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-position: center;
	mask-size: contain;
	-webkit-mask-size: contain;
}

.search-results-empty-title {
	font-size: 16px;
	font-weight: 700;
	color: #101828;
	margin-bottom: 6px;
	font-family: var(--font-family);
}

.search-results-empty-text {
	font-size: 13px;
	color: #667085;
	font-family: var(--font-family);
}

.search-result-item {
	display: flex;
	align-items: center;
	padding: 5px 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: white;
	border-radius: 8px;
	justify-content: space-between;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		padding: 5px 10px;
	}
}

.search-result-item:hover {
	background-color: #f8f9fa;
	border-color: #dcdbdb;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-result-item:last-child {
	border-bottom: 1px solid #f1f3f4;
	margin-bottom: 8px;
}

.search-result-logo {
	width: 48px;
	height: 48px;
	margin-right: 0;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e9ecef;
	margin-bottom: 5px;

	@media (max-width: 768px) {
		width: 40px;
		height: 40px;
	}
}

.search-result-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.search-result-placeholder {
	width: 28px;
	height: 28px;
	background: #dcdbdb;
	border-radius: 4px;

	@media (max-width: 768px) {
		width: 24px;
		height: 24px;
	}
}

.search-result-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: var(--font-family);
}

.search-result-name {
	font-weight: 600;
	color: #333;
	font-size: 16px;
	margin-bottom: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--font-family);
}

.search-result-description {
	font-size: 14px;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--font-family);
}

.search-result-type {
	display: flex;
	flex-direction: column;
	align-items: baseline;
	flex: 1;
	text-align: center;
	margin-left: 1em;
	border-bottom: 1px solid #e9ecef;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		margin-left: 0.5em;
	}
}

.search-result-loyalty-type {
	font-size: 0.8rem;
	color: #999;
	font-weight: 400;
	letter-spacing: 0.5px;
	font-family: var(--font-family);
}

.search-result-loyalty-info {
	display: flex;
	align-items: anchor-center;
}

.search-result-loyalty-value {
	font-size: 1.2rem;
	font-weight: bold;
	color: #333;
	line-height: 1;
	margin-right: 6px;
	text-align: left;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		font-size: 1.25rem;
	}
}

.search-result-loyalty-unit {
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	text-align: left;
	font-family: var(--font-family);
	@media (max-width: 768px) {
		font-size: 12px;
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.search-results-popup {
		left: 0;
		right: -24px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		width: calc(100% - 16px);
	}

	.search-results-header {
		padding: 16px 24px 12px 24px;
	}
}

.dropdown-arrow-icon-header-header {
	mask-image: url('../assets/icons/caret.svg') !important;
	-webkit-mask-image: url('../assets/icons/caret.svg') !important;
	mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: var(--header-text);
	width: 24px;
	height: 24px;
	display: inline-block;
	transition: transform 0.3s ease;
}

.dropdown-arrow-icon-header-options {
	mask-image: url('../assets/icons/arrow_down_chevron.svg') !important;
	-webkit-mask-image: url('../assets/icons/arrow_down_chevron.svg') !important;
	mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: #111827;
	width: 24px;
	height: 24px;
	display: inline-block;
	transition: transform 0.3s ease;
}

.dropdown-arrow-icon-header-header.dropdown-arrow-icon-header--open,
.dropdown-arrow-icon-header-header--open {
	transform: rotate(180deg);
}

.dropdown-arrow-icon-header-options.dropdown-arrow-icon-header--open,
.dropdown-arrow-icon-header--open {
	transform: rotate(180deg);
}
