@import '../../../style/vars.css';
:root {
  /* Container */
  --polly-browse-container-width: 285px;
  /* Component */
  --polly-browse-component-width: 100%;
  --polly-browse-component-height: 44px;
  --polly-browse-component-padding: 10px 14px;
  --polly-browse-component-background-colour: var(--polly-grey--50);
  --polly-browse-component-flex-grow: 0;
  --polly-browse-component-border-radius: var(--polly-border-radius--sm);
  --polly-browse-component-border-width: var(--polly-border-width--sm);
  --polly-browse-component-border-colour: var(--polly-grey--300);
  /* Font */
  --polly-browse-font-size: var(--polly-font-size--sm);
  --polly-browse-font-colour: var(--polly-font-colour);
  --polly-browse-font-colour--hover: var(--polly-font-colour);
  --polly-browse-font-weight: var(--polly-font-weight--regular);
  --polly-browse-focus-outline-colour: var(--polly-brand--300);
  /* List */
  --polly-browse-list-gap: 0em;
  /* Link */
  --polly-browse-link-width: 100%;
  /* Line height */
  --polly-browse-line-height: var(--polly-line-height--md);
}
/* Browse Component */
.polly-browse-component {
  cursor: pointer;
  position: relative;
  height: var(--polly-browse-component-height);
  flex-grow: var(--polly-browse-component-flex-grow);
}
.polly-browse-button {
  width: var(--polly-browse-component-width);
  display: flex;
  height: 100%;
  padding: var(--polly-browse-component-padding);
  justify-content: flex-start;
  gap: 0.5rem;
  align-items: center;
  align-self: stretch;
  border-radius: var(--polly-browse-component-border-radius);
  border: var(--polly-browse-component-border-width) solid var(--polly-browse-component-border-colour);
  background: var(--polly-browse-component-background-colour);
  overflow: hidden;
  color: var(--polly-browse-font-colour);
  font-family: var(--polly-font-family);
  font-size: var(--polly-browse-font-size);
  font-style: normal;
  font-weight: var(--polly-browse-font-weight);
  cursor: pointer;
}
.polly-browse-button__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.polly-browse-button__icon {
  display: none;
}
.polly-browse-button:focus-visible {
  outline: 2px solid var(--polly-browse-focus-outline-colour, var(--polly-brand--300));
  outline-offset: 2px;
}
.polly-browse-button:focus:not(:focus-visible) {
  outline: none;
}
.polly-browse-container {
  width: var(--polly-browse-container-width);
  position: absolute;
  top: calc(var(--polly-browse-component-height) + 1px);
  display: none;
  overflow: hidden;
  z-index: 10;
  border-radius: var(--polly-browse-component-border-radius);
  background: var(--polly-browse-component-background-colour);
}
.polly-browse-container li {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  margin: 0em;
  border-bottom: 1px solid var(--polly-browse-component-border-colour);
  background: var(--polly-browse-component-background-colour);
  overflow: hidden;
  color: var(--polly-browse-font-colour);
  font-family: var(--polly-font-family);
  font-size: var(--polly-browse-font-size);
  font-style: normal;
  font-weight: var(--polly-browse-font-weight);
  line-height: var(--polly-browse-line-height);
}
.polly-browse-container a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin: 0em;
  width: 100%;
  overflow: hidden;
  color: var(--polly-browse-font-colour);
  text-align: left;
  font-family: var(--polly-font-family);
  font-size: var(--polly-browse-font-size);
  font-style: normal;
  font-weight: var(--polly-browse-font-weight);
  line-height: var(--polly-browse-line-height);
  text-decoration-line: none;
}
.polly-browse-container a:hover {
  color: var(--polly-browse-font-colour--hover);
}
.hc-theme-v2 .polly-browse-link-main {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.hc-theme-v2 .polly-browse-link-main > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hc-theme-v2 .polly-browse-item-icon {
  flex-shrink: 0;
  color: inherit;
}
.hc-theme-v2 .polly-browse-container a {
  display: block;
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.polly-browse-container li span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin: 0;
  color: var(--polly-browse-font-colour);
  font-family: var(--polly-font-family);
  font-size: var(--polly-browse-font-size);
  font-style: normal;
  font-weight: var(--polly-browse-font-weight);
  line-height: var(--polly-browse-line-height);
  text-decoration-line: none;
}
/* Navigation buttons */
.js-next-level,
.js-prev-level {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--polly-browse-font-colour);
  font-family: var(--polly-font-family);
  font-size: var(--polly-browse-font-size);
  font-weight: var(--polly-browse-font-weight);
  line-height: var(--polly-browse-line-height);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.js-next-level i,
.js-prev-level i {
  pointer-events: none;
}
.js-next-level:hover,
.js-prev-level:hover {
  color: var(--polly-browse-font-colour--hover);
}
.js-next-level:focus-visible,
.js-prev-level:focus-visible {
  outline: 2px solid var(--polly-browse-focus-outline-colour, var(--polly-brand--300));
  outline-offset: 2px;
  border-radius: var(--polly-border-radius--sm);
}
.polly-browse-container a:focus-visible {
  outline: 2px solid var(--polly-browse-focus-outline-colour, var(--polly-brand--300));
  outline-offset: 2px;
  border-radius: var(--polly-border-radius--sm);
}
.js-next-level:focus:not(:focus-visible),
.js-prev-level:focus:not(:focus-visible),
.polly-browse-container a:focus:not(:focus-visible) {
  outline: none;
}
.tree_level_1 {
  display: flex;
  flex-direction: column;
  gap: var(--polly-browse-list-gap);
  padding: 0em;
  margin: 0em;
  overflow: hidden;
  z-index: 200;
  border-radius: var(--polly-browse-component-border-radius);
  background: transparent;
  transition: left 0.2s ease-in-out;
}
.tree_level_1 li {
  width: var(--polly-browse-link-width);
}
.tree_level_1 li:last-child {
  border-radius: var(--polly-browse-component-border-radius);
}
.tree_level_2 {
  display: flex;
  flex-direction: column;
  gap: var(--polly-browse-list-gap);
  top: 0px;
  left: 100%;
  padding: 0em;
  width: 100%;
  margin: 0em;
  position: absolute;
  z-index: 201;
  visibility: hidden;
  transition: left 0.2s ease-in-out;
}
.tree_level_2 li {
  width: var(--polly-browse-link-width);
}
.tree_level_3 {
  display: flex;
  flex-direction: column;
  gap: var(--polly-browse-list-gap);
  top: 0px;
  left: 100%;
  padding: 0em;
  width: 100%;
  margin: 0em;
  position: absolute;
  z-index: 202;
  visibility: hidden;
  transition: left 0.2s ease-in-out;
}
.tree_level_3 li {
  width: var(--polly-browse-link-width);
}
.polly-browse-container .no_valid_children {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin: 0;
  overflow: hidden;
  color: var(--polly-browse-font-colour);
  font-family: var(--polly-font-family);
  font-size: var(--polly-browse-font-size);
  font-style: normal;
  font-weight: var(--polly-browse-font-weight);
  line-height: var(--polly-browse-line-height);
}
.show {
  left: 0%;
  visibility: visible;
}
.browse-list--hidden {
  left: 100%;
  visibility: hidden;
}
.browse-list__item {
  margin-bottom: 2px;
  list-style-type: none;
}
@media screen and (max-width: 750px) {
  .polly-browse-button {
    padding: 7.29px 20px;
    font-size: 11px;
  }
}
/* Helpcenter v2 browse treatment */
.hc-theme-v2 .polly-browse-component {
  --polly-browse-focus-outline-colour: var(--polly-hc-v2-primary-brand);
}
.hc-theme-v2.hc-v2-landing .polly-browse-component {
  --polly-browse-component-height: var(--polly-hc-v2-search-height);
}
.hc-theme-v2.hc-v2-inner .polly-browse-component {
  --polly-browse-component-height: 42px;
}
.hc-theme-v2 .polly-browse-button {
  background: #E8EDF5;
  border-color: #B8C2D6;
  color: #1f3a5f;
}
.hc-theme-v2 .polly-browse-button__icon {
  display: inline-block;
  color: #5f7391;
  font-size: 0.875rem;
}
.hc-theme-v2 .polly-browse-button:hover {
  background: #dce4f1;
  border-color: #9fb0ca;
}
.hc-theme-v2 .polly-browse-container {
  border: 1px solid #CBD5E1;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.hc-theme-v2 .polly-browse-container li {
  background: #fff;
  transition: background-color 140ms ease;
}
.hc-theme-v2 .polly-browse-container li:hover {
  background: #EEF4FF;
}
.hc-theme-v2 .polly-browse-item-icon {
  color: #64748B;
}
.hc-theme-v2 .polly-browse-container li:hover .polly-browse-item-icon {
  color: var(--polly-hc-v2-primary-brand);
}
