.market-detail-layout .trade-ticket .quote-box {
  margin-top: 16px;
  padding: 16px;
}
.quote-status {
  align-items: center;
}
.quote-status > strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.quote-status #quote-countdown {
  position: relative;
  flex-shrink: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  cursor: help;
  white-space: nowrap;
}
.quote-update-icon {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8d19d;
  border-radius: 8px;
  background: #fff6e2;
  color: #805810;
  cursor: help;
  flex-shrink: 0;
}
.quote-update-icon svg {
  width: 16px;
  height: 16px;
}
.quote-update-icon path,
.quote-profit-change path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quote-box .quote-updated-value {
  display: inline-block;
  border: 1px solid #e8d19d;
  background: #fff6e2;
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.3;
}
.quote-box dd.quote-updated-value {
  justify-self: end;
  color: #171511;
  isolation: isolate;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  line-height: inherit;
}
.quote-box dl {
  align-items: baseline;
}
.quote-box dl > dd,
.quote-box dl > dd.quote-updated-value {
  position: relative;
  padding-inline-end: 30px;
  text-align: end;
}
.quote-box dd.quote-updated-value::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px 24px -2px -6px;
  border: 1px solid #e8d19d;
  border-radius: 6px;
  background: #fff6e2;
}
.quote-previous-price {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.quote-box .pnl {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.quote-box dd > .quote-profit-change {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  translate: 0 -50%;
}
.quote-profit-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex-shrink: 0;
}
.quote-profit-change svg {
  width: 19px;
  height: 19px;
}
.quote-box .quote-profit-change.up {
  color: #177b55;
  background: #d9eee1;
}
.quote-box .quote-profit-change.down {
  color: #b64039;
  background: #fae1db;
}
.quote-update-icon::after,
#quote-countdown::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  z-index: 40;
  width: 180px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-inverse);
  font:
    12px/1.4 Arial,
    sans-serif;
  letter-spacing: normal;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  pointer-events: none;
}
.quote-update-icon::after {
  left: 0;
}
#quote-countdown::after {
  right: 0;
}
.quote-update-icon:hover::after,
.quote-update-icon:focus-visible::after,
#quote-countdown:hover::after,
#quote-countdown:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.quote-update-icon:focus-visible,
#quote-countdown:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.quote-box > .quote-status,
.quote-box > dl,
.quote-profit-change {
  animation: quote-enter 180ms ease-out both;
}
.quote-refresh-action {
  justify-self: start;
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.quote-refreshing {
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}
.quote-refresh-spinner {
  animation: quote-spin 1s linear infinite;
}
.trade-ticket .buy-button,
.trade-ticket .outcome-switch button,
.trade-ticket .quantity-presets button {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}
@keyframes quote-enter {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes quote-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .quote-box > .quote-status,
  .quote-box > dl,
  .quote-profit-change,
  .quote-refresh-spinner {
    animation: none;
  }
  .quote-update-icon::after,
  #quote-countdown::after,
  .trade-ticket .buy-button,
  .trade-ticket .outcome-switch button,
  .trade-ticket .quantity-presets button {
    transition: none;
  }
}
