/* Searchable country dial picker — closed shows (IN) +91
 * Accents match ZenHeal / best-hospital: teal #046461, CTA orange #b9461f */
:root {
	--zcc-teal: #046461;
	--zcc-teal-deep: #035552;
	--zcc-mint: #f1f9f7;
	--zcc-mint-strong: #e4f3f0;
	--zcc-border: #d9e5e4;
	--zcc-ink: #1a2b4a;
}
.zcc-wrap {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}
.zcc-wrap select.zcc-native,
select#countryCode.zcc-native,
select.js-country-code.zcc-native {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
	float: none !important;
}
.zcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	min-width: 5.75rem;
	max-width: 7.5rem;
	height: 100%;
	min-height: 2.5rem;
	padding: 0.35rem 0.45rem;
	border: 1.5px solid var(--zcc-border);
	border-radius: 10px;
	background: #fff;
	color: var(--zcc-ink);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
}
.zcc-btn:hover {
	border-color: var(--zcc-teal);
	background: var(--zcc-mint);
}
.zcc-btn:focus,
.zcc-wrap.is-open .zcc-btn {
	outline: 2px solid var(--zcc-teal);
	outline-offset: 1px;
	border-color: var(--zcc-teal);
}
.zcc-btn__label {
	overflow: hidden;
	text-overflow: ellipsis;
}
.zcc-btn__caret {
	flex-shrink: 0;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--zcc-teal);
}
.zcc-wrap.is-open .zcc-btn__caret {
	border-top: 0;
	border-bottom: 5px solid var(--zcc-teal);
}
.zcc-panel {
	position: absolute;
	/* Above lead modals (.hv-modal is 100080; shell dialogs ~100070) */
	z-index: 100200;
	top: calc(100% + 4px);
	left: 0;
	width: min(18rem, 80vw);
	max-height: calc(var(--zcc-search-h, 2.75rem) + var(--zcc-row-h, 2.25rem) * 5);
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1.5px solid var(--zcc-border);
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(4, 100, 97, 0.16);
	overflow: hidden;
}
/* Portaled to body while open (fixed) so modal overflow cannot clip it */
.zcc-panel.zcc-panel--portal,
body > .zcc-panel {
	position: fixed;
	z-index: 100200;
}
.zcc-panel[hidden] {
	display: none !important;
}
.zcc-search {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--zcc-border);
	font: inherit;
	font-size: 0.875rem;
	color: var(--zcc-ink);
}
.zcc-search:focus {
	outline: none;
	background: var(--zcc-mint);
}
.zcc-list {
	margin: 0;
	padding: 0.25rem 0;
	list-style: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	/* Exactly 5 options visible; scroll for the rest */
	max-height: calc(var(--zcc-row-h, 2.25rem) * 5);
}
.zcc-option {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	box-sizing: border-box;
	min-height: var(--zcc-row-h, 2.25rem);
	padding: 0.45rem 0.75rem;
	cursor: pointer;
	font-size: 0.8125rem;
	color: var(--zcc-ink);
}
.zcc-option:hover,
.zcc-option.is-active {
	background: var(--zcc-mint);
}
.zcc-option.is-selected {
	font-weight: 700;
	background: var(--zcc-mint-strong);
	color: var(--zcc-teal-deep);
}
.zcc-option__code {
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--zcc-teal);
}
.zcc-option__name {
	color: #5c6b67;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: right;
}
.zcc-empty {
	padding: 0.75rem 0.65rem;
	color: #888;
	font-size: 0.8125rem;
}

/* Counselor popup phone row — match legacy #countryCode 22% + #contact_phone 75% */
.new-guidance-popup .cus-phone-field .form-group {
	overflow: visible;
}
.new-guidance-popup .cus-phone-field .zcc-wrap {
	float: left;
	width: 28%;
	max-width: none;
	margin: 0;
}
.new-guidance-popup .cus-phone-field .zcc-btn {
	width: 100%;
	max-width: none;
	height: 46px;
	min-height: 46px;
	border-radius: 10px;
	border: 1.5px solid var(--zcc-border);
	font-size: 12px;
	padding: 7px 8px;
	background: var(--zcc-mint);
	color: var(--zcc-teal-deep);
}
.new-guidance-popup .cus-phone-field #contact_phone {
	width: 70% !important;
	float: right;
}
.new-guidance-popup .cus-phone-field .zcc-panel {
	left: 0;
	right: auto;
	width: min(18rem, 85vw);
	z-index: 100200;
}

/* Video consult */
.vc-phone .zcc-wrap {
	align-self: stretch;
	flex: 0 0 auto;
	display: flex;
}
.vc-phone .zcc-btn {
	border: 0;
	border-radius: 0;
	border-right: 1px solid #e2eceb;
	min-height: 48px;
	background: #f5faf9;
	max-width: 7.25rem;
}

/* Expert booking / checkout */
.ei-book-form__phone .zcc-wrap,
.ei-book-form__phone .zcc-btn {
	height: 100%;
}
.ei-book-form__phone .zcc-btn {
	border-radius: 8px 0 0 8px;
	border-right: 0;
	min-height: 44px;
}

/* Hospital / treatment-cost lead modals */
.hv-phone .zcc-wrap,
.hv-modal .zcc-wrap {
	z-index: 2;
}

/* Address modal — keep closed control visible; dropdown portals to body */
.am2-phone,
.am2-input--phone,
#addAddressModal .am2-input--phone {
	overflow: visible;
}
.am2-phone .zcc-wrap {
	align-self: stretch;
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
}
.am2-phone .zcc-btn {
	border: 0;
	border-radius: 0;
	min-height: 44px;
	min-width: 5.5rem;
	max-width: 7rem;
	background: transparent;
	padding-left: 0.25rem;
	padding-right: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #173B5B;
}
