/* Customer requested to hide Emitter Options row on Propulsion page; May 22, 2025 */
body.page-id-484 tr.spec-row-emitter_options {
  display: none;
}

.with_frm_style select option {
  color: white;
}

.home-csmi-connected-sections .connected-top-nav {
  display: none;
}

#overview {
  min-height: 800px;

  .satellite-img-wrapper {
    img {
      max-width: 100%;
    }
  }

  @media (min-width: 769px) {
    & {
      min-height: 1000px;
    }
  }

  @media (min-width: 1025px) {
    & {
      min-height: 1200px;

      .satellite-img-wrapper {
        img {
          max-width: 900px;
        }
      }
    }
  }

  @media (min-width: 1400px) {
    & {
      min-height: 1300px;

      .satellite-img-wrapper {
        img {
          max-width: 1100px;
        }
      }
    }
  }

  @media (min-width: 1800px) {
    & {
      min-height: 1400px;
      background-position: center;
    }
  }
}

.overview-description {
  color: white;
}

/* Spec rows that client requested we hide */
/* Remove only on the Propulsion page */
body:not(.single-products) {
  .spec-row-maximum_thrust,
  .spec-row-nominal_thrust,
  .spec-row-power_at_nominal_thrust,
  .spec-row-emitter_options,
  .spec-row-command_interface,
  .spec-row-thruster_head_dimensions,
  .spec-row-supply_voltage {
    display: none;
  }
}

/* Nexus page */
.postid-153 .spec-row-outside_dimensions_thruster_head_ppu_box {
  display: none;
}

/* Careers Open Positions */

