.select-dealer-container {
  .g-container {
    padding-block: 48px;

    @media(width >=1024px) {
      padding-block: 80px;
    }
  }

  .g-row {
    @media (width < 1024px) {
      gap: 24px;
    }
  }

  .dealerPhone {
    color: var(--primary-main);
  }

  .select-dealer-step-title * {
    letter-spacing: 0;
  }

  .form-container {
    margin-top: 24px;

    @media (width >=1024px) {
      margin-top: 44px;
    }

    @media (width >=1920px) {
      margin-top: 40px;
    }
  }

  .content-container {
    @media(width>=1024px) {
      height: 522px;
      column-gap: 12px;

      .addressContainer-result {
        width: calc((var(--grid-formula) * 5) + (var(--grid-gutter-width) * (5 - 1)) + 12px);
      }
    }

    @media(width>=1366px) {
      height: 721px;
    }

    @media(width>=1920px) {
      height: 1040px;
    }
  }

  .addressContainer-result {
    @media (width >=1024px) {
      overflow: auto;
      max-height: unset;
      height: 100%;
    }


    @media (width < 1024px) {
      order: 2;
    }

    &.service_tab {
      .cta-btn {
        justify-content: flex-start;

        div {
          display: none;
        }
      }

      .dealerDetails {
        &>section:last-child {
          margin-top: 24px;
        }
      }
    }
    .cta-btn:has(.hidden){
      gap: 0;
    }
    &.mds_tab,
    &.com_tab {
      .cta-btn {
        justify-content: flex-start;

        div {
          display: none;
        }
      }
    }
  }

  .accordion-section {
    position: relative;
    margin-bottom: 24px;

    &::after {
      content: '';
      display: block;
      background: url('/icons/accordion-arrow.svg') no-repeat center center;
      background-size: contain;
      width: 26px;
      height: 26px;
      position: absolute;
      top: 0;
      right: 0;

      @media (width >=768px) {
        width: 40px;
        height: 40px;
      }
    }

    .accordion-header {
      pointer-events: none;
    }
  }

  .exploreAllBtn button {
    background: none;
  }

  .contact-us--cta {
    a {
      margin-left: 8px;
      padding: 8px 12px;
      font-size: var(--body-m-nexa, var(--body-xs-arena));
      color: var(--primary-main);
      text-decoration: none;
    }
  }



  .mmi-map {
    width: 100%;
    height: 100%;
  }

  .accordion-toggle {
    margin-bottom: 24px;

    .dealerImage {
      @media (width <768px) {
        width: 100%;
      }

      height: 126px;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .dealerTime,
    .dealerMail {
      position: relative;
      display: flex;
      gap: 8px;
    }

    .dealerMail,
    .email-text-copy {
      color: var(--primary-main);
      word-break: break-all;
      align-items: flex-start;
    }

    #time-section {
      align-items: flex-start;
    }

    .accordion-inner {
      display: flex;
      gap: 24px;
      flex-direction: column;

      @media (width >=768px) {
        flex-direction: row;
      }
    }

    .email-copy-toast {
      display: none;
      background: #515151;
      /* box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.12); */
      padding: 0.5rem 0.75rem;
      color: var(--tertiary-white);
      white-space: nowrap;
      text-align: center;
      position: absolute;
      right: 0rem;
      bottom: 100%;
      margin: 0;
    }

    .contact-icon {
      background-repeat: no-repeat;
      height: 24px;
      width: 24px;
      background-size: 24px;
      display: inline-block;
      transition: all 0.2s linear;
      margin-inline: 5px;
    }

    .center-align-items {
      display: flex;
      align-items: center;
    }

    .dealerDetails {
      color: var(--primary-main);

      @media (width <768px) {
        width: 100%;
      }

      .time-container {
        display: none;
      }

      &>section:not(:last-child) {
        margin-bottom: 16px;
      }

      &>section:last-child {
        margin-top: 32px;
      }
    }

    .closed {
      color: var(--tertiary-red);
      font-weight: var(--fw-700);
    }

    .open {
      color: var(--tertiary-green);
      font-weight: var(--fw-700);
    }

    .contact-icons {
      height: 24px;
      width: 24px;
      padding: 6px;
      background: var(--tertiary-light-grey) center/auto no-repeat;
      border-radius: 50%;
      display: inline-block;
      transition: all 0.2s linear;
      margin-right: 12px;
    }

    .copy-icon-img {
      cursor: pointer;
      margin-top: 5px
    }

    .phone-section {
      display: none;
    }

    .phone-icon {
      background-image: url('/icons/phone.svg');
    }

    .phone-separator {
      padding: 0px 4px;
    }

    .email-icon {
      background-image: url('/icons/mail.svg');
    }

    .time-icon {
      background-image: url('/icons/time.svg');
    }

  }

  .dealerLogo {
    margin-right: 74px;
    height: 38px;

    @media (width >=1024px) {
      height: 36px;
      margin-right: 63px;
    }

    @media (width >=1366px) {
      height: 42px;
    }

    img {
      width: 100%;
      height: 100%;
    }
  }

  .cta-btn {
    display: flex;
    position: relative;
    flex-flow: row wrap;
    align-items: center;

    @media (width < 768px) {
      justify-content: center;
      row-gap: 24px;

      &>div {
        width: 100%;
      }
    }

    .btn {
      flex: none;
      margin-right: 24px;

      @media (width < 768px) {
        width: 100%;
        margin-right: 0;
      }

      @media (width >=1024px) {
        font-size: var(--body-m-nexa, var(--heading-s-arena));
      }

      @media (width >=1024px) and (width < 1366px) {
        width: fit-content;
      }
    }

    .directionBtn {
      font-size: var(--body-s-nexa);
      line-height: var(--lh-20px-nexa);
    }

    .arrow-icon {
      background: url('/icons/north_east.svg')no-repeat center;
      background-size: 12px;
      height: 12px;
      width: 12px;
      display: inline-block;
      margin-left: 8px;
    }

    a:not([type="button"]) {
      color: var(--primary-main);
    }
  }

  .showroomInclude {
    margin-top: 32px;

    p {
      font-size: var(--body-m-nexa);
    }

    .showroomIncludeList {
      display: flex;
      flex-direction: row;
      gap: 16px;
      margin-top: 8px;

      img {
        width: 40px;
        height: 40px;
      }
    }
  }

  .address-item {
    margin-bottom: 24px;
    cursor: pointer;
    padding-right: 10px;

    .dealerName {
      font-weight: var(--fw-500);
      padding-right: 56px;
    }

    &::after {
      content: '';
      display: block;
      background: #767879;
      height: 1px;
    }

    .accordion-toggle {
      display: none;
    }

    &.transform0 {
      .accordion-section {
        margin-bottom: 8px;

        @media (width>=768px) {
          margin-bottom: 11px;
        }
      }

      .accordion-section::after {
        transform: rotate(180deg);
        width: 34px;
        height: 34px;

        @media (width >=768px) {
          width: 44px;
          height: 44px;
        }
      }

      .accordion-toggle {
        display: block;
      }
    }

    .dealerAddress {
      margin-top: 4px;
      margin-bottom: 24px;
      padding-right: 56px;
      pointer-events: none;

      @media (width < 1024px) {
        line-height: var(--lh-18px-nexa);
      }

      @media screen and (width >=1024px) {
        margin-bottom: 22px;
      }
    }
  }

  #map {
    width: 100%;
    margin: auto;
    height: 320px;
    margin-bottom: 0;
    filter: grayscale(90%);

    @media (width >=768px) {
      height: 656px;
    }

    @media(width>=1024px) {
      width: 100%;
      margin-left: 0;
      height: 522px;
      margin-bottom: 0;
    }

    @media(width>=1366px) {
      height: 721px;
      /* margin-bottom: 25px; */
    }

    @media(width>=1920px) {
      height: 1040px;
    }

    img {
      width: 100%;
      height: 100%;
      overflow: hidden;
      object-fit: cover;
    }
  }

  &.contactus {
    background: var(--tertiary-black);

    .addressContainer-result {
      height: 100%;
      overflow: hidden auto;
      max-height: 554px;

      @media (width >=768px) {
        max-height: 504px;
      }

      @media (width >=1024px) {
        max-height: unset;
      }
    }

    .addressContainer-result::-webkit-scrollbar {
      width: 3px;
    }

    .addressContainer-result::-webkit-scrollbar-track {
      background-color: #767879;
      border-left: 2px solid #767879;
    }

    .addressContainer-result::-webkit-scrollbar-thumb {
      background-color: #fff;
    }

    .arrow-icon,
    .copy-icon-img,
    .accordion-section::after {
      filter: invert(1);
    }

    .dealer-tabs {
      width: 100%;
      display: flex;
      position: relative;
      align-items: center;
      margin-bottom: 24px;

      .dealer-tabs-wrapper {
        width: 100%;
        display: flex;
        overflow: auto;
        align-items: center;
        scrollbar-width: none;

        button {
          display: flex;
          padding: 12px 24px;
          white-space: nowrap;
          justify-content: center;
          align-items: center;
          gap: 10px;
          color: var(--tertiary-white);
          border-bottom: 1px solid var(--tertiary-white);

          @media (width >=1024px) {
            padding: 12px 48px;
          }

          &.active {
            font-weight: var(--fw-500);
            border-bottom: 2px solid var(--tertiary-white);
          }
        }
      }



      .nav-arrow {
        border: none;
        width: 24px;
        height: 24px;
        padding: 0;
        position: absolute;
        background: url('/icons/menu-header-left-angle-bracket.svg') center no-repeat;
        background-color: var(--tertiary-black);
      }

      .nav-arrow--prev {
        left: -8px;
        transform: rotate(180deg);
      }

      .nav-arrow--next {
        right: -8px;
      }

      @media (width >=1024px) {
        margin-bottom: 32px;
      }
    }

    .heading,
    .select-dealer-desc,
    .addressSection *:not(.btn, .open, .closed) {
      color: #fff;
    }

    .select-dealer-desc {
      margin: 24px 0 32px;

      @media (width >=1024px) {
        margin-bottom: 40px;
      }
    }
  }

  #mLogo0 {
    display: none;
  }
}

