/* Locale Switcher Modal Base Styles */

.ls-widget-wrapper button.ls-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ls-trigger-gap, 8px);
	padding: var(--ls-trigger-padding, 0);
	border-radius: var(--ls-trigger-radius, 0px);
	background-color: var(--ls-trigger-bg, transparent);
	color: var(--ls-trigger-text-color, inherit);
	width: auto;
	height: auto;
	min-width: 34px;
	min-height: 34px;
	border: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.ls-widget-wrapper button.ls-trigger:hover,
.ls-widget-wrapper button.ls-trigger:focus {
	background-color: var(--ls-trigger-bg-hover, var(--ls-trigger-bg, transparent));
	color: var(--ls-trigger-text-color-hover, var(--ls-trigger-text-color, inherit));
	text-decoration: none;
}

.ls-widget-wrapper .ls-trigger-icon {
	font-size: var(--ls-trigger-icon-size, 24px) !important;
	color: var(--ls-trigger-icon-color, inherit);
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.ls-widget-wrapper button.ls-trigger:hover .ls-trigger-icon,
.ls-widget-wrapper button.ls-trigger:focus .ls-trigger-icon {
	color: var(--ls-trigger-icon-color-hover, var(--ls-trigger-icon-color, inherit));
}

.ls-widget-wrapper .ls-trigger-icon svg {
	width: 1em !important;
	height: 1em !important;
	fill: currentColor;
	display: block;
}

.ls-widget-wrapper .ls-trigger-icon i {
	font-size: 1em !important;
}

.ls-widget-wrapper .ls-trigger-text {
	color: inherit;
	transition: color 0.2s ease;
}

.ls-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;

	display: flex;
	justify-content: center;
	align-items: var(--ls-modal-align, flex-start);

	box-sizing: border-box;
	padding-top: var(--ls-modal-pad-top, 72px);
	padding-right: 16px;
	padding-bottom: var(--ls-modal-pad-bottom, 24px);
	padding-left: 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .3s ease, visibility .3s ease;

	isolation: isolate;
	touch-action: manipulation;
}

.ls-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.elementor-editor-active .ls-modal {
	/* Ensure in editor it works */
}

.ls-overlay {
	position: absolute;
	inset: 0;
	background: var(--ls-overlay-bg, rgba(0, 0, 0, 0.35));
	backdrop-filter: var(--ls-overlay-blur, none);
	-webkit-backdrop-filter: var(--ls-overlay-blur, none);

	pointer-events: auto;
	z-index: 1;
	touch-action: manipulation;
}

.ls-card {
	position: relative;
	width: var(--ls-card-w, min(680px, calc(100vw - 32px)));
	height: var(--ls-card-h, auto);
	margin: 0;
	background: var(--ls-card-bg, #fff);
	border-radius: var(--ls-card-radius, 22px);
	padding: var(--ls-card-padding, 28px 28px 22px);
	box-shadow: var(--ls-card-box-shadow, 0 20px 60px rgba(0, 0, 0, .25));
	max-height: calc(100vh - var(--ls-modal-pad-top, 72px) - var(--ls-modal-pad-bottom, 24px));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateY(var(--ls-card-offset-translate, 0));
	flex: 0 0 auto;
	z-index: 2;

	pointer-events: auto;
	touch-action: manipulation;
}

.ls-card * {
	pointer-events: auto;
}

@media (max-width: 480px) {
	.ls-modal {
		padding-top: var(--ls-modal-pad-top, 18px);
		padding-right: 12px;
		padding-bottom: var(--ls-modal-pad-bottom, 18px);
		padding-left: 12px;
	}

	.ls-card {
		padding: 20px 18px 16px;
		border-radius: 18px;
		max-height: calc(100vh - var(--ls-modal-pad-top, 18px) - var(--ls-modal-pad-bottom, 18px));
	}
}

.ls-modal button.ls-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	background-color: var(--ls-close-bg, transparent);
	border-radius: var(--ls-close-radius, 4px);
	cursor: pointer;
	font-size: var(--ls-close-size, 28px) !important;
	line-height: var(--ls-close-size, 28px) !important;
	color: var(--ls-close-color, #000);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	transition: background-color 0.2s ease, color 0.2s ease;
	padding: 0;

	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.ls-modal button.ls-close:hover,
.ls-modal button.ls-close:focus {
	background-color: var(--ls-close-bg-hover, var(--ls-close-bg, transparent));
	color: var(--ls-close-color-hover, var(--ls-close-color, #000));
}

.ls-title {
	margin: 0 0 14px;
	font-size: 38px;
	letter-spacing: 0.02em;
	color: var(--ls-title-color, #111);
}

@media (max-width: 480px) {
	.ls-title {
		font-size: 30px;
	}
}

.ls-text,
.ls-subtitle {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.35;
	color: var(--ls-text-color, #111);
}

.ls-subtitle {
	font-weight: 600;
	margin: 10px 0 10px;
}

.ls-list {
	margin: 0 0 18px 22px;
	padding: 0;
	font-size: 18px;
	line-height: 1.35;
	color: var(--ls-list-color, #111);
}

.ls-list li {
	margin-bottom: 6px;
}

.ls-divider {
	height: 1px;
	background: rgba(0, 0, 0, .2);
	margin: 18px 0 18px;
}

.ls-actions {
	display: grid;
	gap: 14px;
	margin-bottom: 16px;
}

.ls-btn {
	height: var(--ls-btn-height, 56px);
	border-radius: var(--ls-btn-radius, 14px);
	font-size: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: all 0.2s ease;

	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.ls-btn-primary {
	background-color: var(--ls-btn-primary-bg, #dff6b2);
	color: var(--ls-btn-primary-text, #111);
	border: 2px solid transparent;
}

.ls-btn-primary:hover {
	background-color: var(--ls-btn-primary-hover-bg, #dff6b2);
	color: var(--ls-btn-primary-hover-text, #111);
}

.ls-btn-secondary {
	background-color: var(--ls-btn-secondary-bg, #fff);
	color: var(--ls-btn-secondary-text, #111);
	border: 2px solid transparent;
}

.ls-btn-secondary:hover {
	background-color: var(--ls-btn-secondary-hover-bg, #fff);
	color: var(--ls-btn-secondary-hover-text, #111);
}

.ls-actions-grid {
	display: grid;
	grid-template-columns: var(--ls-chips-columns, 1fr 1fr);
	gap: var(--ls-chips-gap, 10px);
}

@media (max-width: 480px) {
	.ls-actions-grid {
		grid-template-columns: 1fr;
	}
}

.ls-chip {
	height: var(--ls-chip-height, 46px);
	border-radius: var(--ls-chip-radius, 12px);
	background-color: var(--ls-chip-bg, #fff);
	color: var(--ls-chip-text, #111);
	border: 1px solid rgba(0, 0, 0, .2);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;

	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.ls-chip:hover {
	background-color: var(--ls-chip-hover-bg, #fff);
	color: var(--ls-chip-hover-text, #111);
}

.ls-muted {
	margin-top: 14px;
	border: 0;
	background: transparent;
	cursor: pointer;
	opacity: .6;
	text-decoration: underline;
	color: #111;
	display: block;
	width: 100%;
	text-align: center;
	transition: all 0.2s ease;

	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.ls-muted:hover,
.ls-muted:focus {
	opacity: 1;
}