/* Operator Offer Manager front-end. Dark/gold to match the Midnight Stars
   theme. Self-contained tokens with dark defaults; override per page if needed. */
.igr-oom-card,
.igr-oom-table,
.igr-oom-bonus,
.igr-oom-banner-creative,
.igr-oom-terms {
	--oom-bg: #15171e;
	--oom-bg2: #1c1f29;
	--oom-fg: #e8eaf0;
	--oom-muted: #9aa0ad;
	--oom-gold: #e3b341;
	--oom-border: rgba(255,255,255,.10);
}

/* CTA button */
.igr-oom-cta{display:inline-block;background:var(--oom-gold,#e3b341);color:#13151b;
	font-weight:800;padding:12px 22px;border-radius:8px;text-decoration:none;
	line-height:1.15;letter-spacing:.2px;white-space:nowrap;box-shadow:0 4px 14px rgba(227,179,65,.25)}
/* Compact CTA inside the comparison table so it never clips */
.igr-oom-table .igr-oom-cta{padding:9px 16px;font-size:14px}
.igr-oom-table td:last-child{text-align:right;white-space:nowrap}
.igr-oom-cta:hover{filter:brightness(1.06);color:#13151b}

/* Bonus box */
.igr-oom-bonus{background:var(--oom-bg2);border:1px solid var(--oom-border);
	border-radius:12px;padding:16px 18px;margin:12px 0;color:var(--oom-fg)}
.igr-oom-bonus__headline{font-weight:700;margin:0 0 4px;color:var(--oom-fg)}
.igr-oom-bonus__value{font-size:1.25em;font-weight:800;margin:0 0 12px;color:var(--oom-gold)}
.igr-oom-bonus__terms{color:var(--oom-muted);font-size:12px;margin-top:10px}
.igr-oom-bonus--ended{opacity:.75}

.igr-oom-logo{max-height:46px;width:auto}

/* Banner creative */
.igr-oom-banner-creative{display:block;margin:18px auto;line-height:0;max-width:980px}
.igr-oom-banner-creative img{width:100%;height:auto;border-radius:12px;
	box-shadow:0 6px 24px rgba(0,0,0,.35);transition:transform .15s ease}
.igr-oom-banner-creative:hover img{transform:translateY(-2px)}

/* Review card */
.igr-oom-card{background:linear-gradient(180deg,var(--oom-bg2),var(--oom-bg));
	border:1px solid var(--oom-border);border-radius:16px;padding:20px;margin:16px 0;
	display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap;color:var(--oom-fg);
	box-shadow:0 10px 30px rgba(0,0,0,.35)}
.igr-oom-card h3{margin:0 0 2px;color:#fff}
.igr-oom-card__body{flex:1;min-width:240px}
.igr-oom-card__rating{font-weight:800;color:var(--oom-gold);margin:0 0 8px}
.igr-oom-card a{color:var(--oom-gold)}
.igr-oom-card__license small,.igr-oom-compliance small{color:var(--oom-muted)}
.igr-oom-proscons{display:flex;gap:24px;flex-wrap:wrap;margin:10px 0}
.igr-oom-proscons strong{color:#fff}
.igr-oom-proscons ul{margin:4px 0 0 16px;color:var(--oom-fg)}

/* Comparison table */
.igr-oom-table{width:100%;border-collapse:separate;border-spacing:0;
	background:var(--oom-bg);border:1px solid var(--oom-border);border-radius:14px;
	overflow:hidden;color:var(--oom-fg)}
.igr-oom-table thead th{background:var(--oom-bg2);color:var(--oom-gold);
	text-align:left;font-size:13px;text-transform:uppercase;letter-spacing:.4px;padding:12px 14px}
.igr-oom-table td{padding:14px;border-top:1px solid var(--oom-border);vertical-align:middle}
.igr-oom-table td:first-child{display:flex;align-items:center;gap:10px;font-weight:700}
.igr-oom-table tr:hover td{background:rgba(255,255,255,.03)}

.igr-oom-terms{font-size:13px;color:var(--oom-muted)}
.igr-oom-compliance{margin-top:10px}


/* ==========================================================================
   iGR card v2 polish, 16/07/2026. Pairs with the theme override template
   themes/igr/operator-offer-manager/operator-card.php.
   The !important on CTA colour is deliberate: legacy pages carry their own
   scoped <style> blocks that outrank two-class selectors in the cascade.
   Those page styles are being retired; until then the component must win.
   ========================================================================== */

.igr-oom-card {
	position: relative; /* anchor for the pinned rating badge */
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, var(--oom-bg2), var(--oom-bg));
	border: 1px solid var(--oom-border);
	border-radius: 14px;
	padding: 18px;
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.igr-oom-card:hover {
	transform: translateY(-2px);
	border-color: rgba(227, 179, 65, 0.45);
}
@media (prefers-reduced-motion: reduce) {
	.igr-oom-card, .igr-oom-card:hover { transform: none; transition: none; }
}

/* head row: logo, name, rating badge */
/* Locked geometry: logo left, name beside it, rating pinned top-right on
   every card, fixed head height so the offer label starts level card to card. */
.igr-oom-card .igr-oom-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	min-height: 104px; /* tall enough for a three-line name, so the offer label starts level on every card */
	padding-right: 56px; /* keep long names clear of the pinned rating */
}
.igr-oom-card .igr-oom-logo {
	display: block;
	width: 72px;
	height: 72px;
	max-height: none; /* the plugin base rule caps logos at 46px, lift it here */
	object-fit: contain;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.06);
	padding: 6px;
	margin: 0;
	flex: 0 0 auto;
}
.igr-oom-card .igr-oom-card__name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: var(--oom-fg);
	min-width: min-content; /* never shrink below the widest word; the rating wraps down instead */
	overflow-wrap: break-word;
	flex: 1;
}
.igr-oom-card .igr-oom-card__rating {
	position: absolute;
	top: 18px;
	right: 18px;
	color: var(--oom-gold);
	white-space: nowrap;
}
.igr-oom-card .igr-oom-card__rating b {
	font-size: 21px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.igr-oom-card .igr-oom-card__rating small {
	color: var(--oom-muted);
	font-size: 12px;
	margin-left: 2px;
}

/* body: offer label, flat bonus, actions pinned to the bottom */
.igr-oom-card .igr-oom-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	min-width: 0;
}
.igr-oom-card .igr-oom-card__offerlabel {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--oom-muted);
	margin: 16px 0 0;
}
.igr-oom-card .igr-oom-bonus {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 6px 0 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.igr-oom-card .igr-oom-bonus__headline {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--oom-fg);
	margin: 0 0 14px;
}
.igr-oom-card .igr-oom-bonus__value { font-size: 1.1em; margin: 0 0 10px; }
.igr-oom-card .igr-oom-bonus__terms { margin-top: 8px; }

