.rovers-header-address {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rovers-header-address--desktop {
  align-items: center;
  gap: 8px;
  min-width: 150px;
  max-width: 220px;
  min-height: 44px;
  margin-left: 14px;
  padding: 4px;
}

.rovers-header-address__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.rovers-header-address__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.rovers-header-address__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.rovers-header-address__copy small {
  overflow: hidden;
  color: #666;
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rovers-header-address__copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rovers-header-address--mobile {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 6px 14px;
  border-top: 1px solid #eee;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.rovers-header-address--mobile .rovers-header-address__icon {
  width: 17px;
  height: 17px;
}

.rovers-header-address--mobile strong {
  overflow: hidden;
  max-width: calc(100vw - 90px);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.rovers-address-modal-open,
html.rovers-address-modal-open body {
  overflow: hidden !important;
}

.rovers-address-modal[hidden] {
  display: none !important;
}

.rovers-address-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rovers-address-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 18, 22, .68) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: default;
}

.rovers-address-modal__backdrop:hover,
.rovers-address-modal__backdrop:focus,
.rovers-address-modal__backdrop:active {
  background: rgba(15, 18, 22, .68) !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.rovers-address-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.rovers-address-modal__head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #ececec;
  background: #fff;
}

.rovers-address-modal__head small {
  color: #777;
  font-size: 11px;
}

.rovers-address-modal__head h2 {
  margin: 2px 0 0;
  color: #111;
  font-size: 24px;
  line-height: 1.2;
}

.rovers-address-modal__close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #222;
  cursor: pointer;
  font-size: 26px;
  line-height: 36px;
}

#rovers-address-form {
  padding: 4px 24px 24px;
}

#rovers-address-form[hidden],
.rovers-address-summary[hidden] {
  display: none !important;
}

.rovers-address-summary {
  padding: 22px 24px 24px;
}

.rovers-address-summary__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rovers-address-summary__section {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .035);
}

.rovers-address-summary__section--invoice {
  grid-column: 1 / -1;
}

.rovers-address-summary__content[hidden],
.rovers-address-summary__empty[hidden],
.rovers-address-summary__invoice-same[hidden],
.rovers-address-summary__rows[hidden] {
  display: none !important;
}

.rovers-address-summary__empty {
  display: grid;
  justify-items: center;
  max-width: 480px;
  margin: 10px auto 2px;
  padding: 28px 24px;
  border: 1px dashed #d6d6d6;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
}

.rovers-address-summary__empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: #ededed;
  color: #222;
  font-size: 22px;
}

.rovers-address-summary__empty strong {
  color: #171717;
  font-size: 17px;
}

.rovers-address-summary__empty p {
  max-width: 370px;
  margin: 7px 0 0;
  color: #686868;
  font-size: 12px;
  line-height: 1.55;
}

.rovers-address-summary__invoice-same {
  display: grid;
  gap: 4px;
  padding: 13px 0 2px;
}

.rovers-address-summary__invoice-same strong {
  color: #202020;
  font-size: 13px;
}

.rovers-address-summary__invoice-same span {
  color: #707070;
  font-size: 11px;
  line-height: 1.45;
}

.rovers-address-summary__section h3 {
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ededed;
  color: #171717;
  font-size: 15px;
  line-height: 1.25;
}

.rovers-address-summary__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rovers-address-summary__row {
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rovers-address-summary__row:last-child {
  border-bottom: 0;
}

.rovers-address-summary__row:not(.rovers-address-summary__row--wide) + .rovers-address-summary__row:not(.rovers-address-summary__row--wide) {
  padding-left: 15px;
  border-left: 1px solid #f0f0f0;
}

.rovers-address-summary__row--wide {
  grid-column: 1 / -1;
}

.rovers-address-summary__row small,
.rovers-address-summary__row strong {
  display: block;
}

.rovers-address-summary__row small {
  margin-bottom: 4px;
  color: #777;
  font-size: 10px;
}

.rovers-address-summary__row strong {
  overflow-wrap: anywhere;
  color: #1b1b1b;
  font-size: 13px;
  line-height: 1.4;
}

.rovers-address-pair {
  grid-column: 1 / -1;
}

.rovers-address-summary__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.rovers-address-summary.is-empty .rovers-address-summary__actions {
  justify-content: center;
  margin-top: 16px;
}

.rovers-address-summary__actions button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.rovers-address-section {
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.rovers-address-section h3 {
  margin: 0 0 13px;
  color: #222;
  font-size: 15px;
}

.rovers-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.rovers-address-number-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.rovers-address-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.rovers-address-pair--contact {
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
}

.rovers-address-pair--street {
  grid-template-columns: minmax(0, 2fr) minmax(90px, .7fr);
}

.rovers-address-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.rovers-address-field--wide {
  grid-column: 1 / -1;
}

.rovers-address-field input,
.rovers-address-field select,
.rovers-address-field textarea {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 7px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.rovers-address-field textarea {
  resize: vertical;
}

.rovers-address-field input:focus,
.rovers-address-field select:focus,
.rovers-address-field textarea:focus {
  border-color: #222;
  outline: 2px solid rgba(0, 0, 0, .08);
}

.rovers-address-field select:disabled {
  border-color: #dedede;
  background: #f4f4f4;
  color: #7a7a7a;
  cursor: wait;
  opacity: 1;
}

.rovers-address-field.is-invalid input,
.rovers-address-field.is-invalid select,
.rovers-address-field.is-invalid textarea {
  border-color: #b42318;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, .12);
}

.rovers-address-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #222;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.rovers-address-check input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.rovers-address-check--number {
  align-self: start;
  min-height: 20px;
  font-size: 12px;
}

.rovers-address-invoice {
  margin-top: 18px;
}

.rovers-address-invoice[hidden] {
  display: none;
}

.rovers-address-location-status,
.rovers-address-form-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: #666;
  font-size: 12px;
}

.rovers-address-form-status.is-error {
  color: #b42318;
}

.rovers-address-form-status.is-success {
  color: #16783c;
}

.rovers-address-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
}

