/* Dirty Turf cookie consent — full-bleed bottom bar, non-blocking */

.dt-cc-root {
  --dt-cc-bg: #003113;
  --dt-cc-fg: #ffffff;
  --dt-cc-muted: rgba(255, 255, 255, 0.75);
  --dt-cc-accent: #4ade80;
  --dt-cc-btn: #047630;
  --dt-cc-btn-hover: #035a24;
  --dt-cc-border: rgba(255, 255, 255, 0.18);
  font-family: Outfit, Poppins, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  box-sizing: border-box;
}

.dt-cc-root *,
.dt-cc-root *::before,
.dt-cc-root *::after {
  box-sizing: border-box;
}

/* Reserve space so fixed page CTAs / form footers stay clear of the bar */
html.dt-cc-open {
  padding-bottom: var(--dt-cc-bar-h, 0px);
}

.dt-cc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--dt-cc-bg);
  color: var(--dt-cc-fg);
  border-radius: 0;
  border-top: 1px solid var(--dt-cc-border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.22);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .dt-cc-bar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .dt-cc-bar__text {
    max-width: 40rem;
  }
}

.dt-cc-bar__text {
  flex: 1;
  margin: 0;
  color: var(--dt-cc-muted);
  font-size: 13px;
}

.dt-cc-bar__text a {
  color: var(--dt-cc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dt-cc-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 639px) {
  .dt-cc-bar__actions {
    width: 100%;
  }

  .dt-cc-bar__actions .dt-cc-btn:not(.dt-cc-btn--link) {
    flex: 1 1 auto;
    min-width: calc(50% - 4px);
    text-align: center;
  }

  .dt-cc-bar__actions .dt-cc-btn--link {
    flex: 1 1 100%;
    order: 3;
    text-align: center;
    padding-top: 2px;
    padding-bottom: 2px;
  }
}

.dt-cc-btn {
  appearance: none;
  border: 1px solid var(--dt-cc-border);
  background: transparent;
  color: var(--dt-cc-fg);
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.dt-cc-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dt-cc-btn--primary {
  background: var(--dt-cc-btn);
  border-color: var(--dt-cc-btn);
}

.dt-cc-btn--primary:hover {
  background: var(--dt-cc-btn-hover);
  border-color: var(--dt-cc-btn-hover);
}

.dt-cc-btn--link {
  border: none;
  padding: 8px 6px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--dt-cc-muted);
}

.dt-cc-btn--link:hover {
  background: transparent;
  color: var(--dt-cc-fg);
}

.dt-cc-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99991;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--dt-cc-bg);
  color: var(--dt-cc-fg);
  border-radius: 0;
  border-top: 1px solid var(--dt-cc-border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.22);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: min(85vh, 560px);
  overflow-y: auto;
}

@media (min-width: 640px) {
  .dt-cc-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 32px));
    border-radius: 10px 10px 0 0;
    border-left: 1px solid var(--dt-cc-border);
    border-right: 1px solid var(--dt-cc-border);
  }
}

.dt-cc-panel__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dt-cc-fg) !important; /* beat theme h2 color rules */
}

.dt-cc-panel__intro {
  margin: 0 0 14px;
  color: var(--dt-cc-muted) !important;
  font-size: 13px;
}

.dt-cc-root .dt-cc-row__label {
  color: var(--dt-cc-fg) !important;
}

.dt-cc-root .dt-cc-row__desc {
  color: var(--dt-cc-muted) !important;
}

.dt-cc-root .dt-cc-bar__text {
  color: var(--dt-cc-muted) !important;
}

.dt-cc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--dt-cc-border);
}

.dt-cc-row:last-of-type {
  border-bottom: 1px solid var(--dt-cc-border);
  margin-bottom: 14px;
}

.dt-cc-row__label {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
}

.dt-cc-row__desc {
  margin: 4px 0 0;
  color: var(--dt-cc-muted);
  font-size: 12px;
}

.dt-cc-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.dt-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.dt-cc-switch span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dt-cc-switch span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.dt-cc-switch input:checked + span {
  background: var(--dt-cc-btn);
}

.dt-cc-switch input:checked + span::after {
  transform: translateX(18px);
}

.dt-cc-switch input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.dt-cc-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dt-cc-root[hidden],
.dt-cc-bar[hidden],
.dt-cc-panel[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dt-cc-switch span,
  .dt-cc-switch span::after {
    transition: none;
  }
}
