html:has(.dialog[open]) {
  overflow: hidden;
}

.card-profile {
  img {
    /* border: 4px solid #ebebf2; */
    /* background-color: hsl(from var(--tertiary-clr-900) h s l / 0.3); */
    background: linear-gradient(
      180deg,
      hsla(327, 66%, 37%, 0.15) 0%,
      hsla(234, 25%, 23%, 0.35) 100%
    );
    /* border: 2px solid hsla(327, 66%, 37%, 0.2); */
    border: 2px solid rgb(166, 143, 163);
    /* border: 2px solid var(--white-clr-900); */

    /*
    background: linear-gradient(
      45deg,
      hsla(327, 66%, 37%, 0.08) 0%,
      #fff 50%,
      hsla(234, 25%, 23%, 0.08) 100%
    );
    border: 2px solid hsla(234, 25%, 23%, 0.15);

    background: radial-gradient(
      circle at center,
      var(--white) 0%,
      hsla(327, 66%, 37%, 0.06) 70%,
      hsla(234, 25%, 23%, 0.1) 100%
    );
    border: 2px solid hsla(327, 66%, 37%, 0.15); */
  }
}
.counsellor-profile-sidebar-dialog {
  --_sidebar-width: 600px;
  --_progress-clr: #d9990e;

  background-color: #fafafb;
  border-top-left-radius: 2.25rem;
  border-bottom-left-radius: 2.25rem;
  .rating-section {
    padding-block: 1rem;
    display: grid;
    border-block: 1px solid var(--border-clr);

    @media (width <=600px) {
      gap: 1.25rem;
    }

    @media (width > 600px) {
      grid-template-columns: 0.75fr 1fr;

      .rating-distribution {
        padding-left: 2.125rem;
        border-left: 1px solid #e9e9e9;
      }
    }
  }

  .counsellor-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .close-btn {
    width: 3rem;
    height: 3rem;
  }

  .counsellor-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .counsellor-name {
    color: hsl(0, 0%, 8%);
  }

  .counsellor-country {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .counsellor-country-name {
    font-size: var(--fs-300);
    line-height: 16.8px;
    color: var(--tertiary-clr);
  }

  .counsellor-languages {
    font-size: var(--fs-200);
    line-height: 14.4px;
    color: var(--text-clr);
  }

  .rating-header {
    display: grid;
    gap: 0.5rem;
    align-content: start;
  }

  .stars {
    display: flex;
    gap: 0.25rem;
    color: var(--_progress-clr);
  }

  .rating-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-right: auto;
  }

  .rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .rating-label {
    min-width: 60px;
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  .progress-bar {
    flex-grow: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
  }

  .progress {
    height: 100%;
    background: var(--_progress-clr);
    border-radius: 4px;
  }

  .rating-value {
    min-width: 40px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
  }

  .reviews-header {
    display: flex;
    justify-content: space-between;
    padding-block: 1.5rem;

    .input-wrapper {
      display: flex;
      align-items: center;
      text-wrap: nowrap;
      gap: 1rem;
    }

    label {
      padding-bottom: initial;
    }

    select {
      min-width: 150px;
      padding: 0.25rem 1rem;
      font-size: var(--fs-300);
      line-height: 18px;
      border-radius: 0.25rem;
    }
  }

  .review-list-item {
    padding-block: 1rem;
    display: grid;
    gap: 0.375rem;
    border-bottom: 1px solid #d5d5d5;

    h5 {
      color: var(--tertiary-clr);
    }

    h6 {
      font-weight: var(--fw-700);
      color: var(--primary-clr);
    }

    h5,
    .rating-count {
      font-size: var(--fs-400);
    }

    p,
    .rating-count {
      color: var(--text-clr);
    }

    p {
      line-height: 1.6;
    }
  }

  .review-list-item-rating {
    display: flex;
    gap: 0.75rem;
  }

  .card-tags {
    margin-block: 0;
    max-height: revert;
  }

  .card-tag {
    border-radius: 100vw;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .btn-pill {
    font-size: 0.75rem;
  }
}

/* New one */
.counsellor-profile-sidebar-dialog {
  .sidebar-dialog-content {
    padding: 1.5rem;
  }
}
.counsellor-profile-sidebar-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.counsellor-profile-body {
  background-color: var(--white-clr);
  border: 1px solid #e1e1ed;
  border-radius: 2.25rem;
  padding: 1.125rem;

  .icon-text {
    /* display: flex;
    align-items: center;
    justify-content: space-between; */

    display: grid;
    align-items: start;
    gap: 0.25rem;
    padding-bottom: 0.75rem;

    @media (width >600px) {
      grid-template-columns: 150px auto;
      /* gap: 1.5rem; */
    }
  }

  .border-bottom {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e8e8f7;
  }

  .border-top {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e8e8f7;
  }

  .icon-key {
    display: flex;
    gap: 0.375rem;
    align-items: center;
  }

  .title {
    color: #a9a9b8;
    font-weight: var(--fw-500);
    font-size: 0.875rem;
  }

  a.icon-value {
    &:hover {
      color: var(--secondary-clr-900);
    }
  }

  .icon-value {
    color: #090820;
    font-weight: var(--fw-500);
    font-size: var(--fs-300);
  }
}

.view-agent-wrapper {
  --_view-agent-roww-gap: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;

  .agent-profile-section {
    display: grid;
    grid-template-columns: 5rem auto auto;
    /* grid-template-rows: 20px auto; */
    gap: 0.5rem 0.75rem;
    place-content: start;
    place-items: start;

    .agent-profile {
      grid-row: 1 / span 2;
    }

    .agent-name {
      align-self: end;
      grid-column: span 2;
      font-size: var(--fs-450);
      font-weight: var(--fw-700);
      line-height: 1;
    }

    .agent-post {
      line-height: 1;
      align-self: start;
    }
  }

  .agent-profile {
    grid-row: span 2;
    border-radius: 50%;
    border: 4px solid #ebebf2;
    background: linear-gradient(
      180deg,
      hsla(327, 66%, 37%, 0.15) 0%,
      hsla(234, 25%, 23%, 0.35) 100%
    );
    border: 2px solid rgb(166, 143, 163);

    img {
      border-radius: inherit;
    }
  }

  figure {
    display: flex;
    align-items: start;
    gap: 0.75rem;

    .bx {
      font-size: 1.125rem;
      line-height: 19.2px;
      color: var(--secondary-clr);
    }
  }

  figcaption {
    color: var(--text-clr);
  }

  .item-value {
    color: var(--tertiary-clr);

    @media (width <=600px) {
      padding-left: 1.75rem;
    }

    > * + * {
      padding-top: 0.75rem;
    }
  }

  a.item-value {
    color: var(--secondary-clr);
  }

  .view-body-item {
    h4 {
      font-weight: var(--fw-700);
      color: var(--tertiary-clr);
      padding-bottom: 1.125rem;
    }

    .header-item {
      padding-block: 1rem;
    }
  }

  hr {
    margin-top: -0.5rem;
    border-top: 0;
    border-bottom: 1px solid #d5d5d5;
  }

  .view-footer-item {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background-color: var(--white-clr);

    display: flex;
    gap: 1rem;

    > * {
      width: 100%;
    }
  }
}

/* End of New one */
