.warehouse-locations {
  background-color: rgb(var(--color-background));
}

.warehouse-locations__inner {
  display: flex;
  flex-direction: column;
}

.warehouse-locations__heading {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px;
  text-align: center;
}

.warehouse-locations__title,
.warehouse-locations__intro {
  margin: 0;
}

.warehouse-locations__intro {
  margin-top: 12px;
  color: rgba(var(--color-text), 0.68);
}

.warehouse-locations__summary {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(var(--color-text), 0.72);
}

.warehouse-locations__proof {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-width: min(100%, 620px);
  margin-top: 22px;
  border: 1px solid rgba(var(--color-text), 0.12);
}

.warehouse-locations__proof-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
}

.warehouse-locations__proof-item + .warehouse-locations__proof-item {
  border-left: 1px solid rgba(var(--color-text), 0.12);
}

.warehouse-locations__proof-value,
.warehouse-locations__proof-label {
  display: block;
  overflow-wrap: anywhere;
}

.warehouse-locations__proof-label {
  color: rgba(var(--color-text), 0.58);
}

.warehouse-locations__tabs {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  padding: 4px;
  border: 1px solid rgba(var(--color-text), 0.16);
}

.warehouse-locations__tab {
  min-height: 42px;
  padding: 9px 18px;
  color: rgba(var(--color-text), 0.68);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.warehouse-locations__tab:hover,
.warehouse-locations__tab.is-active {
  color: rgb(var(--color-background));
  background-color: rgb(var(--color-text));
}

.warehouse-locations__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.warehouse-locations__panel {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  min-height: 680px;
}

.warehouse-locations__panel[hidden] {
  display: none;
}

.warehouse-locations__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 46px 42px;
  color: #fff;
  background-color: rgb(var(--warehouse-panel-background));
}

.warehouse-locations__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.warehouse-locations__card {
  display: flex;
  min-width: 0;
  min-height: 136px;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.warehouse-locations__card:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background-color: rgba(255, 255, 255, 0.14);
}

.warehouse-locations__card-title,
.warehouse-locations__card-tag,
.warehouse-locations__card-coverage,
.warehouse-locations__card-address {
  display: block;
  overflow-wrap: anywhere;
}

.warehouse-locations__card-tag {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.warehouse-locations__card-address {
  color: inherit;
}

.warehouse-locations__card-coverage {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

.warehouse-locations__actions {
  min-height: 54px;
}

.warehouse-locations__direction {
  display: none;
  color: rgb(var(--warehouse-button-text));
  background-color: rgb(var(--warehouse-button-background));
  border-color: rgb(var(--warehouse-button-background));
}

.warehouse-locations__direction:hover {
  color: rgb(var(--warehouse-button-text));
  background-color: rgb(var(--warehouse-button-background-hover));
  border-color: rgb(var(--warehouse-button-background-hover));
}

.warehouse-locations__map-wrap {
  position: relative;
  min-height: 680px;
  background-color: rgba(var(--color-text), 0.08);
}

.warehouse-locations__map {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
}

#warehouse-location-sydney:checked ~ .warehouse-locations__panel .warehouse-locations__card--sydney,
#warehouse-location-melbourne:checked ~ .warehouse-locations__panel .warehouse-locations__card--melbourne,
#warehouse-location-brisbane:checked ~ .warehouse-locations__panel .warehouse-locations__card--brisbane,
#warehouse-location-perth:checked ~ .warehouse-locations__panel .warehouse-locations__card--perth,
#warehouse-location-auckland:checked ~ .warehouse-locations__panel .warehouse-locations__card--auckland {
  color: #fff;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.18);
}

#warehouse-location-sydney:checked ~ .warehouse-locations__panel .warehouse-locations__map--sydney,
#warehouse-location-melbourne:checked ~ .warehouse-locations__panel .warehouse-locations__map--melbourne,
#warehouse-location-brisbane:checked ~ .warehouse-locations__panel .warehouse-locations__map--brisbane,
#warehouse-location-perth:checked ~ .warehouse-locations__panel .warehouse-locations__map--perth,
#warehouse-location-auckland:checked ~ .warehouse-locations__panel .warehouse-locations__map--auckland,
#warehouse-location-sydney:checked ~ .warehouse-locations__panel .warehouse-locations__direction--sydney,
#warehouse-location-melbourne:checked ~ .warehouse-locations__panel .warehouse-locations__direction--melbourne,
#warehouse-location-brisbane:checked ~ .warehouse-locations__panel .warehouse-locations__direction--brisbane,
#warehouse-location-perth:checked ~ .warehouse-locations__panel .warehouse-locations__direction--perth,
#warehouse-location-auckland:checked ~ .warehouse-locations__panel .warehouse-locations__direction--auckland {
  display: block;
}

