/* Layout only; typography/colors inherit from theme. */

.nasimco-donation-wizard {
	max-width: 52rem;
	margin-left: auto;
	margin-right: auto;
}

.nasimco-dn-sticky {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0;
	margin-bottom: 1rem;
	border-bottom: 1px solid rgba(127, 127, 127, 0.35);
	background: inherit;
}

.nasimco-dn-heading {
	margin: 0 0 1rem;
	font-size: inherit;
	font-weight: inherit;
}

.nasimco-dn-heading--region {
	text-align: center;
	margin-bottom: 1.75rem;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 600;
	line-height: 1.3;
}

.nasimco-dn-region-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	align-items: stretch;
}

/* Keep two region cards side-by-side on small screens; tighten spacing only */
@media (max-width: 540px) {
	.nasimco-dn-region-grid {
		gap: 0.75rem;
	}

	.nasimco-donation-wizard .nasimco-dn-region-card {
		min-height: 9rem;
		padding: 1.25rem 0.65rem 1.15rem;
		gap: 1rem;
	}

	.nasimco-dn-region-card__flag {
		font-size: 2.75rem;
		width: 3.75rem;
		height: 3.75rem;
	}

	.nasimco-dn-region-card__title {
		font-size: 0.95rem;
	}
}

.nasimco-donation-wizard .nasimco-dn-region-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.35rem;
	width: 100%;
	min-height: 11rem;
	margin: 0;
	padding: 2rem 1.25rem 1.75rem;
	border: 1px solid #e0e0e0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nasimco-donation-wizard .nasimco-dn-region-card:hover {
	border-color: #c9a227;
	box-shadow: 0 6px 22px rgba(201, 162, 39, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.nasimco-donation-wizard .nasimco-dn-region-card:focus {
	outline: none;
}

.nasimco-donation-wizard .nasimco-dn-region-card:focus-visible {
	border-color: #c9a227;
	outline: 2px solid #c9a227;
	outline-offset: 3px;
	box-shadow: 0 6px 22px rgba(201, 162, 39, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nasimco-dn-region-card__flag {
	font-size: 3.25rem;
	line-height: 1;
	width: 4.5rem;
	height: 4.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.nasimco-dn-region-card__label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	max-width: 100%;
}

.nasimco-dn-region-card__line--inline {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.15rem;
	text-align: center;
}

.nasimco-dn-region-card__title {
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 500;
}

.nasimco-dn-region-card__arrow {
	font-size: 1.2rem;
	line-height: 1;
	opacity: 0.88;
}

.nasimco-dn-region-card__arrow--block {
	margin-top: 0.15rem;
}

.nasimco-dn-fund-grid {
	display: grid;
	align-items: stretch;
	gap: 1rem;
	margin-bottom: 1.5rem;
	width: 100%;
}

.nasimco-dn-fund-grid__item {
	display: flex;
	align-items: stretch;
	align-self: stretch;
	min-width: 0;
	min-height: 0;
}

.nasimco-dn-fund-grid__item .nasimco-dn-fund-pill {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 100%;
	box-sizing: border-box;
}

/* Tablet: at most 3 columns */
@media (min-width: 641px) and (max-width: 899px) {
	.nasimco-dn-fund-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Desktop: at most 4 columns */
@media (min-width: 900px) {
	.nasimco-dn-fund-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.nasimco-donation-wizard .nasimco-dn-fund-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	padding: 0.5rem;
	border: 2px solid rgba(127, 127, 127, 0.35);
	background: transparent;
	cursor: pointer;
	text-align: center;
	font: inherit;
	color: inherit;
	border-radius: 0.5rem;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover / focus: no fill — border only (selected state adds gold + shadow below) */
.nasimco-donation-wizard .nasimco-dn-fund-pill:hover:not(:disabled),
.nasimco-donation-wizard .nasimco-dn-fund-pill:focus-visible:not(:disabled) {
	background: transparent;
	border-color: rgba(100, 100, 100, 0.5);
	box-shadow: none;
}

.nasimco-donation-wizard .nasimco-dn-fund-pill:focus:not(:focus-visible):not(:disabled) {
	outline: none;
}

.nasimco-donation-wizard .nasimco-dn-fund-pill:focus-visible:not(:disabled) {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nasimco-donation-wizard .nasimco-dn-fund-pill.is-selected {
	background: transparent;
	border-color: #c9a227;
	box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), 0 1px 6px rgba(201, 162, 39, 0.2);
}

.nasimco-donation-wizard .nasimco-dn-fund-pill.is-selected:hover:not(:disabled),
.nasimco-donation-wizard .nasimco-dn-fund-pill.is-selected:focus-visible:not(:disabled) {
	background: transparent;
	border-color: #a8860f;
	box-shadow: 0 0 0 1px rgba(168, 134, 15, 0.45), 0 2px 8px rgba(201, 162, 39, 0.28);
}

.nasimco-dn-fund-pill__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(127, 127, 127, 0.12);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
	transition: background 0.15s ease;
}

.nasimco-dn-fund-pill__circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nasimco-dn-fund-pill__label {
	font-size: 0.875rem;
	line-height: 1.3;
}

.nasimco-dn-fund-pill__price {
	display: block;
	margin-top: 0.25rem;
	opacity: 0.85;
	font-weight: normal;
}

/* Mobile: one column list, row-style pills (must follow base .fund-pill rules) */
@media (max-width: 640px) {
	.nasimco-dn-fund-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.nasimco-donation-wizard .nasimco-dn-fund-pill {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		width: 100%;
		min-height: 3.75rem;
		padding: 0.65rem 1rem;
		gap: 1rem;
	}

	.nasimco-dn-fund-pill__circle {
		width: 3.25rem;
		height: 3.25rem;
		font-size: 1rem;
		flex-shrink: 0;
	}

	.nasimco-dn-fund-pill__label {
		flex: 1 1 auto;
		min-width: 0;
		text-align: left;
		align-self: center;
	}

	.nasimco-dn-fund-pill__price {
		display: block;
		margin-top: 0.2rem;
	}
}

.nasimco-dn-line-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.nasimco-dn-line {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.65rem 0.75rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid rgba(127, 127, 127, 0.2);
}

@media (max-width: 380px) {
	.nasimco-dn-line {
		flex-wrap: wrap;
	}

	.nasimco-dn-line__control {
		flex: 1 1 100%;
		justify-content: flex-end;
	}
}

.nasimco-dn-line__title {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	line-height: 1.3;
}

.nasimco-dn-line__control {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.nasimco-dn-line__input-shell {
	display: inline-flex;
	align-items: stretch;
	flex-direction: row;
	border: 1px solid rgba(127, 127, 127, 0.45);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	min-width: 7.5rem;
	max-width: 11rem;
}

.nasimco-donation-wizard .nasimco-dn-line__input-shell:focus-within {
	border-color: rgba(80, 80, 80, 0.65);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 2px rgba(127, 127, 127, 0.2);
}

.nasimco-dn-line__input {
	width: 5rem;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0.4rem 0.45rem 0.4rem 0.55rem;
	border: none;
	border-radius: 0;
	background: transparent;
	font: inherit;
	line-height: 1.3;
	box-sizing: border-box;
}

.nasimco-dn-line__input:focus {
	outline: none;
	box-shadow: none;
}

.nasimco-dn-line__suffix {
	display: flex;
	align-items: center;
	padding: 0 0.55rem 0 0.35rem;
	font-size: 0.75rem;
	line-height: 1.2;
	opacity: 0.75;
	white-space: nowrap;
	border-left: 1px solid rgba(127, 127, 127, 0.25);
	pointer-events: none;
	user-select: none;
}

.nasimco-dn-line__each {
	font-size: 0.75rem;
	line-height: 1.2;
	opacity: 0.8;
	white-space: nowrap;
	flex-shrink: 0;
}

.nasimco-dn-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem 1rem;
	margin-top: 0.75rem;
	width: 100%;
}

/* Secondary: back — compact ghost, start-aligned */
.nasimco-donation-wizard .nasimco-dn-nav--compact .nasimco-dn-back {
	flex: 0 0 auto;
	align-self: center;
	order: 0;
	min-height: 44px;
	margin: 0;
	padding: 0.35rem 0.85rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	background: transparent !important;
	border: 1px solid transparent;
	border-radius: 6px;
	color: inherit;
	box-shadow: none !important;
	opacity: 0.88;
}

.nasimco-donation-wizard .nasimco-dn-nav--compact .nasimco-dn-back:hover,
.nasimco-donation-wizard .nasimco-dn-nav--compact .nasimco-dn-back:focus-visible {
	opacity: 1;
	background: rgba(127, 127, 127, 0.1) !important;
	border-color: rgba(127, 127, 127, 0.25);
}

/* Primary: next / checkout — end-aligned, larger tap target */
.nasimco-donation-wizard .nasimco-dn-nav--compact .nasimco-dn-next {
	order: 1;
	margin-left: auto;
	flex: 1 1 auto;
	min-width: 0;
	max-width: min(100%, 18rem);
	min-height: 46px;
	padding: 0.55rem 1.2rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0.02em;
}

@media (min-width: 641px) {
	.nasimco-donation-wizard .nasimco-dn-nav--compact .nasimco-dn-next {
		flex: 0 1 auto;
		min-width: 11rem;
		max-width: min(100%, 24rem);
		min-height: 48px;
		padding: 0.7rem 2rem;
		font-size: 1.0625rem;
	}
}

.nasimco-dn-status--error {
	color: inherit;
	margin-top: 1rem;
}

.nasimco-dn-msg--error {
	padding: 1rem;
	border: 1px solid rgba(127, 127, 127, 0.4);
	margin-bottom: 1rem;
}
