.rs-pager {
  padding: 30px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.rs-pager_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: nowrap;
  max-width: 1010px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.rs-pager__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.15s ease;
  font-family: DM Sans, sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  color: #252a36;
}
.rs-pager__link:hover {
  opacity: 0.92;
}
.rs-pager__link.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.rs-pager__ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #ff6a00;
  border-radius: 999px;
}
.rs-pager__ico-fallback {
  font-size: 18px;
  line-height: 1;
  color: #ff6a00;
}

.rs-pager__ico-img {
  display: block;
  width: 20px;
  height: 20px;
}
.rs-pager__ico:has(.rs-pager__ico-img) {
  border-color: #ff6a00;
}

.rs-pager__center {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6b7280;
  white-space: nowrap;
}
.rs-pager__label,
.rs-pager__of {
  font-weight: 600;
}

.rs-pager__selectwrap {
  position: relative;
}
.rs-pager__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  min-width: 72px;
  height: 44px;
  padding: 10px 36px 10px 16px;
  border: 2px solid #0b1220;
  border-radius: 14px;
  background: #fff;
  color: #0b1220;
  font-weight: 700;
  line-height: 1;
  outline: none;
}
.rs-pager__select:focus {
  box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.08);
}

.rs-pager__selectwrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #0b1220;
  border-bottom: 2px solid #0b1220;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.9;
  pointer-events: none;
}

/* tablet */
@media (max-width: 900px) {
  .rs-pager_container {
    gap: 22px;
  }
  .rs-pager__link {
    font-size: 20px;
    line-height: 26px;
  }
}

/* mobile */
@media (max-width: 640px) {
  .rs-pager {
    padding: 50px 14px;
    border-radius: 12px;
  }
  .rs-pager_container {
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap; 
  }
  .rs-pager__link {
    font-size: 16px;
    line-height: 22px;
    gap: 8px;
  }
  .rs-pager__ico {
    width: 32px;
    height: 32px;
  }
  .rs-pager__ico-fallback {
    font-size: 16px;
  }
  .rs-pager__center {
    gap: 8px;
    order: 2;
    width: auto;
    flex: 0 1 auto;
  }
  .rs-pager__label,
  .rs-pager__of {
    font-weight: 600;
    font-size: 14px;
  }
  .rs-pager__select {
    height: 38px;
    min-width: 56px;
    padding: 8px 26px 8px 12px;
    border-radius: 12px;
  }
}

/* very small phones */
@media (max-width: 380px) {
  .rs-pager_container {
    gap: 10px;
  }
  .rs-pager__link {
    font-size: 15px;
  }
  .rs-pager__label,
  .rs-pager__of {
    font-size: 13px;
  }
  .rs-pager__select {
    min-width: 52px;
    height: 36px;
  }
}
