/* Alternate, five-slot vertical shortlist presentation. */
.ofp-page [data-ofp-legacy-keyword][hidden],
.ofp-page #ofp-legacy-priorities[hidden] {
  display: none !important;
}
.ofp-page #ofp-shortlist-vertical.ofp-shortlist-vertical {
  scroll-margin-top: 90px;
  margin-top: 12px;
  padding: clamp(22px, 4vw, 36px);
  border: 0;
  border-radius: 10px;
  background: #fffefa;
  box-shadow: none;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-card,
.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty {
  box-sizing: border-box;
  min-width: 0;
  min-height: 320px;
  border-radius: 9px;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid #dedfd8;
  background: #fffefa;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-card.is-top-match {
  border-color: #e5c548;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-card.is-your-choice {
  border-color: #d9ddd8;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-link {
  display: block;
  min-width: 0;
  color: #2c3e50;
  text-decoration: none;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-link:focus-visible,
.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty:focus-visible,
.ofp-page #ofp-shortlist-vertical .ofp-vertical-remove:focus-visible {
  outline: 3px solid #2c3e50;
  outline-offset: 3px;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-media {
  position: relative;
  display: block;
  height: 122px;
  min-height: 122px;
  overflow: visible;
  border-radius: 8px 8px 0 0;
  background: #f0efeb;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-media > img.ofp-supplier-thumb,
.ofp-page #ofp-shortlist-vertical .ofp-supplier-media > .ofp-supplier-thumb,
.ofp-page #ofp-shortlist-vertical .ofp-supplier-media > .ofp-supplier-initials {
  display: block;
  width: 100%;
  height: 122px;
  min-height: 122px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #f0efeb;
  color: #536273;
  object-fit: cover;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-media > .ofp-supplier-initials {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .045em;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-logo {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-logo__treatment {
  box-sizing: border-box;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 50%;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-logo__treatment .logo-circle {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-logo__treatment img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-logo__treatment .card-logo-wrap {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  transform: none;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-identity {
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 30px 12px 0;
  text-align: center;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-name {
  max-width: 100%;
  /* Reserve two lines, leaving unused space below shorter company names. */
  min-height: 2.7em;
  margin: 0;
  color: #2c3e50;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-top-match,
.ofp-page #ofp-shortlist-vertical .ofp-vertical-choice-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffc002;
  color: #2c3e50;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  transform: translateY(10px);
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-reasons {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  margin: 0;
  padding: 20px 14px 16px;
  border-radius: 0 0 8px 8px;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-card.is-top-match .ofp-vertical-reasons {
  background: #fff2bf;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-card.is-your-choice .ofp-vertical-reasons {
  background: #f0efeb;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-reasons h3 {
  margin: 0 0 12px;
  color: #2c3e50;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-reason-text {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #44515a;
  font-size: 11px;
  line-height: 1.45;
  list-style: none;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-reason-text li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-reason-text li::before {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #ffc002;
  color: #2c3e50;
  content: "✓";
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-card.is-your-choice .ofp-supplier-reason-text li::before {
  background: #dedfd8;
  color: #43514e;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-choice-badge {
  background: #2c3e50;
  color: #fff;
}

.ofp-page #ofp-shortlist-vertical .ofp-supplier-reason-text p {
  margin: 0;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-remove {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid #a92d3a;
  border-radius: 50%;
  background: #a92d3a;
  color: #fff;
  box-shadow: none;
  font-size: 16px !important;
  line-height: 1;
  cursor: pointer;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-remove:hover:not(:disabled) {
  border-color: #84232d;
  background: #84232d;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-remove:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 16px;
  border: 1px dashed #c4cbc7;
  background: #f7f6f1;
  color: #2c3e50;
  text-align: center;
  cursor: pointer;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty.is-tendre-match {
  border-color: #e5c548;
  background: #fff4ce;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty.is-your-choice {
  border-color: #cfd4d3;
  background: #f0efeb;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty:hover:not(:disabled) {
  border-color: #87949b;
  background: #fbfaf6;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty.is-tendre-match:hover:not(:disabled) {
  border-color: #c7a936;
  background: #fff0b6;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-plus {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid #c4cbc7;
  border-radius: 50%;
  background: #fffefa;
  color: #536273;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-slot-label {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffc002;
  color: #2c3e50;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty.is-your-choice .ofp-vertical-slot-label {
  background: #e2e3dc;
  color: #43514e;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-empty-copy {
  display: grid;
  max-width: 180px;
  gap: 4px;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-empty-copy strong {
  color: #344451;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-empty-copy small {
  color: #66717d;
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 999px) {
  .ofp-page #ofp-shortlist-vertical .ofp-vertical-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .ofp-page #ofp-shortlist-vertical .ofp-vertical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;
  }

  .ofp-page #ofp-shortlist-vertical .ofp-supplier-media,
  .ofp-page #ofp-shortlist-vertical .ofp-supplier-media > img.ofp-supplier-thumb,
  .ofp-page #ofp-shortlist-vertical .ofp-supplier-media > .ofp-supplier-thumb,
  .ofp-page #ofp-shortlist-vertical .ofp-supplier-media > .ofp-supplier-initials {
    height: 110px;
    min-height: 110px;
  }

  .ofp-page #ofp-shortlist-vertical .ofp-vertical-card {
    min-height: 300px;
  }

  .ofp-page #ofp-shortlist-vertical .ofp-vertical-empty {
    height: 60px;
    min-height: 60px;
    align-self: start;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: 20px 1fr;
    align-items: center;
    gap: 0 8px;
    padding: 6px 8px;
    text-align: left;
  }

  .ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-plus {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-vertical-slot-label {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    min-height: 17px;
    padding: 2px 6px;
    font-size: 8px;
  }

  .ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-empty-copy {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    max-width: 100%;
    gap: 0;
  }

  .ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-empty-copy strong {
    font-size: 10px;
    line-height: 1.25;
  }

  .ofp-page #ofp-shortlist-vertical .ofp-vertical-empty .ofp-empty-copy small {
    display: none;
  }
}

@media (max-width: 479px) {
  .ofp-page #ofp-shortlist-vertical .ofp-vertical-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .ofp-page #ofp-shortlist-vertical.ofp-shortlist-vertical {
    padding: 20px;
  }
}

#ofp-page #ofp-brief-text.is-empty {
  background: #fff5f5;
  border: 1px solid #eed6d6;
  border-radius: 6px;
}

.ofp-page .ofp-send-note {
  padding: 16px 18px;
  border: 1px solid #6a9d72;
  border-left-width: 4px;
  font-size: 14px;
  line-height: 1.65;
}
.ofp-page .ofp-send-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: #294831;
}
.ofp-page .ofp-send-note span { display: block; }
.ofp-page .ofp-send-note span + span { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .ofp-page #ofp-shortlist-vertical *,
  .ofp-page #ofp-shortlist-vertical *::before,
  .ofp-page #ofp-shortlist-vertical *::after {
    transition-duration: .01ms !important;
  }
}
