.b4b-services-selector {
  /*margin-top: 1rem;*/
}

.b4b-services-selector__controls {
  margin-bottom: 0.5rem;
}

.b4b-services-selector__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
    transition: all ease-in-out 0.3s;
    border: 1px solid #0a3f60;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    justify-content: center;
    cursor: pointer;
    background-color: #0a3f60;
    color: white !important;
    padding: 0.32em 1em;
    line-height: 1.5;
    font-size: 1rem;
    width: 100%;
}
.b4b-services-selector__trigger:hover {
    background-color: rgba(10, 63, 96, 0.85);
}
.b4b-services-selector__trigger::before {
    display: inline-block;
    content: "";
    vertical-align: -.125em;
    background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z' clip-rule='evenodd'/></svg>");
    background-repeat: no-repeat;
    background-size: 1em 1em;
    width: 1em;
    height: 1em;
}

.b4b-services-selector__summary {
  background-color: #f5f5f5;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.b4b-services-selector__summary-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.b4b-services-selector__summary-list {
  margin: 0;
  padding-left: 1.25rem;
}

.b4b-services-selector__summary-list li {
  margin-bottom: 0.25rem;
}

.b4b-services-selector__empty {
  margin: 0;
  color: #6c757d;
}

.b4b-services-selector--enhanced .b4b-services-selector__checkboxes {
  display: none;
}

.b4b-services-selector__dialog {
  z-index: 1100;
}

.b4b-services-selector__dialog .ui-dialog-buttonpane {
  padding: 0.75rem 1rem;
}

.b4b-services-selector__dialog .ui-dialog-buttonset {
  float: none;
  text-align: right;
}

.b4b-services-selector__dialog .ui-dialog-titlebar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
}

.b4b-services-selector__dialog .ui-dialog-content {
  padding: 1rem;
}

.b4b-services-selector__dialog .form-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1rem;
}

.b4b-services-selector__dialog .form-type-checkbox {
  margin: 0;
}

@media (max-width: 600px) {
  .b4b-services-selector__dialog .form-checkboxes {
    grid-template-columns: 1fr;
  }
}
