.csm-results-wrap-parent {
      margin: 1em auto;
}
.csm-results-wrap{
    display:flex;
    margin-top: 2rem;
    margin-bottom: 4rem;
}
.csm-filters{
    width:300px;
    background:#eef3fa;padding:15px;border-radius:8px;}
.csm-filters input, .csm-filters select{width:100%;margin-bottom:8px;padding:6px;}
.csm-filters button{width:100%;padding:8px;background:#002f87;color:#fff;border:none;border-radius:4px;}
.csm-tabs-wrap{
    flex:1;
    /* margin-left:20px; */
}
.csm-search-group-2 {
    margin-bottom: 0.5rem;
    color:#002f87;
    font-weight: 600;
}
.csm-tabs{display:flex;list-style:none;padding:0;border-bottom:2px solid #ccc; margin: 0 0 0em 1.5em}
.csm-tabs li{padding:10px 15px;cursor:pointer;background:#e6ecf5;margin-right:4px;border-radius:8px 8px 0 0;font-size: 12px; color:#002f87;
    font-weight: 600; width: 100%;}
.csm-tabs li.active{background:#002f87;color:#fff;}
.csm-panel{display:none;background:#fff;padding: 0em 0em 0em 1.5em;}
.csm-panel.active{display:block;}
.csm-accordion h3{margin:0;padding:8px;background:#002f87;color:#fff;cursor:pointer; font-size: 1.5rem;}
.csm-accordion ul{display:none;list-style:none;padding:0;margin:0;}
.csm-accordion ul li{padding:6px 8px;border-bottom:1px solid #eee;}

.csm-other-accordion h3{margin:0;padding:5px 8px;background:#fff;color:#002f87;cursor:pointer; font-size: 1.1rem;}

.csm-table-scroll > p {
  padding: 5px 8px;
}

.csm-accordion-content {
  display: none;
}
.csm-accordion.open .csm-accordion-content {
  display: block;
}
.csm-service-table {
  width:100%;
  border-collapse: collapse;
  margin:1em 0;
}
.csm-service-table th,
.csm-service-table td {
  border:0px solid #ddd;
  padding:0.5em;
  font-size:0.9em;
  color: #002f87; 
}
.csm-service-table thead th {
    color: #002f87; 
    border: none;
    font-size: 1.1em;
    font-weight: 400;
}
.csm-service-table td.csm-available {
  text-align:center;
  color:#2DA7DF;
  font-weight:bold;
}
.csm-service-table td.csm-na {
  text-align:center;
  color: #002f87; 
  font-weight: 600;
  /* font-style:italic; */
}

.csm-service-table th.csm-branch {
    text-align:center;
    text-transform: uppercase;
}
.csm-table-scroll {
  max-height: 400px;    /* adjust to whatever makes sense */
  overflow-y: auto;
  margin-bottom: 1em;   /* give a little breathing room */
  border: 1px solid #ddd;
}

/* optional: make header stick */
.csm-table-scroll thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

/* full-width table */
.csm-service-table {
  width: 100%;
  border-collapse: collapse;
}

.csm-service-table td mark {
    background-color: #2DA7DF;
}
.csm-clear-btn {
  background-color: #fff !important;
  border: 1px solid #002f87 !important;
  color: #002f87 !important;
  margin-top: 0.5rem;
}
.check-availability-branch {
  width: 24px;
  margin: 0 auto
}
/* Right-aligned accordion chevron */
.csm-accordion h3{
  position: relative;
  padding-right: 1.5rem;        /* space for the arrow on the right */
  cursor: pointer;
  /* user-select: none; */
}

/* closed: ›  (right pointing) */
.csm-accordion h3::after{
  content: "";
  position: absolute;
  right: 12px;                  /* tweak to match your design */
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
  transition: transform .2s ease;
  opacity: .9;                  /* arrow color follows text color */
}

/* open: ˇ  (down pointing) */
.csm-accordion.open h3::after{
  transform: translateY(-50%) rotate(45deg);
}

/* optional hover polish */
.csm-accordion h3:hover::after{
  opacity: 1;
}
/* Ghost header: keep column widths aligned with zero visual height */
.csm-service-table thead.csm-ghost {
  height: 0 !important;
}
.csm-service-table thead.csm-ghost th {
  padding: 0 !important;
  border: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.csm-table-scroll thead th:nth-child(1){
   width: 55%;
}

.csm-table-scroll thead th:nth-child(2), 
.csm-table-scroll thead th:nth-child(3),
.csm-table-scroll thead th:nth-child(4) {
  width: 15%;
  
}

.csm-service-table thead.csm-ghost th:nth-child(1) {
  width: 55%;
}

.csm-service-table thead.csm-ghost th:nth-child(2), 
.csm-service-table thead.csm-ghost th:nth-child(3),
.csm-service-table thead.csm-ghost th:nth-child(4) {
  width: 15%;
}

/* Scroll container stays tidy */
.csm-table-scroll {
  max-height: 400px;       /* you already set this in JS; CSS here keeps it consistent */
}

/* CTA below the accordion */
/* .csm-cta {
  margin-top: 1rem 1.5rem 1rem 1.5rem;
} */
.csm-cta-wrap {
  padding: 0rem 0rem;
  margin-bottom: 1rem;
}
.csm-cta {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #002F87;     /* brand blue */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: filter .15s ease;
}
.csm-cta:hover {
  background: #002F87;     /* brand blue */
  color: #fff;
}
#csm-suggestion-text {
  color: #002F87;
  font-weight: 700;
}
#csm-suggestion {
  margin-bottom: 1rem;
  cursor: pointer;
}

#csm-nores {
  text-align: center;
  margin-top: 1rem;
  color: #002F87;
}
.cp-heading {
  font-family: 'AvenirLTStd Heavy Book', system-ui, -apple-system, Arial;
}

#csm-suggestion.is-loading .csm-suggest-loading { display:flex; align-items:center; gap:8px; padding:8px 12px; }
.csm-spinner {
  width:16px; height:16px; border-radius:50%;
  border:2px solid currentColor; border-right-color:transparent;
  display:inline-block; animation:csm-spin .8s linear infinite;
}
@keyframes csm-spin { to { transform:rotate(360deg); } }

#csm-suggestion .csm-sg-list { list-style:none; margin:0; padding:4px 6px 8px; }
#csm-suggestion .csm-sg-li { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:3px; }

#note-zoom {
  display: none;
}

@media (max-width: 768px) {

  #note-zoom {
    display: block;
    color: #002F87;
    font-size: 12px;
    margin-top: 0rem;
    text-align: center;
  }
  .csm-table-scroll thead th:nth-child(2), 
.csm-table-scroll thead th:nth-child(3),
.csm-table-scroll thead th:nth-child(4) {
  padding-right: 10px;
}
  .cp-heading {
    font-size: 26px;
  }
 .csm-service-search-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .csm-search-group {
    width: 100%;
  }
  .csm-go-btn {
    width: 100%;
  }
  .csm-results-wrap {
    flex-direction: column;
    gap: 20px;
  }
  .csm-filters {
    width: 100%;
  }
  .csm-tabs {
    display: flex;
    list-style: none;
    padding: 5px;
    border-bottom: 2px solid #ccc;
    margin: 0 0 0em 0em;
    /* flex-wrap: wrap; */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox: hide scrollbar */
  -ms-overflow-style: none; /* IE 10+ */
    background: #e6ecf5;
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;

  }
  .csm-tabs-wrap-2 {
  position: relative;
  overflow: hidden; /* contain the gradient overlay */
}
/* .csm-tabs-wrap-2::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;   
  height: 100%;  
  pointer-events: none;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
  z-index: 2; 
} */
  .csm-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari: hide scrollbar */
}
  .csm-tabs li {
    cursor: pointer;
    background: #e6ecf5;
    margin-right: 0px;
    border-radius: 8px 8px 0 0;
    width: 50%;
    border-radius: 50px;
  }
  .csm-panel {
    padding: 0em 0em 0em 0em;
  }

    /* SimpleBar track & thumb */
  .csm-table-scroll .simplebar-scrollbar::before{
    background: #2da7df;          /* thumb color */
    border-radius: 6px;    /* rounded */
    opacity: 1;
    /* width: 10px; */
     min-height: 60px;
  }
/* Vertical track */
.csm-table-scroll .simplebar-track.simplebar-vertical {
  width: 12px;
  right: 2px;
  background: rgba(45,167,223,.2);
  border-radius: 6px;
}

/* Horizontal track */
.csm-table-scroll .simplebar-track.simplebar-horizontal {
  height: 12px;
  bottom: 2px;
  background: rgba(45,167,223,.2);
  border-radius: 6px;
}
  .csm-table-scroll .simplebar-scrollbar{
    right: 2px;
  }

  /* Horizontal thumb */
.csm-table-scroll .simplebar-scrollbar .simplebar-horizontal::before {
  background: #2da7df;
  opacity: 1;
  border-radius: 6px;
  height: 100px;   /* thickness */

  /* 💡 force longer thumb */
  min-width: 600px; /* ensures thumb never smaller than 60px */
}
.csm-table-scroll {
  padding-right: 10px;
}
 .cp-heading {
    font-size: 24px;
  }
  .csm-tabs li {
        width: 50%;
        min-width: 150px;
        text-align: center;
    }
  .csm-service-table thead th {
    font-size: 0.55em;
  }
  .csm-service-table th, .csm-service-table td {
    font-size: 0.5em;
  }
  .check-availability-branch {
    width: 16px;
  }


}
@media (max-width: 400px) {
  .cp-heading {
    font-size: 24px;
  }
  .csm-tabs li {
        width: 50%;
    }
  .csm-service-table thead th {
    font-size: 0.45em;
  }
  .csm-service-table th, .csm-service-table td {
    font-size: 0.5em;
  }
  .check-availability-branch {
    width: 16px;
  }
  .csm-table-scroll thead th:nth-child(1) {
    width: 20%;
  }
}

@media (max-width: 320px) {
  .cp-heading {
    font-size: 24px;
  }
  .csm-tabs li {
        width: 48%;
  }
  .csm-service-table th, .csm-service-table td {
        font-size: 0.4rem;
      
    }
}

@media (max-width: 350px) {
  .cp-heading {
    font-size: 24px;
  }
  .csm-tabs li {
        width: 48%;
  }
  .csm-service-table th, .csm-service-table td {
        font-size: 0.4rem;
        white-space: normal;
        width: 20%;
      
    }
    .csm-service-table {

    table-layout: fixed;
}

.csm-service-table th:not(:first-child),
.csm-service-table td:not(:first-child) {
  width: 16%; /* distribute evenly across branches */
}
    
}
