/* ── Creet Phone Input ─────────────────────────────────────────── */

.creet-phone-wrap {
	display: flex !important;
	align-items: stretch;
	gap: 0;
	width: 100%;
	min-width: 0;
	direction: ltr;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.creet-phone-code-select {
	flex: 0 0 110px !important;
	width: 110px !important;
	max-width: 110px !important;
	min-width: 110px !important;
	padding: 0 10px;
	border: 0;
	border-right: 1px solid #e2e8f0;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	appearance: auto;
	-webkit-appearance: auto;
	height: 100%;
	min-height: 40px;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
}

.creet-phone-wrap input[type="tel"],
.creet-phone-wrap input[type="text"] {
	flex: 1 1 auto !important;
	width: auto !important;
	max-width: none !important;
	min-height: 40px;
	min-width: 0;
	border: 0 !important;
	border-radius: 0 !important;
	direction: rtl;
	text-align: right;
}

/* WooCommerce checkout overrides */
.woocommerce-checkout .creet-phone-wrap .creet-phone-code-select {
	min-height: 45px;
	font-size: 14px;
}

/* Ensure wrappers inside flex rows can shrink correctly */
.creet-track-form .creet-phone-wrap {
	flex: 1 1 auto;
}

@media (max-width: 782px) {
	.creet-phone-code-select {
		flex-basis: 96px !important;
		width: 96px !important;
		max-width: 96px !important;
		min-width: 96px !important;
		padding: 0 8px;
		font-size: 12px;
	}
}

/* Focus state */
.creet-phone-wrap:focus-within .creet-phone-code-select,
.creet-phone-wrap:focus-within input {
	border-color: transparent;
	outline: none;
}

.creet-phone-wrap:focus-within {
	border-color: var(--creet-primary-color, #C3FD73);
	box-shadow: 0 0 0 3px rgba(195, 253, 115, 0.22);
}
