/**
 * CMP location: nice-select must sit above Google .pac-container (default z-index 9999 vs nice-select list z-index 9).
 * Autocomplete panel styled to align with form-builder / booking .form-control (rounded, weight, no Google chrome).
 */

/*
 * Google appends .pac-container to body.
 * Stack above CMP inputs / nice-select shells (10048) so suggestions are not see-through.
 * Country dropdown list stays above pac when open (10100).
 */
body .pac-container {
	z-index: 10060 !important;
	font-family: inherit !important;
	border-radius: 11px !important;
	border: 1px solid rgba(0, 0, 0, 0.12) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
	margin-top: 4px !important;
	padding: 4px 0 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	opacity: 1 !important;
	isolation: isolate !important;
	overflow: hidden !important;
}

.event-contact-info .nice-select.open .list,
.event-contact-info .nice-select .list,
.cmp-invitee-address-group .nice-select.open .list,
.cmp-invitee-address-group .nice-select .list,
.appointmenttypecustomfieldsmaindiv .nice-select.open .list,
.appointmenttypecustomfieldsmaindiv .nice-select .list {
	z-index: 10100 !important;
}

/* Prevent parent flex/scroll boxes from clipping the country dropdown */
.event-info-wrapper .spotpicker-wrapper,
/*.event-info-wrapper .booking-container,*/
.event-contact-info,
.contact-info-wrapper {
	overflow: visible !important;
}

/* Stacking context for the country control (closed); open list uses 10100 above */
.event-contact-info .cmp-booking-country-select + .nice-select {
	position: relative;
	z-index: 10058;
}

/* Admin invitee: space under Country before City */
.cmp-invitee-address-group .cmp-invitee-location-subfield[data-cmp-key="country"] {
	margin-bottom: 0.75rem !important;
	padding-bottom: 2rem !important;
}
.cmp-invitee-address-group .cmp-invitee-location-subfield[data-cmp-key="city"] {
	padding-top: 1.5rem !important;
}

body .pac-container .pac-item {
	padding: 10px 14px !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: #1d1d1f !important;
	border: none !important;
	border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
	line-height: 1.35 !important;
	cursor: pointer !important;
	background-color: #ffffff !important;
	opacity: 1 !important;
}

body .pac-container .pac-item:first-child {
	border-top: none !important;
}

body .pac-container .pac-item:hover,
body .pac-container .pac-item-selected,
body .pac-container .pac-item-selected:hover {
	background-color: #f0f0f3 !important;
	opacity: 1 !important;
}

/* Remove default Google icons / attribution for a cleaner list */
body .pac-container .pac-icon,
body .pac-container .pac-icon-marker {
	display: none !important;
}

/* “Powered by Google” — logo row + newer widget variants */
body .pac-container .pac-logo,
body .pac-container .hdpi.pac-logo,
body .pac-container:after,
body .pac-container::after,
body .pac-container img[alt*="Google"],
body .pac-container img[alt*="google"] {
	display: none !important;
	content: none !important;
	visibility: hidden !important;
	height: 0 !important;
	width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	background-image: none !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

body .pac-container .pac-item-query {
	font-weight: 600 !important;
}