#provider-categories .sky-provider-catalog {
  position: relative;
  min-width: 0;
}

/* Native tab panels are focusable; suppress the browser's black mouse-focus ring. */
#provider-categories .wp-block-tab-panel:focus:not(:focus-visible) {
  outline: none;
}

#provider-categories .wp-block-tab-panel:focus-visible {
  outline: 2px solid #0b63f6;
  outline-offset: 2px;
}

@media (min-width: 960px) {
  #provider-categories .wp-block-tab-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 4px !important;
    max-height: 394px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
  }

  #provider-categories .wp-block-tab-list > [role="tab"] {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: 8px 12px !important;
    white-space: normal;
  }
}

#provider-categories .sky-provider-catalog > .sky-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  height: 394px !important;
  min-height: 0 !important;
  align-content: stretch;
}

#provider-categories .sky-provider-catalog .sky-provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #dbe5f1;
  border-radius: 5px;
  background: #fff;
  text-align: center;
}

#provider-categories .sky-provider-catalog .sky-provider-card__image {
  margin: 0;
  max-width: 100%;
  flex: 0 0 56px;
}

#provider-categories .sky-provider-catalog .sky-provider-card__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 56px;
  margin: 0 auto;
  object-fit: contain;
}

#provider-categories .sky-provider-catalog .sky-provider-card > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

#provider-categories .sky-provider-catalog .sky-provider-no-logo > p {
  -webkit-line-clamp: 6;
}

#provider-categories .sky-provider-pager {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: 0;
  display: flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #071426;
  font-size: 12px;
}

#provider-categories .sky-provider-pager button {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #0b63f6;
  border-radius: 5px;
  background: #fff;
  color: #0b63f6;
  cursor: pointer;
}

#provider-categories .sky-provider-pager button:disabled {
  border-color: #c4cfde;
  color: #9eacbd;
  cursor: default;
}

#provider-categories .sky-provider-pager button:focus-visible,
#provider-categories .sky-provider-retry:focus-visible {
  outline: 2px solid #0b63f6;
  outline-offset: 2px;
}

#provider-categories .sky-provider-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #dbe5f1;
  border-radius: 5px;
  background: #edf4ff;
  color: #071426;
  font-size: 14px;
  text-align: center;
}

#provider-categories .sky-provider-status[hidden],
#provider-categories .sky-provider-retry[hidden] {
  display: none !important;
}

#provider-categories .sky-provider-retry {
  padding: 6px 12px;
  border: 1px solid #0b63f6;
  border-radius: 5px;
  background: #fff;
  color: #0b63f6;
  cursor: pointer;
}

@media (min-width: 960px) {
  #providers {
    height: 600px !important;
    min-height: 600px !important;
    max-height: 600px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 959px) {
  #provider-categories .sky-provider-catalog > .sky-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(5, 130px) !important;
    height: 682px !important;
  }
  #provider-categories .sky-provider-catalog .sky-provider-card {
    padding: 8px 6px;
  }
}
