.remote-work {
  position: relative;
  display: none;
}

.remote-work.is-visible {
  display: block;
}

.remote-work__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.remote-work__trigger:hover,
.remote-work__trigger:focus-visible,
.remote-work__trigger[aria-expanded="true"] {
  border-color: rgba(255, 0, 61, 0.5);
  background: rgba(255, 0, 61, 0.1);
}

.remote-work__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7f8794;
  box-shadow: 0 0 0 3px rgba(127, 135, 148, 0.14);
}

.remote-work[data-status="PRACA ZDALNA"] .remote-work__dot {
  background: #ff003d;
  box-shadow: 0 0 0 3px rgba(255, 0, 61, 0.17);
}

.remote-work__chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.remote-work__popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #15171c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.remote-work__popover[hidden] {
  display: none;
}

.remote-work__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.remote-work__head strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.remote-work__head span {
  color: var(--muted);
  font-size: 0.76rem;
}

.remote-work__test {
  padding: 4px 7px;
  border: 1px solid rgba(255, 184, 0, 0.26);
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.08);
  color: #ffd36a !important;
  font-size: 0.65rem !important;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.remote-work__state {
  display: grid;
  gap: 4px;
  margin-bottom: 13px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.remote-work[data-status="PRACA ZDALNA"] .remote-work__state {
  border-color: rgba(255, 0, 61, 0.3);
  background: rgba(255, 0, 61, 0.06);
}

.remote-work__state-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.remote-work__state strong {
  color: var(--text);
  font-size: 1rem;
}

.remote-work__state-detail {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.remote-work__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.remote-work__action {
  width: 100%;
  border-color: rgba(255, 0, 61, 0.42);
  background: #ff003d;
  color: #fff;
  font-weight: 800;
}

.remote-work__action:hover,
.remote-work__action:focus-visible {
  background: #e50037;
}

.remote-work__action.is-stop {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.remote-work__action.is-stop:hover,
.remote-work__action.is-stop:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.remote-work__action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.remote-work__message {
  min-height: 1rem;
  margin: 9px 0 0;
  color: #ff849f;
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .remote-work {
    order: 10;
    width: 100%;
  }

  .remote-work__trigger {
    width: 100%;
    justify-content: center;
  }

  .remote-work__popover {
    right: auto;
    left: 0;
  }
}
