.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: 14px; 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;
}

@media (max-width: 768px) {
  .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: 0;
    border-bottom: 2px solid #ccc;
    margin: 0 0 0em 0em;
    flex-wrap: wrap;
  }
  .csm-tabs li {
    cursor: pointer;
    background: #e6ecf5;
    /* margin-right: 4px; */
    border-radius: 8px 8px 0 0;
    width: 50%;
  }
  .csm-panel {
    padding: 0em 0em 0em 0em;
  }


}
@media (max-width: 400px) {
  .cp-heading {
    font-size: 24px;
  }
}
