/* stock-market.css — India Stock Market Live
   Self-contained (no cross-plugin CSS dependency), using the same theme
   design tokens (--wh, --bd, --brand, --tx, --mt, --r, --sh) the other
   IndiaRealTime plugin cards use, with fallbacks so it still renders
   sanely if a token is missing. --irt-ism-up/--irt-ism-down come from the
   admin color settings via an inline <style> block. */

.irt-ism-card {
	background: var(--wh, #FFFFFF);
	border: 1px solid var(--bd, #DDDDDD);
	border-radius: var(--r, 12px);
	box-shadow: var(--sh, 0 1px 4px rgba(0,0,0,.06));
	padding: 18px 20px;
	max-width: 320px;
}

.irt-ism-card-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--mt, #555555);
	text-transform: uppercase;
}

.irt-ism-price {
	font-size: 26px;
	font-weight: 700;
	color: var(--tx, #000000);
	margin-top: 4px;
}

.irt-ism-change {
	font-size: 14px;
	font-weight: 600;
	margin-top: 2px;
}

.irt-ism-up   { color: var(--irt-ism-up, #1a7f37); }
.irt-ism-down { color: var(--irt-ism-down, #d1242f); }

.irt-ism-range,
.irt-ism-updated {
	font-size: 12.5px;
	color: var(--mt, #555555);
	margin-top: 6px;
}

.irt-ism-unavailable {
	font-size: 13px;
	color: var(--mt, #555555);
	font-style: italic;
}

.irt-ism-watchlist-btn {
	margin-top: 10px;
	font-size: 13px;
	background: none;
	border: 1px solid var(--bd, #DDDDDD);
	border-radius: 6px;
	padding: 5px 10px;
	cursor: pointer;
	color: var(--tx, #000000);
}
.irt-ism-watchlist-btn[data-in-list="1"] {
	border-color: var(--irt-ism-up, #1a7f37);
	color: var(--irt-ism-up, #1a7f37);
}

.irt-ism-status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	padding: 10px 14px;
	border: 1px solid var(--bd, #DDDDDD);
	border-radius: var(--r, 12px);
	background: var(--wh, #FFFFFF);
}
.irt-ism-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--irt-ism-down, #d1242f);
}
.irt-ism-status-open .irt-ism-status-dot { background: var(--irt-ism-up, #1a7f37); }
.irt-ism-status-pre-open .irt-ism-status-dot { background: #b98900; }

.irt-ism-list ul { list-style: none; margin: 0; padding: 0; }
.irt-ism-list-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--bd, #DDDDDD);
	font-size: 14px;
}
.irt-ism-list-note { font-size: 12px; color: var(--mt, #555555); margin: 2px 0 10px; }

.irt-ism-search-form { display: flex; gap: 8px; }
.irt-ism-search-input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid var(--bd, #DDDDDD);
	border-radius: 6px;
}
.irt-ism-search-form button {
	padding: 8px 16px;
	border-radius: 6px;
	border: 1px solid var(--brand, #FF6200);
	background: var(--brand, #FF6200);
	color: #fff;
	cursor: pointer;
}
.irt-ism-search-result { margin-top: 14px; }

.irt-ism-watchlist-grid,
.irt-ism-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 12px;
}
