/* telaHosting Service Listings – Premium UI (public)
   - Optimized for high conversion and responsiveness
*/

.thsl-root {
  --th-navy: #1a2b5d;
  --th-navy-dark: #152348;
  --th-gold: #dd9933;
  --th-bg: #f6f8fc;
  --th-card: #ffffff;
  --th-text: #0f172a;
  --th-muted: #64748b;
  --th-border: rgba(226, 232, 240, 0.8);
  --th-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  --th-radius: 12px;
  --th-cols-desktop: 3;
  --th-cols-tablet: 2;
  --th-cols-mobile: 1;
}


@media (prefers-color-scheme: dark) {
  .thsl-root{
    --th-bg:#0b1220;
    --th-card:#0f1a2e;
    --th-text:#e5e7eb;
    --th-muted:#a3b0c2;
    --th-border: rgba(148, 163, 184, 0.20);
    --th-shadow: 0 12px 35px rgba(0,0,0,.45);
  }
}


.thsl-root, .thsl-root * { box-sizing: border-box; }

.thsl-root {
  background: var(--th-bg);
  color: var(--th-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}


/* Inline icon wrapper */
.thsl-root .th-ico{
  display:inline-flex;
  width:16px;
  height:16px;
  margin-right:6px;
  vertical-align:middle;
}
.thsl-root .th-ico svg{
  width:100%;
  height:100%;
  fill: currentColor;
}

/* Premium badges */
.thsl-root .th-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--th-border);
  background: rgba(255,255,255,.65);
  color: var(--th-text);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}
@media (prefers-color-scheme: dark){
  .thsl-root .th-badge{ background: rgba(15,26,46,.75); }
}
.thsl-root .th-badge-recommended{
  border-color: rgba(221,153,51,.55);
  box-shadow: 0 10px 20px rgba(221,153,51,.18);
}
.thsl-root .th-badge-popular{
  border-color: rgba(59,130,246,.35);
}
.thsl-root .th-card--recommended{
  outline: 2px solid rgba(221,153,51,.45);
  box-shadow: 0 18px 45px rgba(221,153,51,.18), var(--th-shadow);
  transform: translateY(-2px);
}



.thsl-root .th-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  background: transparent;
}

/* Hero Section */
.thsl-root .th-hero {
  background: linear-gradient(135deg, var(--th-navy), var(--th-navy-dark));
  color: #fff;
  border-radius: var(--th-radius);
  padding: 40px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--th-shadow);
}

.thsl-root .th-hero h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.thsl-root .th-hero p { margin: 10px 0 0; opacity: 0.9; font-size: 16px; }

.thsl-root .th-assure {
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(5px);
}

/* Filter Card */
.thsl-root .th-filter-card {
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: var(--th-shadow);
}

.thsl-root .th-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.thsl-root .th-filter-title {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.thsl-root .th-count {
  background: var(--th-navy);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.thsl-root .th-filter-actions {
  display: flex;
  gap: 10px;
}

.thsl-root .th-reset, .thsl-root .th-searchbtn {
  background: none;
  border: 1px solid var(--th-border);
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.thsl-root .th-reset:hover { background: #f1f5f9; }
.thsl-root .th-searchbtn { background: var(--th-navy); color: #fff; border: none; }

.thsl-root .th-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.thsl-root .th-field { position: relative; }
.thsl-root .th-field input, .thsl-root .th-field select {
  width: 100%;
  height: 48px;
  padding: 0 15px 0 40px;
  border: 1px solid var(--th-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}

.thsl-root .th-field input:focus, .thsl-root .th-field select:focus {
  border-color: var(--th-navy);
}

.thsl-root .th-ico {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--th-navy);
  opacity: 0.6;
}

.thsl-root .th-cat-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid var(--th-border);
}

.thsl-root .th-cat-pill {
  padding: 6px 16px;
  background: #f1f5f9;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.thsl-root .th-cat-pill:hover { background: #e2e8f0; }
.thsl-root .th-cat-pill.active { background: var(--th-navy); color: #fff; }

/* Grid Layout */
.thsl-root .th-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(var(--th-cols-desktop), minmax(0, 1fr));
}

/* Product Card */
.thsl-root .th-card {
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--th-shadow);
  position: relative;
  overflow: hidden;
}

.thsl-root .th-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-color: var(--th-navy);
}

/* Card Header */
.thsl-root .th-top {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--th-border);
  padding-bottom: 20px;
}

.thsl-root .th-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--th-navy);
  margin-bottom: 10px;
  line-height: 1.2;
}

