/**
 * RD Listings Suite – minimal layout and fixes.
 * You can override these with your own CSS.
 */

/* ----- Combined phone field: code only in field, country name in dropdown ----- */
.rdlistings-phone-combined {
	display: flex;
	align-items: stretch;
	max-width: 100%;
	border: 1px solid #8c8f94;
	border-radius: 2px;
	background: #fff;
	box-sizing: border-box;
}

.rdlistings-phone-combined .rdlistings-phone-code-wrap {
	flex: 0 0 auto;
	width: 72px;
	min-width: 72px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	border: none;
	border-right: 1px solid #8c8f94;
	background: #f6f7f7;
	cursor: pointer;
	padding: 0 6px;
	user-select: none;
}

.rdlistings-phone-combined .rdlistings-phone-code-display {
	font-size: 0.9em;
	color: #1d2327;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.rdlistings-phone-combined .rdlistings-phone-code-arrow {
	font-size: 0.7em;
	color: #50575e;
	flex-shrink: 0;
}

.rdlistings-phone-combined .rdlistings-phone-code-dropdown {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 100;
	min-width: 200px;
	max-height: 240px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	margin-top: 2px;
}

.rdlistings-phone-combined .rdlistings-phone-code-dropdown.rdlistings-phone-dropdown-open {
	display: block;
}

.rdlistings-phone-combined .rdlistings-phone-code-option {
	padding: 6px 10px;
	cursor: pointer;
	font-size: 0.9em;
	border-bottom: 1px solid #f0f0f1;
}

.rdlistings-phone-combined .rdlistings-phone-code-option:last-child {
	border-bottom: none;
}

.rdlistings-phone-combined .rdlistings-phone-code-option:hover,
.rdlistings-phone-combined .rdlistings-phone-code-option:focus {
	background: #f0f0f1;
	outline: none;
}

.rdlistings-phone-combined .rdlistings-phone-number {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	border-radius: 0;
	margin: 0;
	padding: 0.5em 0.75em;
}

/* Date wrap: whole area clickable for date picker */
.rdlistings-date-wrap {
	display: inline-block;
	cursor: pointer;
}

.rdlistings-date-wrap .rdlistings-input-date {
	cursor: pointer;
}
