/* Solomon Medical Tourism — Public CSS */

/* ------------------------------------------------------------------ */
/* Base wrapper                                                         */
/* ------------------------------------------------------------------ */
.smt-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	color: #1a1a2e;
	line-height: 1.55;
	max-width: 1000px;
	margin: 0 auto;
	padding: 24px 16px;
}

/* ------------------------------------------------------------------ */
/* Typography helpers                                                   */
/* ------------------------------------------------------------------ */
.smt-muted   { color: #6b7280; }
.smt-text-xs { font-size: 12px; }

/* ------------------------------------------------------------------ */
/* Buttons                                                              */
/* ------------------------------------------------------------------ */
.smt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 6px;
	border: 2px solid transparent;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
	white-space: nowrap;
}
.smt-btn:focus { outline: 3px solid #3b82f6; outline-offset: 2px; }

.smt-btn--primary   { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.smt-btn--primary:hover { background: #0284c7; border-color: #0284c7; color: #fff; }

.smt-btn--outline   { background: transparent; color: #0ea5e9; border-color: #0ea5e9; }
.smt-btn--outline:hover { background: #f0f9ff; }

.smt-btn--ghost     { background: transparent; color: #6b7280; border-color: #d1d5db; }
.smt-btn--ghost:hover { background: #f9fafb; }

.smt-btn--danger-ghost { background: transparent; color: #dc2626; border-color: #fca5a5; }
.smt-btn--danger-ghost:hover { background: #fef2f2; }

.smt-btn--sm  { padding: 6px 13px; font-size: 13px; }
.smt-btn--xs  { padding: 3px 9px;  font-size: 12px; border-radius: 4px; }
.smt-btn--lg  { padding: 12px 28px; font-size: 16px; }

.smt-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------------ */
/* Notices                                                              */
/* ------------------------------------------------------------------ */
.smt-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin: 10px 0;
	font-size: 14px;
}
.smt-notice--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.smt-notice--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.smt-notice--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.smt-notice--warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ------------------------------------------------------------------ */
/* Cards                                                                */
/* ------------------------------------------------------------------ */
.smt-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px 22px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.smt-card h3 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}
.smt-card--highlight { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }

/* ------------------------------------------------------------------ */
/* Auth                                                                 */
/* ------------------------------------------------------------------ */
.smt-auth-wrap { max-width: 420px; }
.smt-auth-box  { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 36px 32px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.smt-auth-logo { text-align: center; margin-bottom: 16px; }
.smt-auth-title { font-size: 22px; font-weight: 700; text-align: center; margin: 0 0 6px; }
.smt-auth-subtitle { font-size: 14px; color: #6b7280; text-align: center; margin: 0 0 20px; }
.smt-auth-links { text-align: center; margin-top: 14px; }
.smt-auth-links a { font-size: 13px; color: #0ea5e9; text-decoration: none; }
.smt-auth-links a:hover { text-decoration: underline; }

/* WP login form overrides */
#smt-login-form .login-username,
#smt-login-form .login-password,
#smt-login-form .login-remember { margin-bottom: 12px; }
#smt-login-form label { font-size: 13px; font-weight: 500; color: #374151; }
#smt-login-form input[type="text"],
#smt-login-form input[type="password"] {
	width: 100%; box-sizing: border-box; padding: 9px 12px;
	border: 1px solid #d1d5db; border-radius: 6px; font-size: 15px;
}
#smt-login-form input[type="submit"] {
	width: 100%; padding: 10px; background: #0ea5e9; color: #fff;
	border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer;
}
#smt-login-form input[type="submit"]:hover { background: #0284c7; }

/* ------------------------------------------------------------------ */
/* Dashboard                                                            */
/* ------------------------------------------------------------------ */
.smt-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}
.smt-dashboard-greeting { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.smt-dashboard-subtitle { font-size: 14px; color: #6b7280; margin: 0; }

.smt-stats-row {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.smt-stat-card {
	flex: 1;
	min-width: 110px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.smt-stat-card--active { border-color: #0ea5e9; }
.smt-stat-card--done   { border-color: #22c55e; }
.smt-stat-number { display: block; font-size: 28px; font-weight: 800; color: #0ea5e9; }
.smt-stat-label  { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }

.smt-inquiry-cards { display: flex; flex-direction: column; gap: 14px; }

.smt-inquiry-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.smt-inquiry-card.smt-card--urgent { border-color: #ef4444; border-left-width: 4px; }

.smt-inquiry-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	flex-wrap: wrap;
	gap: 8px;
}
.smt-inquiry-card__patients { margin: 4px 0; font-size: 14px; }
.smt-inquiry-card__travel   { margin: 4px 0; font-size: 13px; color: #374151; }
.smt-inquiry-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	flex-wrap: wrap;
	gap: 8px;
}

.smt-empty-state {
	text-align: center;
	padding: 48px 24px;
	color: #6b7280;
}
.smt-empty-state p { font-size: 16px; margin-bottom: 16px; }

.smt-dashboard-footer { margin-top: 28px; text-align: center; }
.smt-link-muted { color: #9ca3af; font-size: 13px; text-decoration: none; }
.smt-link-muted:hover { color: #6b7280; }

/* ------------------------------------------------------------------ */
/* Badges / Chips                                                       */
/* ------------------------------------------------------------------ */
.smt-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.smt-badge--urgent  { background: #ef4444; color: #fff; }
.smt-badge--warning { background: #f59e0b; color: #fff; }

.smt-status-chip {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	background: #f3f4f6;
	color: #374151;
}
.smt-chip--smt_submitted    { background: #e0e7ff; color: #3730a3; }
.smt-chip--smt_profiling    { background: #fef3c7; color: #92400e; }
.smt-chip--smt_coordinating { background: #dbeafe; color: #1e40af; }
.smt-chip--smt_quotation    { background: #ede9fe; color: #5b21b6; }
.smt-chip--smt_vil_ready    { background: #d1fae5; color: #065f46; }
.smt-chip--smt_payment      { background: #fef9c3; color: #854d0e; }
.smt-chip--smt_confirmed    { background: #dcfce7; color: #14532d; }
.smt-chip--smt_traveling    { background: #ecfdf5; color: #166534; }
.smt-chip--smt_completed    { background: #1f2937; color: #fff; }
.smt-chip--smt_cancelled    { background: #fee2e2; color: #991b1b; }

/* ------------------------------------------------------------------ */
/* Progress bar                                                         */
/* ------------------------------------------------------------------ */
.smt-progress-wrap { min-width: 200px; }
.smt-progress-bar  { height: 8px; background: #e5e7eb; border-radius: 9999px; overflow: hidden; margin-bottom: 4px; }
.smt-progress-fill { height: 100%; background: #0ea5e9; border-radius: 9999px; transition: width .3s ease; }
.smt-progress-label { font-size: 12px; color: #6b7280; }

/* ------------------------------------------------------------------ */
/* Forms                                                                */
/* ------------------------------------------------------------------ */
.smt-form-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.smt-form-section--submit { text-align: center; border: none; background: transparent; box-shadow: none; }

.smt-section-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.smt-section-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #0ea5e9;
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.smt-field-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.smt-field { flex: 1; min-width: 160px; }
.smt-field--sm { flex: 0 0 200px; }
.smt-field--xs { flex: 0 0 130px; }

.smt-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
}
.smt-hint {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: #9ca3af;
	margin-top: 2px;
}
.smt-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	color: #1a1a2e;
	background: #fff;
	transition: border-color .15s;
}
.smt-input:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
.smt-textarea { min-height: 80px; resize: vertical; }
.smt-file-input { padding: 5px 0; border: none; }

.smt-checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.smt-checkbox-label input { width: 16px; height: 16px; flex-shrink: 0; }

/* Patient block */
.smt-patient-block {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 18px;
	margin-bottom: 16px;
	background: #fafafa;
}
.smt-patient-block.smt-expiry-warn { border-color: #f59e0b; background: #fffbeb; }
.smt-patient-block__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.smt-disclaimer {
	font-size: 12px;
	color: #9ca3af;
	margin-bottom: 16px;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

/* Page header */
.smt-page-header { margin-bottom: 24px; }
.smt-page-header h2 { font-size: 22px; font-weight: 700; margin: 8px 0 4px; }
.smt-page-subtitle  { font-size: 14px; color: #6b7280; margin: 0; }
.smt-back-link      { font-size: 13px; color: #0ea5e9; text-decoration: none; }
.smt-back-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Tracker                                                              */
/* ------------------------------------------------------------------ */
.smt-tracker-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0 20px;
}
.smt-tracker-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }

.smt-tracker-body {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 20px;
	align-items: start;
}
@media ( max-width: 760px ) {
	.smt-tracker-body { grid-template-columns: 1fr; }
}

.smt-tracker-left,
.smt-tracker-right { display: flex; flex-direction: column; gap: 16px; }

/* Patient summary in tracker */
.smt-patient-summary {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 10px;
	background: #fafafa;
}
.smt-patient-summary.smt-expiry-warn { border-color: #f59e0b; background: #fffbeb; }
.smt-patient-summary__name   { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.smt-patient-summary__diagnosis { font-size: 13px; color: #374151; margin: 4px 0; }

/* Quotation table */
.smt-quotation-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.smt-quotation-table td { padding: 7px 6px; border-bottom: 1px solid #f3f4f6; }
.smt-quotation-table td:last-child { text-align: right; }
.smt-quotation-table .smt-row-tax td { color: #6b7280; font-style: italic; }
.smt-quotation-table tfoot td { border-top: 2px solid #1f2937 !important; border-bottom: none; padding-top: 10px; font-size: 16px; }

.smt-quotation-cta { margin-top: 16px; text-align: center; }
.smt-quotation-note { font-size: 13px; color: #6b7280; margin-bottom: 12px; }

.smt-payment-amount { font-size: 18px; margin: 10px 0; }

/* Visa badge */
.smt-visa-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
}
.smt-visa-not_applied { background: #f3f4f6; color: #6b7280; }
.smt-visa-applied     { background: #dbeafe; color: #1e40af; }
.smt-visa-approved    { background: #dcfce7; color: #14532d; }
.smt-visa-denied      { background: #fee2e2; color: #991b1b; }

/* ------------------------------------------------------------------ */
/* Tab unread badge                                                     */
/* ------------------------------------------------------------------ */
.smt-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	margin-left: 5px;
	vertical-align: middle;
}
.smt-tab-badge--hidden { display: none; }

/* ------------------------------------------------------------------ */
/* Toast notification                                                   */
/* ------------------------------------------------------------------ */
.smt-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #1e293b;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 16px rgba(0,0,0,.25);
	z-index: 9999;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s, transform .25s;
	pointer-events: none;
}
.smt-toast--visible {
	opacity: 1;
	transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* Messages                                                             */
/* ------------------------------------------------------------------ */
.smt-messages-list { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.smt-message-item  { display: flex; flex-direction: column; max-width: 85%; }
.smt-message--mine   { align-self: flex-end; align-items: flex-end; }
.smt-message--theirs { align-self: flex-start; align-items: flex-start; }
.smt-message-bubble {
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}
.smt-message--mine   .smt-message-bubble { background: #0ea5e9; color: #fff; border-bottom-right-radius: 3px; }
.smt-message--theirs .smt-message-bubble { background: #f3f4f6; color: #1a1a2e; border-bottom-left-radius: 3px; }
.smt-message-meta { font-size: 11px; color: #9ca3af; margin-top: 3px; }

/* Message attachments inside bubbles */
.smt-msg-attachment { margin-top: 6px; }
.smt-msg-attachment__img {
	max-width: 220px;
	max-height: 180px;
	border-radius: 8px;
	display: block;
	cursor: pointer;
}
.smt-msg-attachment__file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(255,255,255,.15);
	font-size: 13px;
	color: inherit;
	text-decoration: none;
	word-break: break-all;
}
.smt-message--theirs .smt-msg-attachment__file {
	background: rgba(0,0,0,.07);
}

/* Message form actions row */
.smt-message-form-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.smt-attach-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s;
}
.smt-attach-btn:hover { background: #e2e8f0; }

/* File chip preview */
.smt-msg-file-preview { margin-top: 6px; }
.smt-file-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
	max-width: 100%;
}
.smt-file-chip__remove {
	background: none;
	border: none;
	cursor: pointer;
	color: #94a3b8;
	padding: 0;
	font-size: 14px;
	line-height: 1;
}
.smt-file-chip__remove:hover { color: #ef4444; }

/* Timeline */
.smt-timeline { list-style: none; margin: 0; padding: 0; }
.smt-timeline-item {
	display: flex;
	gap: 10px;
	padding-bottom: 14px;
	position: relative;
}
.smt-timeline-item:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 18px;
	bottom: 0;
	width: 2px;
	background: #e5e7eb;
}
.smt-timeline-dot {
	width: 16px;
	height: 16px;
	background: #0ea5e9;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 2px;
}
.smt-timeline-content { font-size: 13px; }
.smt-timeline-date    { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* DL grid */
.smt-dl-grid { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13px; margin: 0; }
.smt-dl-grid dt { color: #6b7280; font-weight: 500; }
.smt-dl-grid dd { margin: 0; }

/* ------------------------------------------------------------------ */
/* Modal                                                                */
/* ------------------------------------------------------------------ */
.smt-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.smt-modal-box {
	background: #fff;
	border-radius: 12px;
	padding: 28px 28px 24px;
	max-width: 420px;
	width: 100%;
	position: relative;
	box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.smt-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #9ca3af;
	line-height: 1;
}
.smt-modal-close:hover { color: #1a1a2e; }
.smt-modal-title  { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.smt-modal-body   { font-size: 14px; margin-bottom: 20px; }
.smt-modal-total  { font-size: 16px; margin: 10px 0; }
.smt-modal-note   { font-size: 13px; color: #6b7280; margin-top: 8px; }
.smt-modal-footer { display: flex; gap: 10px; justify-content: flex-end; }

/* ------------------------------------------------------------------ */
/* Tracker — tab navigation                                             */
/* ------------------------------------------------------------------ */
.smt-tracker-tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin: 0 0 -2px;
	border-bottom: 2px solid #e5e7eb;
}
.smt-tracker-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 6px 6px 0 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	background: #f9fafb;
	color: #6b7280;
	white-space: nowrap;
	position: relative;
	bottom: -2px;
	transition: background .12s, color .12s;
}
.smt-tracker-tab-btn:hover:not(.is-pending) { background: #f3f4f6; color: #1a1a2e; }
.smt-tracker-tab-btn.is-active {
	background: #fff;
	border-color: #e5e7eb #e5e7eb transparent;
	color: #0ea5e9;
	font-weight: 700;
	z-index: 1;
}
.smt-tracker-tab-btn.is-done::after {
	content: '✓';
	font-size: 9px;
	color: #22c55e;
	font-weight: 800;
}
.smt-tracker-tab-btn.is-pending { opacity: .4; cursor: not-allowed; }
.smt-tracker-tab-panels { padding-top: 20px; }
.smt-tracker-tab-panel  { display: none; }
.smt-tracker-tab-panel.is-active { display: flex; flex-direction: column; gap: 16px; }

/* Full-width single-column tracker with tabs */
.smt-tracker-body--tabbed { display: block; }

@media ( max-width: 600px ) {
	/* Tab bar: scroll horizontally instead of wrapping onto multiple lines */
	.smt-tracker-tab-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding-bottom: 6px;
		gap: 2px;
	}
	.smt-tracker-tab-btn {
		flex-shrink: 0;
		padding: 7px 10px;
		font-size: 12px;
	}

	/* Quotation header: stack currency switcher below title */
	.smt-quotation-header {
		flex-direction: column;
		align-items: flex-start;
	}

	/* DL grid: single column on very small screens */
	.smt-dl-grid {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}
	.smt-dl-grid dt {
		font-weight: 600;
		margin-top: 8px;
		color: #374151;
	}
	.smt-dl-grid dt:first-child { margin-top: 0; }

	/* Payment method tabs: scroll if there are many */
	.smt-pay-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.smt-pay-tab  { flex-shrink: 0; white-space: nowrap; }

	/* MMK callout: stack label above amount */
	.smt-mmk-callout { flex-direction: column; gap: 4px; }
}

@media ( max-width: 480px ) {
	.smt-wrap { padding: 16px 12px; }
	.smt-card { padding: 16px; }
	.smt-form-section { padding: 16px; }
	.smt-auth-box { padding: 28px 20px; }
	.smt-modal-box { padding: 20px 16px 16px; }
	.smt-tracker-title { font-size: 18px; }
	.smt-dashboard-greeting { font-size: 18px; }
	.smt-pi-client-card { padding: 14px; }
}

/* ------------------------------------------------------------------ */
/* Profile Invoice — Client card                                        */
/* ------------------------------------------------------------------ */
.smt-pi-client-card {
	border: 2px solid #0ea5e9;
	border-radius: 10px;
	padding: 20px;
}
.smt-pi-client-card--paid {
	border-color: #22c55e;
	background: #f0fdf4;
}
.smt-pi-client-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}
.smt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.smt-table th, .smt-table td { padding: 9px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.smt-table th { background: #f1f5f9; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.smt-table tbody tr:last-child td { border-bottom: none; }

.smt-pi-client-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.smt-pi-client-table th,
.smt-pi-client-table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.smt-pi-client-table th { background: #f1f5f9; font-weight: 600; font-size: 12px; }
.smt-pi-client-table tfoot td { border-top: 2px solid #e5e7eb; border-bottom: none; }
.smt-pi-client-grand td { font-size: 14px; }

.smt-pi-payment-details {
	margin-top: 16px;
	padding: 14px 16px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
}
.smt-pi-payment-details h4 { margin: 0 0 8px; font-size: 13px; color: #0369a1; }

.smt-badge--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.smt-badge--warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ------------------------------------------------------------------ */
/* Companion — same-address checkbox                                    */
/* ------------------------------------------------------------------ */
.smt-same-address-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 12px;
	cursor: pointer;
	user-select: none;
}
.smt-same-address-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #0ea5e9;
	cursor: pointer;
	flex-shrink: 0;
}
.smt-input--readonly {
	background: #f1f5f9 !important;
	color: #64748b !important;
	cursor: not-allowed;
	border-color: #cbd5e1 !important;
}

/* ------------------------------------------------------------------ */
/* Payment method tabs (Myanmar / Online)                              */
/* ------------------------------------------------------------------ */
.smt-pay-method-wrap { margin-top: 14px; }

.smt-pay-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 16px;
}

.smt-pay-tab {
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: color .15s, border-color .15s;
	white-space: nowrap;
}
.smt-pay-tab:hover { color: #1e40af; }
.smt-pay-tab--active {
	color: #1e40af;
	border-bottom-color: #1e40af;
}

.smt-pay-pane { animation: smtFadeIn .2s ease; }
.smt-pay-pane--hidden { display: none; }

@keyframes smtFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Razorpay pay button */
.smt-btn--razorpay {
	background: #072654;
	color: #fff;
	width: 100%;
	border-radius: 6px;
}
.smt-btn--razorpay:hover { background: #0a3580; }

/* PayPal button wrapper — constrain width so SDK button doesn't overflow */
.smt-paypal-btn-wrap { max-width: 360px; }

/* Online payment message area */
.smt-online-msg {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Currency switcher (quotation table)                                  */
/* ------------------------------------------------------------------ */
.smt-quotation-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 4px;
}

.smt-currency-switcher {
	display: flex;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	overflow: hidden;
}

.smt-currency-btn {
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 600;
	background: #f8fafc;
	border: none;
	border-right: 1px solid #cbd5e1;
	cursor: pointer;
	color: #475569;
	transition: background .15s, color .15s;
	line-height: 1.4;
}
.smt-currency-btn:last-child { border-right: none; }
.smt-currency-btn:hover { background: #e2e8f0; color: #1e293b; }
.smt-currency-btn--active {
	background: #1e40af;
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* Multi-payment split note                                             */
/* ------------------------------------------------------------------ */
.smt-split-note {
	background: #fff3cd;
	border: 1px solid #ffe082;
	border-radius: 6px;
	padding: 10px 14px;
	margin: 0 0 12px;
	font-size: 13px;
}
.smt-split-note strong { display: block; margin-bottom: 4px; color: #856404; }
.smt-split-note p { margin: 0; color: #6d4a00; }

/* ------------------------------------------------------------------ */
/* MMK amount callout (Myanmar payment panes)                           */
/* ------------------------------------------------------------------ */
.smt-mmk-callout {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	background: #fef9c3;
	border: 1px solid #fde047;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 14px;
}

.smt-mmk-callout__label {
	font-size: 13px;
	color: #713f12;
	font-weight: 500;
	flex-shrink: 0;
}

.smt-mmk-callout__amount {
	font-size: 22px;
	font-weight: 700;
	color: #713f12;
	letter-spacing: -0.5px;
}

.smt-mmk-callout__sub {
	font-size: 12px;
	color: #92400e;
}



/* ------------------------------------------------------------------ */
/* Partner Network — Doctor & Hospital panels (client dashboard)       */
/* ------------------------------------------------------------------ */
.smt-partner-network { margin-top: 40px; }

.smt-partner-title {
	font-size: 16px; font-weight: 700; color: #1a1a2e;
	margin: 0 0 20px; padding-bottom: 10px;
	border-bottom: 2px solid #e5e7eb;
}

/* Doctor grid – 2 columns inside dashboard's 1000px max-width */
.smt-doctor-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (max-width: 640px) { .smt-doctor-grid { grid-template-columns: 1fr; } }

.smt-doctor-card {
	display: flex; gap: 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	transition: border-color .15s;
}
.smt-doctor-card:hover { border-color: #0ea5e9; }

.smt-doctor-card__photo {
	width: 56px; height: 56px; border-radius: 50%;
	overflow: hidden; flex-shrink: 0; background: #e5e7eb;
}
.smt-doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.smt-doctor-card__initials {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-size: 1rem; font-weight: 800; color: #fff;
	background: #1a1a2e;
}

.smt-doctor-card__info {
	display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
.smt-doctor-card__name { font-size: 14px; font-weight: 700; color: #111827; }
.smt-doctor-card__spec {
	font-size: 11px; font-weight: 700;
	color: #0ea5e9; text-transform: uppercase; letter-spacing: .05em;
}
.smt-doctor-card__bio {
	font-size: 12px; color: #6b7280; line-height: 1.5; margin: 4px 0 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Hospital grid – 2 columns */
.smt-hospital-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (max-width: 640px) { .smt-hospital-grid { grid-template-columns: 1fr; } }

.smt-hospital-card {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color .15s;
	display: flex; flex-direction: column;
}
.smt-hospital-card:hover { border-color: #0ea5e9; }

.smt-hospital-card__img { aspect-ratio: 16/7; overflow: hidden; background: #e5e7eb; }
.smt-hospital-card__img img { width: 100%; height: 100%; object-fit: cover; }

.smt-hospital-card__body {
	padding: 14px 16px 16px;
	display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.smt-hospital-card__name { font-size: 14px; font-weight: 700; color: #111827; }
.smt-hospital-card__badge {
	display: inline-block; font-size: 10px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase;
	color: #0ea5e9; border: 1px solid #bae6fd;
	padding: 1px 7px; border-radius: 99px; align-self: flex-start; margin-top: 2px;
}
.smt-hospital-card__desc {
	font-size: 12px; color: #6b7280; line-height: 1.5; margin: 4px 0 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Dashboard video section ──────────────────────────────────────────────────── */
.smt-video-section { margin: 32px 0 8px; }
.smt-video-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 14px;
}
.smt-video-card {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow .2s, transform .2s;
}
.smt-video-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.smt-video-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1f2937;
}
.smt-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smt-video-card__thumb iframe {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.smt-video-card__play {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 38px; height: 38px;
	background: rgba(14, 165, 233, .88);
	border-radius: 50%;
	pointer-events: none;
}
.smt-video-card__play::after {
	content: '';
	position: absolute; top: 50%; left: 55%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 7px 0 7px 13px;
	border-color: transparent transparent transparent #fff;
}
.smt-video-card__info { padding: 10px 12px 12px; }
.smt-video-card__cat {
	font-size: 10px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em;
	color: #0ea5e9; margin-bottom: 4px;
}
.smt-video-card__title {
	font-size: 12px; font-weight: 600; color: #111827;
	line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) { .smt-video-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Recommendations Tab                                                  */
/* ------------------------------------------------------------------ */
.smt-rec-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 16px;
	padding: 12px 0 4px;
}
.smt-rec-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.smt-rec-photo {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}
.smt-rec-info {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.smt-rec-name {
	font-size: 15px;
	color: #111827;
}
.smt-rec-specialty {
	font-size: 12px;
	font-weight: 700;
	color: #c8102e;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.smt-rec-detail, .smt-rec-exp {
	font-size: 13px;
	color: #6b7280;
}
.smt-rec-articles {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 0 4px;
}
.smt-rec-article {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: #111827;
	transition: background .15s;
}
.smt-rec-article:hover { background: #f9fafb; color: #111827; }
.smt-rec-article__thumb {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}
.smt-rec-article__title { flex: 1; font-size: 14px; font-weight: 600; }
.smt-rec-article__arrow { color: #c8102e; font-size: 16px; }
@media ( max-width: 600px ) {
	.smt-rec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .smt-video-grid { grid-template-columns: 1fr; } }

/* ── Mobile card-stacking for client tables ──────────────────────────────── */
@media (max-width: 600px) {

	/* PI (Proforma Invoice) table */
	.smt-pi-table-wrap { overflow: visible; }
	.smt-pi-client-table thead { display: none; }
	.smt-pi-client-table,
	.smt-pi-client-table tbody { display: block; min-width: unset; }
	.smt-pi-client-table tbody tr {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid #e5e7eb;
	}
	.smt-pi-client-table tbody tr:last-child { border-bottom: none; }
	.smt-pi-client-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		padding: 4px 0;
		border: none;
		font-size: 13px;
		text-align: left !important;
	}
	.smt-pi-client-table tbody td::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .04em;
		color: #9ca3af;
		flex-shrink: 0;
		margin-right: 12px;
		min-width: 72px;
	}
	.smt-pi-client-table tfoot { display: block; border-top: 2px solid #e5e7eb; }
	.smt-pi-client-table tfoot tr {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 6px 0;
		border-bottom: 1px solid #f3f4f6;
	}
	.smt-pi-client-table tfoot tr:last-child { border-bottom: none; }
	.smt-pi-client-table tfoot td {
		border: none !important;
		padding: 0 !important;
		font-size: 13px;
	}
	.smt-pi-client-table tfoot td[colspan] {
		flex: 1;
		text-align: left !important;
	}
	.smt-pi-client-table tfoot td:not([colspan]) {
		text-align: right !important;
		white-space: nowrap;
	}
	.smt-pi-client-grand td { font-weight: 700; }

	/* Visa table */
	.smt-table-wrap { overflow: visible; }
	.smt-table-wrap .smt-table thead { display: none; }
	.smt-table-wrap .smt-table,
	.smt-table-wrap .smt-table tbody { display: block; }
	.smt-table-wrap .smt-table tbody tr {
		display: block;
		padding: 12px;
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		margin-bottom: 10px;
	}
	.smt-table-wrap .smt-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		padding: 5px 0;
		border: none;
		font-size: 13px;
		text-align: left !important;
	}
	.smt-table-wrap .smt-table tbody td::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .04em;
		color: #9ca3af;
		flex-shrink: 0;
		margin-right: 12px;
		min-width: 72px;
	}

	/* Quotation table — 2-col, just let it wrap naturally, no scroll */
	.smt-quotation-table { min-width: unset; overflow: visible; display: table; }
}
