/* Agent · Changes & refunds. Builds on flight.css + pages.css. */
.cr-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-types button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.cr-types button:hover {
  border-color: var(--ink);
}
.cr-types button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.cr-types .icon {
  width: 15px;
  height: 15px;
}
.cr-types button span {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11.5px;
}
.cr-types button[aria-pressed='true'] span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.tabs button span.is-late {
  background: var(--bad);
  color: #fff;
}
.cr-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--t) 60%, #fff);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.cr-type .icon {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
}
.cr-table tr.is-action td:first-child {
  box-shadow: inset 3px 0 0 var(--bad);
}
.cr-table td:nth-child(4) {
  white-space: nowrap;
}
.cr-clock {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.cr-clock .icon {
  width: 13px;
  height: 13px;
  flex: none;
}
.cr-clock.is-warn {
  color: #b26a00;
  font-weight: 600;
}
.cr-clock.is-bad {
  color: var(--bad);
  font-weight: 600;
}
.cr-amt {
  display: block;
  font: 600 15px 'Poppins', sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cr-amt.is-back {
  color: var(--ok);
}

/* Drawer */
.cr-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 14px;
}
.cr-top .cr-clock {
  margin-top: 0;
}
.cr-swap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.cr-swap > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cr-swap > div.is-new {
  border-color: #b7e4c7;
  background: #f5fbf7;
}
.cr-swap span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cr-swap b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
}
.cr-swap em {
  color: var(--ink-2);
  font-size: 12px;
  font-style: normal;
}
.cr-swap__arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--page);
  color: var(--muted);
}
.cr-swap__arrow .icon {
  width: 15px;
  height: 15px;
}
.cr-fix {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--page);
  font-weight: 600;
}
.cr-fix .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}
.cr-q__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cr-q__h h3 {
  margin: 0;
}
.cr-conf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6f6ee;
  color: var(--ok);
  font-size: 11.5px;
  font-weight: 600;
}
.cr-conf.is-est {
  background: #fff3df;
  color: #b26a00;
}
.cr-conf .icon {
  width: 13px;
  height: 13px;
}
.cr-timer {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff8ec;
  color: #8a5300;
  font-size: 13px;
}
.cr-timer.is-bad {
  background: #fff1ef;
  color: var(--bad);
}
.cr-timer.is-muted {
  background: var(--page);
  color: var(--ink-2);
}
.cr-timer .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}
.cr-timer b {
  color: inherit;
}
.cr-share {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}
.cr-share .field {
  width: 150px;
  margin: 0;
}
.cr-share__sum {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--page);
}
.cr-share__sum span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.cr-share__sum b {
  font: 600 16px 'Poppins', sans-serif;
}
.cr-log {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cr-log li {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
}
.cr-log li:last-child {
  padding-bottom: 0;
}
.cr-log li:not(:last-child)::after {
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: var(--line);
  content: '';
}
.cr-log i {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 3px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: #fff;
}
.cr-log li:first-child i {
  background: var(--primary);
}
.cr-log b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.cr-log span {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 640px) {
  .cr-types {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cr-types button {
    flex: none;
  }
  .cr-share {
    flex-wrap: wrap;
  }
  .cr-share .field {
    width: 100%;
  }
}
@media (max-width: 640px) {
  body[data-page='changes'] .drawer__foot {
    flex-wrap: wrap;
  }
  body[data-page='changes'] .drawer__foot .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}