.thsl-root .th-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.thsl-root .th-badge {
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--th-muted);
}

.thsl-root .th-save {
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Pricing Hero (updated layout so note can sit below) */
.thsl-root .th-pricing-hero{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thsl-root .th-price-main {
  font-size: 28px;
  font-weight: 900;
  color: var(--th-navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.thsl-root .th-price-cycle {
  font-size: 14px;
  color: var(--th-muted);
  font-weight: 700;
}

/* NEW: FYI / Save-the-most note (2nd–5th images) */
.thsl-root .th-save-note{
  margin-top: 1px;
  padding: 3px 3px;
  border-radius: 10px;
  border: 1px solid rgba(34,197,94,.25);
  background: rgba(34,197,94,.10);
  color: #0f5132;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.35;
}

.thsl-root .th-save-note i{
  color: #16a34a;
  margin-top: 2px;
  font-size: 16px;
}

/* Features List */
.thsl-root .th-feats {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

/* Force single column for features when 4 columns are used on desktop */
.thsl-root[style*="--th-cols-desktop:4"] .th-feats,
.thsl-root[style*="--th-cols-desktop: 4"] .th-feats {
  display: block !important;
}

.thsl-root .th-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--th-text);
  line-height: 1.4;
}

.thsl-root .th-feats .thsl-ico-wrap {
  color: var(--th-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.thsl-root .th-feats .thsl-ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Card Bottom */
.thsl-root .th-bot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* NEW: dropdown row wrapper so mini badge can sit beside dropdown */
.thsl-root .th-cycle-wrap{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* NEW: mini “Save X%” badge next to dropdown (6th image spot) */
.thsl-root .th-save-mini{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(34,197,94,.10);
  color: #0f5132;
  border: 1px solid rgba(34,197,94,.25);
  white-space: nowrap;
  flex: 0 0 auto;
}
.thsl-root .th-save-mini i{
  color: #16a34a;
  font-size: 13px;
}

/* If the screen is tight, move mini badge above dropdown */
@media (max-width: 520px){
  .thsl-root .th-cycle-wrap{
    flex-direction: column;
    align-items: stretch;
  }
  .thsl-root .th-save-mini{
    width: 100%;
    justify-content: center;
  }
}

.thsl-root .th-cycle-select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--th-border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
  color: var(--th-navy);
  outline: none;
}

.thsl-root .th-cycle-select:focus {
  border-color: var(--th-navy);
}

.thsl-root .th-order-btn {
  width: 100%;
  height: 52px;
  background: var(--th-navy);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(26, 43, 93, 0.2);
}

.thsl-root .th-order-btn:hover {
  background: var(--th-navy-dark);
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(26, 43, 93, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
  .thsl-root .th-grid { grid-template-columns: repeat(var(--th-cols-tablet), minmax(0, 1fr)); }
  .thsl-root .th-filter-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .thsl-root .th-hero { padding: 30px; flex-direction: column; align-items: flex-start; }
  .thsl-root .th-hero h1 { font-size: 26px; }
  .thsl-root .th-filter-grid { grid-template-columns: 1fr; }
  .thsl-root .th-filter-head { flex-direction: column; align-items: flex-start; gap: 15px; }
}

@media (max-width: 480px) {
  .thsl-root .th-grid { grid-template-columns: repeat(var(--th-cols-mobile), minmax(0, 1fr)); }
  .thsl-root .th-wrap { padding: 15px; }
  .thsl-root .th-card { padding: 20px; }
}

/* Force dropdown visibility across themes (Flatsome etc.) */
.thsl-root .th-field select,
.thsl-root .th-field select option {
  color: var(--th-text) !important;
  background: #fff !important;
}
.thsl-root .th-field { z-index: 20; }
.thsl-root .th-filter-card { position: relative; z-index: 10; }

/* Category pills as a true horizontal slider */
.thsl-root .th-cat-row{
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.thsl-root .th-cat-row::-webkit-scrollbar{ height: 6px; }
.thsl-root .th-cat-row::-webkit-scrollbar-thumb{ background: rgba(100,116,139,.25); border-radius: 999px; }
.thsl-root .th-cat-pill{
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 44px;
}

/* Free domain tooltip */
.thsl-root .th-feat{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.thsl-root .th-feat .th-feat-text{ flex:1; }
.thsl-root .th-feat .th-feat-right{ margin-left:auto; padding-left:8px; }
.thsl-root .th-freeinfo{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid var(--th-border);
  color: var(--th-navy);
  background:#fff;
  cursor:help;
}
.thsl-root .th-freeinfo i{ font-size:14px; }
.thsl-root .th-tooltip{
  position:absolute;
  right:0;
  top:110%;
  width:260px;
  background:#fff;
  color:var(--th-text);
  border:1px solid var(--th-border);
  border-radius:12px;
  padding:12px 12px 10px;
  box-shadow:0 18px 45px rgba(15,23,42,.10);
  display:none;
  z-index:9999;
}
.thsl-root .th-freeinfo.th-open .th-tooltip{ display:block; }

/* Click-to-open modal style (centered in the card, like WHMCS) */
.thsl-root [data-card].thsl-tip-open .th-tooltip{
  position: fixed;
  left:50%;
  top:50%;
  right:auto;
  transform:translate(-50%, -50%);
  width: min(360px, calc(100vw - 40px));
  max-width: 90vw;
  max-height: 80vh;
  overflow:auto;
  background:#0b1220;
  color:#fff;
  border:1px solid rgba(255,255,255,.15);
  box-shadow: 0 25px 60px rgba(0,0,0,.60);
  display: block;
  z-index: 100000;
}
.thsl-root [data-card].thsl-tip-open .th-tooltip strong{ color: var(--th-gold); }
.thsl-root [data-card].thsl-tip-open .th-tip-row{ color: rgba(255,255,255,.75); }
.thsl-root [data-card].thsl-tip-open .th-tip-lbl{ color:#fff; }
.thsl-root [data-card].thsl-tip-open .th-tld-pill{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
}
.thsl-root [data-card].thsl-tip-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  pointer-events: auto;
}
.thsl-root .th-tooltip strong{ display:block; margin-bottom:6px; }
.thsl-root .th-tip-row{ font-size:12px; color:var(--th-muted); }
.thsl-root .th-tip-lbl{ font-weight:700; color:var(--th-text); }
.thsl-root .th-tld-list{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.thsl-root .th-tld-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(221,153,51,.12);
  color:var(--th-text);
  border:1px solid rgba(221,153,51,.30);
}
.thsl-root .th-tld-pill i{ color:var(--th-gold); font-size:12px; }

/* Hover / focus polish */
.thsl-root .th-card{
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
}
.thsl-root .th-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
}
.thsl-root .th-card a:focus,
.thsl-root button:focus,
.thsl-root select:focus,
.thsl-root input:focus{
  outline: 2px solid rgba(221,153,51,.45);
  outline-offset: 2px;
}

/* ------------------------------
   Compare plans (premium)
   ------------------------------ */
body.thsl-modal-open{ overflow:hidden; }

.thsl-root .th-compare-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--th-border);
  background: rgba(255,255,255,.55);
  color: var(--th-text);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.thsl-root .th-compare-toggle:hover{ background:#fff; border-color:rgba(221,153,51,.35); }
.thsl-root .th-compare-toggle.is-active{
  background: rgba(221,153,51,.18);
  border-color: rgba(221,153,51,.45);
}

.thsl-root .th-compare-bar{
  position: sticky;
  bottom: 12px;
  z-index: 99999;
  margin-top: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border:1px solid var(--th-border);
  box-shadow: 0 14px 40px rgba(15,23,42,.12);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.thsl-root .th-compare-bar--shake{
  animation: thslShake .55s ease;
}
@keyframes thslShake{
  0%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
  100%{transform:translateX(0)}
}

.thsl-root .th-compare-left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.thsl-root .th-compare-count{ font-size:12px; color:var(--th-muted); font-weight:700; }
.thsl-root .th-compare-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.thsl-root .th-compare-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(26,43,93,.06);
  border:1px solid rgba(26,43,93,.12);
  color: var(--th-text);
  font-size:12px;
  cursor:pointer;
}
.thsl-root .th-compare-pill-x{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background: rgba(15,23,42,.08);
  color: var(--th-muted);
  font-weight:900;
  line-height:1;
}

.thsl-root .th-compare-actions{ display:flex; align-items:center; gap:10px; }
.thsl-root .th-compare-clear{
  background: transparent;
  border:1px solid var(--th-border);
  color: var(--th-text);
  padding:8px 10px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}
.thsl-root .th-compare-open{
  background: var(--th-navy);
  border:1px solid rgba(26,43,93,.35);
  color: #fff;
  padding:8px 12px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
}
.thsl-root .th-compare-open[disabled]{ opacity:.5; cursor:not-allowed; }

/* Modal */
.thsl-root .th-compare-modal{ position: fixed; inset:0; z-index: 100000; }
.thsl-root .th-modal-overlay{ position:absolute; inset:0; background: rgba(15,23,42,.55); }
.thsl-root .th-modal-dialog{
  position: relative;
  width: min(980px, calc(100vw - 24px));
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  border:1px solid rgba(226,232,240,.9);
  box-shadow: 0 24px 80px rgba(15,23,42,.25);
  overflow:hidden;
}
.thsl-root .th-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(26,43,93,.06), rgba(255,255,255,1));
  border-bottom:1px solid rgba(226,232,240,.9);
}
.thsl-root .th-modal-title{ font-size:14px; font-weight:900; color:var(--th-text); }
.thsl-root .th-modal-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(226,232,240,.95);
  background:#fff;
  cursor:pointer;
}
.thsl-root .th-modal-controls{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 16px;
  border-bottom:1px solid rgba(226,232,240,.9);
}
.thsl-root .th-modal-label{ font-size:12px; color:var(--th-muted); font-weight:800; }
.thsl-root .th-modal-select{
  height: 38px;
  border-radius: 12px;
  border:1px solid rgba(226,232,240,.95);
  padding: 0 10px;
  font-weight:800;
}
.thsl-root .th-modal-body{
  padding: 14px 16px 18px;
  max-height: min(70vh, 560px);
  overflow:auto;
}

.thsl-root .th-compare-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.thsl-root .th-compare-col{
  border:1px solid rgba(226,232,240,.95);
  border-radius: 16px;
  overflow:hidden;
  background:#fff;
}
.thsl-root .th-compare-head{
  padding: 14px 14px 12px;
  background: rgba(245,247,251,.65);
  border-bottom:1px solid rgba(226,232,240,.95);
}
.thsl-root .th-compare-name{ font-size:14px; font-weight:900; color:var(--th-text); }
.thsl-root .th-compare-badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.thsl-root .th-compare-badge{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  background: rgba(221,153,51,.16);
  border:1px solid rgba(221,153,51,.30);
  font-weight:900;
}
.thsl-root .th-compare-price{ margin-top:10px; font-size:16px; font-weight:900; color:var(--th-text); }
.thsl-root .th-compare-na{ color: var(--th-muted); }
.thsl-root .th-compare-cta{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--th-navy);
  color:#fff;
  font-weight:900;
  text-decoration:none;
}
.thsl-root .th-compare-section{ padding: 12px 14px 14px; }
.thsl-root .th-compare-section-title{ font-size:12px; font-weight:900; color:var(--th-muted); margin-bottom:10px; }
.thsl-root .th-compare-feats{ margin:0; padding-left: 18px; }
.thsl-root .th-compare-feats li{ margin: 8px 0; color:var(--th-text); font-size:13px; }
.thsl-root .th-compare-muted{ color:var(--th-muted); font-size:13px; }

@media (max-width: 900px){
  .thsl-root .th-compare-grid{ grid-template-columns: 1fr; }
  .thsl-root .th-modal-dialog{ margin: 16px auto; }
  .thsl-root .th-modal-body{ max-height: calc(100vh - 170px); }
  .thsl-root .th-compare-bar{ position: fixed; left: 12px; right: 12px; bottom: 12px; }
}


/* ===== Compare (Table mode) ===== */
.th-compare-table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid var(--th-border);
  border-radius:12px;
  background:var(--th-card);
}

.th-compare-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:780px;
}

.th-compare-table thead th{
  position:sticky;
  top:0;
  background:var(--th-card);
  z-index:2;
  border-bottom:1px solid var(--th-border);
  text-align:left;
  vertical-align:top;
  padding:14px 14px;
}

.th-compare-feature-head{
  min-width:220px;
  font-weight:700;
  color:var(--th-text);
}

.th-compare-th{
  min-width:240px;
}

.th-compare-th-inner .th-compare-name{
  font-weight:800;
  font-size:15px;
  line-height:1.2;
  color:var(--th-text);
}

.th-compare-th-inner .th-compare-badges{ margin:8px 0 6px; }
.th-compare-th-inner .th-compare-price{ margin:6px 0 10px; font-weight:800; }

.th-compare-th--recommended{
  box-shadow:inset 0 0 0 2px rgba(221,153,51,.45);
  border-top-left-radius:12px;
  border-top-right-radius:12px;
}

.th-compare-table tbody td{
  border-bottom:1px solid var(--th-border);
  padding:12px 14px;
  vertical-align:top;
  font-size:13.5px;
  color:var(--th-text);
}

.th-compare-feature{
  font-weight:650;
  color:var(--th-muted);
  background:rgba(148,163,184,.06);
  min-width:220px;
}

.th-compare-td--na{
  color:var(--th-muted);
}

.th-compare-td--ok{
  font-weight:800;
}

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

@media (max-width: 640px){
  .th-compare-table{ min-width:720px; }
}



/* ------------------------------------------------------------------
   Premium Compare UX upgrades (v1.5.0)
   - enforce [hidden]
   - better SVG icon visibility across themes
   - search + diff highlighting + responsive modal/table
-------------------------------------------------------------------*/
.thsl-root [hidden]{ display:none !important; }

.thsl-root .th-ico{ flex:0 0 auto; }
.thsl-root .th-ico svg{ display:block; }
.thsl-root .th-ico svg,
.thsl-root .th-ico svg path{ fill: currentColor !important; }

.thsl-root .th-badge .th-ico,
.thsl-root .th-save .th-ico,
.thsl-root .th-compare-toggle .th-ico,
.thsl-root .th-modal-close .th-ico{
  margin-right:0; /* gap handles spacing in flex UI */
}

.thsl-root .th-modal-controls{
  display:flex;
  align-items:flex-end;
  gap:12px;
  padding: 12px 16px;
  flex-wrap:wrap;
}
.thsl-root .th-modal-control{ display:flex; flex-direction:column; gap:6px; min-width: 180px; }
.thsl-root .th-modal-control--search{ flex: 1 1 240px; min-width: 220px; }

.thsl-root 
.thsl-root .th-compare-table-wrap{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  max-height: calc(100vh - 220px);
}
.thsl-root .th-compare-table{ min-width: 740px; }

.thsl-root .th-compare-row--diff td,
.thsl-root .th-compare-row--diff .th-compare-feature{
  background: rgba(221,153,51,.04);
}
.thsl-root .th-compare-td--diff{
  background: rgba(221,153,51,.10) !important;
  font-weight: 800;
}

.thsl-root .th-compare-empty{
  padding: 14px 16px;
  color: var(--th-muted);
  font-weight: 700;
}

@media (max-width: 768px){
  .thsl-root .th-modal-dialog{ margin: 14px auto; width: calc(100vw - 18px); border-radius: 16px; }
  .thsl-root .th-modal-head{ padding: 12px 14px; }
  .thsl-root .th-modal-controls{ padding: 10px 12px; }
  .thsl-root .th-compare-table{ min-width: 640px; }
  .thsl-root .th-compare-bar{
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    margin-top: 0;
  }
}

@media (max-width: 420px){
  .thsl-root .th-modal-control{ min-width: 140px; }
  .thsl-root .th-compare-open{ padding: 10px 12px; }
}


/* --- Premium Compare refinements (v1.5.1) --- */
.thsl-root .thsl-ico-wrap{ display:inline-flex; align-items:center; justify-content:center; line-height:0; }
.thsl-root .thsl-ico{ width:16px; height:16px; display:inline-block; flex:0 0 16px; fill:var(--th-gold); color:currentColor; opacity:.92; }
.thsl-root .th-compare-toggle{ display:inline-flex; align-items:center; gap:6px; }
.thsl-root .th-modal-close{ display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.thsl-root .th-modal-close .thsl-ico{ width:18px; height:18px; opacity:.8; }

/* Reduce compare modal header height */
.thsl-root .th-modal-head{ padding: 10px 12px; }
.thsl-root .th-modal-title{ font-size: 13px; }
.thsl-root .th-modal-close{ width:34px; height:34px; border-radius:10px; }

.thsl-root .th-modal-controls{
  padding: 8px 12px;
  gap: 8px;
  flex-wrap: wrap;
}
.thsl-root .th-modal-label{ font-size:11px; }
.thsl-root .th-modal-select{ height:34px; border-radius:10px; font-size:13px; }

/* Make sticky compare table header smaller & give features more room */
.thsl-root .th-compare-table thead th{
  padding: 9px 10px;
  font-size: 12px;
}
.thsl-root .th-compare-feature-head{
  min-width: 150px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.thsl-root .th-compare-th{ min-width: 220px; }
.thsl-root .th-compare-th-inner .th-compare-name{ font-size:13px; }
.thsl-root .th-compare-th-inner .th-compare-badges{ margin:6px 0 4px; }
.thsl-root .th-compare-th-inner .th-compare-price{ margin:4px 0 8px; font-size:13px; }
.thsl-root .th-compare-cta{ margin-top: 8px; padding: 9px 10px; border-radius: 12px; font-size:12px; }

/* Responsive tweaks */
@media (max-width: 768px){
  .thsl-root .th-compare-table{ min-width: 620px; }
  .thsl-root .th-compare-th{ min-width: 200px; }
  .thsl-root .th-compare-feature-head{ min-width: 130px; }
}
@media (max-width: 480px){
  .thsl-root .th-modal-controls{ padding: 8px 10px; }
  .thsl-root .th-compare-table thead th{ padding: 8px 8px; }
  .thsl-root .th-compare-cta{ padding: 8px 10px; }
}


/* --- Premium Compare visual + responsive fixes (v1.5.2) --- */
.thsl-root .th-modal-dialog{
  display:flex;
  flex-direction:column;
  max-height: calc(100vh - 26px);
}
.thsl-root .th-modal-body{
  flex: 1 1 auto;
  max-height: none;
  overflow: auto;
  padding: 10px 12px 14px;
}

/* Ensure close button is always visible and clickable */
.thsl-root .th-modal-head{ position: relative; }
.thsl-root .th-modal-close{
  color: var(--th-muted);
  background: #fff;
}
.thsl-root .th-modal-close:hover{ background: rgba(148,163,184,.10); color: var(--th-text); }

/* Compare table: tighter + cleaner + mobile-friendly */
.thsl-root .th-compare-table-wrap{
  border-radius: 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.thsl-root .th-compare-table{
  min-width: 640px;
}
.thsl-root .th-compare-table thead th{
  padding: 10px 10px;
  font-size: 12px;
  line-height: 1.2;
}
.thsl-root .th-compare-feature-head{
  min-width: 130px;
  width: 130px;
}
.thsl-root .th-compare-th{
  min-width: 210px;
}
.thsl-root .th-compare-th-inner .th-compare-name{
  font-size: 12.5px;
  font-weight: 900;
}
.thsl-root .th-compare-th-inner .th-compare-price{
  font-size: 12.5px;
  margin: 4px 0 8px;
}
.thsl-root .th-compare-cta{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
}

/* Sticky first column (Feature) so users don’t lose context while scrolling sideways */
.thsl-root .th-compare-feature-head{
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--th-card);
  border-right: 1px solid var(--th-border);
}
.thsl-root .th-compare-feature{
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(148,163,184,.04);
  border-right: 1px solid var(--th-border);
  font-weight: 800;
  color: var(--th-text);
}

/* Softer table body styling (less “heavy grey”) */
.thsl-root .th-compare-table tbody td{
  padding: 10px 10px;
}
.thsl-root .th-compare-table tbody tr:nth-child(even) td{
  background: rgba(148,163,184,.03);
}
.thsl-root .th-compare-table tbody tr:nth-child(even) .th-compare-feature{
  background: rgba(148,163,184,.05);
}

/* Respect diff highlighting while keeping it subtle */
.thsl-root .th-compare-row--diff td,
.thsl-root .th-compare-row--diff .th-compare-feature{
  background: rgba(221,153,51,.035) !important;
}
.thsl-root .th-compare-td--diff{
  background: rgba(221,153,51,.10) !important;
  border-radius: 8px;
}

/* Modal on phones: full height, compact header */
@media (max-width: 768px){
  .thsl-root .th-modal-dialog{
    width: calc(100vw - 18px);
    margin: 9px auto;
    height: calc(100vh - 18px);
    border-radius: 16px;
  }
  .thsl-root .th-modal-head{ padding: 10px 12px; }
  .thsl-root .th-modal-controls{ padding: 8px 10px; }
  .thsl-root .th-compare-table{ min-width: 600px; }
  .thsl-root .th-compare-th{ min-width: 190px; }
}

@media (max-width: 480px){
  .thsl-root .th-compare-table{ min-width: 560px; }
  .thsl-root .th-compare-feature-head{ min-width: 115px; width: 115px; }
  .thsl-root .th-compare-th{ min-width: 175px; }
}


/* ============================================================
   Premium Compare Modal polish (v1.5.3)
   - Compact title bar with close (X) + subtle shadow
   - Sticky feature column with solid/near-opaque background
   - Mobile swipe hint when table overflows
   ============================================================ */
.th-modal-dialog{
  display:flex;
  flex-direction:column;
  max-height:88vh;
}

.th-modal-head{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  background:rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(15,23,42,.10);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}

.th-modal-title{
  font-size:14px;
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.1;
}

.th-modal-close{
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.92);
}

.th-modal-close svg{
  width:18px;
  height:18px;
  display:block;
}

.th-modal-controls{
  padding:10px 12px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

/* Table wrapper */
.th-compare-table-wrap{
  position:relative;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

/* Sticky first column (feature) must be opaque so rows behind don't show */
.th-compare-feature-head,
.th-compare-feature{
  position:sticky;
  left:0;
  z-index:6;
  background:rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
}

/* Ensure header stays above cells */
.th-compare-feature-head{
  z-index:8;
}

/* Keep borders crisp on sticky column */
.th-compare-feature-head,
.th-compare-feature{
  border-right:1px solid rgba(15,23,42,.10);
}

/* Smaller feature column width to give plans more space */
.th-compare-feature-head,
.th-compare-feature{
  min-width:140px;
  max-width:160px;
  width:150px;
}

/* Swipe hint */
.th-compare-swipe-hint{
  position:sticky;
  left:0;
  top:0;
  z-index:20;
  display:none;
  padding:6px 10px;
  font-size:12px;
  font-weight:700;
  color:rgba(15,23,42,.70);
  background:rgba(255,255,255,.88);
  border:1px solid rgba(15,23,42,.10);
  border-radius:999px;
  width:max-content;
  margin:10px 10px 0 auto;
  box-shadow:0 10px 22px rgba(15,23,42,.10);
}

.th-compare-swipe-hint.is-show{
  display:block;
}

@media (max-width: 768px){
  .th-modal-dialog{ max-height:92vh; }
  .th-modal-head{ padding:9px 10px; }
  .th-modal-title{ font-size:13px; }
  .th-compare-feature-head,
  .th-compare-feature{
    min-width:120px;
    max-width:140px;
    width:130px;
  }
}


/* ===== Annual-as-monthly pricing style ===== */
.thsl-root .th-price-start{
  font-size: 13px;
  color: rgba(15,23,42,.65);
  margin-bottom: 8px;
}
.thsl-root .th-price-start .th-start-price{
  margin-left: 6px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #ef4444;
}
.thsl-root .thsl-annual-as-monthly .th-price-main{
  display:flex;
  align-items: baseline;
  gap: 4px;
}
.thsl-root .thsl-annual-as-monthly .th-per{
  font-size: 13px;
  font-weight: 800;
  color: rgba(15,23,42,.60);
}
.thsl-root .th-price-secondary{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(15,23,42,.70);
}


/* === Billing Cycle Tabs (Cards-only / Hide Filters mode) === */
.thsl-cycle-tabs{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
  overflow:auto;
  padding:10px 10px 6px;
  margin:0 0 10px;
  -webkit-overflow-scrolling:touch;
}
.thsl-cycle-tabs::-webkit-scrollbar{ height:6px; }
.thsl-cycle-tabs::-webkit-scrollbar-track{ background:transparent; }
.thsl-cycle-tabs::-webkit-scrollbar-thumb{ background:rgba(15,23,42,.18); border-radius:999px; }

.thsl-cycle-tab{
  appearance:none;
  border:1px solid rgba(148,163,184,.35);
  background:#fff;
  color:#0f172a;
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 6px 16px rgba(15,23,42,.06);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.thsl-cycle-tab:hover{ transform:translateY(-1px); box-shadow:0 10px 22px rgba(15,23,42,.08); }
.thsl-cycle-tab.is-active{
  border-color:rgba(26,43,93,.55);
  background:#1a2b5d;
  color:#fff;
}
.thsl-cycle-tab[hidden]{ display:none !important; }

@media (max-width: 640px){
  .thsl-cycle-tabs{ padding:8px 8px 6px; margin-bottom:8px; }
  .thsl-cycle-tab{ font-size:12px; padding:7px 10px; }
}


/* Listing Marks Enhancement */
.thsl-root .th-feat-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(241, 245, 249, 0.5);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.thsl-root .th-feat-item:hover {
  background: rgba(241, 245, 249, 0.8);
  transform: translateX(4px);
}

.thsl-root .th-feat-text {
  flex-grow: 1;
  font-weight: 500;
}

/* .th-feat-mark removed as per user request to move marks to the left */

@media (prefers-color-scheme: dark) {
  .thsl-root .th-feat-item {
    background: rgba(15, 26, 46, 0.4);
  }
  .thsl-root .th-feat-item:hover {
    background: rgba(15, 26, 46, 0.6);
  }
}

/* Feature List Toggle */
.thsl-root .th-feats-toggle-wrap {
  margin: -15px 0 25px;
  text-align: left;
}

.thsl-root .th-feats-toggle {
  background: none;
  border: none;
  padding: 5px 0;
  color: var(--th-navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  text-decoration: none;
  opacity: 0.9;
}

.thsl-root .th-feats-toggle:hover {
  opacity: 1;
  color: var(--th-gold);
  text-decoration: underline;
}

.thsl-root .th-feats-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Feature list toggle (ensure hidden items can reappear even if rendered with inline display:none) */
.thsl-root .th-feat-hidden{ display:none !important; }
.thsl-root .th-card.thsl-feats-open .th-feat-hidden{ display:flex !important; }

@media (prefers-color-scheme: dark) {
  .thsl-root .th-feats-toggle {
    color: var(--th-gold);
  }
}
