/* WorkTab cookie consent — matches landing dark theme */
#wt-cookie-root {
  --wt-lime: #e4f222;
  --wt-lime-d: #c5d41a;
  --wt-bg: #111214;
  --wt-border: rgba(255, 255, 255, 0.11);
  --wt-text: #f4f6f7;
  --wt-muted: #737c88;
  --wt-font: 'DM Sans', system-ui, sans-serif;
  font-family: var(--wt-font);
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

#wt-cookie-root * {
  box-sizing: border-box;
}

#wt-cookie-root a {
  color: var(--wt-lime);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#wt-cookie-root a:hover {
  color: var(--wt-lime-d);
}

.wt-cookie-banner,
.wt-cookie-modal {
  pointer-events: auto;
}

.wt-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 22px;
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  color: var(--wt-text);
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.wt-cookie-banner.wt-visible {
  transform: none;
  opacity: 1;
}

.wt-cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.wt-cookie-banner p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--wt-muted);
}

.wt-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wt-cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex: 1 1 auto;
  min-width: 140px;
  text-align: center;
}

.wt-cookie-btn:focus-visible {
  outline: 2px solid var(--wt-lime);
  outline-offset: 2px;
}

.wt-cookie-btn-primary {
  background: var(--wt-lime);
  color: #050600;
}

.wt-cookie-btn-primary:hover {
  background: var(--wt-lime-d);
}

.wt-cookie-btn-secondary {
  background: transparent;
  border-color: var(--wt-border);
  color: var(--wt-text);
}

.wt-cookie-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.wt-cookie-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--wt-muted);
  flex: 0 1 auto;
  min-width: unset;
  text-decoration: underline;
  padding-inline: 8px;
}

.wt-cookie-btn-ghost:hover {
  color: var(--wt-text);
}

.wt-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.wt-cookie-overlay.wt-visible {
  opacity: 1;
  pointer-events: auto;
}

.wt-cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(520px, calc(100vw - 32px));
  max-height: min(85vh, 640px);
  overflow: auto;
  padding: 24px;
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  color: var(--wt-text);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  pointer-events: none;
}

.wt-cookie-modal.wt-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.wt-cookie-modal h2 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
}

.wt-cookie-modal > p {
  margin: 0 0 18px;
  font-size: 0.875rem;
  color: var(--wt-muted);
  line-height: 1.55;
}

.wt-cookie-category {
  padding: 14px 0;
  border-top: 1px solid var(--wt-border);
}

.wt-cookie-category:first-of-type {
  border-top: none;
  padding-top: 0;
}

.wt-cookie-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wt-cookie-category-head h3 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.wt-cookie-category-head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--wt-muted);
  line-height: 1.5;
}

.wt-cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.wt-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.wt-cookie-toggle span {
  position: absolute;
  inset: 0;
  background: #2a2d32;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.wt-cookie-toggle span::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.wt-cookie-toggle input:checked + span {
  background: var(--wt-lime);
}

.wt-cookie-toggle input:checked + span::after {
  transform: translateX(20px);
}

.wt-cookie-toggle input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.wt-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.wt-cookie-modal-actions .wt-cookie-btn {
  flex: 1 1 160px;
}

@media (max-width: 520px) {
  .wt-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .wt-cookie-actions {
    flex-direction: column;
  }

  .wt-cookie-btn {
    width: 100%;
    min-width: unset;
  }
}
