/* Shared COD / trust feature cards under the order form (all themes). */
.soroban-trust {
	font-family: "Tajawal", Tahoma, Arial, sans-serif;
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

.soroban-trust-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e5e5e5;
	color: #111;
	text-align: right;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.soroban-trust-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: #ecfdf5;
	color: #10b981;
}

.soroban-trust-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.soroban-trust-copy {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.soroban-trust-title {
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.35;
	color: #111;
}

.soroban-trust-text {
	font-size: 0.8rem;
	line-height: 1.45;
	color: #777;
	font-weight: 500;
}

@media (min-width: 720px) {
	.soroban-trust {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
		margin-top: 20px;
	}

	.soroban-trust-card {
		padding: 16px 14px;
	}

	.soroban-trust-title {
		font-size: 0.92rem;
	}

	.soroban-trust-text {
		font-size: 0.78rem;
	}
}

/*
 * RIDCOD shortcode isolation — landing chrome must not paint over or wrap
 * the official form plugin. RIDCOD owns its own card styles.
 */
body.soroban-lp .aca-form-shell,
body.soroban-lp .ad-form-shell,
body.soroban-lp .soroban-form-shell {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/*
 * Sticky landing headers use z-index:100 !important (footer guard).
 * Form section must beat that or offer-card clicks never reach RIDCOD.
 */
body.soroban-lp .aca-section-form,
body.soroban-lp #order,
body.soroban-lp #order-basic,
body.soroban-lp .soroban-form-shell,
body.soroban-lp .aca-form-shell {
	position: relative;
	z-index: 120 !important;
}

/* Variations must stack above the checkout card (sibling with its own z-index). */
body.soroban-lp .rid-cod-form-container,
body.soroban-lp .rid-cod-form-fifth {
	position: relative;
	z-index: auto;
}

body.soroban-lp .rid-cod-variations-external,
body.soroban-lp .rid-cod-variations-external .variation-offer-card,
body.soroban-lp .rid-cod-variations-external .variation-option {
	position: relative;
	z-index: 2;
	pointer-events: auto !important;
	cursor: pointer;
}

body.soroban-lp #rid-cod-checkout {
	position: relative;
	z-index: 1;
}

/*
 * RIDCOD sticky bar defaults to a near-white gradient. On dark landings
 * that reads as a white strip — use a dark fade matching the page instead.
 */
body.soroban-lp .rid-cod-sticky-button-container {
	background: linear-gradient(
		to top,
		rgba(0, 64, 128, 0.97) 0%,
		rgba(0, 64, 128, 0.85) 70%,
		rgba(0, 64, 128, 0) 100%
	) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: none !important;
	border-top: none !important;
}

body.soroban-lp.soroban-theme-academy-dark .rid-cod-sticky-button-container {
	background: linear-gradient(
		to top,
		rgba(5, 5, 5, 0.97) 0%,
		rgba(5, 5, 5, 0.85) 70%,
		rgba(5, 5, 5, 0) 100%
	) !important;
}

body.soroban-lp.soroban-theme-academy .rid-cod-sticky-button-container {
	background: linear-gradient(
		to top,
		rgba(0, 47, 92, 0.97) 0%,
		rgba(0, 47, 92, 0.85) 70%,
		rgba(0, 47, 92, 0) 100%
	) !important;
}

/*
 * Fifth form style adds margin: 0 auto 30px — that pale gap under the white
 * checkout card showed the old cream/white shell. Kill it on landings.
 */
body.soroban-lp .rid-cod-form-fifth #rid-cod-checkout.checkout-card,
body.soroban-lp .soroban-form-shell #rid-cod-checkout,
body.soroban-lp .aca-form-shell #rid-cod-checkout,
body.soroban-lp .ad-form-shell #rid-cod-checkout {
	margin-bottom: 0 !important;
}

/* Trainer profile poster — bottom of all themes */
.soroban-trainer-profile {
	padding: 28px 0 8px;
	background: #000;
}

.soroban-trainer-profile-wrap {
	width: min(720px, calc(100% - 32px));
	margin-inline: auto;
}

.soroban-trainer-profile-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

/*
 * Visibility / theme overrides.
 * Critical CSS alone can lose to later stylesheets; keep content readable.
 */
body.soroban-lp.soroban-theme-academy-dark {
	background: #050505 !important;
	color: #f3efe6 !important;
}

body.soroban-lp.soroban-theme-academy {
	background: #f5f8fc !important;
	color: #0d1b2a !important;
}

body.soroban-lp.aca-lp [data-soroban-reveal],
body.soroban-lp.ad-lp [data-soroban-reveal],
body.soroban-lp [data-soroban-reveal],
html body [data-soroban-reveal] {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}


