.node--type-tasting.node--view-mode-teaser {
  border-top: 1px solid var(--gin-color-primary);
  margin-top: 30px;
}

.node--type-tasting.node--view-mode-teaser > .node__content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

@media screen and (min-width: 768px) {
  .node--type-tasting.node--view-mode-teaser > .node__content {
    grid-template-columns: repeat(6, 1fr) 80px;
  }
}

.node--type-tasting.node--view-mode-teaser > .node__content > .field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 2px;
}

.node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-appearance,
.node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-aroma,
.node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-taste,
.node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-aftertaste,
.node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-impression {

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  .field__label {
    display: block;
    font-weight: normal;
    font-size: 10px;
    text-align: center;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
    hyphens: none;
  }

  .field__item,
  .field__items {
    font-weight: bold;
    font-size: 16px;
  }
}

@media screen and (min-width: 768px) {
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-appearance,
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-aroma,
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-taste,
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-aftertaste,
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-impression {
    .field__label {
      font-weight: normal;
      font-size: 14px;
    }

    .field__item,
    .field__items {
      font-weight: bold;
      font-size: 18px;
    }
  }
}

.node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-wine {
  grid-column: 1 / 6;
  display: block;
  background-color: var(--gin-color-primary-light);
  padding: 10px 20px;
}

@media screen and (min-width: 768px) {
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-wine {
    grid-column: 1 / 8;
  }
}

.node--type-tasting.node--view-mode-teaser.active ~ .node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-wine {
  background-color: var(--gin-bg-layer4);
}

.node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-total {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
  color: var(--gin-color-primary);
  align-items: flex-start;
  padding: 10px 20px;
}

@media screen and (min-width: 768px) {
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--name-field-total {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
    text-align: right;
    align-items: flex-end;
  }
}

.node--type-tasting.node--view-mode-teaser > .node__content > .trigger-form {
  grid-column: 5 / 6;
  grid-row: 3 / 4;
  font-size: 0 !important;
  border-radius: 50% !important;
  width: 50px;
  height: 50px;
  margin: 10px;
  color: var(--gin-color-primary);
  background-image: url("/modules/custom/gin_alter/images/icons/accent/wine.svg");
  background-size: 30%;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.2s ease-in-out;
  padding: 0 !important;
  padding-block: 0 !important;
  padding-inline: 0 !important;
}

@media screen and (min-width: 768px) {
  .node--type-tasting.node--view-mode-teaser > .node__content > .trigger-form {
    grid-column: 7 / 8;
    grid-row: 2 / 3;
  }
}

.node--type-tasting.node--view-mode-teaser > .node__content > .trigger-form:not(:disabled):hover,
.node--type-tasting.node--view-mode-teaser > .node__content > .trigger-form:not(:disabled):focus {
  background-image: url("/modules/custom/gin_alter/images/icons/white/wine.svg");
  background-size: 50%;
}

.node--type-tasting.node--view-mode-teaser > .node__content > .trigger-form:disabled {
  background-image: url("/modules/custom/gin_alter/images/icons/grey/wine.svg");
  background-repeat: no-repeat;
  background-size: 30%;
  background-position: center;
}

.node--type-tasting.node--view-mode-teaser > .node__content > .node-tasting-event-form {
  display: none;
  background-color: var(--gin-bg-layer2);
  grid-column: 1 / 8;
  grid-row: 2 / 3;
}


@media screen and (min-width: 768px) {
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--type-entity-reference .node--type-wine .node__content {
    display: flex;
    justify-content: flex-start;
    align-items: center;

  }
  .node--type-tasting.node--view-mode-teaser > .node__content > .field--type-entity-reference .node--type-wine .node__content > .field {
    padding: 0 8px;
    display: flex;
    align-items: center;
  }

  .node--type-tasting.node--view-mode-teaser > .node__content > .field--type-entity-reference .node--type-wine .node__content > .field--name-field-winery {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
}

/* editting mode */
.node--type-tasting.node--view-mode-teaser > .node__content.editting > .trigger-form {
  display: none;
}

.node--type-tasting.node--view-mode-teaser > .node__content.editting > .node-tasting-event-form {
  display: block;
}

.node--type-tasting.node--view-mode-teaser > .node__content.editting > .field--name-field-total,
.node--type-tasting.node--view-mode-teaser > .node__content.editting > .field--name-field-appearance,
.node--type-tasting.node--view-mode-teaser > .node__content.editting > .field--name-field-aroma,
.node--type-tasting.node--view-mode-teaser > .node__content.editting > .field--name-field-taste,
.node--type-tasting.node--view-mode-teaser > .node__content.editting > .field--name-field-aftertaste,
.node--type-tasting.node--view-mode-teaser > .node__content.editting > .field--name-field-impression {
  display: none;
}

