/* Unified international phone field (reference UI) */

.lobje-phone-field {
	display: flex;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e4e0d8;
	border-radius: 8px;
	background: #fff;
	overflow: visible;
	transition: border-color 0.15s ease;
}

.lobje-phone-field:focus-within {
	border-color: #c6b48a;
}

.lobje-phone-field__divider {
	flex: 0 0 1px;
	width: 1px;
	align-self: stretch;
	margin: 0.55rem 0;
	background: #ebe7df;
}

/* Country picker */
.lobje-phone-cc {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
}

.lobje-phone-cc__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0 0.65rem 0 0.75rem;
	min-height: 2.65rem;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	white-space: nowrap;
}

.lobje-phone-cc__trigger.is-open .lobje-phone-cc__chev {
	transform: rotate(180deg);
}

.lobje-phone-cc__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	font-size: 1.05rem;
	line-height: 1;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.lobje-phone-cc__dial {
	font-weight: 600;
	letter-spacing: -0.01em;
}

.lobje-phone-cc__chev {
	flex-shrink: 0;
	color: #9a958c;
	transition: transform 0.15s ease;
}

.lobje-phone-cc__native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Dropdown panel */
.lobje-phone-cc__panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 1200;
	min-width: min(100%, 22rem);
	width: max(100%, 19.5rem);
	max-width: min(24rem, calc(100vw - 2rem));
	box-sizing: border-box;
	padding: 0.65rem 0.55rem 0.5rem;
	border: 1px solid #ebe7df;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 32px rgba(26, 26, 26, 0.12);
}

.lobje-phone-cc__search-wrap {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0.35rem 0.55rem;
	padding: 0 0.65rem;
	height: 2.35rem;
	border: 1px solid #e8e4dc;
	border-radius: 8px;
	background: #fff;
}

.lobje-phone-cc__search-icon {
	flex-shrink: 0;
	color: #b0aba2;
}

.lobje-phone-cc__search {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	font: inherit !important;
	font-size: 0.88rem !important;
	color: #1a1a1a !important;
	outline: none !important;
}

.lobje-phone-cc__search::placeholder {
	color: #b5afa6;
}

.lobje-phone-cc__list {
	list-style: none;
	margin: 0;
	padding: 0 0.15rem;
	max-height: 15.5rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lobje-phone-cc__option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 0.45rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.88rem;
	color: #1a1a1a;
}

.lobje-phone-cc__option:hover,
.lobje-phone-cc__option.is-selected {
	background: #f6f3ec;
}

.lobje-phone-cc__option-flag {
	display: inline-flex;
	width: 1.2rem;
	height: 1.2rem;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	line-height: 1;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
}

.lobje-phone-cc__option-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

.lobje-phone-cc__option-dial {
	flex-shrink: 0;
	font-weight: 500;
	color: #4a4a4a;
}

.lobje-phone-cc__empty {
	padding: 0.65rem 0.5rem;
	font-size: 0.85rem;
	color: #888;
	text-align: center;
	list-style: none;
}

/* Tel input inside composite field */
.lobje-phone-field > input[type="tel"],
.lobje-phone-field > .lobje-auth__input[type="tel"],
.lobje-phone-field > .woocommerce-Input[type="tel"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding-left: 0.35rem !important;
	padding-right: 0.85rem !important;
}

.lobje-phone-field > input[type="tel"]:focus,
.lobje-phone-field > .lobje-auth__input[type="tel"]:focus,
.lobje-phone-field > .woocommerce-Input[type="tel"]:focus {
	outline: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Auth modal */
.lobje-auth__phone.lobje-phone-field {
	margin-bottom: 0.85rem;
}

body.lobje-theme .lobje-auth__phone.lobje-phone-field .lobje-auth__input[type="tel"] {
	margin-bottom: 0 !important;
	height: auto !important;
	min-height: 2.65rem;
	padding-top: 0.72rem !important;
	padding-bottom: 0.72rem !important;
}

/* Checkout address modal */
.lobje-address-modal__phone.lobje-phone-field {
	gap: 0;
}

body.lobje-theme .lobje-address-modal__phone.lobje-phone-field input[type="tel"] {
	height: 2.45rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding-left: 0.35rem !important;
}

body.lobje-theme .lobje-address-modal__phone.lobje-phone-field .lobje-phone-cc__trigger {
	min-height: 2.45rem;
	font-size: 0.84rem;
}

/* Account profile */
.lobje-account-form__phone.lobje-phone-field {
	gap: 0;
}

body.lobje-theme .lobje-account-form__phone.lobje-phone-field input[type="tel"] {
	border: 0 !important;
	border-radius: 0 !important;
	flex: 1;
}

body.lobje-theme .lobje-account-form__phone.lobje-phone-field .lobje-phone-cc__trigger {
	min-height: 2.75rem;
}

/* Lift panel above modals */
.lobje-auth__dialog .lobje-phone-cc__panel,
.lobje-address-modal__dialog .lobje-phone-cc__panel {
	z-index: 10050;
}

body.lobje-theme .lobje-address-modal__phone.lobje-phone-field {
	border: 1px solid #e4dfd6 !important;
}

body.lobje-theme .lobje-address-modal__phone.lobje-phone-field:focus-within {
	border-color: #c6b48a !important;
}