#trade-notice.trade-notice {
  position: fixed;
  z-index: 5;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(372px, calc(100vw - 36px));
  border: 1px solid #50634e;
  border-radius: 14px;
  padding: 11px;
  background: #1c251d;
  color: var(--fg);
  box-shadow: 0 15px 48px #0008, 0 3px 12px #0005;
  animation: featured-trade-in .28s cubic-bezier(.18, .84, .32, 1);
}

.featured-trade-head,
.featured-trade-foot,
.featured-trade-details,
.featured-trade-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.featured-trade-head {
  margin: 0 0 9px;
  padding-left: 4px;
}

.featured-trade-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2f6d6;
  font-size: .83rem;
  font-weight: 800;
}

.featured-trade-kicker .ico {
  width: 15px;
  height: 15px;
  color: var(--lime);
}

.featured-trade-dismiss {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: none;
  border: 1px solid #465643;
  border-radius: 7px;
  background: #28342a;
  color: #d2ded0;
}

.featured-trade-dismiss .ico {
  width: 14px;
  height: 14px;
}

.featured-trade-link {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #435143;
  border-radius: 10px;
  background: #252f26;
  transition: border-color .16s, background .16s;
}

.featured-trade-link:hover {
  border-color: #74906d;
  background: #2b3a2b;
}

.featured-trade-link:focus-visible,
.featured-trade-dismiss:focus-visible,
.featured-trade-pause:focus-visible {
  outline-offset: 2px;
}

.featured-trade-summary {
  justify-content: flex-start;
}

.featured-trade-coins {
  display: flex;
  align-items: center;
  flex: none;
  padding-right: 2px;
}

.featured-trade-coins .coin {
  width: 25px;
  height: 25px;
  box-shadow: 0 0 0 2px #252f26;
}

.featured-trade-coins .coin + .coin {
  margin-left: -7px;
}

.featured-trade-amounts {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.featured-trade-amounts strong {
  color: #f5f8f3;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.featured-trade-amounts strong span {
  color: #b0c8aa;
  font-size: .75rem;
  font-weight: 650;
}

.featured-trade-amounts small {
  color: #cbdac7;
  font-size: .735rem;
  font-weight: 700;
}

.featured-trade-external {
  flex: none;
  margin-left: auto;
  color: #bfd9b6;
}

.featured-trade-external .ico {
  width: 15px;
  height: 15px;
}

.featured-trade-details {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  padding-top: 8px;
  border-top: 1px solid #3b4a3b;
  color: #c4d0c1;
  font-size: .72rem;
  line-height: 1.35;
}

.featured-trade-wallet {
  grid-column: 1 / -1;
}

.featured-trade-wallet > span {
  color: #e3ebdf;
  font-family: ui-monospace, Menlo, monospace;
}

.featured-trade-details > span:nth-child(2) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.featured-trade-details .chain-mark {
  width: 15px;
  height: 15px;
}

.featured-trade-hash {
  color: #d3dece;
  font-family: ui-monospace, Menlo, monospace;
  white-space: nowrap;
}

.featured-trade-foot {
  margin-top: 9px;
  padding: 0 1px 0 3px;
  color: #c7d4c4;
  font-size: .69rem;
  line-height: 1.35;
}

.featured-trade-foot time {
  display: block;
  margin-top: 2px;
  color: #a9b9a7;
  font-variant-numeric: tabular-nums;
}

.featured-trade-pause {
  min-height: 32px;
  flex: none;
  padding: 3px 8px;
  border: 1px solid #475847;
  border-radius: 6px;
  background: #29352a;
  color: #e0ecdd;
  font-size: .73rem;
  font-weight: 750;
  white-space: nowrap;
}

.trade-alert-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes featured-trade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #trade-notice.trade-notice { animation: none; }
}

@media (max-width: 480px) {
  #trade-notice.trade-notice {
    left: max(11px, env(safe-area-inset-left));
    bottom: max(11px, env(safe-area-inset-bottom));
    width: min(344px, calc(100vw - 22px));
  }
}
