.pristora-shipping-progress {
	background: #f4f8f0;
	border-left: 4px solid #284d39;
	box-sizing: border-box;
	color: #183326;
	margin: 0 0 16px;
	padding: 12px 14px;
}

.pristora-shipping-progress--error {
	background: #fff2f0;
	border-left-color: #b32d2e;
	color: #7a1f20;
}

/* The native rows remain in WooCommerce state and order data; the consolidated
 * Bill Details fill is their customer-facing presentation on block screens. */
.pristora-bill-details-active .wc-block-components-sidebar .wc-block-components-totals-subtotal,
.pristora-bill-details-active .wc-block-components-sidebar .wc-block-components-totals-discount,
.pristora-bill-details-active .wc-block-components-sidebar .wc-block-components-totals-shipping,
.pristora-bill-details-active .wc-block-components-sidebar .wc-block-components-totals-fees,
.pristora-bill-details-active .wc-block-components-sidebar .wc-block-components-totals-taxes,
.pristora-bill-details-active .wc-block-components-sidebar .wc-block-components-totals-footer-item {
	display: none;
}

.pristora-commercial-slot {
	padding: 0 !important;
}

.pristora-bill {
	background: var(--pr-white, #fff);
	border: 1px solid rgba(24, 32, 29, 0.14);
	border-radius: 14px;
	box-sizing: border-box;
	color: var(--pr-ink, #18201d);
	padding: 18px;
}

.pristora-bill__heading,
.pristora-bill__row,
.pristora-bill__prices,
.pristora-bill__label {
	align-items: center;
	display: flex;
}

.pristora-bill__heading {
	justify-content: space-between;
	margin-bottom: 15px;
}

.pristora-bill__heading h2 {
	font-family: Cardo, Georgia, serif;
	font-size: 21px;
	line-height: 1.2;
	margin: 0;
}

/*
 * Sits directly under the Bill details heading and explains why the payable is
 * a whole rupee while WooCommerce's own rows carry paise. The negative top
 * margin pulls it inside the heading's 15px gap so it reads as a subtitle
 * rather than a first row.
 */
/* "Rates" beside the shipping amount, and its classic-checkout counterpart. */
.pristora-bill__policy,
.pristora-policy-link {
	color: #245c3b;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.pristora-bill__policy:hover,
.pristora-bill__policy:focus-visible,
.pristora-policy-link:hover,
.pristora-policy-link:focus-visible {
	color: #173f35;
}

.pristora-policy-row td {
	padding-top: 0;
}

.pristora-bill__note {
	color: #6b746f;
	font-size: 12.5px;
	line-height: 1.4;
	margin: -7px 0 13px;
}

.pristora-bill__row {
	font-size: 14px;
	gap: 12px;
	justify-content: space-between;
	line-height: 1.35;
	padding: 7px 0;
}

.pristora-bill__label {
	flex-wrap: wrap;
	gap: 8px;
}

.pristora-bill__amount,
.pristora-bill__prices {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
}

.pristora-bill__prices {
	gap: 8px;
}

.pristora-bill__prices del {
	color: #6b746f;
	font-size: 13px;
}

.pristora-bill__prices strong {
	font-size: 16px;
}

.pristora-bill__saving {
	background: #245c3b;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 4px 8px;
	white-space: nowrap;
}

.pristora-bill__row--grand {
	border-top: 1px solid rgba(24, 32, 29, 0.18);
	font-size: 18px;
	font-weight: 800;
	margin-top: 9px;
	padding-top: 15px;
}

.pristora-bill__round-off .pristora-bill__row {
	color: #69736b;
	font-size: 12px;
	padding-top: 3px;
	padding-bottom: 3px;
}

/*
 * The promotional coupon note, immediately below the single benefit row. It
 * carries no amount of its own — the row above has the one figure — so it is
 * styled as a quiet caption rather than as another line of the bill.
 */
.pristora-bill__coupon {
	align-items: baseline;
	column-gap: 10px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: -4px 0 9px;
}

.pristora-bill__coupon-note {
	color: #245c3b;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}

.pristora-bill__coupon-remove,
.woocommerce-remove-coupon {
	background: none;
	border: 0;
	color: #6b746f;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pristora-bill__coupon-remove:hover,
.pristora-bill__coupon-remove:focus-visible,
.woocommerce-remove-coupon:hover,
.woocommerce-remove-coupon:focus-visible {
	color: #173f35;
}

.pristora-bill__membership-note {
	color: #6b746f;
	font-size: 12.5px;
	line-height: 1.4;
	margin: -2px 0 10px;
}

.pristora-coupon-code {
	font-weight: 600;
	letter-spacing: 0.02em;
}

/*
 * The classic bill's own coupon row, emptied.
 *
 * WooCommerce renders one row per applied coupon from an unfilterable
 * `get_coupons()`, so the row cannot be removed server-side without copying a
 * core template. Both of its content filters return nothing for a promotional
 * coupon — the code and Remove live under the discount amount instead — and
 * this collapses what is left. Where `:has()` is unsupported the row simply
 * stays empty: a little space, nothing misleading.
 */
tr.cart-discount:has(.pristora-coupon-row-moved) {
	display: none;
}

/* In the classic bill the note sits inside the amount cell, under the figure. */
td .pristora-bill__coupon {
	display: block;
	margin-top: 4px;
	text-align: right;
}

.pristora-guest-invite {
	color: #6b746f;
	font-size: 12.5px;
	line-height: 1.5;
	margin: 8px 0 0;
}

.pristora-guest-invite a {
	color: #245c3b;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.pristora-tax-popover {
	position: relative;
}

.pristora-tax-popover__button {
	align-items: center;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: #284d39;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 28px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 28px;
}

.pristora-tax-popover__button:focus-visible {
	outline: 3px solid var(--pr-gold, #d6a84b);
	outline-offset: 2px;
}

.pristora-tax-popover__panel {
	background: var(--pr-white, #fff);
	border: 1px solid rgba(24, 32, 29, 0.2);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(18, 35, 27, 0.2);
	font-size: 12px;
	line-height: 1.4;
	max-height: min(70vh, 540px);
	overflow: auto;
	padding: 15px;
	position: absolute;
	right: 0;
	top: calc(100% + 7px);
	width: min(310px, calc(100vw - 48px));
	z-index: 20;
}

.pristora-tax-popover__title {
	display: block;
	font-size: 15px;
	margin-bottom: 4px;
}

.pristora-tax-popover__panel p {
	color: #59645f;
	margin: 0 0 12px;
}

.pristora-tax-popover__group {
	border-top: 1px solid rgba(24, 32, 29, 0.1);
	display: grid;
	gap: 5px;
	padding: 9px 0;
}

.pristora-tax-popover__group dl,
.pristora-tax-popover__group dl div {
	margin: 0;
}

.pristora-tax-popover__group dl div {
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.pristora-tax-popover__group dd {
	font-variant-numeric: tabular-nums;
	margin: 0;
}

.pristora-tax-popover__components .pristora-bill__row {
	font-size: 12px;
	padding: 3px 0;
}

.pristora-tax-popover__panel .pristora-bill__row--grand {
	font-size: 13px;
	margin-top: 3px;
	padding-top: 10px;
}

@media (max-width: 480px) {
	.pristora-bill {
		padding: 15px;
	}

	.pristora-bill__row--items {
		align-items: flex-start;
	}

	.pristora-bill__prices {
		align-items: flex-end;
		flex-direction: column;
		gap: 2px;
	}
}
