/* Quote and demo drawers (inc/drawers.php): a right-side slide-in over a dimmed page, after
   demo-modal-functions.php, in the theme's colours. The drawer is a dialog, not a card, so it keeps a
   static shadow; the close button's hover changes colour only. */

html.ig-drawer-open { overflow: hidden; }

.ig-drawer {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	font-family: var(--wp--preset--font-family--open-sans);
}
.ig-drawer[hidden] { display: none; }
.ig-drawer,
.ig-drawer *,
.ig-drawer *::before,
.ig-drawer *::after { box-sizing: border-box; }

.ig-drawer__shell {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 24px;
	background: rgba(12, 26, 46, 0.55);
	animation: igDrawerFade 0.2s ease-out;
}
.ig-drawer__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 520px;
	max-height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 24px 60px -12px rgba(12, 26, 46, 0.45);
	animation: igDrawerSlide 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes igDrawerFade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes igDrawerSlide {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
	.ig-drawer__shell,
	.ig-drawer__dialog { animation: none; }
}

.ig-drawer__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	cursor: pointer;
}
.ig-drawer__close:hover { background: var(--wp--preset--color--navy); }
.ig-drawer__close svg { display: block; }

.ig-drawer__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 56px 30px 30px;
}
.ig-drawer__title {
	margin: 0;
	color: var(--wp--preset--color--navy);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
}
.ig-drawer__intro {
	margin: 14px 0 6px;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	line-height: 1.6;
}
.ig-drawer__intro.is-spaced { margin-top: 18px; }
.ig-drawer__intro strong {
	color: var(--wp--preset--color--navy);
	font-weight: 700;
}

/* Check-mark benefit list */
.ig-drawer__list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	line-height: 1.6;
}
.ig-drawer__list li {
	position: relative;
	margin: 6px 0;
	padding-left: 26px;
}
.ig-drawer__list li::before {
	content: "\2713";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--wp--preset--color--blue);
	font-weight: 700;
}

/* HubSpot form and meetings hosts */
.ig-drawer__form {
	min-height: 300px;
	padding-top: 6px;
}
.ig-drawer__embed {
	min-height: 480px;
	padding-top: 10px;
}
.ig-drawer__embed .meetings-iframe-container { width: 100%; }
.ig-drawer__embed iframe {
	width: 100% !important;
	border: 0;
}
.ig-drawer__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

@media (max-width: 639px) {
	.ig-drawer__shell { padding: 14px; }
	.ig-drawer__body { padding: 52px 16px 22px; }
	.ig-drawer__title { font-size: 24px; }
}
