/* PHWO donation flow — front-end
   Colours come from the theme's CSS custom properties with hard fallbacks,
   so this stylesheet works even before the PHWO theme is active. */

.phwo-form,
.phwo-instructions,
.phwo-thankyou,
.phwo-donor-login,
.phwo-donor-dashboard,
.phwo-soon {
	--phwo-primary: var(--phwo-color-primary, #0D5C63);
	--phwo-accent: var(--phwo-color-accent, #E8A33D);
	--phwo-support: var(--phwo-color-support, #2A9D8F);
	--phwo-ink: var(--phwo-color-ink, #14262B);
	--phwo-mist: var(--phwo-color-mist, #F5F8F8);
	--phwo-line: #dde5e6;
	max-width: var(--phwo-text, 760px);
	margin: 0 auto;
	color: var(--phwo-ink);
	font-size: 16px;
	line-height: 1.6;
}

/* ---------- Form ---------- */

.phwo-form .phwo-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.phwo-step {
	border: 1px solid var(--phwo-line);
	border-radius: 12px;
	padding: 22px 24px 26px;
	margin: 0 0 20px;
	background: #fff;
}

.phwo-step legend {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 700;
	padding: 0 8px;
	color: var(--phwo-primary);
}

.phwo-step legend span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--phwo-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	flex: none;
}

.phwo-field {
	display: block;
	margin: 0 0 16px;
}

.phwo-label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #46565c;
}

.phwo-label em {
	color: #c0392b;
	font-style: normal;
}

.phwo-form input[type="text"],
.phwo-form input[type="email"],
.phwo-form input[type="tel"],
.phwo-form input[type="number"],
.phwo-form select,
.phwo-form textarea,
.phwo-instructions input[type="text"],
.phwo-donor-login input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--phwo-line);
	border-radius: 8px;
	font-size: 16px;
	font-family: inherit;
	background: #fff;
	color: var(--phwo-ink);
}

.phwo-form input:focus,
.phwo-form select:focus,
.phwo-form textarea:focus,
.phwo-donor-login input:focus {
	outline: 3px solid rgba(13, 92, 99, .18);
	border-color: var(--phwo-primary);
}

.phwo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 16px;
}

/* Frequency chips */

.phwo-freq {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.phwo-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.phwo-chip span {
	display: inline-block;
	padding: 9px 18px;
	border: 1.5px solid var(--phwo-line);
	border-radius: 999px;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 600;
	transition: .15s;
}

.phwo-chip input:checked + span {
	background: var(--phwo-primary);
	border-color: var(--phwo-primary);
	color: #fff;
}

.phwo-chip input:focus-visible + span {
	outline: 3px solid rgba(13, 92, 99, .3);
}

/* Amount buttons */

.phwo-amounts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}

.phwo-amount {
	padding: 14px 8px;
	border: 1.5px solid var(--phwo-line);
	background: #fff;
	border-radius: 10px;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--phwo-ink);
	cursor: pointer;
	transition: .15s;
	font-family: inherit;
}

.phwo-amount:hover {
	border-color: var(--phwo-support);
}

.phwo-amount.is-active {
	background: var(--phwo-support);
	border-color: var(--phwo-support);
	color: #fff;
}

.phwo-amount-input {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--phwo-line);
	border-radius: 8px;
	overflow: hidden;
}

.phwo-amount-input .phwo-currency {
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: var(--phwo-mist);
	font-weight: 700;
	color: #46565c;
	border-right: 1px solid var(--phwo-line);
}

.phwo-amount-input input {
	border: 0 !important;
	border-radius: 0 !important;
	font-size: 20px !important;
	font-weight: 700;
}

/* Payment method picker */

.phwo-methods {
	display: grid;
	gap: 10px;
}

.phwo-method-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--phwo-line);
	border-radius: 10px;
	cursor: pointer;
	transition: .15s;
	background: #fff;
}

.phwo-method-option:hover {
	border-color: var(--phwo-support);
}

.phwo-method-option:has(input:checked) {
	border-color: var(--phwo-primary);
	background: rgba(13, 92, 99, .04);
}

.phwo-method-option input {
	margin-top: 4px;
	flex: none;
	accent-color: var(--phwo-primary);
}

.phwo-method-body strong {
	display: block;
	font-size: 15.5px;
}

.phwo-method-body small {
	display: block;
	color: #6b7a80;
	font-size: 13.5px;
	margin-top: 2px;
}

.phwo-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14.5px;
	margin: 4px 0 12px;
	cursor: pointer;
}

.phwo-check input {
	margin-top: 3px;
	accent-color: var(--phwo-primary);
}

.phwo-privacy,
.phwo-reassure {
	font-size: 13.5px;
	color: #6b7a80;
	line-height: 1.6;
}

.phwo-reassure {
	text-align: center;
	margin-top: 14px;
}

