/**
 * Donation card — matches the approved Open the Door design.
 */

.hfh-dc {
	--hfh-dc-blue: #4a90c2;
	--hfh-dc-blue-dark: #2f6f9e;
	--hfh-dc-tint: #e8f3fa;
	--hfh-dc-border: #8fbcd9;
	--hfh-dc-ink: #3f3f3f;
	box-sizing: border-box;
	width: 100%;
	max-width: 404px;
	margin: 0 auto;
	padding: 22px;
	background: #fff;
	border: 1.5px solid var(--hfh-dc-border);
	border-radius: 10px;
	text-align: left;
	color: var(--hfh-dc-ink);
	font-family: inherit;
}

.hfh-dc *,
.hfh-dc *::before,
.hfh-dc *::after {
	box-sizing: border-box;
}

.hfh-dc__tabs {
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
}

.hfh-dc__tab {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 12px;
	border: 1.5px solid #d7dde2;
	border-radius: 9px;
	background: #fff;
	color: #6b7378;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hfh-dc__tab.is-active {
	background: var(--hfh-dc-tint);
	border-color: var(--hfh-dc-border);
	color: var(--hfh-dc-blue-dark);
}

.hfh-dc__tab-heart {
	color: #e0342b;
	font-size: 1.05em;
	line-height: 1;
}

.hfh-dc__tab.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.hfh-dc__note {
	margin: -8px 0 16px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #8a5a00;
	background: #fff7e6;
	border: 1px solid #f0d9a8;
	border-radius: 6px;
	padding: 8px 10px;
}

.hfh-dc__title {
	margin: 0 0 18px;
	font-size: 1.06rem;
	font-weight: 500;
	line-height: 1.4;
	color: #555;
	text-align: center;
}

.hfh-dc__options {
	border: 1px solid #e4e8eb;
	border-radius: 9px;
	overflow: hidden;
	margin-bottom: 18px;
	background: #fff;
}

.hfh-dc__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 13px 15px;
	border: 0;
	border-top: 1px solid #e4e8eb;
	border-radius: 0;
	background: #fff;
	text-align: left;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.hfh-dc__option:first-child {
	border-top: 0;
}

.hfh-dc__option:hover {
	background: #f7fbfd;
}

.hfh-dc__option.is-selected {
	background: var(--hfh-dc-tint);
	box-shadow: inset 0 0 0 1.5px var(--hfh-dc-blue);
}

.hfh-dc__option-main {
	display: block;
}

.hfh-dc__amount {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: #333;
	line-height: 1.3;
}

.hfh-dc__desc {
	display: block;
	margin-top: 3px;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.4;
	color: #555;
}

.hfh-dc__desc span {
	margin-right: 2px;
}

.hfh-dc__check {
	flex: 0 0 auto;
	color: var(--hfh-dc-blue);
	font-size: 1rem;
	font-weight: 700;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.hfh-dc__option.is-selected .hfh-dc__check {
	opacity: 1;
}

.hfh-dc__option--other {
	display: block;
	padding: 0;
	cursor: default;
}

.hfh-dc__other-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 13px 15px;
	border: 0;
	background: transparent;
	text-align: left;
	font-family: inherit;
	cursor: pointer;
}

.hfh-dc__other-field {
	padding: 0 15px 14px;
}

.hfh-dc__other-field input {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #c9d2d8;
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
}

.hfh-dc__other-field input:focus {
	outline: 2px solid var(--hfh-dc-blue);
	outline-offset: 1px;
	border-color: var(--hfh-dc-blue);
}

.hfh-dc__submit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 15px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--hfh-dc-blue);
	color: #fff;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.hfh-dc__submit:hover,
.hfh-dc__submit:focus-visible {
	background: var(--hfh-dc-blue-dark);
	color: #fff;
}

.hfh-dc__submit:active {
	transform: translateY(1px);
}

/* Lipa na M-PESA panel */
.hfh-dc__mpesa {
	margin-top: 20px;
	border: 3px solid #2f6b34;
	background: #fff;
	overflow: hidden;
}

.hfh-dc__mpesa-head {
	margin: 0;
	padding: 10px 12px;
	background: #2f6b34;
	color: #fff;
	text-align: center;
}

.hfh-dc__mpesa-brand {
	display: block;
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hfh-dc__mpesa-logo {
	white-space: nowrap;
}

.hfh-dc__mpesa-body {
	padding: 14px 16px 16px;
}

.hfh-dc__mpesa-label {
	margin: 0 0 6px;
	color: #d92b1f;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.hfh-dc__mpesa-digits {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0 0 14px;
}

.hfh-dc__mpesa-digits span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 6px 4px;
	border: 1px solid #e2e2e2;
	border-radius: 2px;
	background: #fff;
	color: #111;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.hfh-dc__mpesa-account {
	margin: 0 0 14px;
	padding: 6px 10px;
	border: 1px solid #e2e2e2;
	background: #fff;
	color: #111;
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.hfh-dc__mpesa-amount {
	margin: 0 0 14px;
	text-align: center;
	font-size: 0.95rem;
	color: #333;
}

.hfh-dc__mpesa-amount strong {
	font-weight: 700;
}

.hfh-dc__mpesa-steps {
	margin: 0 0 12px;
	padding-left: 20px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #555;
	text-align: left;
}

.hfh-dc__mpesa-steps li {
	margin-bottom: 5px;
}

.hfh-dc__mpesa-alt-wrap {
	margin: 0;
	text-align: center;
}

.hfh-dc__mpesa-alt {
	padding: 0;
	border: 0;
	background: none;
	color: var(--hfh-dc-blue-dark);
	font-family: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.hfh-dc__checkout {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #e4e8eb;
}

.hfh-dc__checkout-title {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #333;
}

.hfh-dc__give .give-form-wrap {
	margin: 0;
}

.hfh-dc--fallback {
	padding: 18px;
	border-style: dashed;
	text-align: center;
}

@media (max-width: 420px) {
	.hfh-dc {
		padding: 16px;
	}

	.hfh-dc__tabs {
		gap: 10px;
	}

	.hfh-dc__tab {
		font-size: 0.9rem;
		padding: 10px 8px;
	}

	.hfh-dc__mpesa-brand {
		font-size: 1.15rem;
	}

	.hfh-dc__mpesa-digits {
		gap: 5px;
	}

	.hfh-dc__mpesa-digits span {
		min-width: 30px;
		font-size: 1.5rem;
	}

	.hfh-dc__mpesa-account {
		font-size: 1.35rem;
	}
}
