/**
 * Suggestion table
 */

@media screen {

  .suggestion-table-heading {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 1.5em;
    text-align: left;
  }

  .suggestion-table-heading * + * {
    margin: 0 0 0 0.25em;
  }

  /* Promoted product icon */
  .suggestion-table-heading .promo {
    fill: var(--promo);
    height: 0.8em;
    width: 0.8em;
  }

  /* Wine type icon */
  .suggestion-table-heading .wine-type {
    margin-left: auto;
    height: 1.5em;
  }

  /* Country of origin */
  .suggestion-wine-origin {
    display: flex;
    align-items: center;
    margin: 0;
  }

  .suggestion-wine-origin .icon {
    margin-right: 0.25em;
    width: 1.3em;
  }

  /* Suggestion table */
  .suggestion-table {
    width: 100%;
  }

  .suggestion-table tr:nth-child(even) {
    background-color: transparent;
  }

  .suggestion-table th {
    text-align: left;
    padding-left: 0;
    vertical-align: top;
    width: 15ch;
  }

  .suggestion-table td {
    padding-top: 0.25em;
    padding-bottom: 0.25em;
  }

  /* Suitability score */
  .suitability {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
  }

  .suitability label {
    display: block;
    font-weight: bold;
    margin-left: 0.5em;
  }

  .suitability progress[value] {
    color: var(--suitability);
    margin-top: 0;
    border: 0;
    height: 0.75em;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearence: none;
  }

  .suitability progress[value]::-webkit-progress-bar {
    background-color: var(--light-grey);
  }

  .suitability progress[value]::-moz-progress-bar,
  .suitability progress[value]::-webkit-progress-value {
    background-color: var(--suitability);
  }

  /* Selection info text */
  .selection-info {
    margin-top: 2em;
    text-align: center;
    font-size: 0.9em;
    min-height: 1.45em;
  }

  /* Wine suggestion actions */
  .suggestion-actions {
    display: flex;
    justify-content: flex-end;
  }
}
