@use "/src/assets/scss/partial" as *;
@use "/src/assets/scss/variables" as *;

.AmenitiesCardsWrapper {
  background-color: $white;
  border-radius: 20px;
  border: 1px solid #ff7e6733;
  max-width: 230px;
  width: 100%;
  flex-shrink: 0;

  @media (min-width: $lg) {
    max-width: 290px;
  }

  .CardHeader {
    --r: 25px;
    /* control the radius */
    border-inline: var(--r) solid #0000;
    border-radius: calc(2 * var(--r)) calc(2 * var(--r)) 0 0 / var(--r);
    mask: radial-gradient(var(--r) at var(--r) 0, #0000 98%, #000 101%) calc(-1 * var(--r)) 100%/100% var(--r) repeat-x,
      conic-gradient(#000 0 0) padding-box;
    width: fit-content;
    color: $white;
    background-color: $primaryColor;
  }

  .CardContent {
    padding: 20px 14px 10px 20px;
    margin: 0px 6px 10px 0px;
    // scrollbar-width: thin;
    max-height: 165px;
    overflow-y: auto;

    ul {
      padding: 0;
      margin: 0;
      list-style: none;

      &.verticalList {
        display: flex;
        gap: 8px;
        flex-direction: column;

        @media (min-width: $lg) {
          gap: 12px;
        }
      }

      &.horizontalList {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        @media (min-width: $md) {
          grid-template-columns: repeat(3, 1fr);
        }

        @media (min-width: $lg) {
          grid-template-columns: repeat(4, 1fr);
        }

        @media (min-width: $xl) {
          grid-template-columns: repeat(6, 1fr);
        }
      }

      li {
        position: relative;
        list-style: none;
        display: flex;
        align-items: center;
        padding-left: 24px;
        color: $grey85;
        font-size: $fs14;

        @media (min-width: $lg) {
          font-size: $fs16;
        }

        &::before {
          content: "";
          display: block;
          position: absolute;
          top: 2px;
          left: 0;
          width: 18px;
          height: 18px;
          mask-size: contain;
          -webkit-mask-size: contain;
          mask-repeat: no-repeat;
          -webkit-mask-repeat: no-repeat;
          transition: all 0.3s ease-in-out;
          background-color: $primaryColor;
          mask-position: center;
          -webkit-mask-position: center;
          mask-image: url("../../../public/images/icon-tick.svg");
          -webkit-mask-image: url("../../../public/images/icon-tick.svg");

          @media (min-width: $lg) {
            width: 20px;
            height: 20px;
          }
        }
      }
    }
  }
}