.ia-popup-trigger {
	cursor: pointer;
}

.ia-popup-trigger:focus {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Desktop / tablet: panel directly beneath the clicked card */
.ia-inline-panel {
	width: 100%;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-8px);
	transition:
		max-height 0.28s ease,
		opacity 0.2s ease,
		transform 0.25s ease;
}

.ia-inline-panel.is-open {
	max-height: 1500px;
	opacity: 1;
	transform: translateY(0);
}

.ia-inline-panel__inner {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.10);
	border-top: 0;
	padding: 22px 24px 24px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.ia-inline-panel__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 12px;
}

.ia-inline-panel__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
}

.ia-inline-panel__body {
	font-size: 15px;
	line-height: 1.6;
}

.ia-inline-panel__body > :first-child {
	margin-top: 0;
}

.ia-inline-panel__close {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	margin: -5px -7px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #263746;
	font-size: 30px;
	font-weight: 300;
	line-height: 30px;
	cursor: pointer;
}

.ia-popup-cta {
	margin-top: 24px;
}

.ia-popup-cta__button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 18px;
	border-radius: 4px;
	background: #ff7043;
	color: #fff !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ia-popup-cta__button:hover,
.ia-popup-cta__button:focus {
	color: #fff !important;
	opacity: 0.88;
	transform: translateY(-1px);
}

/* Mobile bottom sheet */
html.ia-mobile-sheet-open,
html.ia-mobile-sheet-open body {
	overflow: hidden;
}

.ia-mobile-sheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	visibility: hidden;
}

.ia-mobile-sheet.is-open {
	pointer-events: auto;
	visibility: visible;
}

.ia-mobile-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.60);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ia-mobile-sheet.is-open .ia-mobile-sheet__backdrop {
	opacity: 1;
}

.ia-mobile-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-height: 82vh;
	overflow-y: auto;
	box-sizing: border-box;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 10px 22px calc(28px + env(safe-area-inset-bottom));
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
	transform: translateY(105%);
	transition: transform 0.30s ease;
	-webkit-overflow-scrolling: touch;
}

.ia-mobile-sheet.is-open .ia-mobile-sheet__panel {
	transform: translateY(0);
}

.ia-mobile-sheet__handle {
	width: 44px;
	height: 5px;
	margin: 0 auto 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.18);
}

.ia-mobile-sheet__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.ia-mobile-sheet__title {
	margin: 0;
	font-size: 25px;
	line-height: 1.2;
}

.ia-mobile-sheet__body {
	font-size: 16px;
	line-height: 1.65;
}

.ia-mobile-sheet__body > :first-child {
	margin-top: 0;
}

.ia-mobile-sheet__close {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	margin: -4px -5px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #263746;
	font-size: 34px;
	font-weight: 300;
	line-height: 34px;
	cursor: pointer;
}

.ia-popup__loading {
	padding: 18px 0;
	text-align: center;
}

@media (max-width: 767px) {
	.ia-inline-panel {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.ia-mobile-sheet {
		display: none !important;
	}
}