body.arena {
  .select-dealer-container {
    background: var(--tertiary-white);

    .address-item {
      .dealerName {
        margin-bottom: 8px;

        @media (width >=1024px) {
          margin-bottom: 6px;
        }

        @media (width >=1200px) {
          margin-bottom: 8px;
        }
      }

      .dealerDistance.text-large {
        font-size: var(--body-xs-arena);
        line-height: var(--lh-18px-arena);
        font-weight: var(--fw-400);

        @media (width >=768px) {
          font-size: var(--heading-s-arena);
          line-height: var(--lh-20px-arena);
        }
      }

      .dealerAddress {
        margin-top: 14px;

        @media (width >=768px) {
          margin-top: 12px;
        }

        &.body-text {
          font-size: var(--body-xs-arena);
          line-height: var(--lh-18px-arena);

          @media (width >=1024px) {
            line-height: var(--lh-20px-arena);
          }
        }
      }
    }

    .accordion-toggle {
      & .dealerImage {
        height: 213px;

        @media (width >=768px) {
          height: 154px;
        }

        @media (width >=1024px) {
          height: 88px;
        }

        @media (width >=1200px) {
          height: 126px;
        }

        @media (width >=1600px) {
          width: 280px;
          height: 186px;
        }
      }

      #time-section {
        align-items: center;
      }

      .email-copy-toast {
        font-size: var(--body-xs-arena);

        @media (width >=1024px) {
          font-size: var(--heading-s-arena);
        }
      }
    }

    .dealerPhone,
    .email-text-copy,
    .dealerTime {
      color: var(--egyptian-blue);
      font-size: var(--body-xs-arena);
      line-height: var(--lh-18px-arena);
      font-weight: var(--fw-400);
    }

    .dealerTime {
      color: var(--tertiary-black);
    }

    .cta-btn {
      gap: 16px;

      @media (width >=1024px) {
        gap: 24px;
      }

      .btn {
        padding: 12px 24px;

        @media (width >=768px) {
          margin-right: 0;
        }

        @media (width >=1024px) and (width < 1366px) {
          margin-bottom: 0;
        }
      }

      .directionBtn {
        color: var(--Primary-main-arena);
        font-size: var(--body-xs-arena);
        line-height: var(--lh-18px-arena);
        font-weight: var(--fw-400);
        display: flex;

        .arrow-icon {
          background: url(/icons/north_east_blue.svg) no-repeat center;
          width: 18px;
          height: 18px;
        }
      }
    }

    .exploreAllBtn {
      margin-top: 8px;
      display: inline-flex;

      @media (width >=1200px) {
        margin-top: -8px;
      }

      @media (width >=1600px) {
        margin-top: 8px;
      }

      .btn {
        padding: 12px 24px;
        color: var(--Primary-main-arena);
        border: 1px solid var(--Primary-main-arena);
      }
    }

    .form-container {
      @media (width >=1024px) {
        margin-top: 40px;
      }
    }

    .addressContainer-result::-webkit-scrollbar {
      width: 4px;
    }

    .addressContainer-result::-webkit-scrollbar-track {
      background-color: #f5f5f5;
      border-left: 4px solid #f5f5f5;
    }

    .addressContainer-result::-webkit-scrollbar-thumb {
      background-color: #171c8f;
      clip-path: none;
    }

    .accordion-section {
      &::after {
        width: 24px;
        height: 24px;

        @media (width >=768px) {
          width: 34px;
          height: 34px;
        }
      }
    }

    .contact-us--cta {
      a {
        padding: 12px 24px;
        border: 1px solid var(--Primary-main-arena);
        color: var(--Primary-main-arena);
        margin-left: 0;
        line-height: var(--lh-18px-arena);
        height: 42px;
        display: inline-block;

        @media (width >=1024px) {
          font-size: var(--heading-s-arena);
        }

      }
    }

    &.contactus {
      background: var(--tertiary-white);

      .heading,
      .select-dealer-desc,
      .addressSection *:not(a, .btn, .open, .closed),
      .light {
        color: var(--tertiary-black);
      }

      a.dealerPhone,
      a.email-text-copy,
      a.dealerTime {
        color: var(--egyptian-blue);
      }

      .accordion-section {
        &::after {
          filter: var(--black-filter);
          width: 24px;
          height: 24px;

          @media (width >=768px) {
            width: 34px;
            height: 34px;
          }
        }
      }

      .address-item {
        .dealerAddress {
          padding-right: 0;
          margin-top: 4px;
        }
      }

      .cta-btn {
        .btn {
          &.btn-secondary {
            background: var(--Primary-main-arena);
            color: var(--white-smoke);
          }
        }

        .directionBtn {
          color: var(--Primary-main-arena);

          .arrow-icon {
            filter: var(--primary-arena-filter);
          }
        }
      }

      .exploreAllBtn {
        .btn {
          background-color: transparent;
          height: 42px;
        }
      }

      .dealer-tabs-wrapper button {
        color: var(--tertiary-black);
        border-bottom: 1px solid var(--bars-unselected);

        &.active {
          border-bottom: 2px solid var(--egyptian-blue);
          color: var(--egyptian-blue);
        }
      }
    }
  }
}