.rovers-address-actions button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #222;
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.rovers-address-actions button[type="submit"] {
  background: #111;
  color: #fff;
}

.rovers-address-actions button:disabled {
  cursor: wait;
  opacity: .55;
}

.rovers-account-addresses {
  --rovers-account-border: #e3e3e3;
  --rovers-account-muted: #6c6c6c;
  color: #171717;
}

.rovers-account-addresses__intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.rovers-account-addresses__eyebrow,
.rovers-account-addresses__intro .rovers-account-addresses__eyebrow {
  margin: 0 0 6px;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rovers-account-addresses__intro h2 {
  margin: 0 0 9px;
  color: #171717;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}

.rovers-account-addresses__intro > p:last-child {
  margin: 0;
  color: var(--rovers-account-muted);
  font-size: 14px;
  line-height: 1.65;
}

.rovers-account-addresses__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rovers-account-address-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--rovers-account-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .035);
}

.rovers-account-address-card__head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding-bottom: 17px;
  border-bottom: 1px solid #ededed;
}

.rovers-account-address-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #f4f4f4;
}

.rovers-account-address-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.rovers-account-address-card__head p,
.rovers-account-address-card__head h3 {
  margin: 0;
}

.rovers-account-address-card__head p {
  color: var(--rovers-account-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rovers-account-address-card__head h3 {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.2;
}

.rovers-account-address-card__status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.rovers-account-address-card__status.is-complete {
  background: #e9f7ef;
  color: #16783c;
}

.rovers-account-address-card__status.is-incomplete {
  background: #fff1ed;
  color: #a83c27;
}

.rovers-account-address-card__details {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
}

.rovers-account-address-card__details > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rovers-account-address-card__details > div:last-child {
  border-bottom: 0;
}

.rovers-account-address-card__details dt,
.rovers-account-address-card__details dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.rovers-account-address-card__details dt {
  color: var(--rovers-account-muted);
}

.rovers-account-address-card__details dd {
  color: #202020;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.rovers-account-address-card__same,
.rovers-account-address-card__empty {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 15px;
  border-radius: 9px;
  background: #f7f7f7;
  font-size: 13px;
  line-height: 1.5;
}

.rovers-account-address-card__same span,
.rovers-account-address-card__empty span {
  color: var(--rovers-account-muted);
}

.rovers-account-addresses__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.rovers-account-addresses__edit.button,
button.rovers-account-addresses__edit.button {
  min-height: 44px;
  margin: 0;
  padding: 11px 22px;
  border: 1px solid #111;
  border-radius: 7px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rovers-account-addresses__edit.button:hover,
.rovers-account-addresses__edit.button:focus {
  border-color: #333;
  background: #333;
  color: #fff;
}

.rovers-account-addresses__actions p {
  margin: 0;
  color: var(--rovers-account-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 769px) {
  #header-content .rovers-header-address--desktop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #header-content .rovers-header-address--mobile,
  header.site-header .rovers-header-address--mobile,
  .rovers-header-address--mobile.is-rovers-mounted {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .rovers-account-addresses__grid {
    grid-template-columns: 1fr;
  }

  .rovers-account-address-card {
    padding: 18px;
  }

  .rovers-account-address-card__head {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .rovers-account-address-card__status {
    grid-column: 2;
    justify-self: start;
  }

  .rovers-account-address-card__details > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .rovers-account-addresses__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rovers-account-addresses__edit.button {
    width: 100%;
  }

  .rovers-address-modal {
    align-items: flex-end;
    padding: 0;
  }

  .rovers-address-modal__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .rovers-address-modal__head {
    padding: 17px 18px 14px;
  }

  .rovers-address-modal__head h2 {
    font-size: 21px;
  }

  .rovers-address-summary {
    padding: 18px;
  }

  .rovers-address-summary__sections {
    grid-template-columns: 1fr;
  }

  #rovers-address-form {
    padding: 2px 18px 22px;
  }

  .rovers-address-grid {
    grid-template-columns: 1fr;
  }

  .rovers-address-field--wide {
    grid-column: auto;
  }

  .rovers-address-actions {
    position: sticky;
    bottom: -22px;
    margin: 0 -18px -22px;
    padding: 12px 18px 16px;
    border-top: 1px solid #eee;
    background: #fff;
  }

  .rovers-address-actions button {
    flex: 1;
  }
}
