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

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

.address-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.address-modal__container {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #00355F;
  box-shadow: 4px 4px 16px 0 rgba(0, 0, 0, 0.15);
}

/* Internal border */
.address-modal__container::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #006EB8;
  pointer-events: none;
}

.address-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 28px;
  text-align: center;
  color: #FFF;
}

/* Title */
.address-modal__title {
  margin: 0 0 20px;
  color: #FFF;
  font-family: "EB Garamond", serif;
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

/* Description */
.address-modal__description {
  margin: 0 0 24px;
  color: #FFF;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

/* Address */
.address-modal__address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  color: #FFF;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

.address-modal__address strong {
  font-weight: 600;
  text-transform: capitalize;
}

.address-modal__address a {
  color: inherit;
  text-decoration: none;
}

.address-modal__address a:hover {
  text-decoration: underline;
}

/* Got It button */
.address-modal__button {
  display: flex;
  width: 160px;
  padding: 12px 40px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #01A9AC;
  color: #FFF;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  text-transform: capitalize;
  cursor: pointer;
  transition: background 0.2s ease;
}

.address-modal__button:hover {
  background: #008f92;
}

/* Close button */
.address-modal__close {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 2;
  display: flex;
  width: 22px;
  height: 22px;
  border: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.address-modal__close svg {
  width: 20px;
  height: 20px;
}

.address-modal__button:focus-visible,
.address-modal__close:focus-visible {
  outline: 2px solid #FFF;
  outline-offset: 4px;
}

/* Mobile */
@media (max-width: 600px) {
  .address-modal {
    padding: 20px 10px;
  }
  .address-modal__content {
    padding: 65px 24px 30px;
  }

  .address-modal__title {
    font-size: 32px;
  }

  .address-modal__description {
    font-size: 15px;
  }

  .address-modal__address {
    font-size: 16px;
  }

  .address-modal__close {
    top: 25px;
    right: 25px;
  }
}