body.hypercommercial {
  &.from-rewards-program {
    .select-dealer {
      scroll-margin-top: 100px;

      @media (width >=1024px) {
        scroll-margin-top: 175px;
      }
    }
  }

  .select-dealer {
    scroll-margin-top: 60px;
  }

  .select-dealer-container {
    .cta-btn {
      a:not(.directionBtn) {
        display: none;
      }

      a.directionBtn {
        background-color: var(--com-text-color-red);
        border: 1px solid var(--com-text-color-red);
        border-radius: 2px;
        color: var(--tertiary-white);
        clip-path: none;
        padding: 8px 12px;
        height: 40px;
        width: 100%;
        line-height: 24px;
        font-size: 16px;
        text-align: center;

        @media (width >=1024px) {
          min-width: 90px;
          width: auto;
        }

        .arrow-icon {
          display: none;
        }
      }
    }

    .contact-us--cta {
      display: none;
    }

    & .form-container {
      @media (width >=1024px) {
        margin-top: 64px;
      }
    }

    .dealerName,
    .dealerDistance {
      color: var(--com-text-color-dark-body)
    }

    .dealerAddress,
    .dealerTime {
      color: var(--com-text-color-normal-body);
    }
  }

  .dealerAddress {
    margin-top: 14px;

    @media (width >=768px) {
      margin-top: 12px;
    }

    &.body-text {
      font-size: var(--body-xs-arena);
      line-height: var(--lh-18px-arena);

      @media (width >=1024px) {
        line-height: var(--lh-20px-arena);
      }
    }
  }

  .dealerPhone,
  .email-text-copy,
  .dealerTime {
    color: var(--egyptian-blue);
    font-size: var(--body-xs-arena);
    line-height: var(--lh-18px-arena);
    font-weight: var(--fw-400);
  }

  .dealerTime {
    color: var(--tertiary-black);
  }
}
