.phorte-locale-selector {
	position: relative;
	font-family: inherit;
	color: var(--ph-ink, #181818);
}

.phorte-locale-selector button {
	font: inherit;
}

.phorte-locale-selector__trigger,
.phorte-locale-selector__select,
.phorte-locale-selector__option,
.phorte-locale-selector__close,
.phorte-locale-selector__save {
	border: 0;
	cursor: pointer;
}

.phorte-locale-selector__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 4px 0;
	border: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	color: var(--ph-ink, #181818) !important;
	font-size: 13px !important;
	font-weight: 600;
	white-space: nowrap;
}

.phorte-locale-selector__trigger:hover {
	opacity: .78;
}

.phorte-locale-selector__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 1;
}

.phorte-locale-selector__flag img {
	display: block;
	width: 18px;
	height: auto;
	max-height: 14px;
	object-fit: contain;
}

.phorte-locale-selector__trigger-language {
	font-weight: 700;
}

.phorte-locale-selector__trigger-currency {
	font-weight: 600;
}

.phorte-locale-selector__chevron {
	width: 11px;
	height: 8px;
	flex: 0 0 auto;
}

.phorte-locale-selector__dialog {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 10020;
	width: min(320px, calc(100vw - 32px));
	padding: 24px;
	border: 1px solid var(--ph-border, #e6e7eb);
	border-radius: 8px;
	background: var(--ph-white, #fff);
	box-shadow: 0 16px 36px rgba(21, 21, 21, .16);
	color: var(--ph-ink, #181818);
}

.phorte-locale-selector__dialog[hidden],
.phorte-locale-selector__options[hidden],
.phorte-locale-selector__option[hidden] {
	display: none;
}

.phorte-locale-selector__dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.phorte-locale-selector__title {
	margin: 0;
	max-width: 230px;
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: .96;
}

.phorte-locale-selector__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 8px;
	background: var(--ph-green, #10b84a) !important;
	color: var(--ph-white, #fff) !important;
	font-size: 25px;
	font-weight: 400;
	line-height: 1;
}

.phorte-locale-selector__field {
	position: relative;
	margin-top: 16px;
}

.phorte-locale-selector__label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 800;
}

.phorte-locale-selector__select {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	border: 0 !important;
	border-radius: 7px;
	background: var(--ph-green, #10b84a) !important;
	color: var(--ph-white, #fff) !important;
	text-align: left;
}

.phorte-locale-selector__select[aria-expanded="true"] {
	box-shadow: 0 0 0 3px rgba(16, 184, 74, .18);
}

.phorte-locale-selector__select-content {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.phorte-locale-selector__select-content span:not(.phorte-locale-selector__flag) {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.phorte-locale-selector__select-content strong {
	font-size: 13px;
	font-weight: 800;
	color: inherit;
}

.phorte-locale-selector__options {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 2;
	max-height: 180px;
	overflow-y: auto;
	padding: 4px;
	border: 1px solid var(--ph-border, #d5d7dc);
	border-radius: 4px;
	background: var(--ph-white, #fff);
	box-shadow: 0 10px 24px rgba(21, 21, 21, .12);
}

.phorte-locale-selector__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 3px;
	background: transparent;
	color: var(--ph-ink, #181818);
	text-align: left;
}

.phorte-locale-selector__option:hover,
.phorte-locale-selector__option:focus-visible,
.phorte-locale-selector__option.is-selected {
	background: var(--ph-blue-soft, #edf4ff);
}

.phorte-locale-selector__option-label {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 600;
}

.phorte-locale-selector__option-code {
	font-size: 12px;
	font-weight: 800;
	color: var(--ph-muted-text, #6b6f76);
}

.phorte-locale-selector__save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: 24px;
	padding: 10px 16px;
	border-radius: 6px;
	background: var(--ph-green, #10b84a) !important;
	color: var(--ph-white, #fff) !important;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
}

.phorte-locale-selector__save:hover {
	background: #0b9e3e !important;
}

.phorte-locale-selector button:focus-visible {
	outline: 2px solid var(--ph-red, #f23d43);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.phorte-locale-selector__dialog {
		position: fixed;
		top: 16px;
		right: 16px;
		left: 16px;
		width: auto;
		max-height: calc(100vh - 32px);
		overflow-y: auto;
	}

	.phorte-locale-selector__trigger {
		gap: 6px;
		font-size: 12px;
	}
}
