/* ==========================================================================
   Continental Game — Verified & Entitlements 1.13.0
   Blue tick + assigned-services grid. Front end and wp-admin.
   ========================================================================== */

:root{
	--cgvb-blue:#1d9bf0;
	--cgvb-blue-dark:#0b74bd;
}

/* ---- The tick ---------------------------------------------------------- */
.cgvb-tick{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:var(--cgvb-size,16px);
	height:var(--cgvb-size,16px);
	margin-inline-start:5px;
	color:var(--cgvb-blue);
	vertical-align:-.14em;
	flex:none;
	line-height:0;
}
.cgvb-tick svg{display:block;width:100%;height:100%}
.cgvb-tick:hover{color:var(--cgvb-blue-dark)}

.cgvb-name{display:inline-flex;align-items:center;gap:0;flex-wrap:wrap}

.cgvb-badge{display:inline-flex;align-items:center;gap:5px}
.cgvb-badge--withtext .cgvb-tick{margin-inline-start:0}
.cgvb-badge-text{
	font-size:.78rem;
	font-weight:600;
	line-height:1.2;
	color:var(--cgvb-blue-dark);
	letter-spacing:.005em;
}

/* Screen-reader helper in case the theme does not define it. */
.cgvb-tick .screen-reader-text{
	position:absolute!important;
	width:1px;height:1px;
	padding:0;margin:-1px;
	overflow:hidden;
	clip:rect(0 0 0 0);
	clip-path:inset(50%);
	white-space:nowrap;border:0;
}

/* ---- "Listed by" strip on a single service page ------------------------ */
.cgvb-provider{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:6px 10px;
	margin:0 0 14px;
	padding:9px 13px;
	border:1px solid #dde3ec;
	border-radius:10px;
	background:#f7f9fc;
	font-size:.875rem;
	line-height:1.4;
}
.cgvb-provider__label{
	font-size:.66rem;
	font-weight:700;
	letter-spacing:.12em;
	text-transform:uppercase;
	color:#5b6b83;
}
.cgvb-provider__name{
	display:inline-flex;
	align-items:center;
	font-weight:700;
	color:#101a2c;
}
.cgvb-provider__note{
	margin-inline-start:auto;
	padding:2px 9px;
	border-radius:999px;
	background:rgba(29,155,240,.12);
	color:var(--cgvb-blue-dark);
	font-size:.72rem;
	font-weight:600;
	white-space:nowrap;
}

/* ---- Loop card verified line ------------------------------------------- */
.cgvb-loop-verified{
	display:inline-flex;
	align-items:center;
	gap:4px;
	margin:2px 0 0;
	font-size:.72rem;
	font-weight:600;
	color:var(--cgvb-blue-dark);
}
.cgvb-loop-verified .cgvb-tick{margin-inline-start:0}
.cgvb-loop-verified__text{letter-spacing:.01em}

/* ---- Account centre note ---------------------------------------------- */
.cgvb-account-note{
	display:flex;
	align-items:center;
	gap:10px;
	margin:0 0 18px;
	padding:12px 14px;
	border:1px solid rgba(29,155,240,.28);
	border-radius:11px;
	background:rgba(29,155,240,.07);
	font-size:.9rem;
	line-height:1.5;
	color:#12233a;
}

/* ==========================================================================
   Assigned services grid — My Account → Your services, [cg_assigned_products]
   ========================================================================== */

.cgvb-services__head{margin:0 0 16px}
.cgvb-services__head h2{margin:0 0 4px;font-size:1.25rem;line-height:1.25;font-weight:700}
.cgvb-services__head p{margin:0;color:#5b6b83;font-size:.875rem}

.cgvb-services__grid{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
	gap:16px;
	margin:0;
	padding:0;
	list-style:none;
}
.cgvb-services__item{
	display:flex;
	flex-direction:column;
	overflow:hidden;
	border:1px solid #e2e7ef;
	border-radius:13px;
	background:#fff;
	box-shadow:0 1px 2px rgba(16,26,44,.04);
	transition:box-shadow .16s ease,transform .16s ease;
}
.cgvb-services__item:hover{box-shadow:0 8px 24px rgba(16,26,44,.09);transform:translateY(-2px)}
.cgvb-services__thumb{display:block;background:#f2f5f9;line-height:0}
.cgvb-services__thumb img,.cgvb-services__img{width:100%;height:auto;display:block;aspect-ratio:4/3;object-fit:cover}
.cgvb-services__body{display:flex;flex-direction:column;gap:7px;padding:14px}
.cgvb-services__title{margin:0;font-size:1rem;line-height:1.3;font-weight:700}
.cgvb-services__title a{color:inherit;text-decoration:none}
.cgvb-services__title a:hover{text-decoration:underline}
.cgvb-services__excerpt{margin:0;font-size:.83rem;line-height:1.5;color:#5b6b83}
.cgvb-services__meta{margin:0;font-size:.9rem;font-weight:600;color:#101a2c}
.cgvb-services__cta{margin-top:4px;align-self:flex-start}
.cgvb-services--empty{padding:20px;border:1px dashed #d6dce6;border-radius:12px;color:#5b6b83}

@media(max-width:520px){
	.cgvb-services__grid{grid-template-columns:1fr}
	.cgvb-provider__note{margin-inline-start:0}
}

@media(prefers-reduced-motion:reduce){
	.cgvb-services__item{transition:none}
	.cgvb-services__item:hover{transform:none}
}

/* Dark surfaces: keep the tick and text legible. */
@media(prefers-color-scheme:dark){
	.cgvb-provider{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.14)}
	.cgvb-provider__name{color:#eef3fa}
	.cgvb-provider__label{color:#a9b6c9}
	.cgvb-services__item{background:#101a2c;border-color:rgba(255,255,255,.12)}
	.cgvb-services__title{color:#eef3fa}
	.cgvb-services__excerpt{color:#a9b6c9}
	.cgvb-services__meta{color:#eef3fa}
	.cgvb-account-note{color:#eef3fa}
}
