// Shared Viber carousel card row (Test & Preview device preview)
.viber-carousel-preview-scroll {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;

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

  .viber-carousel-preview-card {
    flex: 0 0 68%;
    min-width: 68%;
    margin-right: $CAP_SPACE_08;
    background: $CAP_G09;
    border: 1px solid $CAP_G07;
    border-radius: $CAP_SPACE_12;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: stretch;

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

    .viber-carousel-preview-card-body {
      flex: 1;
      padding: $CAP_SPACE_08;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .viber-carousel-preview-text-wrap {
      flex-shrink: 0;
      width: 100%;

      &--1-line {
        min-height: 1.3em;
      }

      &--2-line {
        min-height: 2.6em;
      }
    }

    .viber-carousel-preview-text-inner {
      width: 100%;
    }

    .viber-carousel-preview-buttons {
      display: flex;
      flex-direction: column;
      gap: $CAP_SPACE_06;
      margin-top: auto;
      width: 100%;
      flex-shrink: 0;
    }

    .viber-carousel-preview-image {
      width: 100%;
      height: 10rem;
      object-fit: cover;
      border-radius: 0;
    }

    .viber-carousel-preview-image-placeholder {
      width: 100%;
      height: 10rem;
      border-radius: 0;
      background: $CAP_G07;
    }

    .viber-carousel-preview-text {
      color: $CAP_G01;
      line-height: 1.3;
      white-space: normal;
      word-break: break-word;
      display: block;
      width: 100%;
      margin: 0;
    }

    .viber-carousel-preview-text-placeholder {
      width: 100%;
      height: 0.875rem;
      border-radius: $CAP_SPACE_04;
      background: $CAP_G07;
      min-height: 0.875rem;
      display: block;
    }

    .viber-carousel-preview-button {
      color: $CAP_WHITE;
      background: $CAP_PURPLE01;
      border-radius: $CAP_SPACE_12;
      text-align: center;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 1.5rem;
      padding: $CAP_SPACE_06 $CAP_SPACE_08;
      white-space: normal;
      box-sizing: border-box;
    }

    .viber-carousel-preview-button-placeholder {
      visibility: hidden;
      pointer-events: none;
      padding: 0;
      background: transparent;
      border: none;
    }

    .viber-carousel-preview-button-secondary {
      color: $CAP_PURPLE01;
      background: transparent;
      border: none;
    }
  }
}