/* Buttons */

.phwo-submit,
.phwo-btn {
	display: inline-block;
	width: 100%;
	padding: 16px 24px;
	background: var(--phwo-accent);
	color: var(--phwo-ink);
	border: 0;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	font-family: inherit;
	transition: .15s;
}

.phwo-submit:hover,
.phwo-btn:hover {
	filter: brightness(1.06);
	color: var(--phwo-ink);
}

.phwo-btn {
	width: auto;
	padding: 13px 26px;
	font-size: 15.5px;
}

/* ---------- Notices ---------- */

.phwo-notice {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.6;
}

.phwo-notice-error {
	background: #fdecea;
	border-left: 4px solid #c0392b;
	color: #7c2018;
}

.phwo-notice-success {
	background: #e6f6f2;
	border-left: 4px solid var(--phwo-support);
	color: #10635a;
}

/* ---------- Coming soon ---------- */

.phwo-soon {
	background: var(--phwo-mist);
	border: 1px solid var(--phwo-line);
	border-radius: 14px;
	padding: 34px 32px;
	text-align: center;
}

.phwo-soon h2 {
	margin-top: 0;
	color: var(--phwo-primary);
}

.phwo-soon-contact {
	font-weight: 700;
	font-size: 17px;
}

.phwo-soon-contact a {
	color: var(--phwo-primary);
}

.phwo-soon-alt {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--phwo-line);
	font-size: 15px;
}

/* ---------- Instructions ---------- */

.phwo-summary {
	background: var(--phwo-primary);
	color: #fff;
	border-radius: 12px;
	padding: 24px 26px;
	margin-bottom: 22px;
}

.phwo-summary-amount span {
	display: block;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .07em;
	opacity: .8;
}

.phwo-summary-amount strong {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

.phwo-summary dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 18px;
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .22);
	font-size: 14.5px;
}

.phwo-summary dt {
	opacity: .8;
}

.phwo-summary dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.phwo-summary code {
	background: rgba(255, 255, 255, .16);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 14px;
}

.phwo-pay-block {
	background: #fff;
	border: 1px solid var(--phwo-line);
	border-radius: 12px;
	padding: 24px 26px;
	margin-bottom: 20px;
}

.phwo-pay-block h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	margin: 0 0 6px;
	color: var(--phwo-primary);
}

.phwo-pay-block h2 span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--phwo-primary);
	color: #fff;
	font-size: 13px;
	flex: none;
}

.phwo-pay-method-name {
	font-weight: 700;
	font-size: 16px;
	margin: 0 0 14px;
}

.phwo-pay-details {
	border: 1px solid var(--phwo-line);
	border-radius: 10px;
	overflow: hidden;
}

.phwo-pay-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--phwo-line);
	flex-wrap: wrap;
}

.phwo-pay-row:last-child {
	border-bottom: 0;
}

.phwo-pay-row:nth-child(odd) {
	background: var(--phwo-mist);
}

.phwo-pay-label {
	font-size: 13.5px;
	color: #6b7a80;
}

.phwo-pay-value {
	font-weight: 700;
	font-size: 15.5px;
	display: flex;
	align-items: center;
	gap: 10px;
	word-break: break-all;
	text-align: right;
}

.phwo-copy {
	background: var(--phwo-mist);
	border: 1px solid var(--phwo-line);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	cursor: pointer;
	color: var(--phwo-primary);
	flex: none;
	font-family: inherit;
}

.phwo-copy.is-copied {
	background: var(--phwo-support);
	border-color: var(--phwo-support);
	color: #fff;
}

.phwo-pay-qr {
	text-align: center;
}

.phwo-qr-image {
	max-width: 260px;
	height: auto;
	border: 1px solid var(--phwo-line);
	border-radius: 10px;
	padding: 10px;
	background: #fff;
}

.phwo-pay-note {
	margin-top: 14px;
	font-size: 14.5px;
	color: #46565c;
}

.phwo-pay-tip {
	margin-top: 16px;
	background: #fff8ec;
	border-left: 4px solid var(--phwo-accent);
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14.5px;
}

.phwo-pay-tip code {
	background: rgba(0, 0, 0, .06);
	padding: 2px 7px;
	border-radius: 4px;
	font-weight: 700;
}

.phwo-proof-form small {
	display: block;
	color: #6b7a80;
	font-size: 13px;
	margin-top: 5px;
}

.phwo-help {
	text-align: center;
	font-size: 14.5px;
	color: #6b7a80;
}

/* ---------- Status pills ---------- */

.phwo-status {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	background: #e8ecec;
	color: #46565c;
}

.phwo-status-confirmed {
	background: #d6f2ee;
	color: #10635a;
}

.phwo-status-awaiting_verification {
	background: #fdf0da;
	color: #8a5a11;
}

