:root {
	--mbcp-black: #000000;
	--mbcp-text: #333333;
	--mbcp-gold: #c1b289;
	--mbcp-white: #ffffff;
	--mbcp-border: rgba(193, 178, 137, 0.72);
	--mbcp-muted: #747474;
}

.mbcp-is-locked {
	overflow: hidden !important;
}

.mbcp-popup,
.mbcp-popup *,
.mbcp-popup *::before,
.mbcp-popup *::after {
	box-sizing: border-box;
}

.mbcp-popup[hidden] {
	display: none;
}

.mbcp-popup {
	/* Modal shell: overlay fade plus centered desktop dialog. */
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	font-family: LucidaSansUnicode, "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
	color: var(--mbcp-text);
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.mbcp-popup.is-open {
	opacity: 1;
	pointer-events: auto;
}

.mbcp-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
}

.mbcp-popup__dialog {
	/* Dialog animation is paired with the root opacity transition. */
	position: relative;
	width: min(100%, 390px);
	max-height: calc(100vh - 36px);
	overflow: auto;
	background: var(--mbcp-white);
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
	outline: none;
	transform: translateY(18px);
	transition: transform 220ms ease;
}

.mbcp-popup.is-open .mbcp-popup__dialog {
	transform: translateY(0);
}

.mbcp-popup__header {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 13px 10px 10px;
	background: var(--mbcp-black);
	border-bottom: 1px solid var(--mbcp-border);
}

.mbcp-popup__title {
	margin: 0;
	color: var(--mbcp-gold);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 2px;
	text-align: center;
	text-transform: uppercase;
}

.mbcp-popup__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mbcp-gold);
	cursor: pointer;
	font: inherit;
	font-size: 24px;
	line-height: 1;
}

.mbcp-tabs {
	/* Two-by-two contact method grid from the supplied mockups. */
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px 16px;
	padding: 20px 10px 13px;
	background: var(--mbcp-black);
}

.mbcp-tabs__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 39px;
	padding: 8px 10px;
	border: 1px solid rgba(193, 178, 137, 0.58);
	border-radius: 0;
	background: var(--mbcp-black);
	color: var(--mbcp-gold);
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 1.8px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mbcp-tabs__button:hover,
.mbcp-tabs__button:focus-visible {
	border-color: var(--mbcp-gold);
	outline: none;
}

.mbcp-tabs__button.is-active {
	border-color: var(--mbcp-white);
	background: var(--mbcp-white);
	color: var(--mbcp-black);
}

.mbcp-popup__content {
	background: var(--mbcp-white);
}

.mbcp-popup.is-chat-expanded .mbcp-popup__header,
.mbcp-popup.is-chat-expanded .mbcp-tabs {
	display: none;
}

.mbcp-panel {
	display: none;
}

.mbcp-panel.is-active {
	display: block;
}

.mbcp-chat-start {
	padding: 3px 10px 15px;
	background: var(--mbcp-black);
	text-align: center;
}

.mbcp-chat-start__button {
	width: 100%;
	min-height: 25px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mbcp-white);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	letter-spacing: 1.8px;
	line-height: 1.25;
}

.mbcp-chat-start__button:hover,
.mbcp-chat-start__button:focus-visible {
	color: var(--mbcp-gold);
	outline: none;
}

.mbcp-chat-expanded {
	display: none;
	background: var(--mbcp-white);
}

.mbcp-popup.is-chat-expanded .mbcp-chat-start {
	display: none;
}

.mbcp-popup.is-chat-expanded .mbcp-chat-expanded {
	display: block;
}

.mbcp-chat-card {
	/* Stage-one chat placeholder prepared for a future widget mount point. */
	position: relative;
	padding: 54px 10px 10px;
	background: var(--mbcp-black);
	color: var(--mbcp-white);
}

.mbcp-chat-card__close {
	position: absolute;
	top: 8px;
	right: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mbcp-gold);
	cursor: pointer;
	font: inherit;
	font-size: 24px;
	line-height: 1;
}

.mbcp-chat-card__close:hover,
.mbcp-chat-card__close:focus-visible {
	color: var(--mbcp-white);
	outline: none;
}

.mbcp-chat-card__title,
.mbcp-chat-card__subtitle,
.mbcp-chat-card__text {
	margin: 0;
}

.mbcp-chat-card__title {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
}

.mbcp-chat-card__subtitle {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: var(--mbcp-gold);
	font-size: 15px;
	line-height: 1.2;
}

.mbcp-chat-card__hello-icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.mbcp-chat-card__text {
	margin-top: 2px;
	font-size: 15px;
	line-height: 1.25;
}

.mbcp-chat-card__button {
	width: 100%;
	min-height: 38px;
	margin-top: 18px;
	border: 1px solid var(--mbcp-gold);
	background: var(--mbcp-gold);
	color: var(--mbcp-black);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	letter-spacing: 1.8px;
}

.mbcp-questions {
	padding: 17px 10px 26px;
	background: var(--mbcp-white);
	text-align: center;
}

.mbcp-questions__title {
	margin: 0 0 16px;
	color: var(--mbcp-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
}

.mbcp-questions__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.mbcp-questions__question {
	width: 100%;
	min-height: 39px;
	padding: 9px 10px;
	border: 1px solid #9c9c9c;
	border-radius: 7px;
	background: var(--mbcp-white);
	color: var(--mbcp-muted);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	line-height: 1.25;
	text-align: left;
}

.mbcp-questions__question:hover,
.mbcp-questions__question:focus-visible,
.mbcp-questions__question[aria-expanded="true"] {
	border-color: var(--mbcp-gold);
	color: var(--mbcp-text);
	outline: none;
}

.mbcp-questions__answer[hidden] {
	display: none;
}

.mbcp-questions__answer {
	margin-top: 7px;
	padding: 11px 12px;
	border-left: 2px solid var(--mbcp-gold);
	background: #f3f3f3;
	color: var(--mbcp-text);
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.mbcp-questions__answer.is-visible {
	animation: mbcp-answer-reveal 180ms ease both;
}

@keyframes mbcp-answer-reveal {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mbcp-questions__link {
	display: inline-block;
	margin-top: 19px;
	color: #7c00ff;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.mbcp-questions__link:hover,
.mbcp-questions__link:focus-visible {
	text-decoration: underline;
	outline: none;
}

.mbcp-placeholder {
	margin: 0;
	padding: 24px 10px 26px;
	background: var(--mbcp-black);
	color: var(--mbcp-white);
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

.mbcp-contact-link {
	color: var(--mbcp-white);
	font: inherit;
	letter-spacing: 1.8px;
	text-decoration: none;
}

.mbcp-contact-link:hover,
.mbcp-contact-link:focus-visible {
	color: var(--mbcp-gold);
	outline: none;
}

@media (max-width: 420px) {
	.mbcp-popup {
		/* On phones the popup behaves like the bottom sheet shown in the screenshots. */
		align-items: flex-end;
		padding: 0;
	}

	.mbcp-popup__dialog {
		width: 100%;
		max-height: 92vh;
	}

	.mbcp-popup__title {
		font-size: 15px;
		letter-spacing: 1.7px;
	}

	.mbcp-tabs {
		gap: 8px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbcp-questions__answer.is-visible {
		animation: none;
	}
}
