/* SBDT Customer Portal styles — kept scoped to .sbdt-my to avoid theme bleed. */
.sbdt-my {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
	line-height: 1.5;
	max-width: 1000px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}
.sbdt-my * { box-sizing: border-box; }

.sbdt-my-h1 { font-size: 28px; font-weight: 700; margin: 0 0 4px; color: #0f172a; }
.sbdt-my-h2 { font-size: 20px; font-weight: 600; margin: 0 0 16px; color: #0f172a; }
.sbdt-my-sub { color: #6b7280; margin: 0; font-size: 14px; }
.sbdt-my-lead { color: #4b5563; margin: 0 0 18px; font-size: 15px; }
.sbdt-my-aux { color: #6b7280; font-size: 13px; margin: 16px 0 0; }
.sbdt-my-aux a { color: #0e6fd7; text-decoration: none; }
.sbdt-my-aux a:hover { text-decoration: underline; }

.sbdt-my-header {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.sbdt-my-nav { display: flex; gap: 16px; }
.sbdt-my-nav a {
	color: #4b5563; text-decoration: none; font-size: 14px; font-weight: 500;
	padding: 6px 12px; border-radius: 6px; transition: background 0.15s;
}
.sbdt-my-nav a:hover { background: #f3f4f6; color: #0f172a; }

.sbdt-my-card {
	background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
	padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.sbdt-my-card--wide { grid-column: 1 / -1; }

.sbdt-my-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 720px) {
	.sbdt-my-grid { grid-template-columns: 1fr; }
}

/* Forms */
.sbdt-my-form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.sbdt-my-field { display: flex; flex-direction: column; gap: 4px; }
.sbdt-my-field span { font-size: 13px; font-weight: 500; color: #374151; }
.sbdt-my-field input {
	border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px;
	font-size: 15px; background: #fff; color: #111827;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.sbdt-my-field input:focus {
	outline: none; border-color: #0e6fd7;
	box-shadow: 0 0 0 3px rgba(14, 111, 215, 0.15);
}
.sbdt-my-field input[disabled] { background: #f3f4f6; color: #6b7280; }
.sbdt-my-field-hint {
	font-size: 13px;
	color: #6b7280;
	margin: -6px 0 12px;
}

.sbdt-my-btn {
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; cursor: pointer; font-size: 14px; font-weight: 600;
	padding: 10px 18px; border-radius: 8px;
	transition: background 0.15s, transform 0.05s;
}
.sbdt-my-btn:active { transform: translateY(1px); }
.sbdt-my-btn--primary { background: #0e6fd7; color: #fff; }
.sbdt-my-btn--primary:hover { background: #0c5fb8; }
.sbdt-my-btn--ghost { background: transparent; color: #0e6fd7; padding: 6px 10px; }
.sbdt-my-btn--ghost:hover { background: #eff6ff; }
.sbdt-my-btn--small { padding: 6px 12px; font-size: 13px; }

/* Alerts */
.sbdt-my-alert {
	border-radius: 10px; padding: 12px 16px; margin: 0 0 18px;
	background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a;
	font-size: 14px;
}
.sbdt-my-alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.sbdt-my-alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

/* Loaders */
.sbdt-my-loader { color: #6b7280; font-size: 14px; padding: 16px 0; }
.sbdt-my-loader.is-error { color: #991b1b; }

/* Tables */
.sbdt-my-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sbdt-my-table th, .sbdt-my-table td {
	text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb;
}
.sbdt-my-table th { font-weight: 600; color: #374151; background: #f9fafb; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.sbdt-my-table tr:last-child td { border-bottom: 0; }
.sbdt-my-table .sbdt-my-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.sbdt-my-status {
	display: inline-block; font-size: 11px; font-weight: 600;
	padding: 3px 8px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.04em;
}
.sbdt-my-status--paid { background: #d1fae5; color: #065f46; }
.sbdt-my-status--open { background: #fef3c7; color: #92400e; }
.sbdt-my-status--void { background: #f3f4f6; color: #6b7280; }
.sbdt-my-status--draft { background: #e5e7eb; color: #4b5563; }
.sbdt-my-status--uncollectible { background: #fee2e2; color: #991b1b; }

/* Definition list (profile) */
.sbdt-my-dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; }
.sbdt-my-dl dt { color: #6b7280; font-size: 13px; }
.sbdt-my-dl dd { margin: 0; font-size: 15px; color: #111827; }

/* Profile — package card */
.sbdt-my-card--package {
	padding: 0;
	overflow: hidden;
}
.sbdt-my-package {
	padding: 20px 24px;
}
.sbdt-my-package--empty {
	padding: 20px 24px;
}
.sbdt-my-package__label {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
}
.sbdt-my-package__logo-wrap {
	margin-bottom: 14px;
}
.sbdt-my-package__logo {
	display: block;
	max-height: 120px;
	max-width: 220px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.sbdt-my-package__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}
.sbdt-my-package__blurb {
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
}
.sbdt-my-package__blurb p {
	margin: 0 0 8px;
}
.sbdt-my-package__empty {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}
@media (max-width: 560px) {
	.sbdt-my-dl { grid-template-columns: 1fr; gap: 4px 0; }
	.sbdt-my-dl dd { margin-bottom: 10px; }
}

/* Subscription summary */
.sbdt-my-sub-summary { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sbdt-my-sub-summary .row { display: flex; justify-content: space-between; gap: 12px; }
.sbdt-my-sub-summary .row .label { color: #6b7280; }
.sbdt-my-sub-summary .row .value { color: #111827; font-weight: 500; }
.sbdt-my-sub-actions { margin-top: 14px; display: flex; gap: 8px; }
