/* ShopiDevs App Promo — light, minimal, no framework, no external fonts. */

.sdap {
	--sdap-surface: #ffffff;
	--sdap-tint: #f6f6f8;
	--sdap-border: #e1e1e8;
	--sdap-text: #17171b;
	--sdap-muted: #5b5b66;
	--sdap-accent: #e11d48;
	--sdap-accent-hi: #be123c;
	--sdap-radius: 14px;
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
}

.sdap * {
	box-sizing: border-box;
}

/* Themes style bare <button> and <a> globally (Astra ships padding and a
   min-width). Neutralise that before our own rules run, or the close button
   stretches into an ellipse. */
.sdap button {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	letter-spacing: normal;
	margin: 0;
	max-width: none;
	min-height: 0;
	min-width: 0;
	padding: 0;
	text-transform: none;
	width: auto;
}

.sdap-card {
	background: var(--sdap-surface);
	border: 1px solid var(--sdap-border);
	border-radius: var(--sdap-radius);
	color: var(--sdap-text);
	padding: 22px 24px;
	position: relative;
}

/* Layout: content column + action column. Wraps on its own when the
   content column can no longer hold its 300px basis — no breakpoint needed. */
.sdap-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	align-items: center;
}

.sdap-main {
	flex: 1 1 300px;
	min-width: 0;
}