body .enp-personio-jobs {
  display: flex;
  align-items: flex-start;
  gap: 80px;

  .enp-personio-jobs-locations {
    width: 192px;

    .enp-personio-jobs-locations-title,
    .enp-personio-job-location {
      color: var(--TBL-Colors-Dont-Go-Joe---100, #000005);
      cursor: pointer;

      &:hover {
        text-decoration: underline;
      }
    }

    .enp-personio-job-location-active {
      text-decoration: underline;
    }
  }

  .enp-personio-jobs-list {
    width: 100%;

    a.enp-personio-job {
      display: flex;
      flex-wrap: nowrap;
      white-space: nowrap;
      width: 100%;
      max-height: 80px;
      justify-content: space-between;
      padding: 24px 24px 30px;
      gap: 12px;
      border-top: 1px solid var(--Enpulsion-Colors-Deep-Space---10, #eaedf0);
      transition: all 0.2s ease-in-out;

      &:not(.enp-personio-job-active) {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
      }

      &::after {
        content: "";
        width: 24px;
        height: 24px;
        background-image: url("/wp-content/uploads/right-chevron.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: translateX(0);
        transition: transform 0.2s ease-in-out;
      }

      &:hover {
        &::after {
          transform: translateX(10px);
        }
      }

      h6,
      p {
        margin-bottom: 0;
      }

      .enp-personio-job-title {
        flex: 0 1 50%;
        min-width: 0; /* allow truncation */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #000;
        font-size: 22px;
        font-weight: 400;
        line-height: 1.15;
      }

      .enp-personio-job-location {
        flex: 0 0 25%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .enp-personio-job-schedule {
        flex: 0 0 15%;
      }
    }
  }

  @media (max-width: 1024px) {
    & {
      flex-direction: column;
      gap: 0;

      .enp-personio-jobs-locations {
        display: flex;
        gap: 24px;
        width: 100%;
        padding: 12px 24px;

        p {
          margin: 0;
        }
      }
    }
  }

  @media (max-width: 768px) {
    & {
      .enp-personio-jobs-list {
        a.enp-personio-job {
          max-height: max-content;
          display: grid;
          grid-template-columns: 1fr auto auto;
          grid-template-rows: auto auto;
          grid-column-gap: 1rem;
          grid-row-gap: 0.5rem;
          align-items: center;
          padding: 0.75rem 1rem;
          position: relative;

          &::after {
            position: absolute;
            top: 16px;
            right: calc(16px + 0.5rem);
          }

          &:hover {
            &::after {
              transform: translateX(0);
            }
          }

          .enp-personio-job-title {
            grid-column: 1 / -1;
            padding-right: 36px;
          }

          .enp-personio-job-location {
            grid-column: 1;
          }

          .enp-personio-job-schedule {
            grid-column: 2;
          }
        }
      }
    }
  }
}

main.career-single {
  padding: 120px 80px;
  background: linear-gradient(180deg, #fff 0%, #eaedf0 18.82%);

  @media (max-width: 1300px) {
    & {
      padding: 80px 40px;
    }
  }

  .container-full {
    display: flex;
    max-width: 1300px;

    @media (max-width: 768px) {
      & {
        flex-direction: column;
      }
    }
  }

  .career-col-right {
    @media (min-width: 1024px) {
      & {
        width: 483px;
        min-width: 483px;
        padding-right: 0;
        padding-left: 12px;
      }
    }
  }

  .career-single__header {
    .career-single__title {
      margin-bottom: 54px;
    }
    .career-single__meta {
      display: flex;
      width: 100%;
      justify-content: space-between;
      margin-bottom: 54px;

      .career-single__meta-left {
        display: flex;
        align-items: center;

        .career-single__posted-by {
          display: flex;
          width: max-content;
          gap: 12px;
          align-items: center;
          padding-right: 24px;
          border-right: 1px solid #cccdd1;

          img {
            object-fit: cover;
            width: 45px;
            height: 45px;
          }

          .career-single__posted-by-text {
            display: flex;
            flex-direction: column;

            p.disclaimer {
              color: var(--Enpulsion-Colors-Deep-Space---100, #020417);
              margin: 0;
            }

            p.small-paragraph {
              font-weight: 500;
              line-height: 1.3;
            }
          }
        }

        .career-single__published {
          padding-left: 24px;

          p {
            color: var(--Enpulsion-Colors-Deep-Space---40, #8d8fa1);
          }
        }
      }

      .career-single__meta-right {
        display: flex;
        flex-direction: column;
        justify-content: center;

        .career-single__meta-social {
          display: flex;
          gap: 18px;

          .career-single__meta-social-link {
            height: 20px;
            width: 20px;
          }
        }
      }

      @media (max-width: 768px) {
        & {
          flex-direction: column;
          gap: 24px;
          align-items: center;
        }
      }
    }
  }

  .career-single__body {
    margin-bottom: 96px;

    .career-col-left {
      display: flex;
      flex-direction: column;
      gap: 54px;
      padding-left: 0;
      padding-right: 12px;
      width: 100%;
    }

    @media (max-width: 1024px) {
      .career-col-right {
        width: 320px;
        min-width: 320px;
      }
    }

    @media (max-width: 768px) {
      .career-col-right {
        width: 100%;
        max-width: 500px;
        margin: 40px auto 0;
        padding-right: 0;
        padding-left: 0;
      }
    }

    h2.h6 {
      margin-bottom: 18px;
    }

    /* Generic styles for all job description sections */
    .career-single__section-content,
    .career-single__contact-content {
      /* br {
        display: none;
      } */

      &,
      p,
      em,
      li,
      strong {
        color: var(--Enpulsion-Colors-Deep-Space---80, #232541);
        font-family: Roboto;
        font-size: 19px;
        font-weight: 300;
        line-height: 1.35;
        font-style: normal;
      }

      strong {
        font-weight: 700;
      }
    }

    /* Special styling for the Job Overview section */
    .career-single__section--special {
      display: flex;
      flex-direction: column;
      gap: 0;
      border-radius: 6px;
      border: 1px solid var(--Proterra-Circuit-Teal-circuit-teal-5, #d9e3e2);
      background: var(--Proterra-White, #fff);
      padding: 30px 24px;

      .career-single__section-title {
        /* margin-bottom: 0; */
      }
    }

    /* Backward compatibility for any remaining old class names */
    .career-single__why_us-content,
    .career-single__your_mission-content,
    .career-single__your_profile-content,
    .career-single__ideal_skills-content {
      /* br {
        display: none;
      } */

      &,
      p,
      em,
      li,
      strong {
        color: var(--Enpulsion-Colors-Deep-Space---80, #232541);
        font-family: Roboto;
        font-size: 19px;
        font-weight: 300;
        line-height: 1.35;
        font-style: normal;
      }

      strong {
        font-weight: 700;
      }
    }

    .career-single__why_us {
      display: flex;
      flex-direction: column;
      gap: 0;
      border-radius: 6px;
      border: 1px solid var(--Proterra-Circuit-Teal-circuit-teal-5, #d9e3e2);
      background: var(--Proterra-White, #fff);
      padding: 30px 24px;

      .career-single__why_us-title {
        margin-bottom: 0;
      }
    }
  }

  .career-single__sidebar {
    .career-single__sidebar-form {
      display: flex;
      padding: 36px 48px 48px 48px;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      gap: 30px;
      flex: 1 0 0;
      border-radius: 12px;
      border: 1px solid var(--Enpulsion-Colors-Deep-Space---90, #23253a);
      background: var(--Enpulsion-Colors-Deep-Space---97, #0a0c1e);

      @media (max-width: 1024px) {
        & {
          padding: 36px 24px 48px 24px;
        }
      }

      .career-single__sidebar-form-header {
        .career-single__sidebar-form-header-logo {
          height: 43px;
          width: 43px;
          object-fit: cover;
          margin-bottom: 30px;
        }

        .career-single__sidebar-item-title {
          color: var(--Enpulsion-Colors-Cosmic-Frost---100, #fff);
          font-weight: 400;
          line-height: 1.15;
          margin-bottom: 18px;
        }

        .career-single__sidebar-item-content {
          color: var(--Enpulsion-Colors-Deep-Space---40, #8d8fa1);
          font-weight: 300;
          line-height: 1.4;
        }
      }

      .frm_forms {
        width: 100%;

        form .frm_form_field {
          padding-left: 0;
        }

        @media (min-width: 768px) {
          .frm_form_fields {
            margin-left: 0;
            margin-right: 0;
          }
        }

        .frm_dropzone.frm_single_upload {
          height: 100px;
          padding: 0;
          margin-top: 0;
          border-radius: var(--4XS, 6px);
          border: 1px dashed var(--Enpulsion-Colors-Deep-Space---80, #232541);
          background: var(--Enpulsion-Colors-Deep-Space---94, #0f1229);

          .dz-message {
            background: transparent;
            margin-bottom: 0;
            height: 100%;
            border: none;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;

            & > svg {
              display: none;
            }
          }

          .frm_upload_text {
            button {
              color: var(
                --Enpulsion-Colors-Cosmic-Frost---100,
                #fff
              ) !important;
              font-family: var(--header-font) !important;
              font-size: 11px !important;
              font-weight: 700 !important;
              line-height: 1.3 !important;
              letter-spacing: 1.1px;
              text-transform: uppercase;
              display: flex;
              align-items: center;

              &::after {
                content: "";
                display: block;
                margin-left: 6px;
                width: 24px;
                height: 24px;
                background-image: url("/wp-content/uploads/attachment-icon.svg");
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
              }
            }
          }

          .frm_small_text {
            color: var(--Enpulsion-Colors-Cosmic-Frost---100, #fff);
            font-family: Roboto;
            font-size: 13px;
            font-weight: 300;
            line-height: 1.4;
            font-style: normal;
          }

          .dz-preview.dz-file-preview {
            position: absolute;
            border: none;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: var(--input-background-color) !important;
            z-index: 111;
            color: white;

            .dz-image,
            .dz-column {
              display: flex;
              flex-direction: column;
              justify-content: center;
            }
          }
        }

        .frm_message[role="status"] {
          background-color: transparent;
          border: none;
          color: white;
          margin: 0;
          padding: 0;
          text-align: left;
        }

        .frm_select_field input[type="text"] {
          display: none;
        }
      }
    }
  }

  .career-single__footer {
    .career-col-left {
      display: flex;
      gap: 36px;

      @media (max-width: 768px) {
        & {
          flex-direction: column;
          gap: 24px;
        }
      }

      .career-single__footer-logo {
        img {
          object-fit: cover;
          width: 131px;
          max-width: 131px;
          height: 131px;
          border-radius: 12px;
        }
      }

      .career-single__footer-content {
        .h5.career-single__footer-title {
          color: var(--Enpulsion-Colors-Deep-Space---100, #020417);
          margin-bottom: 6px;
        }

        .career-single__footer-text {
          margin-bottom: 24px;
          color: var(--Proterra-Lithium-Gray-lithium-gray-10, #555e61);
          font-size: 16px;
          line-height: 1.4;
          letter-spacing: 0.32px;
        }

        .career-single__footer-link {
          color: var(--Proterra-Deep-Voltage-deep-voltage-14, #0d0c33);
          text-decoration: underline;
          text-underline-offset: 2px;
          text-decoration-thickness: 1px;
          cursor: pointer;
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .product-overview .overview-inner {
    background-color: unset;
  }
}

#frm_form_6_container.with_frm_style {
  select {
    font-size: 14px !important;
  }
}