.phwo-status-rejected {
	background: #fdecea;
	color: #7c2018;
}

/* ---------- Thank you ---------- */

.phwo-thankyou {
	text-align: center;
	padding: 40px 24px;
}

.phwo-thankyou-mark {
	width: 68px;
	height: 68px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--phwo-support);
	color: #fff;
	font-size: 34px;
	line-height: 68px;
}

.phwo-ref code {
	background: var(--phwo-mist);
	padding: 3px 10px;
	border-radius: 5px;
	font-weight: 700;
}

/* ---------- Donor dashboard ---------- */

.phwo-donor-head {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.phwo-donor-head > div {
	background: var(--phwo-primary);
	color: #fff;
	border-radius: 12px;
	padding: 20px 22px;
}

.phwo-donor-head span {
	display: block;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .82;
	margin-bottom: 4px;
}

.phwo-donor-head strong {
	font-size: 25px;
}

.phwo-table-wrap {
	overflow-x: auto;
}

.phwo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.phwo-table th,
.phwo-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--phwo-line);
	text-align: left;
}

.phwo-table th {
	background: var(--phwo-mist);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7a80;
}

/* ---------- Progress bar ---------- */

.phwo-progress {
	margin: 20px 0;
}

.phwo-progress-bar {
	height: 12px;
	background: #e4ebeb;
	border-radius: 999px;
	overflow: hidden;
}

.phwo-progress-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--phwo-support), var(--phwo-accent));
	border-radius: 999px;
	transition: width .6s ease;
}

.phwo-progress-stats {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.phwo-progress-stats strong {
	display: block;
	font-size: 19px;
	font-weight: 700;
	color: var(--phwo-primary);
}

.phwo-progress-stats span {
	font-size: 13px;
	color: #6b7a80;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.phwo-progress-note {
	font-size: 12.5px;
	color: #8a979c;
	margin-top: 8px;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {

	.phwo-step {
		padding: 18px 16px 20px;
	}

	.phwo-summary,
	.phwo-pay-block {
		padding: 20px 18px;
	}

	.phwo-summary dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.phwo-summary dd {
		text-align: left;
		margin-bottom: 8px;
	}

	.phwo-pay-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.phwo-pay-value {
		text-align: left;
	}

	.phwo-table thead {
		display: none;
	}

	.phwo-table tr {
		display: block;
		border: 1px solid var(--phwo-line);
		border-radius: 10px;
		margin-bottom: 12px;
		padding: 6px 12px;
	}

	.phwo-table td {
		display: flex;
		justify-content: space-between;
		gap: 14px;
		border-bottom: 1px solid #eef2f2;
		padding: 9px 0;
	}

	.phwo-table td:last-child {
		border-bottom: 0;
	}

	.phwo-table td::before {
		content: attr(data-label);
		font-size: 12.5px;
		color: #6b7a80;
		font-weight: 600;
	}
}


/* The first question on the page: money or goods. */
.phwo-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.phwo-kind { cursor: pointer; }
.phwo-kind input { position: absolute; opacity: 0; width: 0; height: 0; }
.phwo-kind-card { display: grid; gap: .25rem; padding: 1.1rem 1.2rem; border: 2px solid #dbe5e6; border-radius: 16px; background: #fff; transition: border-color .12s, box-shadow .12s, transform .12s; height: 100%; }
.phwo-kind:hover .phwo-kind-card { border-color: #0D5C63; }
.phwo-kind input:focus-visible + .phwo-kind-card { outline: 3px solid rgba(13,92,99,.35); outline-offset: 2px; }
.phwo-kind.is-on .phwo-kind-card, .phwo-kind input:checked + .phwo-kind-card { border-color: #0D5C63; box-shadow: 0 8px 22px rgba(13,92,99,.14); transform: translateY(-1px); }
.phwo-kind-ico { font-size: 1.7rem; line-height: 1; }
.phwo-kind-card strong { font-size: 1.05rem; color: #14262B; }
.phwo-kind-card small { color: #5f6f74; font-size: .86rem; line-height: 1.45; }
.phwo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 640px) { .phwo-grid-2 { grid-template-columns: 1fr; } }

/* The custom amount is the point of the row, not an afterthought. */
.phwo-amount-custom { font-weight: 600; border-style: dashed; }
.phwo-amount-custom.is-active { border-style: solid; }


/* Amount chips (26 Sep 2026): the list now starts at Rs 500, and "Rs 1,000,000"
   was breaking onto two lines. A slightly wider minimum keeps every figure on
   one line; corners follow the site's 5px rule rather than pills. */
.phwo-amounts {
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.phwo-amount {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	border-radius: 5px;
}

.phwo-freq .phwo-chip span,
.phwo-freq .phwo-chip {
	border-radius: 5px;
}

@media (max-width: 480px) {
	.phwo-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.phwo-amount { font-size: 15px; }
}
