/* ==========================================================================
   Tala Gold Engine — Front-End Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Live Rates Ticker Bar
   -------------------------------------------------------------------------- */
.tala-ticker-wrap {
	display: flex;
	align-items: center;
	background: #1c1a17;
	color: #faf7f2;
	font-family: inherit;
	font-size: 13px;
	padding: 8px 16px;
	overflow: hidden;
	gap: 16px;
	box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}

.tala-ticker-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(168, 134, 79, 0.2);
	border: 1px solid rgba(168, 134, 79, 0.4);
	color: #ecd599;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: 3px 8px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}

.tala-live-dot {
	width: 6px;
	height: 6px;
	background: #28a745;
	border-radius: 50%;
	box-shadow: 0 0 6px #28a745;
	animation: talaPulse 1.8s infinite;
}

@keyframes talaPulse {
	0% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.85); }
	100% { opacity: 1; transform: scale(1); }
}

.tala-ticker-track {
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
	-ms-overflow-style: none;
	width: 100%;
}
.tala-ticker-track::-webkit-scrollbar { display: none; }

.tala-ticker-content {
	display: inline-flex;
	align-items: center;
	gap: 22px;
}

.tala-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	opacity: 0.9;
}

.tala-item-label {
	color: #b5ada0;
	font-weight: 400;
}

.tala-item-price {
	color: #ecd599;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Single Product Metal Breakdown Box
   -------------------------------------------------------------------------- */
.tala-product-metal-box {
	background: #fdfbf7;
	border: 1px solid #e8dfd3;
	border-radius: 10px;
	padding: 18px 20px;
	margin: 20px 0 24px 0;
	box-shadow: 0 4px 16px -8px rgba(28, 26, 23, 0.06);
}

.tala-metal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee7dc;
}

.tala-metal-badge {
	font-weight: 600;
	font-size: 14px;
	color: #1c1a17;
	letter-spacing: 0.02em;
}

.tala-metal-live-pill {
	font-size: 11px;
	font-weight: 500;
	background: rgba(40, 167, 69, 0.1);
	color: #1e7e34;
	border: 1px solid rgba(40, 167, 69, 0.25);
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: 0.03em;
}

.tala-metal-specs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 14px;
}

.tala-spec-item {
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #efe8dd;
}

.tala-spec-item small {
	font-size: 11px;
	color: #857d72;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.tala-spec-item strong {
	font-size: 14px;
	color: #1c1a17;
}

.tala-metal-guarantee {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #6d665b;
	margin: 0;
	line-height: 1.4;
}

.tala-metal-guarantee svg {
	color: #a8864f;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Metal Converter / Calculator Widget
   -------------------------------------------------------------------------- */
.tala-converter-card {
	background: #fff;
	border: 1px solid #e8dfd3;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 10px 30px -15px rgba(28, 26, 23, 0.08);
	max-width: 580px;
	margin: 20px auto;
}

.tala-converter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.tala-converter-head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	color: #1c1a17;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tala-converter-head h3 svg {
	color: #a8864f;
}

.tala-live-pill {
	font-size: 11px;
	font-weight: 600;
	background: #1c1a17;
	color: #ecd599;
	padding: 4px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.tala-form-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 16px;
	margin-bottom: 22px;
}

.tala-field-col label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #4a453e;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tala-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #dcd3c5;
	border-radius: 8px;
	background: #faf7f2;
	color: #1c1a17;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tala-input:focus {
	outline: none;
	border-color: #a8864f;
	box-shadow: 0 0 0 3px rgba(168, 134, 79, 0.15);
	background: #fff;
}

.tala-calc-result-box {
	background: #fbf9f5;
	border: 1px dashed #dcd3c5;
	border-radius: 8px;
	padding: 18px;
	text-align: center;
}

.tala-result-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #857d72;
	margin-bottom: 4px;
}

.tala-result-val {
	font-size: 32px;
	font-weight: 600;
	color: #a8864f;
	line-height: 1.2;
}

.tala-result-note {
	display: block;
	font-size: 11px;
	color: #857d72;
	margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Precious Metal Rates Sheet Table
   -------------------------------------------------------------------------- */
.tala-rates-table-wrap {
	background: #fff;
	border: 1px solid #e8dfd3;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px -12px rgba(28, 26, 23, 0.07);
	margin: 24px 0;
}

.tala-rates-table-head {
	padding: 18px 24px;
	background: #fdfbf7;
	border-bottom: 1px solid #eee7dc;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tala-rates-table-head h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1c1a17;
}

.tala-rates-table-head small {
	color: #857d72;
	font-size: 12px;
}

.tala-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
}

.tala-table th, .tala-table td {
	padding: 12px 24px;
	border-bottom: 1px solid #f2ede4;
}

.tala-table thead th {
	background: #faf7f2;
	color: #6d665b;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tala-table tbody tr:last-child td {
	border-bottom: none;
}

.tala-table tbody tr:hover {
	background: #fdfbf7;
}

.tala-cell-rate {
	font-weight: 600;
	color: #1c1a17;
}

.tala-cell-sub {
	color: #857d72;
}

@media (max-width: 600px) {
	.tala-metal-specs {
		grid-template-columns: 1fr;
	}
	.tala-form-grid {
		grid-template-columns: 1fr;
	}
}
