@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");
:host {
  display: block;
  font-family: "Roboto", sans-serif;
}

#PaginationContainer {
  width: 100%;
  margin: 20px 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* desktop: labelled buttons (Next, Last, ...) */
@media screen and (min-width: 768px) {
  #PaginationContainer {
    gap: 10px;
  }
  .LeftItems .PaginationControl:not(:first-child), .RightItems .PaginationControl:not(:last-child) {
    margin: 0 10px;
  }
  .LeftItems .PaginationControl, .RightItems .PaginationControl {
    padding: 0;
    background-color: #009993;
    border-color: #009993;
  }
}
/* mobile: icon-only chevron arrows */
@media screen and (max-width: 767px) {
  .LeftItems .PaginationControl, .RightItems .PaginationControl {
    position: relative;
    width: 24px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #009993;
    /* icon-only: the text label stays available through the control's aria-label */
    /* the second chevron is only used by first / last */
  }
  .LeftItems .PaginationControl[aria-disabled=true], .RightItems .PaginationControl[aria-disabled=true] {
    background: transparent;
    color: #009993;
    opacity: 0.35;
  }
  .LeftItems .PaginationControl .NavigationButton, .RightItems .PaginationControl .NavigationButton {
    display: none;
  }
  .LeftItems .PaginationControl .NavigationIcon::before,
  .LeftItems .PaginationControl .NavigationIcon::after, .RightItems .PaginationControl .NavigationIcon::before,
  .RightItems .PaginationControl .NavigationIcon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
  }
  .LeftItems .PaginationControl .NavigationIcon::after, .RightItems .PaginationControl .NavigationIcon::after {
    display: none;
  }
  .LeftItems .PaginationControl[data-nav=nextPage] .NavigationIcon::before, .RightItems .PaginationControl[data-nav=nextPage] .NavigationIcon::before {
    transform: translate(-70%, -50%) rotate(45deg);
  }
  .LeftItems .PaginationControl[data-nav=previousPage] .NavigationIcon::before, .RightItems .PaginationControl[data-nav=previousPage] .NavigationIcon::before {
    transform: translate(-30%, -50%) rotate(-135deg);
  }
  .LeftItems .PaginationControl[data-nav=lastPage] .NavigationIcon::before, .RightItems .PaginationControl[data-nav=lastPage] .NavigationIcon::before {
    transform: translate(-110%, -50%) rotate(45deg);
  }
  .LeftItems .PaginationControl[data-nav=lastPage] .NavigationIcon::after, .RightItems .PaginationControl[data-nav=lastPage] .NavigationIcon::after {
    display: block;
    transform: translate(-30%, -50%) rotate(45deg);
  }
  .LeftItems .PaginationControl[data-nav=firstPage] .NavigationIcon::before, .RightItems .PaginationControl[data-nav=firstPage] .NavigationIcon::before {
    transform: translate(-70%, -50%) rotate(-135deg);
  }
  .LeftItems .PaginationControl[data-nav=firstPage] .NavigationIcon::after, .RightItems .PaginationControl[data-nav=firstPage] .NavigationIcon::after {
    display: block;
    transform: translate(10%, -50%) rotate(-135deg);
  }
}
.PaginationArea {
  display: inline-flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.PaginationArea li {
  margin: 0;
  padding: 0;
}

.PaginationArea li a {
  width: 24px;
  height: 24px;
  display: flex;
  border: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: #000;
  cursor: pointer;
  pointer-events: all;
}

.PaginationItem.ActiveItem a {
  background: #009993;
  border-color: #009993;
  color: #fff;
}

.PaginationItem.ActiveItem a[aria-disabled=true] {
  pointer-events: none;
  cursor: not-allowed;
}

.PaginationItem a:hover,
.PaginationItem a:active {
  background: #009993;
  border-color: #009993;
  color: #fff;
  opacity: 0.8;
}

a, .PaginationControl {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
  width: 100px;
  height: 32px;
  border: 1px solid #524e52;
  border-radius: 5px;
  background: #524e52;
  color: #fff;
  font-size: 14px;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.1s linear, border-color 0.1s linear, color 0.1s linear, opacity 0.1s linear;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0;
}

a:hover,
a:active {
  background: #004D4A;
  border-color: #004D4A;
}

a[aria-disabled=true], .PaginationControl[aria-disabled=true] {
  background-color: #ccc;
  border-color: #ccc;
  color: #fff;
  cursor: not-allowed;
}

@media screen and (max-width: 480px) {
  a, .PaginationControl {
    width: 70px;
    font-size: 14px;
  }
  .paginationArea {
    padding: 5px;
  }
}
@media screen and (max-width: 320px) {
  a, .PaginationControl {
    width: 58px;
    font-size: 12px;
  }
  .paginationArea {
    padding: 5px;
    gap: 5px;
  }
}
/* fix for issue on hover/visited for mobile devices */
@media (hover: none) {
  .paginationItem a:hover {
    background: inherit;
    border-color: inherit;
    color: inherit;
    opacity: 1;
  }
  .paginationItem.activeItem a:hover {
    background: #009993;
    border-color: #009993;
    color: #fff;
  }
}