.sdap-side {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

/* Header: icon + app name + badge */

.sdap-head {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.sdap-icon {
	border-radius: 11px;
	display: block;
	flex: 0 0 auto;
	height: 46px;
	width: 46px;
}

.sdap-head-text {
	min-width: 0;
}

.sdap-app {
	color: var(--sdap-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 3px;
}

.sdap-badge {
	display: block;
	height: 24px;
	margin-left: -6px;
	width: auto;
}

/* Reads as a label, not a sentence — otherwise it competes with the
   subheading and the card ends up with three lines of equal weight. */
.sdap-eyebrow {
	color: var(--sdap-accent);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .09em;
	line-height: 1.3;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.sdap-title {
	color: var(--sdap-text);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.25;
	margin: 0 0 6px;
}

.sdap-sub {
	color: var(--sdap-muted);
	font-size: 14.5px;
	line-height: 1.5;
	margin: 0;
}

.sdap-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.sdap-list li {
	color: var(--sdap-text);
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 6px;
	padding-left: 21px;
	position: relative;
}

.sdap-list li:last-child {
	margin-bottom: 0;
}

.sdap-list li::before {
	border: 2px solid var(--sdap-accent);
	border-left: 0;
	border-top: 0;
	content: "";
	height: 9px;
	left: 2px;
	position: absolute;
	top: 4px;
	transform: rotate(43deg);
	width: 5px;
}

.sdap-cta,
.sdap-cta:visited {
	background: var(--sdap-accent);
	border-radius: 9px;
	box-shadow: none;
	color: #fff !important;
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 14px 26px;
	text-align: center;
	text-decoration: none !important;
	transition: background .15s ease;
	white-space: nowrap;
}

.sdap-cta:hover,
.sdap-cta:focus {
	background: var(--sdap-accent-hi);
	color: #fff !important;
}

.sdap-dismiss {
	background: none;
	border: 0;
	color: var(--sdap-muted);
	cursor: pointer;
	font-size: 13.5px;
	padding: 4px 2px;
	text-decoration: underline;
	width: 100%;
}

.sdap-dismiss:hover {
	color: var(--sdap-text);
}

.sdap-note {
	color: var(--sdap-muted);
	font-size: 12.5px;
	margin: 0;
	text-align: center;
}

/* In-content card */

.sdap-inline {
	clear: both;
	margin: 34px 0;
}

.sdap-inline .sdap-card {
	box-shadow: 0 1px 2px rgba(20, 20, 30, .04);
}

/* Floating unit */

.sdap-float[hidden] {
	display: none;
}

.sdap-float {
	/* The container is often larger than the visible card (modal covers the
	   viewport). It must never intercept clicks outside the card itself. */
	pointer-events: none;
	position: fixed;
	z-index: 99990;
}

.sdap-float .sdap-card--float,
.sdap-float .sdap-scrim {
	pointer-events: auto;
}

/* Step aside while a site navigation panel is open, otherwise the bar sits on
   top of the menu and swallows taps on its lower items. */
.sdap-float[data-nav-open="1"],
body.ast-mobile-popup-active .sdap-float,
body.ast-main-header-nav-open .sdap-float,
body.ast-off-canvas-active .sdap-float,
body.ast-header-break-point.ast-mobile-popup-active .sdap-float,
body.menu-open .sdap-float,
body.mobile-menu-visible .sdap-float,
body.has-modal-open .sdap-float {
	display: none !important;
}

.sdap-scrim {
	display: none;
}

/* The float is narrow: always one column, and the bullet list belongs
   to the in-content card only. */
.sdap-card--float .sdap-grid {
	display: block;
}

.sdap-card--float .sdap-side {
	margin-top: 16px;
}

.sdap-card--float .sdap-list {
	display: none;
}

.sdap .sdap-close {
	border-radius: 50%;
	color: #8a8a93;
	cursor: pointer;
	display: grid;
	flex: none;
	height: 28px;
	line-height: 1;
	max-width: 28px;
	min-width: 28px;
	padding: 0;
	place-items: center;
	position: absolute;
	right: 10px;
	top: 10px;
	width: 28px;
	z-index: 2;
}

.sdap .sdap-close:hover {
	background: rgba(0, 0, 0, .06);
	color: var(--sdap-text);
}

/* Desktop: slide-in corner card */

/* Default to the left corner: live-chat launchers (Crisp, Intercom) park
   themselves bottom-right and would sit under the card. */
.sdap-float[data-style="slidein"] {
	bottom: 22px;
	left: 22px;
	width: 360px;
	max-width: calc(100vw - 32px);
}

.sdap-float[data-style="slidein"][data-corner="right"] {
	left: auto;
	right: 22px;
}

.sdap-float[data-style="slidein"] .sdap-card--float {
	box-shadow: 0 14px 44px rgba(20, 20, 30, .18);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .28s ease, transform .28s ease;
}

.sdap-float[data-style="slidein"].is-open .sdap-card--float {
	opacity: 1;
	transform: translateY(0);
}

/* Desktop: centered modal */

.sdap-float[data-style="modal"] {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
}

.sdap-float[data-style="modal"] .sdap-scrim {
	background: rgba(15, 15, 22, .5);
	display: block;
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity .25s ease;
}

.sdap-float[data-style="modal"].is-open .sdap-scrim {
	opacity: 1;
}

.sdap-float[data-style="modal"] .sdap-card--float {
	box-shadow: 0 24px 70px rgba(15, 15, 22, .3);
	max-width: 420px;
	opacity: 0;
	transform: scale(.97);
	transition: opacity .25s ease, transform .25s ease;
	width: 100%;
}

.sdap-float[data-style="modal"].is-open .sdap-card--float {
	opacity: 1;
	transform: scale(1);
}

/* Mobile: compact bottom bar, never a full-screen interstitial */

@media (max-width: 782px) {
	.sdap-float,
	.sdap-float[data-style="modal"],
	.sdap-float[data-style="slidein"] {
		bottom: 0;
		display: block;
		inset: auto 0 0 0;
		max-width: none;
		padding: 0;
		width: 100%;
	}

	.sdap-float .sdap-scrim {
		display: none;
	}

	.sdap-float .sdap-card--float {
		border-radius: 14px 14px 0 0;
		border-width: 1px 0 0;
		box-shadow: 0 -6px 28px rgba(20, 20, 30, .16);
		opacity: 0;
		padding: 14px 16px 16px;
		transform: translateY(100%);
		transition: opacity .25s ease, transform .25s ease;
	}

	.sdap-float.is-open .sdap-card--float {
		opacity: 1;
		transform: translateY(0);
	}

	/* Keep the bar to a small slice of the screen: badge + promise + button. */
	.sdap-float .sdap-note,
	.sdap-float .sdap-eyebrow,
	.sdap-float .sdap-sub,
	.sdap-float .sdap-badge {
		display: none;
	}

	.sdap-card--float .sdap-head {
		margin-bottom: 0;
	}

	.sdap-card--float .sdap-icon {
		height: 38px;
		width: 38px;
	}

	.sdap-card--float .sdap-app {
		font-size: 13px;
		margin: 0;
	}

	.sdap-card--float .sdap-title {
		font-size: 15px;
		margin: 2px 0 0;
	}

	/* Title sits beside the icon, button below — two tight rows. */
	.sdap-card--float .sdap-head-text {
		padding-right: 26px;
	}

	/* Centre the bar's contents so it does not stretch edge to edge on tablets. */
	.sdap-card--float > .sdap-grid {
		margin: 0 auto;
		max-width: 560px;
	}

	.sdap-card--float .sdap-side {
		flex-direction: row;
		align-items: center;
		gap: 14px;
		margin-top: 12px;
	}

	.sdap-card--float .sdap-cta {
		flex: 1 1 auto;
		max-width: 340px;
		padding: 12px 18px;
	}

	.sdap-card--float .sdap-dismiss {
		flex: 0 0 auto;
		width: auto;
	}

	.sdap .sdap-close {
		height: 26px;
		max-width: 26px;
		min-width: 26px;
		right: 8px;
		top: 8px;
		width: 26px;
	}

	.sdap-inline .sdap-card {
		padding: 18px;
	}

	.sdap-inline .sdap-title {
		font-size: 18px;
	}

	/* Full width on phones, but never an oversized slab on tablets. */
	.sdap-inline .sdap-side {
		max-width: 340px;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sdap-card--float,
	.sdap-scrim,
	.sdap-cta {
		transition: none !important;
	}
}