.warehouse-locations__process {
  display: grid;
  order: 3;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 38px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 54px 42px 64px;
  background-color: rgb(var(--color-background));
}

.warehouse-locations__process-heading {
  max-width: 440px;
}

.warehouse-locations__process-title,
.warehouse-locations__process-intro,
.warehouse-locations__process-name,
.warehouse-locations__process-text,
.warehouse-locations__note {
  margin: 0;
}

.warehouse-locations__process-intro {
  margin-top: 12px;
  color: rgba(var(--color-text), 0.68);
}

.warehouse-locations__process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.warehouse-locations__process-item {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(var(--color-text), 0.12);
}

.warehouse-locations__process-index {
  display: block;
  margin-bottom: 18px;
  color: rgba(var(--color-text), 0.48);
}

.warehouse-locations__process-text {
  margin-top: 8px;
  color: rgba(var(--color-text), 0.68);
}

.warehouse-locations__note {
  grid-column: 2;
  padding-top: 2px;
  color: rgba(var(--color-text), 0.58);
}

/* Order address panel */

.warehouse-locations__order-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 42px;
  background-color: rgb(var(--order-panel-background));
}

.warehouse-locations__order-list {
  display: flex;
  max-height: 500px;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
}

.warehouse-locations__order-item {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  color: rgba(var(--color-text), 0.72);
  text-align: left;
  border: 1px solid rgba(var(--color-text), 0.16);
  background-color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.warehouse-locations__order-item:hover,
.warehouse-locations__order-item.is-active {
  color: rgb(var(--color-text));
  border-color: rgba(var(--color-text), 0.48);
  background-color: #fff;
}

.warehouse-locations__order-item-title,
.warehouse-locations__order-item-address {
  display: block;
  overflow-wrap: anywhere;
}

.warehouse-locations__order-direction {
  align-self: flex-start;
  color: rgb(var(--order-button-text));
  background-color: rgb(var(--order-button-background));
  border-color: rgb(var(--order-button-background));
}

.warehouse-locations__order-direction:hover {
  color: rgb(var(--order-button-text));
  background-color: rgb(var(--order-button-background-hover));
  border-color: rgb(var(--order-button-background-hover));
}

.warehouse-locations__order-map-wrap {
  min-height: 640px;
  background-color: rgba(var(--color-text), 0.08);
}

.warehouse-locations__order-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
}

@media (max-width: 1199px) {
  .warehouse-locations__panel {
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  }

  .warehouse-locations__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 959px) {
  .warehouse-locations__heading {
    padding: 24px 18px;
  }

  .warehouse-locations__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .warehouse-locations__proof {
    width: 100%;
    min-width: 0;
    margin-top: 18px;
  }

  .warehouse-locations__proof-item {
    padding: 10px 8px;
  }

  .warehouse-locations__tab {
    padding: 9px 10px;
  }

  .warehouse-locations__panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .warehouse-locations__content {
    gap: 24px;
    padding: 30px 18px;
  }

  .warehouse-locations__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .warehouse-locations__card {
    min-height: 142px;
    padding: 14px;
  }

  .warehouse-locations__map-wrap {
    min-height: 420px;
  }

  .warehouse-locations__order-content {
    gap: 20px;
    padding: 28px 18px;
  }

  .warehouse-locations__order-list {
    max-height: none;
    overflow-y: visible;
  }

  .warehouse-locations__order-direction {
    align-self: stretch;
  }

  .warehouse-locations__order-map-wrap,
  .warehouse-locations__order-map {
    min-height: 420px;
  }

  .warehouse-locations__process {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 40px 18px;
  }

  .warehouse-locations__process-heading {
    max-width: 680px;
  }

  .warehouse-locations__note {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .warehouse-locations__proof {
    grid-template-columns: 1fr;
  }

  .warehouse-locations__proof-item + .warehouse-locations__proof-item {
    border-top: 1px solid rgba(var(--color-text), 0.12);
    border-left: 0;
  }

  .warehouse-locations__list {
    grid-template-columns: 1fr;
  }

  .warehouse-locations__process-list {
    grid-template-columns: 1fr;
  }
}
