.duration-picker {
  box-sizing: border-box;
  width: min(100%, 960px);
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #f7fbff;
  text-align: center;
}

.duration-picker legend {
  width: 100%;
  padding: 0;
  color: #0a2245;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.duration-options {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.duration-picker .input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.duration-option {
  display: flex;
  min-height: 54px;
  min-width: 72px;
  padding: 8px 10px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #aec5d9;
  border-radius: 6px;
  background: #fff;
  color: #0a2245;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.duration-option:hover {
  border-color: #1d60f7;
  background: #eef5ff;
  transform: translateY(-2px);
}

.duration-option-number {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.duration-option-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.duration-picker .input-hidden:checked + .duration-option {
  border-color: #0a2245;
  background: #0a2245;
  color: #fff;
  box-shadow: 0 5px 12px rgba(10, 34, 69, 0.22);
}

.duration-picker .input-hidden:focus-visible + .duration-option {
  outline: 3px solid #f4b400;
  outline-offset: 3px;
}

#tablePrices {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 560px) {
  .duration-picker {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    padding: 14px 12px;
  }

  .duration-options {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .duration-option {
    flex: 0 1 calc(33.333% - 8px);
    min-width: 64px;
    max-width: 86px;
    min-height: 48px;
    padding: 6px 8px;
  }

  .duration-option-number {
    font-size: 16px;
  }

  .duration-option-label {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .duration-option {
    flex-basis: calc(50% - 8px);
    max-width: 110px;
  }
}