.vccm-shortcode {
  margin-block: 12px;
  container-type: inline-size;
  container-name: vccm-shortcode;
}

.vccm-cards-list-wrapper {
  text-align: center;
}

.vccm-cards-list {
  display: inline-grid;
  grid-auto-flow: column;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 10px;
  overflow-x: auto;
  color: #22034a;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  column-gap: 8px;

  &::-webkit-scrollbar {
    height: 5px;
    background-color: var(--sq-neutral-color-2);
    border-radius: var(--sq-border-radius-6);
    cursor: pointer;
  }

  &::-webkit-scrollbar-track {
    background-color: var(--sq-neutral-color-2);
    border-radius: var(--sq-border-radius-6);
  }

  &::-webkit-scrollbar-thumb {
    background-color: var(--sq-primary-color);
    border-radius: var(--sq-border-radius-6);
    cursor: pointer;
  }
}

.vccm-cards-list__item {
  display: flex;
  flex: none;
  flex-direction: column;
  width: calc((100vw - 34px) / 2);

  @container vccm-shortcode (min-width:500px) {
    width: 185px;
  }

  @container vccm-shortcode (min-width:500px) and (max-width: 750px) {
    width: 175px;
  }
}

.vccm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #6f00ff;
  border-radius: 16px;
}

.vccm-card__header {
  position: sticky;
  top: 0;
  height: 115px;
  padding: 10px;
  overflow: hidden;
  color: #fff;
  transition: top 0.3s ease-in-out;
}

.vccm-card__header-gradient,
.vccm-card__header-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vccm-card__header-gradient {
  z-index: 2;
}

.vccm-card__header-pattern {
  z-index: 1;
  background: linear-gradient(135deg, #9d66ff 10%, #6f00ff 90%);
}

.vccm-card__header-content {
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.vccm-card__header-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vccm-card__avatar {
  max-width: 50px;
  max-height: 50px;
}

.vccm-card__heading {
  display: block;
  width: 100%;
  margin: 6px 0 2px;
  overflow: hidden;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variation-settings: 'wdth' 75;
}

.vccm-card__heading-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  text-transform: capitalize;
  font-variation-settings: 'wdth' 75;
}

.vccm-card__brand {
  margin-left: auto;
  font-weight: 700;
}

.vccm-card__body {
  padding: 10px;
}

.vccm-card__row {
  margin-bottom: 8px;
  font-variation-settings: 'wdth' 87.5;

  &:last-child {
    margin-bottom: 0;
  }
}

.vccm-card__row-label {
  display: block;
  margin-bottom: 2px;
  color: #6f00ff;
  font-size: 12px;
  line-height: 1.2;
  word-break: break-word;
}

.vccm-card__row-value {
  max-width: 100%;
  color: #22034a;
  font-weight: 800;
}

.vccm-card__footer {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid #6f00ff;

  .vccm-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    font-size: 12px;
    line-height: 1.2;
    border-bottom: 1px solid #f2ebff;

    &:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border: none;
    }
  }

  .vccm-card__row-label {
    color: #22034a;
    word-break: break-word;
  }

  .vccm-card__row-value {
    display: flex;
    justify-content: flex-end;
    font-weight: 500;
    white-space: normal;

    svg {
      flex: none;
      width: 10px;

      &.fa-star {
        margin-right: 3px;
        font-size: 8px;
        line-height: normal;
      }
    }
  }
}

.vccm-copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  font-size: 12px;
  row-gap: 6px;
  font-variation-settings: 'wdth' 87.5;

  @media screen and (width >= 768px) {
    flex-direction: row;
    gap: 4px 42px;
  }
}

.vccm-copyright__date {
  display: block;
  font-weight: 200;
  font-size: 12px;
  line-height: normal;
  text-align: center;
}

.vccm-copyright__text {
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    display: block;
    max-width: 55px;
    margin-left: 4px;
  }
}

.vccm-button-box {
  text-align: center;
}

.vccm-button {
  display: inline-block;
  padding: 8px 35px;
  color: #6f00ff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  background-color: #f2ebff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background-color 0.15s ease-in-out,
    color 0.15s ease-in-out;

  &:hover {
    color: #fff;
    background-color: #9d66ff;
  }
}

.vccm-card__sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vccm-sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  overflow: hidden;
  text-align: center;
  border-radius: 5px;
}

.vccm-sponsor__link {
  text-decoration: none;
}

.vccm-sponsor__logo {
  width: 45px;
  height: 15px;
  object-fit: contain;
}
