/* ALL-06 price table. Scoped to the plugin's wrapper; colours are set on each
   element because the theme colours every element directly (* and #content a). */

/* Homepage only: visitors do not see the table. The markup stays in the
   page so a reader of the HTML still gets the prices. */
.gb-llm-price-table--source {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.gb-llm-price-table {
	--gbl-green: #3a7a1f;
	--gbl-live: #57aa30;
	--gbl-gold: #f1be4b;
	--gbl-ink: #2b2b2b;
	--gbl-text: #3f3f3f;
	--gbl-muted: #5c5c5c;
	--gbl-line: #ecece7;
	--gbl-tint: #f4f8ef;
	--gbl-tint-line: #dcead0;
	--gbl-foot: #fafaf7;
	box-sizing: border-box;
	max-width: 760px;
	margin: 32px auto;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--gbl-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 30px rgba(31, 35, 40, 0.06);
	font-size: 16px;
	line-height: 1.5;
	color: var(--gbl-text);
	text-align: left;
}

.gb-llm-price-table .gold-price-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
}

.gb-llm-price-table .gold-price-table caption {
	caption-side: top;
	padding: 22px 24px 16px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--gbl-ink);
	text-align: left;
}

.gb-llm-price-table .gold-price-table caption::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--gbl-gold);
	box-shadow: 0 0 0 4px rgba(241, 190, 75, 0.22);
	vertical-align: 2px;
}

.gb-llm-price-table .gold-price-table th,
.gb-llm-price-table .gold-price-table td {
	padding: 14px 24px;
	border: 0;
	border-top: 1px solid var(--gbl-line);
	background: transparent;
	color: var(--gbl-text);
	text-align: left;
	vertical-align: middle;
}

.gb-llm-price-table .gold-price-table thead th {
	padding-top: 11px;
	padding-bottom: 11px;
	border-top: 1px solid var(--gbl-tint-line);
	border-bottom: 1px solid var(--gbl-tint-line);
	background: var(--gbl-tint);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: #4f6040;
}

.gb-llm-price-table .gold-price-table tbody tr:first-child td {
	border-top: 0;
}

.gb-llm-price-table .gold-price-table th + th,
.gb-llm-price-table .gold-price-table td + td {
	text-align: right;
}

.gb-llm-price-table .gold-price-table td + td {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.gb-llm-price-table .gold-price-table tbody td:first-child {
	font-weight: 700;
	color: var(--gbl-ink);
}

/* The price column. The ordinary-price column is not printed. */
.gb-llm-price-table .gold-price-table tbody td:nth-child(2) {
	font-weight: 700;
	color: var(--gbl-green);
}

.gb-llm-price-table .gold-price-table tbody tr:hover td {
	background: #fbfcf8;
}

/* Conditions and update time: a footer strip under the table. The margin
   needs !important: article pages set #article-container p { margin }. */
.gb-llm-price-table > p {
	margin: 0 !important;
	padding: 6px 24px 0;
	background: var(--gbl-foot);
	font-size: 14px;
	line-height: 1.6;
	color: var(--gbl-muted);
}

.gb-llm-price-table > table + p {
	padding-top: 16px;
	border-top: 1px solid var(--gbl-line);
}

.gb-llm-price-table > p:last-child {
	padding-bottom: 18px;
}

.gb-llm-price-table > p:last-child::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--gbl-live);
	box-shadow: 0 0 0 3px rgba(87, 170, 48, 0.18);
	vertical-align: 1px;
}

.gb-llm-price-table time {
	color: inherit;
}

.gb-llm-price-table a,
#content .gb-llm-price-table a {
	color: var(--gbl-green);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gb-llm-price-table a:hover,
#content .gb-llm-price-table a:hover {
	color: #2f6418;
}

@media (max-width: 800px) {
	.gb-llm-price-table {
		margin: 24px 16px;
	}
}

@media (max-width: 600px) {
	.gb-llm-price-table {
		border-radius: 12px;
		font-size: 15px;
	}

	.gb-llm-price-table .gold-price-table caption {
		padding: 18px 16px 12px;
		font-size: 1.05rem;
	}

	.gb-llm-price-table .gold-price-table th,
	.gb-llm-price-table .gold-price-table td {
		padding: 12px 16px;
	}

	.gb-llm-price-table .gold-price-table thead th {
		font-size: 13px;
	}

	.gb-llm-price-table > p {
		padding-right: 16px;
		padding-left: 16px;
	}
}
