.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__chevron {
	font-size: 1.25em;
	line-height: 1;
	font-weight: 400;
}

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

.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;
}


/* Product-page payment offer tabs. */
.chirp-product-offers {
	width: 100%;
	max-width: 100%;
	margin: 20px 0 26px;
	border: 1px solid #dc9813;
	border-radius: 8px;
	overflow: hidden;
	box-sizing: border-box;
	background: #555555;
	color: #ffdead;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.chirp-product-offers,
.chirp-product-offers * {
	box-sizing: border-box;
}

.chirp-product-offers__tabs {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #555555;
}

.chirp-product-offers__tab {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 70px;
	margin: 0 !important;
	padding: 13px 15px !important;
	border: 0 !important;
	border-right: 1px solid #dc9813 !important;
	border-radius: 0 !important;
	background: #555555 !important;
	color: #ffdead !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	letter-spacing: 0.01em;
	text-align: center !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
	writing-mode: horizontal-tb !important;
	text-orientation: mixed !important;
	box-shadow: none !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.chirp-product-offers__tab:last-child {
	border-right: 0 !important;
}

.chirp-product-offers__tab:hover,
.chirp-product-offers__tab:focus {
	background: #6a6a6a !important;
	color: #ffefd5 !important;
	outline: none !important;
}

.chirp-product-offers__tab.is-active {
	background: #dc9813 !important;
	color: #222222 !important;
	box-shadow: inset 0 -3px 0 #ffc368 !important;
}

.chirp-product-offers__panels {
	width: 100%;
	margin: 0;
	padding: 0;
	background: #555555;
	border-top: 1px solid #dc9813;
}

.chirp-product-offers__panel {
	display: none !important;
	width: 100%;
	margin: 0 !important;
	padding: 15px 18px !important;
	background: #555555 !important;
	color: #ffefd5 !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	text-align: center;
}

.chirp-product-offers__panel.is-active {
	display: block !important;
}

@media (max-width: 767px) {
	.chirp-product-offers__tabs {
		grid-template-columns: 1fr;
	}

	.chirp-product-offers__tab {
		min-height: 54px;
		border-right: 0 !important;
		border-bottom: 1px solid #dc9813 !important;
	}

	.chirp-product-offers__tab:last-child {
		border-bottom: 0 !important;
	}

	.chirp-product-offers__panel {
		padding: 14px 15px !important;
		font-size: 13px !important;
	}
}


.chirp-full-payment-modes {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
	padding-left: 4px;
}

.chirp-full-payment-mode {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.chirp-full-payment-mode input {
	margin: 0;
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
 * Pay-in-Full payment-mode selector
 * ---------------------------------------------------------------------- */
#chirp-payment-plans .chirp-full-payment-modes {
	margin-top: 10px;
	padding-left: 2px;
	gap: 10px;
}

/* Pay-in-Full sub-options collapse when a reservation plan is selected. */
#chirp-payment-plans .chirp-payment-plan:not(.is-selected) .chirp-full-payment-modes {
	display: none !important;
}

#chirp-payment-plans .chirp-full-payment-mode {
	font-weight: 600;
}

#chirp-payment-plans .chirp-full-payment-mode:nth-of-type(1) > span {
	color: #ffdead !important;
}

#chirp-payment-plans .chirp-full-payment-mode:nth-of-type(2) > span {
	color: #ffefd5 !important;
}

#chirp-payment-plans .chirp-full-payment-mode:nth-of-type(3) > span {
	color: #ffc368 !important;
}

#chirp-payment-plans .chirp-full-payment-mode input {
	accent-color: #dc9814;
}

/* Supporting explanations are deliberately softer/different from the
 * payment-option titles. Never use the same colour for title and explanation. */
#chirp-payment-plans .chirp-payment-plan__details small {
	color: #ffdead !important;
}

#chirp-payment-plans .chirp-full-payment-mode__details {
	display: block;
	margin: -3px 0 3px 26px;
	color: #ffefd5 !important;
	font-size: .92em;
	font-weight: 600;
	line-height: 1.5;
}

/* The native WooCommerce gateway list is an implementation detail here.
 * Chirp's three Pay-in-Full choices above are the customer-facing selector. */
body.woocommerce-checkout.chirp-direct-payment-selected #payment .wc_payment_methods,
body.woocommerce-checkout.chirp-standard-payment-selected #payment .wc_payment_methods,
body.woocommerce-checkout.chirp-emi-payment-selected #payment .wc_payment_methods {
	display: none !important;
}

/* Rs 999 Direct Account Transfer confirmation payment page. */
.chirp-direct-confirmation-order-pay #order_review > table.shop_table:first-child {
	display: none !important;
}

.chirp-direct-confirmation-order-pay #payment .wc_payment_methods {
	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);
	color: #ffdead !important;
}

.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;
}

.chirp-direct-confirmation-note {
	display: block;
	margin-top: 8px;
	font-weight: 600;
	color: #ffdead !important;
}

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

.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;
	color: #ffdead !important;
}

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