.vps-configurator-section {
  position: relative;
  padding-top: 70px;
  overflow: visible;
  isolation: isolate;
  background: var(--bg-dark-1);
}

.vps-config-video,
.vps-config-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vps-config-video {
  z-index: 0;
  object-fit: cover;
  opacity: .44;
  filter: brightness(.5) saturate(.9);
  background: var(--bg-dark-1);
}

.vps-config-video-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, var(--bg-dark-1) 0%, rgba(1, 3, 20, .64) 16%, rgba(1, 3, 20, .72) 74%, var(--bg-dark-1) 100%),
    radial-gradient(circle at 50% 42%, rgba(var(--secondary-color-rgb), .14), transparent 58%),
    rgba(1, 3, 20, .5);
}

.vps-configurator-section > .container {
  position: relative;
  z-index: 2;
}

.vpsgamer-page #wrapper,
.vpsgamer-page #content {
  overflow: visible;
}

.vpsgamer-page #mainmenu > li::before {
  display: none;
}

.vpsgamer-page .wow {
  visibility: visible;
}

.vpsgamer-page .home-latency-section {
  position: relative;
  z-index: 3;
  margin: 0;
  overflow: visible;
  background: transparent;
}

.vpsgamer-page .home-latency-section > .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.vpsgamer-page .home-premium-latency {
  margin: 0;
  padding: 130px max(24px, calc((100vw - 1320px) / 2)) 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.vpsgamer-page .home-premium-latency::before {
  left: -220px;
  top: 0;
}

.vpsgamer-page .home-premium-latency .minecraft-latency-global {
  min-height: 650px;
}

.vpsgamer-page .home-premium-latency .minecraft-latency-content {
  padding-top: 0;
}

.vpsgamer-page .home-premium-latency .minecraft-latency-globe-side {
  top: -180px;
  right: -26vw;
  z-index: 5;
}

.vps-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
  gap: 24px;
  align-items: start;
  overflow: visible;
}

.legacy-vps-plans {
  display: none !important;
}

.vps-configurator-main {
  display: grid;
  gap: 18px;
}

.vps-config-panel,
.vps-config-summary {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.vps-config-panel {
  padding: 22px 24px;
}

.vps-config-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--title-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.vps-config-title .hint {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  letter-spacing: 0;
}

.vps-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vps-choice,
.vps-location,
.vps-bill-option,
.vps-backup-option {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(10, 10, 14, .34);
  color: #fff;
  transition: border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

.vps-choice,
.vps-bill-option,
.vps-backup-option {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 14px;
  font-weight: 800;
}

.vps-choice.is-active,
.vps-location.is-active,
.vps-bill-option.is-active,
.vps-backup-option.is-active {
  border-color: var(--secondary-color);
  background: rgba(var(--secondary-color-rgb), .2);
}

.vps-choice-mark {
  min-width: 82px;
  color: rgba(255, 255, 255, .9);
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 900;
}

.vps-location-list {
  display: grid;
  gap: 8px;
}

.vps-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  text-align: left;
}

.vps-location[disabled] {
  cursor: not-allowed;
  opacity: .42;
}

.vps-location-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vps-location-main img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.vps-location-name {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vps-location-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vps-config-badge {
  display: none;
  padding: 4px 7px;
  border-radius: 4px;
  color: #d7b6ff;
  background: rgba(var(--secondary-color-rgb), .22);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.vps-location[data-vps-stock="out"] .vps-config-badge[data-badge="stock"],
.vps-location[data-vps-add^="-"] .vps-config-badge[data-badge="offer"],
.vps-location.is-filtered .vps-config-badge[data-badge="cpu"] {
  display: inline-flex;
}

.vps-location[data-vps-add^="-"] .vps-config-badge[data-badge="offer"] {
  color: #ffd15c;
  background: rgba(255, 181, 40, .22);
}

.vps-location[data-vps-stock="out"] .vps-config-badge[data-badge="stock"] {
  color: #ff9999;
  background: rgba(255, 58, 58, .18);
}

.vps-location-ping {
  color: #19df63;
  font-family: var(--title-font);
  font-weight: 900;
  white-space: nowrap;
}

.vps-location-ping.is-warn {
  color: #f2b633;
}

.vps-location-ping.is-bad {
  color: #ff4444;
}

.vps-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.vps-slider-value {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(var(--secondary-color-rgb), .22);
  color: #d7b6ff;
  font-family: var(--title-font);
  font-size: 13px;
  font-weight: 900;
}

.vps-range {
  width: 100%;
  height: 4px;
  margin: 8px 0 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary-color) var(--fill, 0%), rgba(255, 255, 255, .12) var(--fill, 0%));
  outline: 0;
  appearance: none;
}

.vps-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #121019;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb), .35);
  appearance: none;
}

