/* Taste calibration: the buttons, chips and product pieces the steps share. Linked after taste-calibration-base.css. */

/* Buttons. */
.tc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, #fa8232 0%, #f05d23 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px rgba(240, 93, 35, 0.38), 0 2px 6px rgba(0, 0, 0, 0.25);
  color: #fff !important;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, opacity 160ms ease;
}
.tc-cta .tc-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.tc-cta:active { transform: scale(0.98); }
.tc-cta:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.tc-cta[aria-busy="true"] { opacity: 0.85; cursor: progress; }
.tc-cta[aria-busy="true"] .tc-icon { display: none; }
.tc-cta[aria-busy="true"]::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tc-spin 800ms linear infinite;
}
.tc-cta-compact { flex: none; min-height: 46px; padding: 0 20px; border-radius: 23px; font-size: 1rem; }
.tc-ghost {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--tc-sky-light) !important;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.tc-signin {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 0.8438rem;
  text-align: center;
  color: var(--tc-muted) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Chips: people on step 1, look-outs and occasions on step 3. */
.tc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 24px;
  color: var(--tc-text);
  font-size: 1.0312rem;
  font-weight: 500;
  letter-spacing: -0.1px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.tc-chip:disabled { cursor: progress; }
.tc-chip[aria-pressed="true"] {
  background: rgba(24, 152, 234, 0.24);
  border-color: rgba(24, 152, 234, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(24, 152, 234, 0.55), 0 8px 22px rgba(24, 152, 234, 0.28);
  font-weight: 600;
}
.tc-tick { display: none; width: 20px; height: 20px; margin: 0 -6px 0 2px; border-radius: 10px; background: var(--tc-sky); place-items: center; }
.tc-tick .tc-icon, .tc-tick svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2; }
.tc-chip[aria-pressed="true"] .tc-tick { display: grid; }
.tc-relations { margin-top: 22px; }
.tc-chip.is-small { min-height: 36px; gap: 6px; padding: 0 13px 0 10px; border-radius: 18px; font-size: 0.875rem; }
/* Occasion chips are tapped: 44 px tall (section 9 J). The look-out chips only show labels. */
button.tc-chip.is-small { min-height: 44px; border-radius: 22px; }
.tc-chip.is-small .tc-icon { width: 17px; height: 17px; stroke-width: 1.8; }
.tc-chip.is-small .tc-tick { width: 18px; height: 18px; margin-right: -5px; border-radius: 9px; }
.tc-chip.is-lookout { background: rgba(24, 152, 234, 0.12); border-color: rgba(24, 152, 234, 0.4); font-weight: 600; cursor: default; }
.tc-chip.is-lookout .tc-icon { width: 14px; height: 14px; fill: var(--tc-sky-light); stroke: none; }

/* Product image on a light tile, so packshots look clean on dark. */
.tc-image, .tc-pick-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 16px;
  background: var(--tc-tile);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.tc-image { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.tc-image img, .tc-pick-image img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.tc-meta { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.tc-brand {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.6562rem;
  font-weight: 600;
  line-height: 0.8125rem;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tc-muted);
}
.tc-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 0.9062rem;
  font-weight: 600;
  line-height: 1.125rem;
  letter-spacing: -0.15px;
}
.tc-price { margin-top: 6px; font-size: 0.8438rem; line-height: 1.0625rem; color: rgba(244, 247, 251, 0.78); }
.tc-price b { font-size: 0.9375rem; font-weight: 650; color: var(--tc-text); }
.tc-saving {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 22px;
  margin-top: 6px;
  padding: 3px 8px 3px 6px;
  border-radius: 11px;
  background: var(--tc-save-fill);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.18);
  color: var(--tc-save-text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 0.9375rem;
}
.tc-saving span { text-wrap: balance; }
.tc-saving .tc-icon { width: 11px; height: 11px; stroke-width: 2.6; }
