/* lpm-offers-screens */
/* 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;
	}
}

/* lpm-basket-sidebar */
/**
 * LPM Basket Sidebar – slide-in panel from the right
 */
.lpm-basket-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lpm-basket-sidebar-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.lpm-basket-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 400px;
	height: 100%;
	background: #1b1b1b;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
	z-index: 99999;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.lpm-basket-sidebar:not(.is-open) {
	/* Closed drawer is off-canvas; hide it so it cannot widen the document or appear in full-page shots. */
	visibility: hidden;
	pointer-events: none;
}
.lpm-basket-sidebar.is-open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

.lpm-basket-sidebar-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.lpm-basket-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #3a3a3a;
	flex-shrink: 0;
	background: #242424;
}

.lpm-basket-sidebar-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
}

.lpm-basket-sidebar-close {
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: #d1d5db;
	cursor: pointer;
	padding: 4px 8px;
	margin: -4px -8px;
	border-radius: 4px;
	transition: color 0.15s ease, background 0.15s ease;
}

.lpm-basket-sidebar-close:hover {
	color: #ffffff;
	background: rgba(255, 108, 0, 0.18);
}

.lpm-basket-sidebar-content {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	min-height: 120px;
}

.lpm-basket-sidebar-loading {
	color: #cbd5e1;
	font-size: 0.9rem;
}

.lpm-basket-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lpm-basket-sidebar-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #343434;
}

.lpm-basket-sidebar-item:last-child {
	border-bottom: none;
}

.lpm-basket-sidebar-item-image-wrap {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: #303030;
}

.lpm-basket-sidebar-item-image {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	background: #303030;
}

.lpm-basket-sidebar-item-image[src=""] {
	display: none;
}

.lpm-basket-sidebar-item-details {
	flex: 1;
	min-width: 0;
}

.lpm-basket-sidebar-item-name {
	display: block;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	font-size: 0.95rem;
	margin-bottom: 4px;
	line-height: 1.3;
}

.lpm-basket-sidebar-item-name:hover {
	color: #ff8a33;
}

.lpm-basket-sidebar-item-meta {
	font-size: 0.85rem;
	color: #cbd5e1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.lpm-basket-sidebar-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	padding: 2px 10px;
	border-radius: 999px;
	border: 1px solid #4b5563;
	background: #292929;
	color: #f8fafc;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.lpm-basket-sidebar-price {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	line-height: 1.1;
}

.lpm-basket-sidebar-price-sale {
	color: #ff8a33;
	font-weight: 800;
}

.lpm-basket-sidebar-price-regular {
	color: #8a949e;
	text-decoration: line-through;
	font-size: 0.85em;
}

.lpm-basket-sidebar-price-plain {
	color: #ffffff;
	font-weight: 700;
}

.lpm-basket-sidebar-item-total {
	font-weight: 700;
	color: #ffffff;
	font-size: 0.95rem;
}

.lpm-basket-sidebar-item-total-label {
	font-weight: 700;
	color: #cbd5e1;
	font-size: 0.85em;
}

.lpm-basket-sidebar-item-remove {
	align-self: flex-start;
	background: none;
	border: none;
	color: #8a1f2c;
	cursor: pointer;
	padding: 4px;
	font-size: 0.85rem;
	text-decoration: underline;
	transition: color 0.15s ease;
}

.lpm-basket-sidebar-item-remove:hover {
	color: #b42318;
}

.lpm-basket-sidebar-empty {
	text-align: center;
	padding: 24px 0;
	color: #cbd5e1;
}

.lpm-basket-sidebar-empty p {
	margin: 0 0 16px 0;
}

.lpm-basket-sidebar-footer {
	padding: 16px 20px;
	border-top: 1px solid #3a3a3a;
	background: #242424;
	flex-shrink: 0;
}

.lpm-basket-sidebar-total {
	font-size: 1.1rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 12px;
}

.lpm-basket-sidebar-checkout {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 20px;
	background: #ff6c00 !important;
	color: #fff !important;
	border: 1px solid #ff6c00 !important;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lpm-basket-sidebar-checkout:hover {
	background: #ff7a1a !important;
	border-color: #ff7a1a !important;
	color: #fff;
}

@media (max-width: 480px) {
	.lpm-basket-sidebar {
		max-width: 100%;
	}
}

/* rigged-typeahead */
.rg-ta{position:relative;width:100%;max-width:100%;box-sizing:border-box}
.rg-ta *{box-sizing:border-box}
.rg-ta-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;left:0;bottom:0}
.rg-ta-input{font-family:inherit;width:100%;min-height:48px;padding:12px 44px 12px 14px;font-size:16px;/*16px stops iOS zoom*/
 color:#f5f5f5;background:#151515;border:1px solid #333;border-radius:10px;outline:none;-webkit-appearance:none;appearance:none}
.rg-ta-input::placeholder{color:#8a8a8a}
.rg-ta-input:focus{border-color:#ff6a00;box-shadow:0 0 0 3px rgba(255,106,0,.25)}
.rg-ta button.rg-ta-clear,.rg-ta .rg-ta-clear{position:absolute!important;right:2px!important;top:50%!important;transform:translateY(-50%)!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:0!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;color:#9a9a9a!important;font-size:14px!important;font-weight:400!important;line-height:1!important;cursor:pointer;border-radius:8px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
.rg-ta button.rg-ta-clear:hover,.rg-ta button.rg-ta-clear:focus,.rg-ta .rg-ta-clear:hover,.rg-ta .rg-ta-clear:focus{color:#ccc!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important}
.rg-ta button.rg-ta-clear:active,.rg-ta .rg-ta-clear:active{background:transparent!important;color:#bbb!important}

.rg-ta-list{position:absolute;z-index:9999;left:0;right:0;top:calc(100% + 4px);max-height:min(320px,50vh);overflow-y:auto;overflow-x:hidden;
 margin:0;padding:4px;list-style:none;background:#1b1b1b;border:1px solid #333;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.5);-webkit-overflow-scrolling:touch}
.rg-ta-list[hidden]{display:none}
.rg-ta-opt{min-height:44px;padding:11px 12px;color:#eee;font-size:15px;line-height:1.35;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}
.rg-ta-opt.rg-sub{padding-left:28px;color:#ccc}
.rg-ta-opt .rg-path{display:block;font-size:12px;color:#8a8a8a}
.rg-ta-opt mark{background:none;color:#ff6a00;font-weight:700}
.rg-ta-opt[aria-selected="true"],.rg-ta-opt:hover{background:#2a1a0e;color:#fff}
.rg-ta-opt.rg-dis{color:#666;cursor:default;background:none}
.rg-ta-opt.rg-other{border-top:1px solid #333;color:#ff8a3d;font-weight:600}
.rg-ta-empty{padding:12px;color:#8a8a8a;font-size:14px}

