.chirp-payment-plans {
	margin: 1.5em 0;
	padding: 18px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.chirp-payment-plans__title {
	margin-top: 0;
}

.chirp-payment-plan {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 10px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

.chirp-payment-plan:last-of-type {
	border-bottom: 0;
}

.chirp-payment-plan input {
	margin-top: 4px;
	flex: 0 0 auto;
}

.chirp-payment-plan__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.chirp-payment-plan__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}


.chirp-payment-plan__details {
	display: none;
	flex-direction: column;
	gap: 6px;
}

.chirp-payment-plan.is-selected .chirp-payment-plan__details {
	display: flex;
}


.chirp-direct-discount-note {
	display: block;
	margin-top: 8px;
	font-weight: 600;
}

.chirp-direct-discount-note .woocommerce-Price-amount,
.chirp-direct-discount-note .woocommerce-Price-currencySymbol,
.chirp-direct-discount-note .chirp-money,
.chirp-direct-discount-note .chirp-money .woocommerce-Price-currencySymbol,
.chirp-direct-discount-note .chirp-money__number {
	color: #ffdead !important;
}

.chirp-payment-plan__details small,
.chirp-payment-plans__note {
	opacity: .75;
}

.chirp-payment-plan__details small {
	display: block;
	font-size: .92em;
	font-weight: 600;
	opacity: 1;
}

.chirp-payment-plan__amount {
	display: inline-block;
	font-size: 1.15em;
	font-weight: 600;
}

.chirp-payment-plans__note {
	line-height: 1.55;
}

.chirp-balance-payment {
	max-width: 560px;
	margin: 30px auto;
	padding: 25px;
	border: 1px solid #ddd;
}

.chirp-balance-payment input {
	width: 100%;
	box-sizing: border-box;
}

.chirp-balance-payment .button {
	margin-top: 8px;
}

.chirp-payment-amount-note {
	display: inline-block;
	margin-top: 6px;
}

/* Hide native WooCommerce subtotal/current-payment total rows because Chirp
 * renders the final payment summary after the gateway choices. */
body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .fee {
	display: none !important;
}

/* Every currency amount generated by Chirp on the checkout is NavajoWhite. */
#chirp-payment-plans .woocommerce-Price-amount,
#chirp-payment-plans .woocommerce-Price-currencySymbol,
.chirp-payment-amount-note .woocommerce-Price-amount,
.chirp-payment-amount-note .woocommerce-Price-currencySymbol {
	color: #ffdead !important;
}

#chirp-payment-plans .chirp-payment-plan__details small {
	color: inherit;
}

.chirp-payment-summary {
	margin: 18px 0 0;
	padding: 18px 20px;
	background: #fff;
	border-radius: 4px;
	color: #111;
}

.chirp-payment-summary__total-row,
.chirp-payment-summary__now-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 8px 0;
	color: #111;
}

.chirp-payment-summary__total-row {
	font-size: 1.12em;
	font-weight: 700;
}

.chirp-payment-summary__now-row {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid #ddd;
	font-size: 1.05em;
}

.chirp-payment-summary__total-row > span,
.chirp-payment-summary__total-row > strong,
.chirp-payment-summary__now-row > span,
.chirp-payment-summary__now-row > strong {
	color: #111 !important;
}

.chirp-payment-summary .woocommerce-Price-amount,
.chirp-payment-summary .woocommerce-Price-currencySymbol,
.chirp-payment-summary .chirp-money,
.chirp-payment-summary .chirp-money .woocommerce-Price-currencySymbol,
.chirp-payment-summary .chirp-money__number {
	color: #111 !important;
}

/* Currency values generated by Chirp remain NavajoWhite everywhere else. */
#chirp-payment-plans .woocommerce-Price-amount,
#chirp-payment-plans .woocommerce-Price-currencySymbol,
#chirp-payment-plans .chirp-money,
#chirp-payment-plans .chirp-money .woocommerce-Price-currencySymbol,
#chirp-payment-plans .chirp-money__number {
	color: #ffdead !important;
}

.chirp-direct-confirmation-note {
	display: block;
	margin-top: 8px;
	font-weight: 600;
}

.chirp-direct-confirmation-note strong {
	color: #ffdead !important;
}


/* Rs 999 Direct Bank Transfer confirmation payment page. WooCommerce's
 * generic form-pay template normally renders a Product / Qty / Totals table.
 * This child order contains no product line items, so use a dedicated three-line
 * order summary instead. */
.chirp-direct-confirmation-order-pay #order_review > table.shop_table:first-child {
	display: none !important;
}

.chirp-direct-confirmation-order-pay .chirp-direct-confirmation-card {
	margin: 0 0 24px;
	padding: 0;
}

.chirp-direct-confirmation-order-pay .chirp-direct-confirmation-amount-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 222, 173, 0.2);
}

.chirp-direct-confirmation-order-pay .chirp-direct-confirmation-amount-row:first-child {
	border-top: 1px solid rgba(255, 222, 173, 0.2);
}

.chirp-direct-confirmation-order-pay .chirp-direct-confirmation-amount-row strong,
.chirp-direct-confirmation-order-pay .chirp-direct-confirmation-amount-row .woocommerce-Price-amount,
.chirp-direct-confirmation-order-pay .chirp-direct-confirmation-amount-row .woocommerce-Price-currencySymbol {
	color: #ffdead !important;
	font-size: 1.05em;
	white-space: nowrap;
}

.chirp-direct-confirmation-order-pay .chirp-direct-confirmation-now {
	border-bottom: 0;
	font-weight: 600;
}


/*
 * Temporary Rs 999 confirmation payment: the Razorpay receipt/thank-you page
 * normally exposes WooCommerce's order number/date/total before payment. Hide
 * that customer-facing order overview only for this special child order.
 * The WC order still exists internally for Razorpay verification; its number
 * is not shown until the payment result is known.
 */
.chirp-direct-confirmation-receipt .woocommerce-order-overview,
.chirp-direct-confirmation-receipt .woocommerce-order-details,
.chirp-direct-confirmation-receipt .woocommerce-customer-details {
	display: none !important;
}

.chirp-direct-confirmation-receipt-message {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.55;
}

.chirp-direct-confirmation-receipt-message strong {
	font-size: 24px;
	font-weight: 600;
	color: #ffdead !important;
}

.chirp-direct-confirmation-receipt-message span {
	display: block;
}


/* Recovery message shown after a customer cancels the Rs 999 confirmation payment. */
.chirp-direct-confirmation-cancelled {
	max-width: 760px;
	margin: 40px auto;
	padding: 36px 30px;
	text-align: center;
}

.chirp-direct-confirmation-cancelled__title {
	font-size: 28px;
	line-height: 1.25;
	font-weight: 600;
	color: #ffdead !important;
}

.chirp-direct-confirmation-cancelled__text {
	margin-top: 12px;
	font-size: 18px;
	line-height: 1.5;
	color: inherit;
}

.chirp-direct-confirmation-cancelled__button {
	display: inline-block;
	margin-top: 22px;
}

/* The normal empty-cart template prints a Return to shop link after
 * woocommerce_cart_is_empty. Hide it only when our cancellation recovery
 * message is present. */
.chirp-direct-confirmation-cancelled ~ .return-to-shop {
	display: none !important;
}