/* actions */
.igr-oom-card a.igr-oom-cta {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: auto;
	padding: 11px 18px;
	border-radius: 9px;
	color: #13151b !important;
	text-decoration: none;
	box-shadow: none;
}
.igr-oom-card a.igr-oom-cta:hover { color: #13151b !important; filter: brightness(1.07); }
.igr-oom-card a.igr-oom-cta:focus-visible,
.igr-oom-card .igr-oom-review-btn:focus-visible {
	outline: 2px solid var(--oom-gold);
	outline-offset: 2px;
}
.igr-oom-card .igr-oom-review-btn {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 8px;
	padding: 10px 18px;
	border: 1px solid var(--oom-border);
	border-radius: 9px;
	color: var(--oom-muted) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.igr-oom-card .igr-oom-review-btn:hover {
	border-color: rgba(227, 179, 65, 0.5);
	color: var(--oom-fg) !important;
}

/* Component CTA guards: every component-rendered CTA (they all carry data-op)
   behaves as a proper button box, whatever legacy page styles say. Fixes the
   content-box width:100% bleed and the theme underline on buttons. */
a[data-op][href] { box-sizing: border-box; text-decoration: none !important; }
a[data-op][href]:hover { text-decoration: none !important; }
/* the !important is deliberate: theme content styles underline anchors via
   :not() chains that outrank any sane selector here, and a button is never
   underlined. The prose variant (--inline) draws its line with border-bottom,
   so it is unaffected. */

/* Layout utilities standing in for legacy inline style attributes. */
a.igr-oom-cta--block { display: flex; width: 100%; justify-content: center; text-align: center; }
a.igr-oom-cta--grow { flex: 1; justify-content: center; text-align: center; }
a.igr-oom-cta--spaced { margin-left: 12px; }

/* Inline text-link variant for CTAs that sit inside prose, not buttons.
   Used by the sweep for anchors that had no button class. */
a.igr-oom-cta--inline {
	color: var(--oom-gold, #e3b341);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(227, 179, 65, 0.4);
}
a.igr-oom-cta--inline:hover {
	border-bottom-color: var(--oom-gold, #e3b341);
}

/* extras that only render when data exists */
.igr-oom-card .igr-oom-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	font-size: 13px;
	color: var(--oom-muted);
	margin: 4px 0 12px;
}
.igr-oom-card .igr-oom-proscons strong { color: var(--oom-fg); font-size: 12px; }
.igr-oom-card .igr-oom-proscons ul { margin: 6px 0 0; padding-left: 16px; }
.igr-oom-card .igr-oom-card__license {
	color: var(--oom-muted);
	margin: 0 0 10px;
}
