.shipment-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--Grey-100, #eaeaea);
  background: #fff;
  display: flex;
  min-width: 284px;
  max-width: 384px;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  animation: fadeIn 250ms ease-in-out;
}

.fields.btwn.flex {
  padding-inline: 16px;
  padding-bottom: 8px;
}

.shipment-card:hover {
  box-shadow: 0 0 0 1px var(--Grey-100, #eaeaea);
  background-color: #f8f8f8;
}

.card-body {
  padding: 16px;
  display: flex;
  padding: var(--padding-modal-right-left-padding, 16px);
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
}

.card-body .field .value {
  color: var(--color-brand-accent-dark);
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap !important;
  width: 20ch !important;
  text-overflow: ellipsis !important;
}

.details {
  display: flex;
  gap: var(--gap-small);
}

.fields {
  min-width: 100.5px;
  width: 100%;
}

.field {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.field .label {
  color: var(--grey-600, #808080);
  font-size: 12px;
}

.field .value {
  color: var(--color-black, #2c2c2c);
  font-size: 16px;
  max-height: 5em;
  width: 20ch !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.field .value:empty::before {
  content: '---';
  color: var(--grey-400, #bdbdbd);
}

.milestones-wrapper {
  /*    display: grid;
    grid-template-columns: 1fr auto 2fr auto 1fr;*/
  display: flex;
  align-items: center;
  gap: calc(var(--gap-small) / 2);
  width: 100%;
  padding: var(--padding-modal-right-left-padding, 16px);
  border-block: 1px solid var(--Grey-100, #eaeaea);
}

.milestone {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.milestone > span {
  position: absolute;
  white-space: nowrap;
  padding: 0 8px;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
}

.leg-dot {
  content: '';
  display: inline-block;
  --size: 8px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--_color, #eaeaea);
  aspect-ratio: 1;

  display: none;
}

.milestone:has([data-threshold='true']) span {
  color: #fff;
}

.card-controls-trigger {
  display: flex;
  gap: 4px;
  align-items: center;
}

.shipping-leg:hover {
  background-color: #eaeaea51;
}

.shipping-leg .content {
  padding: 0 4px;
}

.shipping-leg:has([value='100']) {
  --_bg: #e5f9ef;
  --_color: #00591d;
  color: var(--_color);
  background-color: var(--_bg) !important;
}

.location {
  font-size: 14px;
}

.milestone progress {
  width: 110%;
  height: 100%;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  color: #5bbd8a;
}

p-shipment-card .milestone {
    flex-grow: 3;
    width: unset;
    span {
        justify-content: center;
    }
}
p-shipment-card .transport-attributes {
    flex-grow: 1;
    justify-content: center;

/*    &:last-of-type {
        display: none;
    }*/
}


.milestone:has(progress[value='100']) {
    color: var(--color-white, #fff) !important;
}

.milestone span {
  font-weight: 400;
}

progress::-webkit-progress-bar {
  background-color: #eaeaea;
}

progress::-webkit-progress-value {
  background-color: #5bbd8a;
}

progress::-moz-progress-bar {
  background-color: #5bbd8a;
}

.foot {
  display: flex;
  padding: var(--padding-modal-right-left-padding, 16px);
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  gap: 1em;
}

.milestones-wrapper:empty {
  width: calc(100% - 2em);
  display: flex;
  height: 4em;
  border-radius: 4px;
  background: var(--dashboard-bg);
  margin: auto;
  position: relative;
  background-color: var(--dasboard-bg);
  overflow: hidden;
}

.milestones-wrapper:is(.loading)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(220, 220, 220, 0.1),
    rgba(240, 240, 240, 0.6),
    rgba(220, 220, 220, 0.1),
    rgba(240, 240, 240, 0.6),
    rgba(220, 220, 220, 0.1)
  );
  background-size: 300% 100%;
  animation: shimmer 1.5s infinite linear;
}

.milestones-wrapper:not(.loading):empty::before {
  content: '---';
  margin: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  animation: none;
  height: auto;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}


/*Responsiveness*/

@media only screen and (max-width: 1024px) {
    .foot {
        gap: 6em;
    }
}