.vps-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #121019;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb), .35);
}

.vps-configurator .rangeslider {
  height: 4px;
  margin: 8px 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.vps-configurator .rangeslider__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--secondary-color);
  box-shadow: none;
}

.vps-configurator .rangeslider__handle {
  top: -8px;
  width: 20px;
  height: 20px;
  border: 2px solid #121019;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb), .35);
}

.vps-configurator .rangeslider__handle:after,
.vps-configurator .rangeslider__handle__value,
.vps-configurator .rangeslider__labels {
  display: none;
}

.vps-slider-scale {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

.vps-config-summary {
  align-self: start;
  position: sticky;
  top: 96px;
  z-index: 4;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 24px;
  border-color: rgba(var(--secondary-color-rgb), .55);
}

.vps-config-summary::-webkit-scrollbar {
  width: 4px;
}

.vps-config-summary::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--secondary-color-rgb), .45);
}

.vps-summary-kicker {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .48);
  font-family: var(--title-font);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.vps-summary-plan {
  margin: 0 0 18px;
  color: #d7b6ff;
  font-size: 20px;
}

.vps-summary-price {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.vps-summary-price .currency,
.vps-summary-price .period {
  color: rgba(255, 255, 255, .55);
}

.vps-summary-price .value {
  color: #fff;
  font-family: var(--title-font);
  font-size: clamp(42px, 4.2vw, 54px);
  font-weight: 900;
  line-height: .88;
}

.vps-summary-equiv {
  display: none;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

.vps-summary-equiv.is-visible {
  display: block;
}

.vps-summary-list {
  display: grid;
  gap: 15px;
  margin: 24px 0 28px;
}

.vps-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, .52);
}

.vps-summary-row strong {
  color: rgba(255, 255, 255, .9);
  text-align: right;
}

.vps-config-subtitle {
  margin: 24px 0 12px;
  color: #fff;
  font-family: var(--title-font);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.vps-os-grid,
.vps-bill-grid,
.vps-backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vps-bill-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vps-bill-option,
.vps-os-option {
  font-size: 13px;
}

.vps-os-option {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(10, 10, 14, .34);
  color: rgba(255, 255, 255, .9);
  font-weight: 800;
  cursor: default;
}

.vps-summary-cta {
  width: 100%;
  margin-top: 16px;
  border-radius: 7px;
  text-align: center;
}

.vps-summary-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .42);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1199px) {
  .vps-configurator {
    grid-template-columns: 1fr;
  }

  .vps-config-summary {
    position: relative;
    top: 0;
  }

  .vpsgamer-page .home-premium-latency .minecraft-latency-globe-side {
    top: auto;
    right: auto;
  }
}

@media (max-width: 767px) {
  .vps-configurator-section {
    padding-top: 48px;
  }

  .vps-config-panel,
  .vps-config-summary {
    padding: 18px;
  }

  .vps-choice-grid,
  .vps-os-grid,
  .vps-bill-grid,
  .vps-backup-grid {
    grid-template-columns: 1fr;
  }

  .vps-location {
    grid-template-columns: 1fr;
  }

  .vps-location-ping {
    justify-self: start;
  }

  .vpsgamer-page .home-premium-latency {
    padding: 64px 14px 60px;
  }
}
