/* Turkstech Save to Buy — customer dashboard */

.tstb-dashboard {
	--tstb-primary: #1e7d5a;
	--tstb-primary-dark: #15604394;
	--tstb-ink: #1c2b25;
	--tstb-muted: #6b7b74;
	--tstb-line: #e3e8e5;
	--tstb-bg: #f6f8f7;
}

.tstb-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-size: 14px;
}
.tstb-notice-ok { background: #e6f4ee; color: #14563c; }
.tstb-notice-err { background: #fcebea; color: #8a2620; }

.tstb-empty {
	padding: 28px;
	background: var(--tstb-bg);
	border-radius: 10px;
	text-align: center;
	color: var(--tstb-muted);
}
.tstb-empty i { color: var(--tstb-primary); margin-right: 6px; }

.tstb-card {
	border: 1px solid var(--tstb-line);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	background: #fff;
}
.tstb-card.tstb-status-completed { border-color: #bfe3d1; }
.tstb-card.tstb-status-cancelled { opacity: 0.85; }

.tstb-card-head {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 16px;
}
.tstb-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.tstb-card-title h3 {
	margin: 0 0 6px;
	font-size: 16px;
	color: var(--tstb-ink);
}
.tstb-order-ref { color: var(--tstb-muted); font-size: 12px; }

.tstb-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.tstb-badge-active { background: #e6f4ee; color: #14563c; }
.tstb-badge-completed { background: #def0e7; color: #0f4d34; }
.tstb-badge-cancelled { background: #f0e3e2; color: #8a2620; }

.tstb-progress {
	position: relative;
	height: 22px;
	background: var(--tstb-bg);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 16px;
}
.tstb-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--tstb-primary), #2aa172);
	border-radius: 999px;
	transition: width .4s ease;
}
.tstb-progress-label {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 11px;
	font-weight: 700;
	color: var(--tstb-ink);
}

.tstb-figures {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.tstb-figures > div {
	flex: 1;
	min-width: 120px;
	background: var(--tstb-bg);
	border-radius: 8px;
	padding: 12px 14px;
}
.tstb-figures span {
	display: block;
	font-size: 12px;
	color: var(--tstb-muted);
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-bottom: 4px;
}
.tstb-figures strong { font-size: 19px; color: var(--tstb-ink); }
.tstb-figures .tstb-remaining { color: var(--tstb-primary); }

.tstb-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: stretch;
}
.tstb-add-form {
	display: flex;
	gap: 8px;
	flex: 1;
	min-width: 240px;
}
.tstb-add-input {
	display: flex;
	align-items: center;
	border: 1px solid var(--tstb-line);
	border-radius: 8px;
	overflow: hidden;
	flex: 1;
}
.tstb-add-input .tstb-cur,
.tstb-deposit-input .tstb-cur {
	padding: 0 10px;
	background: var(--tstb-bg);
	color: var(--tstb-muted);
	font-size: 13px;
	line-height: 38px;
}
.tstb-add-input input {
	border: 0 !important;
	box-shadow: none !important;
	flex: 1;
	min-width: 0;
}

.tstb-dashboard .button.tstb-btn-pay {
	background: var(--tstb-primary);
	border-color: var(--tstb-primary);
	color: #fff;
}
.tstb-dashboard .button.tstb-btn-pay:hover { background: #18664a; }
.tstb-dashboard .button.tstb-btn-cancel {
	background: #fff;
	border: 1px solid #d8b4b0;
	color: #8a2620;
}
.tstb-dashboard .button.tstb-btn-cancel:hover { background: #fcebea; }

.tstb-cancel-note,
.tstb-done,
.tstb-cancelled {
	font-size: 13px;
	color: var(--tstb-muted);
	margin: 12px 0 0;
}
.tstb-done { color: #14563c; }
.tstb-done i, .tstb-cancel-note i { margin-right: 5px; }

.tstb-ledger { margin-top: 14px; }
.tstb-ledger summary {
	cursor: pointer;
	font-size: 13px;
	color: var(--tstb-primary);
	font-weight: 600;
	padding: 6px 0;
}
.tstb-ledger summary i { margin-right: 5px; }
.tstb-ledger-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
	font-size: 13px;
}
.tstb-ledger-table th,
.tstb-ledger-table td {
	text-align: left;
	padding: 7px 10px;
	border-bottom: 1px solid var(--tstb-line);
}
.tstb-ledger-table th { color: var(--tstb-muted); font-size: 11px; text-transform: uppercase; }

.tstb-txn-completed { color: #14563c; font-weight: 600; }
.tstb-txn-pending { color: #b07d12; font-weight: 600; }
.tstb-txn-failed { color: #8a2620; font-weight: 600; }

/* Checkout fields */
.tstb-terms-box {
	max-height: 130px;
	overflow-y: auto;
	border: 1px solid #e3e8e5;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	background: #f6f8f7;
	margin-bottom: 10px;
}
.tstb-terms-check {
	display: block;
	font-size: 13px;
	margin-bottom: 12px;
}
.tstb-deposit-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
}
.tstb-deposit-input {
	display: flex;
	align-items: center;
	border: 1px solid #e3e8e5;
	border-radius: 8px;
	overflow: hidden;
	max-width: 220px;
}
.tstb-deposit-input input {
	border: 0 !important;
	box-shadow: none !important;
	flex: 1;
	min-width: 0;
}
.tstb-deposit-field small {
	display: block;
	color: #6b7b74;
	font-size: 12px;
	margin-top: 5px;
}

@media (max-width: 600px) {
	.tstb-add-form { flex-direction: column; }
	.tstb-actions { flex-direction: column; }
}
