.tui-product-card {
  @extend %card-quad-grid;
  min-height: 250px;
  $g: &;
  margin-bottom: $margin-double;
  align-items: stretch;

  &:hover {
    text-decoration: none;
  }

  &.tui-product-card-large {
    width: calc(100% - #{$margin-half});
  }

  &.tui-product-card-xl-large {
    width: 100%;
  }

  @include breakpoint(md) {
    flex-direction: column;
  }

  .flexbox-row {
    align-items: center;
    margin: 0;
    flex-wrap: wrap;

    @include breakpoint(md) {
      margin-bottom: 0;
    }
  }

  .cruise-stops {
    @include multiline-ellipsis(2, 16px);
  }

  p {
    @include font-size(14);

    &.usp {
      @include font-size(16);
      @include breakpoint(xs) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 0;
        min-width: 100%;
      }

      margin-top: $margin-half;
      margin-bottom: 0;

      .stops:not(:last-child):after {
        content: ', ';
      }
    }

    &.text-bold {
      margin-bottom: $margin-enterprise;
    }
  }

  .media-container {
    @extend %flexbox-row;
    align-items: stretch;
    justify-content: stretch;
  }

  .ratio-16-9 {
    flex-grow: 1;
  }

  .two-columns {
    @extend %flexbox-row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    padding: 0;
    margin-bottom: $margin-half;
    width: 10px;
    min-width: 100%;

    > div {
      @extend %flexbox-row;
      align-items: center;
      min-width: 0;

      > :not(:last-child) {
        margin-right: $margin-normal;
        align-items: center;
        flex: 1 0 auto;
      }

      .blue {
        position: relative;
        margin-bottom: -10px;
      }

      > span {
        white-space: nowrap;
      }
    }

    .cruise-location {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 25%;

      @include breakpoint(md) {
        max-width: 100%;
      }
    }
  }

  .country-flag {
    width: $margin-double;
    height: $margin-double;
    flex-shrink: 0;

    &:nth-of-type(n+3) {
      display: none;

      /* stylelint-disable max-nesting-depth  */
      @include breakpoint(md) {
        @at-root {
          #{$g}.horizontal .country-flag {
            display: block;
          }
        }
      }
      /* stylelint-enable */
    }
  }

  .extra-flags {
    padding: 0 $margin-half;
    background-color: $color-blue-100;
    color: $color-blue-500;
    border-radius: $border-radius-normal;
    font-weight: bold;

    /* stylelint-disable max-nesting-depth  */
    @include breakpoint(md) {
      display: none;

      @at-root {
        #{$g}:not(.horizontal) .extra-flags {
          display: block;
        }
      }
    }
    /* stylelint-enable */
  }

  .favourite-heart-container {
    margin-left: $margin-half;
  }

  .tui-breadcrumb {
    @include font-size(14);
    margin: 0;
  }

  .rating-button {
    display: inline-block;
    font-weight: bold;
  }

  &.horizontal {
    .card-text {
      flex-direction: column;

      @include breakpoint(md) {
        flex-direction: row;
      }
    }

    .media-container {
      @include breakpoint(md) {
        border-radius: $border-radius-normal 0 0 $border-radius-normal;
      }
    }
  }

  .features {
    @include font-size(14);

    > div:first-child {
      margin-right: 0;
      align-items: flex-end;
    }

    @include breakpoint(sm) {
      display: flex;

      .product-tags {
        display: block;
      }
    }

    @include breakpoint(md) {
      flex-grow: 1;
    }

    .tui-concept-logo {
      position: inherit;
      white-space: nowrap;
      margin-right: $margin-double;
    }

    .flexbox-row {
      padding-bottom: 0;
      margin-bottom: $margin-normal;

      > div {
        margin-right: $margin-half;
      }
    }

    .icon-superlativ {
      margin-top: $margin-normal;

      @include breakpoint(sm) {
        margin-top: 0;
      }
    }
  }

  .rating {
    @include font-size(14);

    @include breakpoint(sm) {
      display: block;
    }

    .rating-button {
      @include font-size(18);
      letter-spacing: normal;
    }
  }

  .only-small-device {
    @include font-size(14);
    display: block;

    @include breakpoint(sm) {
      display: none;
    }
  }

  .card-text {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
  }
}

.product-card-info-main {
  @extend %flexbox-column;
  padding: $margin-normal $margin-normal;
  flex-grow: 1;
  position: relative;

  @at-root {
    .tui-product-card.horizontal & {
      padding: $margin-normal;

      @include breakpoint(sm) {
        padding: $margin-enterprise;
      }
    }
  }

  h3 {
    display: inline;
    margin: 0;
    padding: 0;

    @include breakpoint(sm) {
      display: block;
    }
  }

  h3.product-name {
    @include multiline-ellipsis(1, 24px);
  }

  h4 {
    @include font-size(20);
  }

  .product-title {
    margin: $margin-half 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 0;
    min-width: 100%;

    @include breakpoint(sm) {
      display: block;
    }
  }
}
