.bbma-shell,
.bbma-install,
.bbma-checkout-help {
	box-sizing: border-box;
	font-family: inherit;
}

.bbma-shell *,
.bbma-shell *::before,
.bbma-shell *::after,
.bbma-install *,
.bbma-checkout-help * {
	box-sizing: border-box;
}

.bbma-shell {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: none;
	align-items: flex-end;
	justify-content: center;
	padding: 14px;
}

.bbma-shell.is-open {
	display: flex;
}

.bbma-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(19, 15, 13, 0.48);
	backdrop-filter: blur(6px);
}

.bbma-sheet {
	position: relative;
	width: min(520px, 100%);
	padding: 22px;
	border: 1px solid rgba(184, 138, 43, 0.24);
	border-radius: 22px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 248, 0.96)),
		linear-gradient(135deg, rgba(239, 191, 4, 0.16), rgba(185, 99, 114, 0.08));
	box-shadow: 0 26px 80px rgba(18, 12, 9, 0.22);
	color: #201715;
}

.bbma-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(184, 138, 43, 0.24);
	border-radius: 50%;
	background: #fff;
	color: #201715;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bbma-kicker {
	display: inline-flex;
	margin-bottom: 10px;
	padding: 7px 10px;
	border: 1px solid rgba(184, 138, 43, 0.2);
	border-radius: 999px;
	background: rgba(239, 191, 4, 0.14);
	color: #8d6618;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.bbma-sheet h2 {
	max-width: 430px;
	margin: 0;
	color: #201715;
	font-size: clamp(24px, 6vw, 34px);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.05;
}

.bbma-sheet p {
	margin: 12px 0 18px;
	color: #6f625d;
	font-size: 14px;
	line-height: 1.55;
}

.bbma-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.bbma-primary,
.bbma-secondary,
.bbma-copy,
.bbma-install button,
.bbma-checkout-help a {
	min-height: 44px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 900;
	text-align: center;
	text-decoration: none !important;
}

.bbma-primary,
.bbma-checkout-help a:first-child {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #201715;
	background: #201715;
	color: #fff !important;
}

.bbma-secondary,
.bbma-checkout-help a:last-child {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(184, 138, 43, 0.3);
	background: #efbf04;
	color: #201715 !important;
}

.bbma-copy {
	width: 100%;
	margin-top: 10px;
	border: 1px solid rgba(184, 138, 43, 0.24);
	background: #fff;
	color: #4d3d20;
	cursor: pointer;
}

.bbma-install {
	position: fixed;
	right: 16px;
	bottom: 18px;
	z-index: 9990;
	display: none;
	align-items: center;
	width: min(420px, calc(100vw - 32px));
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(184, 138, 43, 0.24);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 54px rgba(26, 18, 10, 0.14);
	color: #201715;
}

.bbma-install.is-visible {
	display: flex;
}

.bbma-install div {
	min-width: 0;
	flex: 1;
}

.bbma-install strong,
.bbma-install span {
	display: block;
}

.bbma-install strong {
	font-size: 13px;
	font-weight: 900;
}

.bbma-install span {
	margin-top: 2px;
	color: #756761;
	font-size: 12px;
	line-height: 1.35;
}

.bbma-install button[data-bbma-install-button] {
	min-width: 86px;
	border: 0;
	background: #efbf04;
	color: #201715;
	cursor: pointer;
}

.bbma-install button[data-bbma-install-close] {
	width: 32px;
	height: 32px;
	min-height: 32px;
	border: 1px solid rgba(184, 138, 43, 0.2);
	background: #fff;
	color: #201715;
	cursor: pointer;
}

.bbma-checkout-help {
	display: none;
	width: min(1120px, calc(100% - 32px));
	max-width: 1120px;
	margin: 12px auto 18px;
	padding: 14px;
	border: 1px solid rgba(184, 138, 43, 0.22);
	border-radius: 16px;
	background: linear-gradient(135deg, #fffaf0, #fff);
	color: #201715;
	box-shadow: 0 12px 28px rgba(74, 48, 18, 0.08);
}

.bbma-checkout-help.is-visible {
	display: block;
}

.bbma-help-head,
.bbma-help-note {
	display: block;
	width: auto;
	height: auto !important;
	block-size: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	max-block-size: none !important;
	margin: 0;
	padding: 0;
	letter-spacing: 0;
	overflow: visible;
}

.bbma-help-head {
	height: 21px !important;
	block-size: 21px !important;
	max-height: 21px !important;
	max-block-size: 21px !important;
	overflow: hidden !important;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.25;
}

.bbma-help-note {
	height: 40px !important;
	block-size: 40px !important;
	max-height: 40px !important;
	max-block-size: 40px !important;
	overflow: hidden !important;
	margin: 5px 0 10px;
	color: #6f625d;
	font-size: 13px;
	line-height: 1.45;
}

.bbma-help-actions {
	display: flex;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 8px;
}

.bbma-checkout-help a {
	width: auto !important;
	min-width: 140px;
	height: 38px !important;
	min-height: 38px;
	padding: 0 13px;
	white-space: nowrap;
	line-height: 1;
}

@media (max-width: 680px) {
	.bbma-shell {
		padding: 0;
	}

	.bbma-sheet {
		width: 100%;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 22px 22px 0 0;
		padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
	}

	.bbma-install {
		right: 10px;
		bottom: calc(10px + env(safe-area-inset-bottom));
		width: calc(100vw - 20px);
	}

	.bbma-help-actions {
		display: grid;
		flex-direction: column !important;
		grid-template-columns: 1fr;
	}
}
