@media (min-width: 500px) {
  .middle-panel {
    min-width: 480px;
    height: 100%;
  }

  .location-close {
    width: 30px;
  }

  .save-button {
    margin: 9px;
  }
}

@media (min-width: 600px) {
  .middle-panel {
    min-width: 600px;
    padding: 37px;
    height: auto;
  }

  .location-close {
    width: 30px;
  }

  .save-button {
    margin: 9px;
  }
}

@media (min-height: 700px) and (min-width: 800px) {
  .location-icon span {
    font-weight: 700;
    vertical-align: middle;
    text-transform: capitalize;
    display: inline-block;
    padding: 0 5px;
  }

  .overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10000;
  }

  .location-modal {
    display: block !important;
    position: fixed;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    background: #ffffff;
    display: table-cell;
    width: auto;
    right: auto;
    height: auto;
    margin: 0;
  }

  .top-location-panel {
    height: 40px;
    text-align: left;
    border-bottom: 1px solid #d5d5d5;
    position: relative;
    padding: 6px 20px;
  }

  .top-location-panel span {
    vertical-align: super;
    display: inline-block;
    padding: 0 5px;
    font-weight: 700;
    font-size: 16px;
  }

  .top-location-panel span span {
    padding: 0;
    text-transform: capitalize;
    vertical-align: initial;
  }

  .top-panel {
    height: 60px;
  }

  .top-location-panel {
    display: none;
  }

  .middle-panel {
    min-width: 780px;
    padding: 47px;
    height: auto;
  }

  .bottom-panel {
    height: 70px;
  }

  .location-table-header-cell {
    font-size: 14px;
    font-weight: bold;
  }

  .location-table-body-cell {
    font-size: 14px;
    margin: 4px 0px;
  }

  .location-close {
    right: 10px;
    width: 40px;
  }

  .location-close:before,
  .location-close:after {
    height: 24px;
    width: 5px;
  }

  .location-heading {
    font-size: 20px;
    font-weight: bold;
    padding: 0px 0px 20px 0px;
  }

  .location-subheading {
    font-size: 20px;
    font-weight: bold;
    padding: 40px 0px 20px 0px;
  }

  .location-address-input {
    width: 100%;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    height: 60px;
    padding: 20px 40px 20px 20px;
  }

  .location-table-row {
    min-width: 170px;
    margin-bottom: 20px;
  }

  .save-button {
    height: 50px;
    width: 150px;
    font-size: 16px;
    margin: 9px;
  }

  .locationMap {
    width: 200px;
    height: 200px;
    display: block;
  }

  .footer-address-wrapper {
    display: block;
  }

  .footer-location-icon {
    color: #4d4d4d;
    fill: #4d4d4d;
    white-space: nowrap;
  }

  .footer-location-icon span,
  .footer-location-icon span a,
  .footer-location-icon span a:hover,
  .footer-location-icon span a:active,
  .footer-location-icon span a:visited {
    font-weight: 700;
    vertical-align: middle;
    text-transform: capitalize;
    display: inline-block;
    padding: 0 0 0 5px;
    font-size: 14px;
  }

  .footer-location-icon svg {
    width: 15px;
    height: 15px;
    vertical-align: middle;
  }

  .footer-address-wrapper {
    padding: 0;
  }

  .footer-address {
    font-size: 14px;
  }

  .footer-address .full-address {
    padding: 10px 0;
    line-height: 20px;
    text-transform: capitalize;
    font-weight: 600;
  }

  .phone-wrapper .phone-label {
    font-weight: 700;
  }

  .phone-wrapper .phone {
    padding: 0;
  }

  .email-wrapper .email-label {
    font-weight: 700;
  }

  .email-wrapper .email {
    padding: 0;
    text-transform: lowercase;
  }
}

/* iPadPro */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .locationMap {
    width: 100%;
    height: 260px;
    display: block;
  }

  .footer-address {
    font-size: 13px;
  }

  .footer-location-icon {
    line-height: 1;
  }

  .footer-location-icon svg {
    width: 25px;
    height: 25px;
    vertical-align: sub;
  }

  .footer-location-icon span,
  .footer-location-icon span a,
  .footer-location-icon span a:hover,
  .footer-location-icon span a:active,
  .footer-location-icon span a:visited {
    font-size: 16px;
  }
}

/* iPad */
@media only screen and (min-width: 426px) and (max-width: 768px) {
  .location-icon svg {
    height: 60px;
  }

  .overlay {
    top: 120px;
  }

  .location-modal {
    top: 120px;
  }

  .top-panel {
    height: 60px;
  }

  .top-location-panel {
    height: 60px;
    line-height: 60px;
    padding: 0 15px;
  }

  .top-location-panel svg {
    vertical-align: unset;
  }

  .middle-panel {
    line-height: 2;
  }

  .bottom-panel {
    height: auto;
  }

  .save-button {
    height: 60px;
    line-height: 60px;
    width: 40%;
  }
}

/* Mobile */
@media only screen and (max-width: 426px) {
  .location-icon svg {
    height: 60px;
  }

  .overlay {
    top: 120px;
  }

  .location-modal {
    top: 120px;
    overflow-y: scroll;
    height: calc(100vh - 120px);
  }

  .top-panel {
    height: 60px;
    line-height: 60px;
    min-height: 60px;
  }

  .top-location-panel {
    height: 60px;
    line-height: 60px;
    padding: 0 15px;
  }

  .top-location-panel svg {
    vertical-align: unset;
  }

  .middle-panel {
    line-height: 2;
  }

  .bottom-panel {
    height: auto;
  }

  .save-button {
    height: 60px;
    line-height: 60px;
    width: 40%;
  }
}

/* Mobile M */
@media only screen and (max-width: 376px) {
  .location-table {
    justify-content: space-around;
  }
}