body.competicions-app.has-competition-dock {
  --competition-dock-safe-bottom: env(safe-area-inset-bottom, 0px);
  --competition-dock-reserved-space: calc(62px + var(--competition-dock-safe-bottom));
}

body.competicions-app.has-competition-dock.competition-dock-open {
  --competition-dock-reserved-space: calc(160px + var(--competition-dock-safe-bottom));
}

body.competicions-app.has-competition-dock main {
  padding-bottom: var(--competition-dock-reserved-space);
}

body.competicions-app.has-competition-dock .footer_section {
  margin-bottom: var(--competition-dock-reserved-space);
}

body.competicions-app .competition-dock-wrap {
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 28px);
}

body.competicions-app .competition-dock-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 172px;
  max-width: min(300px, calc(100vw - 28px));
  height: 44px;
  padding: 0 16px;
  --competition-dock-toggle-fill: rgba(255, 255, 255, 0.96);
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--competition-dock-toggle-fill), var(--competition-dock-toggle-fill)) padding-box,
    linear-gradient(90deg,
      #0f766e 0% 20%,
      #2563eb 20% 40%,
      #b45309 40% 60%,
      #9f1239 60% 80%,
      #eab308 80% 100%) border-box;
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.competicions-app .competition-dock-toggle:hover {
  --competition-dock-toggle-fill: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.24);
}

body.competicions-app .competition-dock-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

body.competicions-app .competition-dock-toggle-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.competicions-app .competition-dock-toggle-chevron {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  transition: transform .2s ease;
}

body.competicions-app .competition-dock-toggle-chevron svg {
  display: block;
  width: 18px;
  height: 18px;
}

body.competicions-app .competition-dock-wrap.is-open .competition-dock-toggle-chevron {
  transform: rotate(180deg);
}

body.competicions-app .competition-dock-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

body.competicions-app .competition-dock-wrap.is-open .competition-dock-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body.competicions-app.has-competition-dock .inscripcions-back-to-top {
  --inscripcions-back-to-top-bottom: 20px;
}

body.competicions-app.has-competition-dock.competition-dock-open .inscripcions-back-to-top {
  --inscripcions-back-to-top-bottom: 190px;
}

@media (max-width: 767.98px) {
  body.competicions-app .competition-dock-wrap {
    display: flex;
    justify-content: center;
  }

  body.competicions-app .competition-dock-panel {
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
    transform: translateY(14px);
  }

  body.competicions-app .competition-dock-wrap.is-open .competition-dock-panel {
    transform: translateY(0);
  }

  body.competicions-app .competition-dock {
    width: 100%;
  }

  body.competicions-app.has-competition-dock .inscripcions-back-to-top {
    --inscripcions-back-to-top-bottom: 70px;
  }

  body.competicions-app.has-competition-dock.competition-dock-open .inscripcions-back-to-top {
    --inscripcions-back-to-top-bottom: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.competicions-app .competition-dock-panel,
  body.competicions-app .competition-dock-toggle-chevron {
    transition: none;
  }
}
