/**
 * Donation basket — shared front-end styles.
 *
 * Loaded only on pages containing a donation block (inc/blocks.php →
 * albasar_enqueue_donation_blocks). Uses theme.json design tokens for all colour
 * and spacing so it stays in step with the palette. Step 1 (cause picker) styles
 * live here; the basket + confirmation blocks will add to this file.
 */

/* The `hidden` attribute must win over a component's own display rules
   (a class `display:flex/grid` otherwise keeps a hidden element visible). */
.ab-cp [hidden],
.ab-bk [hidden],
.ab-conf [hidden] {
	display: none !important;
}

.ab-cp {
	padding-block: var( --wp--preset--spacing--60, 2.5rem );
}

.ab-cp__inner {
	max-width: var( --wp--style--global--wide-size, 1200px );
	margin-inline: auto;
	padding-inline: 16px;
}

.ab-cp__heading {
	font-family: var( --wp--preset--font-family--fraunces, serif );
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
	font-size: clamp( 1.6rem, 3vw, 2.4rem );
	margin: 0 0 1.25rem;
}

/* Category filter chips */
.ab-cp__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.ab-cp__chip {
	appearance: none;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	background: var( --wp--preset--color--ab-white, #fff );
	color: var( --wp--preset--color--ab-ink, #1f2933 );
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ab-cp__chip:hover {
	border-color: var( --wp--preset--color--ab-blue, #1c6cb0 );
}

.ab-cp__chip.is-active {
	background: var( --wp--preset--color--ab-navy, #0c2e4e );
	border-color: var( --wp--preset--color--ab-navy, #0c2e4e );
	color: var( --wp--preset--color--ab-white, #fff );
}

.ab-cp__chip:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 2px;
}

/* Toolbar: category filters on the left, search on the right */
.ab-cp__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.ab-cp__toolbar .ab-cp__filters {
	margin-bottom: 0;
}

.ab-cp__search {
	flex: 1 1 220px;
	max-width: 320px;
	margin-left: auto;
}

.ab-cp__search-input {
	width: 100%;
	box-sizing: border-box;
	height: 2.5rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 0.6rem;
	padding: 0 0.85rem;
	font-size: 0.95rem;
	background: var( --wp--preset--color--ab-white, #fff );
	color: var( --wp--preset--color--ab-ink, #1f2933 );
}

.ab-cp__search-input:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 1px;
}

/* Card grid */
.ab-cp__grid {
	display: grid;
	grid-template-columns: repeat( var( --ab-cp-cols, 3 ), 1fr );
	gap: 1.25rem;
}

.ab-cp__card {
	display: flex;
	flex-direction: column;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 14px;
	overflow: hidden;
	background: var( --wp--preset--color--ab-white, #fff );
	position: relative;
}

.ab-cp__card[hidden] {
	display: none;
}

/* A gift arrived via a /donate/?fund=… link with no amount: briefly ring the
   matching card (added/removed by assets/js/donate-intent.js). */
.ab-cp__card--intent {
	box-shadow: 0 0 0 3px var( --wp--preset--color--ab-orange, #f08c1e );
	transition: box-shadow 0.25s ease;
}

@media ( prefers-reduced-motion: reduce ) {
	.ab-cp__card--intent {
		transition: none;
	}
}

.ab-cp__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
}

.ab-cp__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ab-cp__pills {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.ab-cp__pill {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	color: var( --wp--preset--color--ab-white, #fff );
	background: var( --wp--preset--color--ab-navy, #0c2e4e );
}

.ab-cp__pill--featured {
	background: var( --wp--preset--color--ab-orange, #f08c1e );
}

.ab-cp__pill--seasonal {
	background: var( --wp--preset--color--ab-blue, #1c6cb0 );
}

.ab-cp__pill--zakat {
	background: var( --wp--preset--color--ab-green, #1a6b58 );
}

.ab-cp__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.1rem 1.2rem;
	flex: 1;
}

.ab-cp__title {
	font-family: var( --wp--preset--font-family--fraunces, serif );
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
	font-size: 1.2rem;
	margin: 0;
}

.ab-cp__impact {
	font-weight: 600;
	color: var( --wp--preset--color--ab-blue, #1c6cb0 );
	margin: 0;
}

.ab-cp__blurb {
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	font-size: 0.92rem;
	margin: 0;
}

.ab-cp__controls {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ab-cp__amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ab-cp__amount {
	appearance: none;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	background: var( --wp--preset--color--ab-white, #fff );
	color: var( --wp--preset--color--ab-ink, #1f2933 );
	border-radius: 8px;
	padding: 0.4rem 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.ab-cp__amount.is-selected {
	background: var( --wp--preset--color--ab-navy, #0c2e4e );
	border-color: var( --wp--preset--color--ab-navy, #0c2e4e );
	color: var( --wp--preset--color--ab-white, #fff );
}

.ab-cp__amount:focus-visible,
.ab-cp__step:focus-visible,
.ab-cp__add:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 2px;
}

.ab-cp__custom {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 8px;
	padding: 0.15rem 0.6rem;
}

.ab-cp__custom-prefix {
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	font-weight: 600;
}

.ab-cp__custom-input {
	border: 0;
	padding: 0.35rem 0;
	width: 100%;
	font: inherit;
	background: transparent;
}

.ab-cp__custom-input:focus {
	outline: none;
}

/* Quantity stepper */
.ab-cp__qty {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	align-self: flex-start;
}

.ab-cp__step {
	appearance: none;
	width: 2rem;
	height: 2rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	background: var( --wp--preset--color--ab-white, #fff );
	border-radius: 8px;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.ab-cp__qty-value {
	min-width: 2ch;
	text-align: center;
	font-weight: 700;
	font-size: 1.1rem;
}

.ab-cp__line {
	margin: 0;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	font-size: 0.9rem;
}

.ab-cp__line strong {
	color: var( --wp--preset--color--ab-ink, #1f2933 );
}

/* Add button */
.ab-cp__add {
	appearance: none;
	border: 0;
	background: var( --wp--preset--color--ab-orange, #f08c1e );
	color: var( --wp--preset--color--ab-white, #fff );
	font-weight: 700;
	border-radius: 10px;
	padding: 0.7rem 1rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ab-cp__add:hover {
	background: var( --wp--preset--color--ab-orange-600, #d97b12 );
}

.ab-cp__added {
	margin: 0;
	color: var( --wp--preset--color--ab-green, #1a6b58 );
	font-weight: 600;
	font-size: 0.9rem;
	text-align: center;
}

.ab-cp__error {
	margin: 0.35rem 0 0;
	color: #8a1c12;
	font-weight: 600;
	font-size: 0.85rem;
}

.ab-cp__error[hidden] {
	display: none;
}

.ab-cp__amount-input[aria-invalid="true"] {
	border-color: #8a1c12;
}

.ab-cp__amount-input[readonly] {
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
}

.ab-cp__noscript {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: #fdecea;
	color: #8a1c12;
	font-weight: 600;
}

.ab-cp__empty {
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}

@media ( max-width: 900px ) {
	.ab-cp__grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 560px ) {
	.ab-cp__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
 * Basket (Steps 2–3) — albasar/basket
 * ========================================================================= */

.ab-bk {
	padding-block: var( --wp--preset--spacing--60, 2.5rem );
}

.ab-bk__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp( 16px, 4vw, 40px );
}

/* Empty state */
.ab-bk__empty {
	max-width: 520px;
	margin-inline: auto;
	border: 1px dashed var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 16px;
	padding: 2.5rem 1.25rem;
	text-align: center;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}

.ab-bk__empty-icon {
	color: #c3ccd7;
	margin-bottom: 0.5rem;
}

.ab-bk__empty-icon svg {
	width: 40px;
	height: 40px;
}

.ab-bk__browse {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: 700;
	color: var( --wp--preset--color--ab-blue, #1c6cb0 );
}

/* Two-column checkout layout */
.ab-bk__layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 380px;
	gap: 2.5rem;
	align-items: start;
}

.ab-bk__main {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

.ab-bk__head {
	margin-bottom: 1.5rem;
}

.ab-bk__heading {
	font-family: var( --wp--preset--font-family--fraunces, serif );
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
	font-size: clamp( 1.6rem, 3vw, 2.3rem );
	margin: 0 0 0.35rem;
}

.ab-bk__lede {
	margin: 0;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	font-size: 0.95rem;
}

/* Section cards */
.ab-bk__card {
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	background: var( --wp--preset--color--ab-white, #fff );
	border-radius: 14px;
	padding: 1.25rem 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	box-shadow: 0 1px 2px rgba( 12, 46, 78, 0.04 );
}

.ab-bk__card-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-family: var( --wp--preset--font-family--fraunces, serif );
	font-size: 1.15rem;
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
}

.ab-bk__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
	color: var( --wp--preset--color--ab-blue, #1c6cb0 );
	flex: none;
}

.ab-bk__optional {
	font-family: var( --wp--preset--font-family--inter, sans-serif );
	font-size: 0.72rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}

/* Segmented control (donor type + frequency) */
.ab-bk__seg {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.ab-bk__seg-opt {
	position: relative;
	flex: 1 1 8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.9rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
	text-align: center;
}

.ab-bk__seg-opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.ab-bk__seg-opt:has( input:checked ) {
	border-color: var( --wp--preset--color--ab-navy, #0c2e4e );
	background: var( --wp--preset--color--ab-navy, #0c2e4e );
	color: var( --wp--preset--color--ab-white, #fff );
}

.ab-bk__seg-opt:has( input:focus-visible ) {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 2px;
}

.ab-bk__freq {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ab-bk__freq .ab-bk__label {
	margin-bottom: 0.1rem;
}

.ab-bk__help {
	margin: 0.6rem 0 0;
	font-size: 0.82rem;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}

/* Progressive disclosure (optional extras) */
.ab-bk__disclosures {
	display: flex;
	flex-direction: column;
}

.ab-bk__disc {
	border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
}

.ab-bk__disc:first-child {
	border-top: 0;
}

.ab-bk__disc-summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 0;
	font-weight: 600;
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
}

.ab-bk__disc-summary::-webkit-details-marker {
	display: none;
}

.ab-bk__disc-summary::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 6px;
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
	color: var( --wp--preset--color--ab-blue, #1c6cb0 );
	font-size: 1.1rem;
	line-height: 1;
	flex: none;
}

.ab-bk__disc[open] .ab-bk__disc-summary::before {
	content: "–";
}

.ab-bk__disc-summary:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 2px;
	border-radius: 6px;
}

.ab-bk__disc-body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0 0 1rem;
}

/* Fields */
.ab-bk__grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.ab-bk__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.ab-bk__dedication-fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 0.25rem;
}

.ab-bk__label {
	font-weight: 600;
	font-size: 0.9rem;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
}

.ab-bk__label--sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
}

.ab-bk__req {
	color: var( --wp--preset--color--ab-orange-600, #d97b12 );
}

.ab-bk__field input,
.ab-bk__field select,
.ab-bk__field textarea {
	font: inherit;
	padding: 0.6rem 0.75rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 8px;
	background: var( --wp--preset--color--ab-white, #fff );
	color: var( --wp--preset--color--ab-ink, #1f2933 );
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ab-bk__check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	line-height: 1.45;
	font-size: 0.92rem;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
}

.ab-bk__check input {
	margin-top: 0.2rem;
	flex: none;
}

.ab-bk__check a {
	color: var( --wp--preset--color--ab-blue, #1c6cb0 );
}

.ab-bk__card--agree {
	gap: 0.85rem;
}

.ab-bk__field input:focus-visible,
.ab-bk__field select:focus-visible,
.ab-bk__field textarea:focus-visible,
.ab-bk__check input:focus-visible,
.ab-bk__submit:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 2px;
}

/* Actions */
.ab-bk__actions {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ab-bk__submit {
	appearance: none;
	border: 0;
	background: var( --wp--preset--color--ab-orange, #f08c1e );
	color: var( --wp--preset--color--ab-white, #fff );
	font-weight: 700;
	font-size: 1.05rem;
	border-radius: 10px;
	padding: 0.9rem 1rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ab-bk__submit:hover {
	background: var( --wp--preset--color--ab-orange-600, #d97b12 );
}

.ab-bk__submit:disabled,
.ab-bk__submit.is-loading {
	opacity: 0.7;
	cursor: progress;
}

.ab-bk__submit::after {
	content: "\2192";
	margin-left: 0.5rem;
	font-weight: 400;
}

.ab-bk__submit.is-loading::after {
	content: none;
}

/* Payment-method chooser — Apple Pay / Google Pay / PayPal / Card chips. */
.ab-bk__pay-title {
	margin: 0 0 0.6rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
}

.ab-bk__methods {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 0.5rem;
}

.ab-bk__method {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 62px;
	padding: 0.55rem 0.4rem;
	border: 1px solid var( --wp--preset--color--ab-line, #dbe2e7 );
	border-radius: 11px;
	background: var( --wp--preset--color--ab-white, #fff );
	color: var( --wp--preset--color--ab-ink, #334d5e );
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ab-bk__method:hover {
	border-color: var( --wp--preset--color--ab-blue, #a7c9dc );
}

.ab-bk__method.is-active {
	border: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	background: #f3faff;
	color: var( --wp--preset--color--ab-blue, #0d72ba );
	padding: calc( 0.55rem - 1px ) calc( 0.4rem - 1px );
}

.ab-bk__method:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 2px;
}

.ab-bk__method-ic {
	display: block;
	height: 20px;
}

.ab-bk__method-help {
	margin: 0.6rem 0 0.1rem;
	min-height: 1.1em;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var( --wp--preset--color--ab-muted, #74818b );
}

@media ( max-width: 600px ) {
	.ab-bk__methods {
		grid-template-columns: repeat( 2, 1fr );
	}
}

.ab-bk__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.8rem;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	text-align: center;
}

.ab-bk__secure svg {
	width: 14px;
	height: 14px;
	flex: none;
	color: var( --wp--preset--color--ab-green, #1a6b58 );
}

.ab-bk__recap-terms,
.ab-bk__recap-zakat {
	margin: 0.6rem 0 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
}

.ab-bk__recap-zakat {
	color: var( --wp--preset--color--ab-green, #1a6b58 );
	font-weight: 600;
}

.ab-bk__notice {
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
	font-size: 0.88rem;
	font-weight: 600;
}

.ab-bk__notice[hidden] {
	display: none;
}

.ab-bk__error {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: #fdecea;
	color: #8a1c12;
	font-weight: 600;
}

/* ---- Sticky Donation Summary sidebar ---- */
.ab-bk__summary {
	position: sticky;
	top: 1.5rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
	border-radius: 16px;
	padding: 1.35rem 1.35rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.ab-bk__summary-title {
	font-family: var( --wp--preset--font-family--fraunces, serif );
	font-size: 1.2rem;
	margin: 0;
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
}

/* Summary line items */
.ab-bk__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

/* Cart line item — bordered card with a top (details + price) and bottom
 * (quantity + remove) row, matching the catalogue design's .cart-item. */
.ab-bk__item {
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 12px;
	padding: 0.8rem;
	background: var( --wp--preset--color--ab-white, #fff );
}

.ab-bk__item-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
}

.ab-bk__item-main { min-width: 0; }

.ab-bk__item-title {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
}

.ab-bk__item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.4rem;
	font-size: 0.72rem;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	line-height: 1.5;
}

.ab-bk__item-each { color: var( --wp--preset--color--ab-muted, #5b6b7a ); }

.ab-bk__chip {
	display: inline-block;
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	line-height: 1.5;
}

.ab-bk__chip--once { background: #eef6fb; color: var( --wp--preset--color--ab-blue, #1c6cb0 ); }
.ab-bk__chip--monthly { background: #fff1df; color: #af640d; }
.ab-bk__chip--zakat { background: #eaf8f2; color: var( --wp--preset--color--ab-green, #1a6b58 ); }

.ab-bk__item-total {
	font-weight: 800;
	white-space: nowrap;
	font-size: 0.95rem;
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
}

.ab-bk__item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.7rem;
	padding-top: 0.7rem;
	border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
}

.ab-bk__item-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 8px;
	overflow: hidden;
}

.ab-bk__item-step {
	appearance: none;
	width: 1.9rem;
	height: 1.9rem;
	border: 0;
	background: var( --wp--preset--color--ab-white, #fff );
	cursor: pointer;
	line-height: 1;
	font-size: 1rem;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
}

.ab-bk__item-step:hover { background: var( --wp--preset--color--ab-surface, #f7f8fa ); }
.ab-bk__item-step:disabled { opacity: 0.4; cursor: not-allowed; }

.ab-bk__item-qty-value {
	min-width: 1.9rem;
	text-align: center;
	font-weight: 800;
	font-size: 0.82rem;
}

.ab-bk__item-remove {
	appearance: none;
	border: 0;
	background: transparent;
	color: #a45050;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	padding: 0.2rem 0.3rem;
}

.ab-bk__item-remove:hover { text-decoration: underline; }

/* Totals */
.ab-bk__totals {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding-top: 0.5rem;
	border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
}

.ab-bk__total-row {
	display: flex;
	justify-content: space-between;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	font-size: 0.95rem;
}

.ab-bk__total-row--grand {
	margin-top: 0.35rem;
	background: var( --wp--preset--color--ab-navy, #0c2e4e );
	color: var( --wp--preset--color--ab-white, #fff );
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	font-size: 1.15rem;
	font-weight: 700;
}

.ab-bk__freq-note {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	color: var( --wp--preset--color--ab-blue, #1c6cb0 );
}

.ab-bk__zakat-note {
	margin: 0;
	font-size: 0.82rem;
	color: var( --wp--preset--color--ab-green, #1a6b58 );
	font-weight: 600;
}

/* Trust list */
.ab-bk__trust {
	list-style: none;
	margin: 0;
	padding-top: 0.5rem;
	border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ab-bk__trust li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	line-height: 1.35;
}

.ab-bk__trust svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var( --wp--preset--color--ab-green, #1a6b58 );
	margin-top: 0.05rem;
}

/* Responsive: stack, summary first, unstick */
@media ( max-width: 900px ) {
	.ab-bk__layout {
		grid-template-columns: 1fr;
	}

	.ab-bk__aside {
		order: -1;
	}

	.ab-bk__summary {
		position: static;
	}
}

@media ( max-width: 560px ) {
	.ab-bk__grid2 {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
 * Confirmation (Step 4) — albasar/donation-confirmation
 * ========================================================================= */

.ab-conf {
	padding-block: var( --wp--preset--spacing--60, 2.5rem );
}

.ab-conf__inner {
	max-width: 620px;
	margin-inline: auto;
	padding-inline: 16px;
	text-align: center;
}

.ab-conf__pending {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	padding-block: 2rem;
}

.ab-conf__spinner {
	width: 2.5rem;
	height: 2.5rem;
	border: 3px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-top-color: var( --wp--preset--color--ab-blue, #1c6cb0 );
	border-radius: 50%;
	animation: ab-conf-spin 0.8s linear infinite;
}

@keyframes ab-conf-spin {
	to {
		transform: rotate( 360deg );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.ab-conf__spinner {
		animation-duration: 2s;
	}
}

/* Animated success badge */
.ab-conf__badge { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.25rem; }
.ab-conf__badge svg { display: block; width: 100%; height: 100%; }
.ab-conf__badge-ring { stroke: var( --wp--preset--color--ab-green, #1a6b58 ); stroke-dasharray: 151; stroke-dashoffset: 151; animation: ab-conf-draw 0.6s ease forwards; }
.ab-conf__badge-check { stroke: var( --wp--preset--color--ab-green, #1a6b58 ); stroke-dasharray: 42; stroke-dashoffset: 42; animation: ab-conf-draw 0.35s 0.5s ease forwards; }
@keyframes ab-conf-draw { to { stroke-dashoffset: 0; } }
.ab-conf__badge--muted { display: grid; place-items: center; border-radius: 50%; background: var( --wp--preset--color--ab-surface, #f7f8fa ); color: var( --wp--preset--color--ab-muted, #5b6b7a ); font-size: 2.2rem; font-weight: 700; }
@media ( prefers-reduced-motion: reduce ) {
	.ab-conf__badge-ring,
	.ab-conf__badge-check { animation: none; stroke-dashoffset: 0; }
}

.ab-conf__heading {
	font-family: var( --wp--preset--font-family--fraunces, serif );
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
	font-size: clamp( 1.8rem, 4vw, 2.6rem );
	margin: 0 0 0.75rem;
}

.ab-conf__body {
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	margin: 0 auto 1.75rem;
	max-width: 460px;
}

/* Gift summary card */
.ab-conf__card {
	background: var( --wp--preset--color--ab-white, #fff );
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba( 28, 48, 61, 0.08 );
	padding: 1.4rem 1.5rem;
	text-align: left;
	max-width: 460px;
	margin: 0 auto 1.75rem;
}
.ab-conf__amount-caption { margin: 0; text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-conf__amount { margin: 0.15rem 0 1rem; text-align: center; font-size: 2.4rem; font-weight: 800; line-height: 1.1; color: var( --wp--preset--color--ab-navy, #0c2e4e ); }
.ab-conf__amount-freq { font-size: 1rem; font-weight: 600; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-conf__amount-then { margin: -0.6rem 0 1rem; text-align: center; font-size: 0.95rem; font-weight: 600; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-conf__item-freq { display: block; font-size: 0.78rem; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-conf__row--then { font-weight: 700; color: var( --wp--preset--color--ab-navy, #0c2e4e ); }

.ab-conf__items { list-style: none; margin: 0 0 0.9rem; padding: 0.9rem 0; border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); border-bottom: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); display: flex; flex-direction: column; gap: 0.5rem; }
.ab-conf__items:empty { display: none; }
.ab-conf__items li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.92rem; }
.ab-conf__item-name { color: var( --wp--preset--color--ab-ink, #1f2933 ); }
.ab-conf__item-amt { font-weight: 700; white-space: nowrap; color: var( --wp--preset--color--ab-navy, #0c2e4e ); }

.ab-conf__rows { display: flex; flex-direction: column; gap: 0.4rem; }
.ab-conf__row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-conf__row--total { margin-top: 0.35rem; padding-top: 0.6rem; border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); font-size: 1.1rem; font-weight: 800; color: var( --wp--preset--color--ab-navy, #0c2e4e ); }

.ab-conf__dedication { margin: 0.9rem 0 0; font-style: italic; color: var( --wp--preset--color--ab-green, #1a6b58 ); font-size: 0.9rem; }
.ab-conf__zakat { margin: 0.6rem 0 0; font-size: 0.82rem; color: var( --wp--preset--color--ab-green, #1a6b58 ); }
.ab-conf__ref { margin: 0.9rem 0 0; font-size: 0.8rem; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-conf__ref span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* What happens next */
.ab-conf__next { list-style: none; margin: 0 auto 1.75rem; padding: 0; max-width: 460px; display: grid; gap: 0.85rem; text-align: left; }
.ab-conf__next li { display: flex; gap: 0.75rem; align-items: flex-start; }
.ab-conf__next-icon { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; background: color-mix( in srgb, var( --wp--preset--color--ab-blue, #1c6cb0 ) 12%, #fff ); color: var( --wp--preset--color--ab-blue, #1c6cb0 ); }
.ab-conf__next-text { display: flex; flex-direction: column; font-size: 0.85rem; line-height: 1.4; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-conf__next-text strong { color: var( --wp--preset--color--ab-ink, #1f2933 ); font-size: 0.92rem; }

/* Actions */
.ab-conf__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 1.75rem; }
.ab-conf__continue { display: inline-block; font-weight: 800; color: var( --wp--preset--color--ab-white, #fff ); background: var( --wp--preset--color--ab-orange, #f08c1e ); border-radius: 10px; padding: 0.8rem 1.7rem; text-decoration: none; }
.ab-conf__continue:hover { background: var( --wp--preset--color--ab-orange-600, #d97b12 ); }
.ab-conf__again { display: inline-block; font-weight: 800; color: var( --wp--preset--color--ab-blue, #1c6cb0 ); background: var( --wp--preset--color--ab-white, #fff ); border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); border-radius: 10px; padding: 0.8rem 1.7rem; text-decoration: none; }
.ab-conf__again:hover { border-color: var( --wp--preset--color--ab-blue, #1c6cb0 ); }

/* Share */
.ab-conf__share { border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); padding-top: 1.25rem; }
.ab-conf__share-label { display: block; font-size: 0.8rem; color: var( --wp--preset--color--ab-muted, #5b6b7a ); margin-bottom: 0.6rem; }
.ab-conf__share-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.ab-conf__share-btn { font-size: 0.8rem; font-weight: 700; color: var( --wp--preset--color--ab-navy, #0c2e4e ); background: var( --wp--preset--color--ab-surface, #f7f8fa ); border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); border-radius: 999px; padding: 0.5rem 1rem; text-decoration: none; }
.ab-conf__share-btn:hover { border-color: var( --wp--preset--color--ab-blue, #1c6cb0 ); color: var( --wp--preset--color--ab-blue, #1c6cb0 ); }

.ab-conf__missing { padding-block: 1rem; }

/* ------------------------------------------------------------------ *
 * Catalogue card controls: "Where" menu, frequency switch, Zakat     *
 * opt-in (added for the donation-catalogue redesign).                *
 * ------------------------------------------------------------------ */

.ab-cp__where {
	margin-bottom: 0.75rem;
}

.ab-cp__where-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	margin-bottom: 0.35rem;
}

.ab-cp__where-select {
	width: 100%;
	box-sizing: border-box;
	height: 2.5rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 0.5rem;
	padding: 0 0.6rem;
	background: var( --wp--preset--color--ab-white, #fff );
	color: var( --wp--preset--color--ab-ink, #1f2933 );
	font-size: 0.9rem;
}

.ab-cp__where-select:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 1px;
}

.ab-cp__where-help {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.72rem;
	line-height: 1.35;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}

/* One-time / monthly switch */
.ab-cp__freq {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.25rem;
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 0.6rem;
	padding: 0.25rem;
	margin-bottom: 0.75rem;
}

.ab-cp__freq-opt {
	appearance: none;
	border: 0;
	background: transparent;
	border-radius: 0.45rem;
	padding: 0.45rem 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
	cursor: pointer;
}

.ab-cp__freq-opt.is-active {
	background: var( --wp--preset--color--ab-white, #fff );
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
	box-shadow: 0 1px 4px rgba( 12, 46, 78, 0.1 );
}

.ab-cp__freq-opt:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 1px;
}

/* Zakat opt-in */
.ab-cp__zakat {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
	margin-bottom: 0.75rem;
	cursor: pointer;
}

.ab-cp__zakat input {
	width: 1rem;
	height: 1rem;
	accent-color: var( --wp--preset--color--ab-green, #1a6b58 );
}

/* "Where" detail line inside the cart line item — its own line above the tags. */
.ab-bk__item-where {
	flex-basis: 100%;
	width: 100%;
	font-size: 0.75rem;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}

/* ------------------------------------------------------------------ *
 * Modal checkout (checkoutStyle = "modal"): a sticky cart rail beside *
 * the catalogue + a dialog that holds the donor form.                 *
 * ------------------------------------------------------------------ */

.ab-bk__rail {
	position: sticky;
	top: 1.5rem;
}

.ab-bk__review {
	width: 100%;
	margin-top: 1rem;
}

body.ab-bk-modal-open {
	overflow: hidden;
}

.ab-bk__modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp( 0px, 4vw, 2.5rem );
	overflow: auto;
}

.ab-bk__modal[hidden] {
	display: none;
}

.ab-bk__modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba( 12, 46, 78, 0.55 );
}

.ab-bk__modal-dialog {
	position: relative;
	z-index: 1;
	width: min( 640px, 100% );
	margin: auto;
	background: var( --wp--preset--color--ab-white, #fff );
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba( 12, 46, 78, 0.3 );
	padding: clamp( 1.25rem, 4vw, 2rem );
}

.ab-bk__modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	background: var( --wp--preset--color--ab-white, #fff );
	border-radius: 999px;
	font-size: 1.4rem;
	line-height: 1;
	color: var( --wp--preset--color--ab-ink, #1f2933 );
	cursor: pointer;
}

.ab-bk__modal-close:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 2px;
}

/* In the modal the form is a single column, not the inline two-column layout. */
.ab-bk__modal .ab-bk__form {
	display: block;
}

/* Cards without an image: pills flow above the title instead of overlapping it. */
.ab-cp__card--noimg .ab-cp__pills {
	position: static;
	padding: 1rem 1.1rem 0;
	margin: 0;
}

/* ==================================================================== *
 * Catalogue v2 — match the donation-catalogue design. Overrides the     *
 * earlier cause-picker card rules (later, equal-specificity wins).      *
 * Colours come from theme tokens; per-fund header hues are derived with *
 * color-mix so they stay on-brand (CLAUDE.md §5).                       *
 * ==================================================================== */

/* Card shell */
.ab-cp__card {
	border-radius: 16px;
	box-shadow: 0 5px 18px rgba( 29, 47, 61, 0.05 );
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ab-cp__card:hover {
	transform: translateY( -3px );
	box-shadow: 0 16px 34px rgba( 29, 47, 61, 0.09 );
}

/* Media header: per-fund gradient + centred icon, or the uploaded image. */
.ab-cp__media {
	position: relative;
	aspect-ratio: auto;
	height: 148px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	--m: var( --wp--preset--color--ab-blue, #1c6cb0 );
	background: linear-gradient( 135deg, var( --m ), color-mix( in srgb, var( --m ) 55%, #ffffff ) );
}
.ab-cp__media--general { --m: var( --wp--preset--color--ab-blue, #1c6cb0 ); }
.ab-cp__media--program { --m: var( --wp--preset--color--ab-navy, #0c2e4e ); }
.ab-cp__media--zakat   { --m: var( --wp--preset--color--ab-green, #1a6b58 ); }
.ab-cp__media--sadaqah { --m: var( --wp--preset--color--ab-green, #1a6b58 ); }
.ab-cp__media--waqf    { --m: var( --wp--preset--color--ab-navy, #0c2e4e ); }

.ab-cp__media-icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: rgba( 255, 255, 255, 0.18 );
	border: 1px solid rgba( 255, 255, 255, 0.32 );
	display: grid;
	place-items: center;
	color: #fff;
}
.ab-cp__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pills overlaying the header */
.ab-cp__media .ab-cp__pill {
	position: absolute;
	top: 10px;
	left: 10px;
	margin: 0;
	padding: 5px 9px;
	border-radius: 999px;
	background: #fff;
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.ab-cp__media .ab-cp__pill--zakat {
	left: auto;
	right: 10px;
	background: #eafff7;
	color: var( --wp--preset--color--ab-green, #1a6b58 );
}

/* Body */
.ab-cp__body { gap: 0.5rem; padding: 1rem 1.1rem 1.15rem; }
.ab-cp__titlerow { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.ab-cp__title { font-size: 1.15rem; margin: 0; }
.ab-cp__mini { font-size: 0.72rem; font-weight: 700; color: var( --wp--preset--color--ab-blue, #1c6cb0 ); white-space: nowrap; margin-top: 0.2rem; }
.ab-cp__impact { font-weight: 600; color: var( --wp--preset--color--ab-blue, #1c6cb0 ); margin: 0; font-size: 0.9rem; }
.ab-cp__blurb { color: var( --wp--preset--color--ab-muted, #5b6b7a ); font-size: 0.86rem; margin: 0; min-height: 2.4rem; }

.ab-cp__field-label { display: block; font-size: 0.72rem; font-weight: 700; color: var( --wp--preset--color--ab-muted, #5b6b7a ); margin-bottom: 0.3rem; }
.ab-cp__where { margin: 0.15rem 0; }

/* Amount presets: a 5-up grid; "Other" reveals the custom input on its own row. */
.ab-cp__amounts { display: grid; grid-template-columns: repeat( 5, 1fr ); gap: 5px; margin: 0.15rem 0; }
.ab-cp__amount { padding: 0.5rem 0.15rem; font-size: 0.76rem; border-radius: 8px; }
.ab-cp__amount.is-selected { background: var( --wp--preset--color--ab-blue, #1c6cb0 ); border-color: var( --wp--preset--color--ab-blue, #1c6cb0 ); color: #fff; }
.ab-cp__custom-wrap { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.3rem; border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); border-radius: 8px; padding: 0.1rem 0.55rem; margin-top: 2px; }
.ab-cp__custom-wrap[hidden] { display: none; }
.ab-cp__custom-prefix { color: var( --wp--preset--color--ab-muted, #5b6b7a ); font-weight: 700; }
.ab-cp__custom-input { border: 0; padding: 0.45rem 0; width: 100%; font: inherit; background: transparent; }
.ab-cp__custom-input:focus { outline: none; }
.ab-cp__custom-wrap:focus-within { outline: 2px solid var( --wp--preset--color--ab-blue, #0d72ba ); outline-offset: 2px; }

/* Frequency segmented control — uppercase to match the design. */
.ab-cp__freq-opt { text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.72rem; }

/* Amount preview + quantity row */
.ab-cp__row { display: flex; gap: 8px; margin-top: 0.15rem; }
.ab-cp__amountview { flex: 1; height: 2.5rem; border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); border-radius: 8px; display: flex; align-items: center; padding: 0 0.7rem; font-weight: 800; color: var( --wp--preset--color--ab-navy, #0c2e4e ); background: #fff; }
.ab-cp__unit { font-weight: 600; color: var( --wp--preset--color--ab-muted, #5b6b7a ); margin-left: 2px; }
.ab-cp__qty { height: 2.5rem; border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); border-radius: 8px; display: flex; align-items: center; overflow: hidden; background: #fff; align-self: auto; gap: 0; }
.ab-cp__qty .ab-cp__step { width: 2rem; height: 100%; border: 0; background: #fff; font-size: 1.1rem; border-radius: 0; }
.ab-cp__qty .ab-cp__qty-value { min-width: 1.6rem; text-align: center; font-weight: 700; font-size: 0.95rem; }

/* Zakat opt-in box */
.ab-cp__zakat { border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); background: var( --wp--preset--color--ab-surface, #f7f8fa ); border-radius: 8px; padding: 0.5rem 0.6rem; font-size: 0.82rem; margin-top: 0.15rem; }
.ab-cp__zakat strong { font-weight: 700; color: var( --wp--preset--color--ab-navy, #0c2e4e ); }

/* Add + learn */
.ab-cp__add { margin-top: 0.35rem; }
.ab-cp__learn { display: block; text-align: center; margin-top: 0.5rem; color: var( --wp--preset--color--ab-blue, #1c6cb0 ); font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.ab-cp__learn:hover { text-decoration: underline; }

/* ---- "Your Donations" cart card (head + items + summary body) ---- */
.ab-bk__summary {
	background: #fff;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 18px;
	box-shadow: 0 10px 26px rgba( 28, 48, 61, 0.08 );
	overflow: hidden;
}
.ab-bk__summary-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1.15rem 1.15rem 0.9rem;
	border-bottom: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	background: linear-gradient( 180deg, #fff, #fbfdff );
}
.ab-bk__summary-title { font-size: 1.5rem; margin: 0; }
.ab-bk__gift-count { color: var( --wp--preset--color--ab-muted, #5b6b7a ); font-size: 0.75rem; white-space: nowrap; }

/* Items area */
.ab-bk__items { margin: 0; padding: 0; }

/* Summary body below the items */
.ab-bk__summary-body { padding: 0; border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); }

/* Cover / processing-fee box */
.ab-bk__cover { border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); background: var( --wp--preset--color--ab-surface, #f7f8fa ); border-radius: 10px; padding: 0.65rem 0.75rem; margin: 0.6rem 0; }
.ab-bk__cover-toggle { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8rem; font-weight: 700; color: var( --wp--preset--color--ab-ink, #1f2933 ); cursor: pointer; }
.ab-bk__cover-toggle input { margin-top: 0.1rem; width: 1rem; height: 1rem; accent-color: var( --wp--preset--color--ab-blue, #1c6cb0 ); }
.ab-bk__cover-help { display: block; margin: 0.35rem 0 0 1.5rem; color: var( --wp--preset--color--ab-muted, #5b6b7a ); font-size: 0.68rem; line-height: 1.4; }
.ab-bk__continue { width: 100%; height: 2.4rem; border: 0; background: transparent; color: var( --wp--preset--color--ab-blue, #1c6cb0 ); font-weight: 700; font-size: 0.8rem; cursor: pointer; margin-top: 0.4rem; }
.ab-bk__continue:hover { text-decoration: underline; }

/* Dedication box */
.ab-bk__dedicate { border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); background: #fffaf3; border-radius: 10px; padding: 0.6rem 0.7rem; margin: 0.5rem 0; }
.ab-bk__dedicate-toggle { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.82rem; line-height: 1.4; cursor: pointer; }
.ab-bk__dedicate-toggle input { margin-top: 0.15rem; accent-color: var( --wp--preset--color--ab-green, #1a6b58 ); }
.ab-bk__dedicate-body { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ab-bk__dedicate-body[hidden] { display: none; }
.ab-bk__dedicate-types { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 5px; }
.ab-bk__dedicate-type { border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); background: #fff; border-radius: 8px; padding: 0.45rem 0.2rem; font-size: 0.68rem; font-weight: 700; color: var( --wp--preset--color--ab-ink, #1f2933 ); cursor: pointer; }
.ab-bk__dedicate-type.is-active { border-color: var( --wp--preset--color--ab-green, #1a6b58 ); background: #eef8f3; color: var( --wp--preset--color--ab-green, #1a6b58 ); }
.ab-bk__dedicate-name { width: 100%; box-sizing: border-box; height: 2.3rem; border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee ); border-radius: 8px; padding: 0 0.6rem; font: inherit; }
.ab-bk__dedicate-help { font-size: 0.72rem; color: var( --wp--preset--color--ab-muted, #5b6b7a ); margin: 0; line-height: 1.4; }

/* ---- /donate/ two-column band: wide catalogue + fixed 380px cart (design width) ---- */
.ab-donate-cols {
	max-width: 1500px;
	margin-inline: auto;
	padding-inline: clamp( 16px, 4vw, 24px );
	gap: 24px;
	align-items: flex-start;
}
.ab-donate-cols > .wp-block-column:first-child {
	flex: 1 1 0;
	min-width: 0;
}
.ab-donate-cols > .wp-block-column:last-child {
	flex: 0 0 380px;
	max-width: 380px;
}
/* The catalogue fills its (already wide) column — drop its own max-width there. */
.ab-donate-cols .ab-cp { padding-block: 0; }
.ab-donate-cols .ab-cp__inner { max-width: none; padding-inline: 0; }
.ab-donate-cols .ab-bk__inner { padding-inline: 0; }

@media ( max-width: 980px ) {
	.ab-donate-cols > .wp-block-column {
		flex-basis: 100% !important;
		max-width: 100% !important;
	}
	/* Leave room so the fixed mobile bar never covers the rail's checkout button. */
	.ab-donate-cols {
		padding-bottom: 5rem;
	}
}

/* ==================================================================== *
 * UX pass (2026-09-25): checkout modal order recap, mobile sticky      *
 * checkout bar, and a small card-density tightening.                    *
 * ==================================================================== */

/* ---- Read-only order recap at the top of the checkout modal ---- */
.ab-bk__recap {
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
	border-radius: 12px;
	padding: 0.85rem 1rem;
	margin-bottom: 1.15rem;
}
.ab-bk__recap[hidden] { display: none; }
.ab-bk__recap-caption {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}
.ab-bk__recap-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.ab-bk__recap-items li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem; }
.ab-bk__recap-name { color: var( --wp--preset--color--ab-ink, #1f2933 ); }
.ab-bk__recap-amt { font-weight: 700; white-space: nowrap; color: var( --wp--preset--color--ab-navy, #0c2e4e ); }
.ab-bk__recap-line {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.85rem;
	margin-top: 0.45rem;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}
.ab-bk__recap-total {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	font-weight: 800;
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
}
.ab-bk__recap-ded {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var( --wp--preset--color--ab-green, #1a6b58 );
}

/* ---- Mobile sticky checkout bar (hidden on desktop) ---- */
.ab-bk__bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem clamp( 16px, 4vw, 1.25rem );
	background: var( --wp--preset--color--ab-white, #fff );
	border-top: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	box-shadow: 0 -6px 20px rgba( 12, 46, 78, 0.12 );
}
.ab-bk__bar[hidden] { display: none; }
.ab-bk__bar-info { display: flex; flex-direction: column; line-height: 1.2; }
.ab-bk__bar-count { font-size: 0.72rem; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-bk__bar-total { font-size: 1.05rem; font-weight: 800; color: var( --wp--preset--color--ab-navy, #0c2e4e ); }
.ab-bk__bar-btn { width: auto; flex: 0 0 auto; margin: 0; padding-inline: 1.5rem; }

@media ( max-width: 980px ) {
	.ab-bk__bar:not([hidden]) { display: flex; }
	/* Keep the page end (footer) clear of the fixed bar while it shows. */
	body.ab-bk-has-bar { padding-bottom: 76px; }
}

/* ---- Empty "Your Donations" card (rail always visible in modal mode) ---- */
.ab-bk__items-empty {
	text-align: center;
	padding: 2.25rem 1rem;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}
.ab-bk__items-empty-icon { font-size: 2.2rem; line-height: 1; color: var( --wp--preset--color--ab-muted, #5b6b7a ); opacity: 0.55; }
.ab-bk__items-empty strong { display: block; margin-top: 0.5rem; color: var( --wp--preset--color--ab-ink, #1f2933 ); font-size: 0.95rem; }
.ab-bk__items-empty-text { margin-top: 0.35rem; font-size: 0.8rem; line-height: 1.45; }

/* Vertical rhythm for the summary rows now that they are direct card children. */
.ab-bk__summary-body > .ab-bk__total-row { margin: 0.45rem 0; }

/* ---- Card density: tighter rhythm, quieter "Learn more" ---- */
.ab-cp__body { gap: 0.4rem; }
.ab-cp__blurb { min-height: 2rem; }
.ab-cp__learn {
	margin-top: 0.3rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}
.ab-cp__learn:hover { color: var( --wp--preset--color--ab-blue, #1c6cb0 ); }

/* ======================================================================
 * Donation-page design pass (2026-10, al-basar-donation-page.html):
 * heading + search on one row, one labelled amount field per card, card
 * footer pinned to the bottom, neutral dedication box, disabled checkout
 * while the basket is empty.
 * ==================================================================== */

/* Head row: "Choose your gift" left, search right. */
.ab-cp__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 18px;
}
.ab-cp__head .ab-cp__heading { margin: 0; }
.ab-cp__head .ab-cp__search {
	position: relative;
	flex: 0 1 260px;
	max-width: 48%;
	margin-left: 0;
}
.ab-cp__search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY( -50% );
	color: #a2b0bb;
	pointer-events: none;
}
.ab-cp__head .ab-cp__search-input {
	height: 2.5rem;
	padding-left: 2.25rem;
	border-radius: 6px;
	font-size: 0.82rem;
	box-shadow: 0 1px 6px rgba( 13, 53, 81, 0.045 );
}

/* Cards: soft shadow + hover lift. */
.ab-cp__card {
	border-color: #e7edf2;
	border-radius: 11px;
	box-shadow: 0 8px 28px rgba( 18, 52, 82, 0.065 );
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ab-cp__card:hover {
	transform: translateY( -2px );
	box-shadow: 0 12px 29px rgba( 18, 52, 82, 0.1 );
}

/* The one amount field. */
.ab-cp__amount-field { margin-top: 0.1rem; }
.ab-cp__amount-input {
	width: 100%;
	box-sizing: border-box;
	height: 2.4rem;
	border: 1px solid var( --wp--preset--color--ab-line, #e3e8ee );
	border-radius: 6px;
	padding: 0 0.7rem;
	background: #fff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
}
.ab-cp__amount-input::placeholder { font-weight: 500; color: var( --wp--preset--color--ab-muted, #5b6b7a ); }
.ab-cp__amount-input:focus-visible {
	outline: 2px solid var( --wp--preset--color--ab-blue, #1c6cb0 );
	outline-offset: 1px;
}
.ab-cp__freq { margin-bottom: 0.15rem; }

/* Footer: Zakat box + button sit at the bottom of every card, so they line up. */
.ab-cp__foot {
	margin-top: auto;
	padding-top: 0.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}
.ab-cp__foot .ab-cp__zakat { margin: 0; }
.ab-cp__foot .ab-cp__add { margin-top: 0; min-height: 2.5rem; border-radius: 6px; }

/* No search results. */
.ab-cp__noresults {
	grid-column: 1 / -1;
	margin: 0;
	padding: 3rem 0.75rem;
	border: 1px dashed #cbdce7;
	border-radius: 10px;
	text-align: center;
	color: var( --wp--preset--color--ab-muted, #5b6b7a );
}
.ab-cp__noresults[hidden] { display: none; }
.ab-cp__noresults strong {
	display: block;
	margin-bottom: 0.3rem;
	color: var( --wp--preset--color--ab-navy, #0c2e4e );
}

/* Basket: the dedication box matches the cover-fee box (design). */
.ab-bk__dedicate {
	background: var( --wp--preset--color--ab-surface, #f7f8fa );
	font-weight: 400;
}
.ab-bk__dedicate-toggle { font-size: 0.8rem; color: var( --wp--preset--color--ab-ink, #1f2933 ); }
.ab-bk__dedicate-toggle small { color: var( --wp--preset--color--ab-muted, #5b6b7a ); font-size: 0.72rem; }
.ab-bk__cover-help { display: block; }

/* Nothing in the basket yet: the checkout button reads as unavailable. */
.ab-bk__review:disabled {
	opacity: 0.58;
	cursor: not-allowed;
}

@media ( max-width: 560px ) {
	.ab-cp__head { flex-direction: column; align-items: stretch; }
	.ab-cp__head .ab-cp__search { flex-basis: auto; max-width: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	.ab-cp__card,
	.ab-cp__card:hover { transition: none; transform: none; }
}
