@import url("./badge.css");

:root {
  --sw-primary: var(--primary, #2563eb);
  --sw-ink: var(--ink, #07133d);
  --sw-body: var(--font-body, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --sw-display: var(--font-display, var(--font-heading, "Manrope", "Inter", system-ui, sans-serif));
}

superwizer-shift-card {
  display: block;
  width: 100%;
}

.message-stack > superwizer-shift-card {
  justify-self: start;
  width: min(100%, 312px);
}

.sw-shift-card {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff, #fcfdff);
  border: 1px solid rgba(148, 163, 184, .12);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .03), 0 1px 3px rgba(15, 23, 42, .02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.sw-shift-card:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .sw-shift-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06), 0 4px 8px rgba(15, 23, 42, .03);
    border-color: rgba(37, 99, 235, .15);
  }
}

.sw-shift-card[data-tone="green"],
.sw-shift-card[data-tone="live"],
.sw-shift-card[data-tone="paid"],
.sw-shift-card[data-tone="completed"],
.sw-shift-card[data-tone="confirmed"] {
  border-color: rgba(5, 150, 105, .14);
}

.sw-shift-card[data-tone="amber"] {
  border-color: rgba(245, 158, 11, .18);
}

.sw-shift-card[data-tone="review"] {
  border-color: rgba(133, 100, 4, 0.18);
}

.sw-shift-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sw-shift-card__code {
  color: #8490a7;
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: .04em;
}

.sw-shift-card__title {
  display: block;
  margin: 8px 0 0 0;
  color: var(--sw-ink);
  font-family: var(--sw-display);
  font-size: 16.5px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -.03em;
}

.sw-shift-card__premium-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto; /* Address is flexible, others are fixed */
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.sw-shift-card__premium-meta superwizer-badge {
  flex-shrink: 0;
}

.sw-shift-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #586785;
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.sw-shift-card__meta-item:first-child span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-shift-card__meta-item svg {
  stroke: #8ca0bc;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}



.sw-shift-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.sw-shift-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sw-shift-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 650;
  box-shadow: 0 9px 18px rgba(37, 99, 235, .14);
  text-decoration: none;
}

.sw-shift-card__action--secondary {
  color: #2563eb;
  background: #eff6ff;
  box-shadow: none;
}

.sw-shift-card--catalog {
  width: 100%;
}

@keyframes sw-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(0.98); }
}

.sw-badge-pulse {
  animation: sw-badge-pulse 2.5s infinite ease-in-out;
}
