/* Inquiry popup opened from the mobile bottom bar (inc/hanshade-contact-bar.php). Added 2026-11-11
   WhatsApp and Email view of the popup for TikTok (inc/hanshade-contact-popup.php) added 2026-11-18 */

.hs-inq[hidden] {
	display: none !important;
}

.hs-inq {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.hs-inq__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
}

/* Phones: a sheet from the bottom; wider screens: a centred card. Only the form scrolls, so the title and the close
   button stay in view. */
.hs-inq__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: 90vh;
	max-height: 90dvh;
	overflow: hidden;
	padding-top: 20px;
	border-radius: 16px 16px 0 0;
	background: #fff;
	outline: none;
}

.hs-inq__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 0 16px calc(20px + env(safe-area-inset-bottom));
}

@media (min-width: 600px) {
	.hs-inq__panel {
		left: 50%;
		right: auto;
		top: 50%;
		bottom: auto;
		width: 520px;
		max-width: calc(100% - 32px);
		max-height: calc(100vh - 64px);
		border-radius: 16px;
		transform: translate(-50%, -50%);
	}
}

.hs-inq .hs-inq__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1a1a1a;
	font-size: 30px;
	line-height: 44px;
	cursor: pointer;
}

.hs-inq .hs-inq__title {
	flex: none;
	margin: 0 60px 16px 16px;
	font-size: 22px;
	line-height: 1.3;
	text-transform: none;
}

html.hs-inq-open,
html.hs-inq-open body {
	overflow: hidden;
}

/* Inquiry on a page that already has the form scrolls to it; leave room for the fixed header */
#hs-inquiry,
.wpcf7[id^="wpcf7-f12-"] {
	scroll-margin-top: 70px;
}

/* ---- WhatsApp and Email view (TikTok only; inc/hanshade-contact-popup.php) ---- */
.hs-inq__body[hidden],
.hs-inq__contact[hidden],
.hs-ct [hidden] {
	display: none !important;
}

.hs-ct[data-view="wa"] [data-ct="email"],
.hs-ct[data-view="email"] [data-ct="wa"] {
	display: none !important;
}

/* scrolls like the form, so the title and the close button stay in view */
.hs-inq__contact {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 0 16px calc(20px + env(safe-area-inset-bottom));
	text-align: center;
	color: #1a1a1a;
}

.hs-ct__box {
	margin: 0 0 14px;
	padding: 16px;
	border-radius: 12px;
	background: #f4f1ec;
}

.hs-ct__label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: #5f5f5f;
}

.hs-ct__value {
	display: block;
	margin-bottom: 12px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .02em;
	-webkit-user-select: all;
	user-select: all;
	overflow-wrap: anywhere;
}

.hs-ct__value--email {
	font-size: 20px;
	letter-spacing: 0;
}

.hs-inq .hs-ct__copy,
.hs-inq .hs-ct__form {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid #1a1a1a;
	border-radius: 999px;
	background: #1a1a1a;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* the main button: green "Copy number" */
.hs-inq .hs-ct__copy--wa {
	border-color: #15803d;
	background: #15803d;
	font-size: 17px;
}

.hs-inq .hs-ct__copy.is-copied {
	border-color: #15803d;
	background: #15803d;
}

.hs-inq .hs-ct__form {
	background: #fff;
	color: #1a1a1a;
}

.hs-inq .hs-ct__copy:focus-visible,
.hs-inq .hs-ct__form:focus-visible {
	outline: 3px solid #d2a23a;
	outline-offset: 2px;
}

.hs-ct__hint,
.hs-ct__fail {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: #444;
}

.hs-ct__browser {
	margin: 14px 4px 0;
	font-size: 13px;
	line-height: 1.45;
	color: #5f5f5f;
}
