/* SureOrder — checkout styles (frontend). */

/* Advance notice callout: shown under the COD advance payment method radio on
   both classic and block checkouts. The line is the key commitment of the
   transaction ("An advance of ₹99 secures this order…"), so it gets bold
   weight plus a warm amber highlight — not colour alone — to be scanned in a
   glance. Explicit dark text on the tinted surface keeps contrast safe even
   on dark-themed stores. */
.cod-shield-advance-notice {
	background: #fff8e5;
	border: 1px solid #f1cf7a;
	border-left: 4px solid #dba617;
	border-radius: 6px;
	padding: 10px 14px;
	margin: 12px 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #1d2327;
}

/* Risk-free info box (classic checkout, above the payment section). */
.cod-shield-info-box {
	background: #f6f7f7;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	padding: 10px 12px;
	margin: 0 0 16px;
	font-size: 0.9em;
}

.cod-shield-info-box.cod-shield-required {
	background: #fff8e5;
	border-color: #dba617;
}

/* Definition lists preserve the relationship between each label and amount. */
.cod-shield-advance-notice .cod-shield-payment-breakdown {
	margin: 0;
	padding: 0;
}

.cod-shield-advance-notice .cod-shield-payment-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 4px 16px;
	padding: 6px 0;
}

.cod-shield-advance-notice .cod-shield-payment-row + .cod-shield-payment-row {
	border-top: 1px solid #f1cf7a;
}

.cod-shield-advance-notice .cod-shield-payment-row dt,
.cod-shield-advance-notice .cod-shield-payment-row dd {
	margin: 0;
	padding: 0;
	font-weight: 600;
}

.cod-shield-advance-notice .cod-shield-payment-row dd {
	font-variant-numeric: tabular-nums;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.cod-shield-advance-notice .cod-shield-payment-explanation,
.cod-shield-advance-notice .cod-shield-payment-instructions {
	margin: 10px 0 0;
	font-size: 0.9em;
	font-weight: 400;
	overflow-wrap: anywhere;
}

.cod-shield-advance-notice .cod-shield-payment-instructions p {
	margin: 0;
}

/* Keep theme price colours and definition-list floats out of the breakdown. */
.cod-shield-advance-notice .cod-shield-payment-row dt,
.cod-shield-advance-notice .cod-shield-payment-row dd {
	float: none;
	width: auto;
	color: #1d2327;
	text-transform: none;
}

.cod-shield-advance-notice .cod-shield-payment-row dd,
.cod-shield-advance-notice .cod-shield-payment-row dd .amount {
	color: #1d2327;
	font-size: 1.125em;
	font-weight: 700;
	text-align: end;
}

.cod-shield-advance-notice .cod-shield-payment-row dd .amount {
	font-size: inherit;
}

@media (max-width: 380px) {
	.cod-shield-advance-notice .cod-shield-payment-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.cod-shield-advance-notice .cod-shield-payment-row dd {
		text-align: start;
	}
}
