/* New offer-flow elements only. Dashboard chrome comes from the live reskins + light-mode plugin. */
/* Outline / text-accent actions, never a solid orange fill. Tap targets at least 44px.
   Contrast: dark uses #ff6a00 on dark cards (>=6.2:1). Light uses #b84300 on white cards (>=5.4:1). */

body.rg-mp .lpm-offers-dashboard :is(.lpm-commerce-button,.lpm-offer-pay,.lpm-open-offer,.lpm-open-counter,.lpm-offer-response),
body.rg-mp :is(a.lpmm-pay-now,.lpmm-pay-now) {
	background: transparent !important;
	background-image: none !important;
	color: #ff6a00 !important;
	-webkit-text-fill-color: #ff6a00 !important;
	border: 1.5px solid #ff6a00 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	box-sizing: border-box;
	font: 600 14px/1.2 var(--mp-b, Inter, system-ui, sans-serif) !important;
	text-decoration: none !important;
	text-transform: none !important;
}
html[data-theme="light"] body.rg-mp .lpm-offers-dashboard :is(.lpm-commerce-button,.lpm-offer-pay,.lpm-open-offer,.lpm-open-counter,.lpm-offer-response) {
	color: #b84300 !important;
	-webkit-text-fill-color: #b84300 !important;
	border-color: #b84300 !important;
}
/* Chat bubbles also go light under the live light-mode plugin; use the same dark ink. */
html[data-theme="light"] body.rg-mp :is(a.lpmm-pay-now,.lpmm-pay-now) {
	color: #b84300 !important;
	-webkit-text-fill-color: #b84300 !important;
	border-color: #b84300 !important;
}
body.rg-mp .lpm-offers-dashboard :is(.lpm-commerce-button,.lpm-offer-pay):hover,
body.rg-mp :is(a.lpmm-pay-now,.lpmm-pay-now):hover {
	border-color: currentColor !important;
	color: #ff8a33 !important;
	-webkit-text-fill-color: #ff8a33 !important;
}
html[data-theme="light"] body.rg-mp .lpm-offers-dashboard :is(.lpm-commerce-button,.lpm-offer-pay):hover {
	color: #8a3200 !important;
	-webkit-text-fill-color: #8a3200 !important;
	border-color: #8a3200 !important;
}
body.rg-mp .lpm-offers-dashboard :is(.lpm-offer-response[data-offer-action="decline"],.lpm-offer-response[data-offer-action="withdraw"]) {
	border-color: #c8ccd3 !important;
	color: #c8ccd3 !important;
	-webkit-text-fill-color: #c8ccd3 !important;
}
html[data-theme="light"] body.rg-mp .lpm-offers-dashboard :is(.lpm-offer-response[data-offer-action="decline"],.lpm-offer-response[data-offer-action="withdraw"]) {
	border-color: #55595f !important;
	color: #55595f !important;
	-webkit-text-fill-color: #55595f !important;
}
body.rg-mp .lpm-offers-dashboard .lpm-offer-ended,
body.rg-mp .lpm-offers-dashboard time[data-lpm-countdown] {
	display: block;
	margin-top: 6px;
	color: #c8ccd3;
	font: 500 12px/1.3 var(--mp-b, Inter, system-ui, sans-serif);
}
html[data-theme="light"] body.rg-mp .lpm-offers-dashboard .lpm-offer-ended,
html[data-theme="light"] body.rg-mp .lpm-offers-dashboard time[data-lpm-countdown] {
	color: #55595f;
}
body.rg-mp .lpm-offers-dashboard .lpm-commerce-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Pay now sits on its own centred line under the accept copy. */
.lpmm-message-text .lpmm-pay-now-wrap,
body.rg-mp .lpmm-message-text .lpmm-pay-now-wrap {
	display: block;
	text-align: center;
	margin: 12px 0 0;
	width: 100%;
}
.lpmm-message-text a.lpmm-pay-now,
body.rg-mp .lpmm-message-text a.lpmm-pay-now {
	display: inline-flex !important;
	margin: 0 auto;
}

html, body.rg-mp { overflow-x: hidden; }

/* Offer row layout so the new countdown / Pay now / reopen actions stay in-grid. */
body.rg-mp #lpm-dashboard-app .lpm-offers-dashboard .lpm-offer-row {
	grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, .6fr) minmax(0, auto) minmax(0, auto);
	overflow: visible;
}
body.rg-mp #lpm-dashboard-app .lpm-offers-dashboard .lpm-offer-row > * { min-width: 0; }
body.rg-mp #lpm-dashboard-app .lpm-offers-dashboard .lpm-commerce-panel,
body.rg-mp #lpm-dashboard-app .lpm-offers-dashboard .lpm-offer-list {
	overflow: visible;
}
@media (max-width: 1500px) {
	body.rg-mp #lpm-dashboard-app .lpm-offers-dashboard .lpm-offer-row {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		row-gap: 8px;
	}
	body.rg-mp #lpm-dashboard-app .lpm-offers-dashboard .lpm-offer-row > .lpm-commerce-actions {
		grid-column: 2;
		grid-row: 1 / span 5;
		align-self: center;
	}
}
