.shipment-ticket {
  --ticket-ink: #1b3027;
  --ticket-muted: #53645d;
  --ticket-line: #d9e6df;
  --ticket-surface: #fff;
  --ticket-well: #f2f7f4;
  --ticket-green: #216143;
  --ticket-strip: #1d4736;
  --ticket-strip-ink: #f4fbf7;
  --ticket-control: #e4f0e8;
  position: relative;
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  color: var(--ticket-ink);
  margin-bottom: 14px;
  border: 1px solid var(--ticket-line);
  border-radius: 17px;
  background: var(--ticket-surface);
}
[data-workspace-theme="dark"] .shipment-ticket,
[data-theme="dark"] .shipment-ticket {
  --ticket-ink: #ecf2ee;
  --ticket-muted: #b8c8bf;
  --ticket-line: #3f5149;
  --ticket-surface: #242c28;
  --ticket-well: #2a3730;
  --ticket-green: #a8dec0;
  --ticket-strip: #305c47;
  --ticket-control: #344d40;
}
.shipment-ticket__strip {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  min-height: 46px;
  gap: 0 9px;
  padding: 0 126px 0 15px;
  background: var(--ticket-strip);
  color: var(--ticket-strip-ink);
  line-height: 1.4;
}
.shipment-ticket__carrier {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
}
.shipment-ticket__number {
  min-width: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  user-select: text;
  -webkit-user-select: text;
  font-size: 12px;
}
.shipment-ticket__copy {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  touch-action: manipulation;
}
.shipment-ticket svg,
.shipment-ticket__copy svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.shipment-ticket .shipment-ticket__copy:focus-visible {
  outline: 2px solid var(--ticket-strip-ink);
  outline-offset: -3px;
}
.shipment-ticket .shipment-ticket__copy:active {
  color: var(--ticket-strip-ink);
  background: #ffffff24;
}
@media (hover: hover) and (pointer: fine) {
  .shipment-ticket .shipment-ticket__copy:hover {
    color: var(--ticket-strip-ink);
    background: #ffffff24;
  }
}
.shipment-ticket__overview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 19px;
}
.shipment-ticket__status,
.shipment-ticket__place {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.shipment-ticket__status > strong {
  color: var(--ticket-green);
  font-size: clamp(21px, 4.5cqi, 28px);
  font-weight: 750;
  line-height: 1.15;
}
.shipment-ticket__status > span,
.shipment-ticket__place > small {
  color: var(--ticket-muted);
  font-size: 12px;
  line-height: 1.35;
}
.shipment-ticket__route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  max-width: 100%;
  color: var(--ticket-green);
}
.shipment-ticket__place > strong {
  color: var(--ticket-ink);
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.4;
}
.shipment-ticket__details:not([open]) {
  height: 0;
}
.shipment-ticket__details summary {
  position: absolute;
  inset: 0 0 auto auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 46px;
  min-width: 112px;
  padding: 3px 10px 3px 16px;
  list-style: none;
  background: var(--ticket-control);
  border-bottom-left-radius: 15px;
  color: var(--ticket-green);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  touch-action: manipulation;
}
.shipment-ticket__details summary::-webkit-details-marker {
  display: none;
}
.shipment-ticket__details summary:focus-visible {
  outline: 2px solid var(--ticket-green);
  outline-offset: -3px;
}
.shipment-ticket__details[open] summary svg {
  transform: rotate(90deg);
}
.shipment-ticket__receipt {
  margin: 0 14px 14px;
  padding: 14px;
  border: 1px solid var(--ticket-line);
  border-radius: 12px;
  background: var(--ticket-well);
}
.shipment-ticket__plate {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 14px 8px;
  overflow-wrap: anywhere;
  color: #162721;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.shipment-ticket__plate svg.shipment-ticket__barcode {
  width: min(100%, 320px);
  height: auto;
  fill: currentColor;
}
.shipment-ticket__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 12px;
  margin: 0;
}
.shipment-ticket__facts dt {
  color: var(--ticket-muted);
  font-size: 12px;
}
.shipment-ticket__facts dd {
  margin: 3px 0 0;
  color: var(--ticket-ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.shipment-ticket__items {
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--ticket-line);
  font-size: 13px;
}
.shipment-ticket__items ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.shipment-ticket__items li {
  display: flex;
  justify-content: space-between;
  gap: 0 12px;
  flex-wrap: wrap;
}
.shipment-ticket__items li > span {
  overflow-wrap: anywhere;
}
.shipment-ticket__feedback {
  display: block;
  padding: 0 14px 8px;
  color: var(--ticket-green);
  font-size: 12px;
}
.shipment-ticket__feedback:empty {
  display: none;
}

@container (max-width: 370px) {
  .shipment-ticket__strip { padding-left: 11px; padding-right: 104px; gap: 0 5px; }
  .shipment-ticket__details summary { min-width: 91px; padding-inline: 9px; }
  .shipment-ticket__overview { padding: 13px; row-gap: 10px; }
  .shipment-ticket__receipt { margin-inline: 9px; padding: 11px; }
}
