.tbmra-wrap {
  --tbmra-bg: #f5f8fb;
  --tbmra-card: #ffffff;
  --tbmra-text: #17263a;
  --tbmra-muted: #647487;
  --tbmra-line: #dbe5ed;
  --tbmra-accent: #1b6fb8;
  --tbmra-accent-dark: #11243a;
  --tbmra-teal: #23a7a0;
  --tbmra-success: #137a46;
  --tbmra-error: #b42318;
  --tbmra-soft-blue: #edf6fd;
  --tbmra-shadow: 0 18px 52px rgba(17,36,58,.09);
  max-width: 1040px;
  margin: 34px auto;
  color: var(--tbmra-text);
  font-family: inherit;
  line-height: 1.55;
}
.tbmra-wrap * { box-sizing: border-box; }
.tbmra-wrap h2,.tbmra-wrap h3,.tbmra-wrap h4 { color: var(--tbmra-text); line-height: 1.16; letter-spacing: -.02em; }
.tbmra-wrap p { line-height: 1.65; }
.tbmra-hidden { display:none !important; }
.tbmra-eyebrow { margin-bottom:7px; color:var(--tbmra-accent); font-size:12px; font-weight:850; letter-spacing:.105em; text-transform:uppercase; }
.tbmra-optional { color:var(--tbmra-muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }

.tbmra-public-header {
  position:relative; overflow:hidden; padding:34px 36px 30px; border-radius:24px;
  background:linear-gradient(125deg,var(--tbmra-accent-dark),#173f65 64%,var(--tbmra-accent));
  color:#fff; box-shadow:var(--tbmra-shadow);
}
.tbmra-public-header::after { content:""; position:absolute; width:280px; height:280px; right:-100px; top:-130px; border-radius:50%; background:rgba(255,255,255,.08); }
.tbmra-header-copy { position:relative; z-index:1; max-width:760px; }
.tbmra-public-header .tbmra-eyebrow { color:#8edbd5; }
.tbmra-public-header h2 { margin:0 0 9px; color:#fff !important; font-size:clamp(2rem,4vw,3.25rem); }
.tbmra-public-header p { margin:0; color:rgba(255,255,255,.82); font-size:1.02rem; }
.tbmra-trust-row { position:relative; z-index:1; display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }
.tbmra-trust-row span { display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border:1px solid rgba(255,255,255,.17); border-radius:999px; background:rgba(255,255,255,.08); color:#eef7ff; font-size:12px; font-weight:750; }
.tbmra-trust-row span::before { content:"✓"; color:#90e2dc; font-weight:900; }

.tbmra-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.tbmra-tab { min-width:0; display:flex; align-items:center; gap:12px; text-align:left; padding:15px 16px; border:1px solid var(--tbmra-line); border-radius:16px; background:#fff; color:var(--tbmra-text); box-shadow:0 6px 20px rgba(17,36,58,.045); cursor:pointer; font:inherit; transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease,background .18s ease; }
.tbmra-tab:hover { transform:translateY(-1px); border-color:#b9cbd9; box-shadow:0 10px 28px rgba(17,36,58,.075); }
.tbmra-tab.is-active { border-color:var(--tbmra-accent); background:linear-gradient(135deg,#fff,var(--tbmra-soft-blue)); box-shadow:0 10px 30px rgba(27,111,184,.11); }
.tbmra-tab-mark { flex:0 0 36px; height:36px; display:grid; place-items:center; border-radius:10px; background:#eef3f7; color:#516274; font-size:12px; font-weight:900; }
.tbmra-tab.is-active .tbmra-tab-mark { background:var(--tbmra-accent); color:#fff; }
.tbmra-tab > span:last-child { min-width:0; display:grid; gap:2px; font-weight:850; }
.tbmra-tab small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--tbmra-muted); font-size:11px; font-weight:550; }

.tbmra-panel { display:none; padding:30px; border:1px solid var(--tbmra-line); border-radius:22px; background:var(--tbmra-card); box-shadow:var(--tbmra-shadow); }
.tbmra-panel.is-active { display:block; }
.tbmra-panel-intro { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:26px; align-items:start; padding-bottom:23px; border-bottom:1px solid var(--tbmra-line); }
.tbmra-panel-intro h3 { margin:2px 0 7px; font-size:clamp(1.65rem,3vw,2.15rem); }
.tbmra-panel-intro p { max-width:650px; margin:0; color:var(--tbmra-muted); }
.tbmra-mini-callout { padding:15px 16px; border:1px solid #cfe2ef; border-radius:14px; background:#f5fbff; }
.tbmra-mini-callout strong,.tbmra-mini-callout span { display:block; }
.tbmra-mini-callout strong { margin-bottom:4px; color:var(--tbmra-accent-dark); }
.tbmra-mini-callout span { color:var(--tbmra-muted); font-size:12px; }

.tbmra-form { display:grid; gap:18px; margin-top:22px; }
.tbmra-form-section { padding:21px; border:1px solid var(--tbmra-line); border-radius:17px; background:#fff; }
.tbmra-form-section-soft { background:#f8fbfd; }
.tbmra-form-section-head { display:flex; gap:13px; align-items:flex-start; margin-bottom:17px; }
.tbmra-form-section-head > span { flex:0 0 34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--tbmra-soft-blue); color:var(--tbmra-accent); font-size:11px; font-weight:900; }
.tbmra-form-section-head h4 { margin:0 0 2px; font-size:1.06rem; }
.tbmra-form-section-head p { margin:0; color:var(--tbmra-muted); font-size:12px; }
.tbmra-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.tbmra-span-2 { grid-column:1/-1; }
.tbmra-form label { display:grid; gap:7px; color:#26384b; font-size:13px; font-weight:750; }
.tbmra-form label small { color:var(--tbmra-muted); font-size:11px; font-weight:500; }
.tbmra-form input,.tbmra-form select,.tbmra-form textarea {
  width:100%; min-height:46px; padding:11px 13px; border:1px solid #cbd8e2; border-radius:11px; background:#fff; color:var(--tbmra-text); font:inherit; font-size:14px; transition:border-color .15s ease,box-shadow .15s ease;
}
.tbmra-form textarea { min-height:126px; resize:vertical; }
.tbmra-form input::placeholder,.tbmra-form textarea::placeholder { color:#98a5b2; }
.tbmra-form input:focus,.tbmra-form select:focus,.tbmra-form textarea:focus { outline:0; border-color:var(--tbmra-accent); box-shadow:0 0 0 4px rgba(27,111,184,.11); }
.tbmra-form input[readonly] { background:#f4f7f9; color:#4d5d6c; }
.tbmra-money-input { position:relative; }
.tbmra-money-input > span { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--tbmra-muted); font-weight:700; }
.tbmra-money-input input { padding-left:28px; }
.tbmra-follow-check { display:flex !important; align-items:flex-start; gap:12px !important; margin-top:17px; padding:15px 16px; border:1px solid #c8dfed; border-radius:14px; background:#fff; cursor:pointer; }
.tbmra-follow-check input { width:auto !important; min-height:0; margin:3px 0 0; accent-color:var(--tbmra-accent); }
.tbmra-follow-check span { display:grid; gap:3px; }
.tbmra-follow-check strong { color:var(--tbmra-accent-dark); }
.tbmra-follow-check small { line-height:1.45; }
.tbmra-form-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.tbmra-form-actions > span { max-width:500px; color:var(--tbmra-muted); font-size:11px; }
.tbmra-hp { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

.tbmra-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border:0; border-radius:11px; padding:11px 18px; font:inherit; font-size:13px; font-weight:850; cursor:pointer; transition:transform .15s ease,background .15s ease,box-shadow .15s ease; }
.tbmra-btn:hover { transform:translateY(-1px); }
.tbmra-btn:disabled { cursor:wait; opacity:.65; transform:none; }
.tbmra-btn-primary { background:linear-gradient(135deg,var(--tbmra-accent),#2b83c8); color:#fff; box-shadow:0 8px 20px rgba(27,111,184,.2); }
.tbmra-btn-primary:hover { background:linear-gradient(135deg,#1762a4,var(--tbmra-accent)); }
.tbmra-btn-secondary { background:#edf3f7; color:var(--tbmra-accent-dark); }
.tbmra-btn-ghost { border:1px solid var(--tbmra-line); background:#fff; color:#455768; }
.tbmra-btn-link { min-height:0; padding:3px 0; background:transparent; color:var(--tbmra-accent); justify-self:start; }

.tbmra-notice { margin-top:16px; border-radius:12px; font-size:13px; }
.tbmra-notice:not(:empty) { padding:13px 15px; border:1px solid #dce5ec; background:#f4f7f9; }
.tbmra-notice.is-success { color:var(--tbmra-success); border-color:#c8e8d6; background:#eef9f3; }
.tbmra-notice.is-error { color:var(--tbmra-error); border-color:#f1c8c2; background:#fff3f1; }

.tbmra-track-layout { display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:36px; align-items:center; min-height:380px; }
.tbmra-track-copy h3 { margin:4px 0 9px; font-size:clamp(1.8rem,3vw,2.3rem); }
.tbmra-track-copy p { color:var(--tbmra-muted); }
.tbmra-track-copy ul { display:grid; gap:8px; margin:20px 0 0; padding:0; list-style:none; }
.tbmra-track-copy li { position:relative; padding-left:26px; color:#415366; font-size:13px; }
.tbmra-track-copy li::before { content:"✓"; position:absolute; left:0; color:var(--tbmra-teal); font-weight:900; }
.tbmra-auth-card { padding:24px; border:1px solid var(--tbmra-line); border-radius:18px; background:linear-gradient(145deg,#fff,#f8fbfd); box-shadow:0 12px 34px rgba(17,36,58,.07); }
.tbmra-auth-card .tbmra-form { margin-top:0; }
.tbmra-auth-foot { margin-top:13px; color:var(--tbmra-muted); font-size:11px; text-align:center; }

.tbmra-portal-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:20px; border-bottom:1px solid var(--tbmra-line); }
.tbmra-portal-header h3 { margin:2px 0 4px; font-size:1.6rem; }
.tbmra-portal-header p { margin:0; color:var(--tbmra-muted); font-size:12px; }
.tbmra-header-actions { display:flex; gap:8px; flex-wrap:wrap; }
.tbmra-ticket-grid { display:grid; gap:16px; margin-top:18px; }
.tbmra-ticket-card { padding:20px; border:1px solid var(--tbmra-line); border-radius:17px; background:#fff; box-shadow:0 8px 24px rgba(17,36,58,.045); }
.tbmra-ticket-top { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.tbmra-ticket-number { color:var(--tbmra-muted); font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.05em; }
.tbmra-ticket-card h4 { margin:3px 0 0; font-size:1.2rem; }
.tbmra-status { display:inline-flex; align-items:center; border-radius:999px; background:#eaf3fb; color:#215f94; padding:6px 10px; font-size:11px; font-weight:850; white-space:nowrap; }
.tbmra-ticket-meta { display:flex; gap:14px; flex-wrap:wrap; margin-top:9px; color:var(--tbmra-muted); font-size:11px; }
.tbmra-ticket-flags { display:flex; gap:7px; flex-wrap:wrap; margin-top:12px; }
.tbmra-badge { display:inline-flex; padding:5px 8px; border-radius:7px; background:#f1f5f8; color:#506171; font-size:11px; font-weight:700; }
.tbmra-meta { color:var(--tbmra-muted); font-size:11px; }
.tbmra-empty { padding:28px; border:1px dashed #c8d4de; border-radius:14px; background:#fbfcfd; color:var(--tbmra-muted); text-align:center; }
.tbmra-history { margin-top:24px; padding:15px 17px; border:1px solid var(--tbmra-line); border-radius:14px; background:#fbfcfd; }
.tbmra-history summary { cursor:pointer; font-weight:800; }

.tbmra-pricing-pending { margin-top:16px; padding:13px 14px; border:1px dashed #cbd3dc; border-radius:10px; background:#fafbfc; color:var(--tbmra-muted); }
.tbmra-pricing { margin-top:18px; padding-top:16px; border-top:1px solid var(--tbmra-line); }
.tbmra-pricing-head { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.tbmra-pricing-head > div { display:grid; gap:3px; padding:14px; border-radius:12px; background:#f3f7fa; }
.tbmra-pricing-head .tbmra-balance { background:#eaf5fb; }
.tbmra-pricing-head span { color:var(--tbmra-muted); font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.tbmra-pricing-head strong { font-size:20px; }
.tbmra-price-items { overflow:hidden; border:1px solid var(--tbmra-line); border-radius:12px; }
.tbmra-price-row { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; padding:12px 14px; border-bottom:1px solid var(--tbmra-line); }
.tbmra-price-row:last-child { border-bottom:0; }
.tbmra-price-row > div { display:grid; gap:3px; min-width:0; }
.tbmra-price-row small { color:var(--tbmra-muted); font-size:11px; font-weight:400; }
.tbmra-price-row > span { font-weight:800; white-space:nowrap; }
.tbmra-price-summary { width:min(100%,390px); margin:12px 0 0 auto; display:grid; gap:7px; }
.tbmra-price-summary-row,.tbmra-price-total { display:flex; justify-content:space-between; gap:18px; }
.tbmra-price-summary-row { color:var(--tbmra-muted); font-size:12px; }
.tbmra-price-total { padding-top:7px; border-top:1px solid var(--tbmra-line); }
.tbmra-price-paid { color:var(--tbmra-success); }
.tbmra-price-balance { font-size:17px; }
.tbmra-pricing-note { margin:12px 0 0 !important; color:var(--tbmra-muted) !important; font-size:11px; line-height:1.5; }
.tbmra-customer-notes { margin-top:15px; padding:13px 14px; border-left:4px solid var(--tbmra-accent); border-radius:8px; background:#f5f9fd; }
.tbmra-customer-notes p { margin:5px 0 0; color:var(--tbmra-text); font-size:13px; }

/* Embedded mode is intentionally flatter so it sits naturally inside the main site's /quote/ page. */
.tbmra-mode-service,.tbmra-mode-quote,.tbmra-mode-repair,.tbmra-mode-tracking { max-width:none; margin:0; }
.tbmra-mode-service > .tbmra-tabs:first-child,.tbmra-mode-quote > .tbmra-tabs:first-child,.tbmra-mode-repair > .tbmra-tabs:first-child,.tbmra-mode-tracking > .tbmra-tabs:first-child { margin-top:0; }

@media (max-width:820px) {
  .tbmra-tabs { grid-template-columns:1fr; }
  .tbmra-tab small { white-space:normal; }
  .tbmra-panel-intro,.tbmra-track-layout { grid-template-columns:1fr; }
  .tbmra-mini-callout { max-width:none; }
}
@media (max-width:680px) {
  .tbmra-wrap { margin:18px auto; }
  .tbmra-public-header { padding:24px 20px; border-radius:18px; }
  .tbmra-panel { padding:19px; border-radius:17px; }
  .tbmra-form-section { padding:16px; }
  .tbmra-form-grid { grid-template-columns:1fr; }
  .tbmra-span-2 { grid-column:auto; }
  .tbmra-ticket-top,.tbmra-portal-header { flex-direction:column; align-items:flex-start; }
  .tbmra-pricing-head { grid-template-columns:1fr; }
  .tbmra-price-row { gap:10px; }
  .tbmra-form-actions { align-items:flex-start; flex-direction:column; }
  .tbmra-btn-primary { width:100%; }
}
