.igrt-widget {
	font-family: inherit;
	max-width: 100%;
	margin: 1em 0;
}

.igrt-title {
	margin: 0 0 0.6em;
	font-size: 1.2em;
	font-weight: 600;
	color: #1a1a1a;
}

.igrt-table-scroll {
	width: 100%;
	overflow-x: auto;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(180, 140, 20, 0.08);
}

.igrt-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 0.95em;
	overflow: hidden;
}

.igrt-table th,
.igrt-table td {
	border: 1px solid #f0e2b6;
	padding: 10px 14px;
	text-align: center;
}

.igrt-table thead th {
	background: linear-gradient(180deg, #c99a1f 0%, #b8860b 100%);
	color: #fff;
	font-weight: 600;
	border-color: #b8860b;
}

.igrt-summary {
	font-size: 1em;
	line-height: 1.5;
	margin: 0 0 1em;
	color: #333;
}

/* ---- Today cards ---- */

.igrt-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 0 0 0.8em;
}

.igrt-card {
	background: linear-gradient(180deg, #fffdf6 0%, #fff 100%);
	border: 1px solid #eddca3;
	border-top: 4px solid #d4af37;
	border-radius: 10px;
	padding: 18px 20px;
	box-shadow: 0 2px 10px rgba(180, 140, 20, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.igrt-card:hover {
	box-shadow: 0 6px 18px rgba(180, 140, 20, 0.16);
	transform: translateY(-2px);
}

.igrt-card-label {
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
}

.igrt-card-karat {
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #b8860b;
	text-transform: uppercase;
}

.igrt-card-sublabel {
	font-size: 0.8em;
	color: #8a8a8a;
	margin-top: 2px;
}

.igrt-card-price-row {
	display: flex;
	gap: 14px;
	margin-top: 6px;
}

.igrt-card-price-block {
	flex: 1;
	background: #fff7e3;
	border: 1px solid #f0dfa0;
	border-radius: 8px;
	padding: 10px 12px;
	text-align: center;
}

.igrt-card-price {
	font-size: 1.5em;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.igrt-card-unit {
	display: block;
	font-size: 0.72em;
	font-weight: 500;
	color: #8a6a08;
	margin-top: 3px;
}

.igrt-change {
	display: inline-block;
	margin-top: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 0.82em;
	font-weight: 600;
}

.igrt-change-up {
	background: #e6f7ee;
	color: #1a8a4a;
}

.igrt-change-down {
	background: #fdecec;
	color: #c0392b;
}

.igrt-change-flat {
	background: #f2f2f2;
	color: #777;
}

/* ---- History table ---- */

.igrt-history-table tbody tr {
	transition: background 0.15s ease;
}

.igrt-history-table tbody tr:nth-child(even) {
	background: #fdf9ee;
}

.igrt-history-table tbody tr:hover {
	background: #fbf0cf;
}

.igrt-history-table td.igrt-col-date {
	font-weight: 600;
	white-space: nowrap;
	text-align: left;
	background: #fffef9;
}

.igrt-history-table thead th.igrt-col-24k {
	background: linear-gradient(180deg, #c99a1f 0%, #b8860b 100%);
}

.igrt-history-table thead th.igrt-col-22k {
	background: linear-gradient(180deg, #a9791f 0%, #8a6a08 100%);
}

.igrt-history-table td.igrt-col-24k {
	background: #fffdf6;
	color: #6b4e00;
	font-weight: 600;
}

.igrt-history-table td.igrt-col-22k {
	background: #fffaf0;
	color: #5c4300;
	font-weight: 600;
}

.igrt-history-table tbody tr:nth-child(even) td.igrt-col-24k,
.igrt-history-table tbody tr:nth-child(even) td.igrt-col-22k {
	background: #fdf3d9;
}

.igrt-row-today {
	box-shadow: inset 3px 0 0 #1a8a4a;
}

.igrt-row-today td.igrt-col-date {
	color: #1a8a4a;
}

.igrt-today-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #e6f7ee;
	color: #1a8a4a;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	vertical-align: middle;
}

.igrt-trend {
	font-size: 0.75em;
	margin-left: 2px;
}

.igrt-trend-up {
	color: #1a8a4a;
}

.igrt-trend-down {
	color: #c0392b;
}

.igrt-updated {
	margin-top: 0.6em;
	font-size: 0.8em;
	color: #666;
}

.igrt-empty {
	color: #888;
	font-style: italic;
}

@media (max-width: 480px) {
	.igrt-card-price-row {
		flex-direction: column;
	}
}
