@use "../../../../styles/abstracts/variables" as *;
@use "../../../../styles/abstracts/mixins" as *;

.plan__summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  /* ==============================
     HEADER
  ============================== */

  &--header {
    padding: 1.75rem;

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,.06);

    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,.02),
        rgba(255,255,255,.01)
      );

    span {
      display: inline-flex;

      align-items: center;

      height: 28px;

      padding: 0 1rem;

      border-radius: 999px;

      background:
        rgba(247,147,24,.12);

      color: $col-orange;

      font-size: .7rem;

      font-weight: 500;

      letter-spacing: .03em;

      text-transform: uppercase;
    }

    h2 {
      margin-top: .9rem;

      color: $col-white;

      font-size: 1.2rem;

      font-weight: 500;
    }

    p {
      margin-top: .2rem;

      max-width: 650px;

      color: rgba(255,255,255,.65);

      font-size: .85rem;

      line-height: 1.8;
    }
  }

  /* ==============================
     BODY
  ============================== */

  &--details {
    border: 1px solid rgba(255,255,255,.06);

    border-radius: 18px;

    overflow: hidden;

    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,.015),
        rgba(255,255,255,.008)
      );

    backdrop-filter: blur(20px);

    /* ==============================
       TABS
    ============================== */

    &--tab {
      display: flex;

      gap: .75rem;

      padding: 1rem;

      border-bottom:
        1px solid rgba(255,255,255,.05);

      background:
        rgba(255,255,255,.01);

      overflow-x: auto;

      scrollbar-width: none;

      &::-webkit-scrollbar {
        display: none;
      }
    }

    /* ==============================
       CONTENT
    ============================== */

    &--children {
      padding: 2rem;

      @media (max-width: 1000px) {
        padding: 1.25rem;
      }
    }
  }
}

/* ==================================
   TAB
================================== */

.tab {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: .65rem;

  min-width: 150px;

  height: 48px;

  padding: 0 1rem;

  border-radius: 12px;

  border: 1px solid transparent;

  background: transparent;

  color: rgba(255,255,255,.6);

  font-size: .85rem;

  font-weight: 500;

  cursor: pointer;

  transition: all .25s ease;

  svg {
    font-size: 1rem;
  }

  &:hover {
    background:
      rgba(255,255,255,.03);

    color: $col-white;
  }
}

/* ==================================
   ACTIVE TAB
================================== */

.activeTab {
  @extend .tab;

  background:
    linear-gradient(
      135deg,
      rgba(247,147,24,.18),
      rgba(247,147,24,.08)
    );

  border-color:
    rgba(247,147,24,.25);

  color: $col-white;

  box-shadow:
    0 10px 30px rgba(247,147,24,.08);

  svg {
    color: $col-orange;
  }
}