body {
  padding-bottom: 118px;
}

.floating-apply-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1150;
  width: min(960px, calc(100% - 40px));
  transform: translateX(-50%);
  border: 1px solid #2b2d35;
  background: #121318;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}

.floating-apply-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 20px;
}

.floating-apply-message {
  margin: 0;
  color: #f3f3f5;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.3px;
}

.floating-apply-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
}

.floating-apply-link,
.floating-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.floating-apply-link {
  width: 48px;
  border: 1px solid #2a2d35;
  background: #24262d;
  font-size: 17px;
  line-height: 1;
}

.floating-apply-button {
  width: 234px;
  padding: 0 28px;
  border: 1px solid #ff2032;
  background: #ff2032;
  font-size: 16px;
  font-weight: 800;
}

.floating-apply-link:hover,
.floating-apply-button:hover {
  transform: translateY(-2px);
}

.floating-apply-link:hover {
  border-color: #3b3e48;
  background: #30323a;
}

.floating-apply-button:hover {
  border-color: #d91425;
  background: #d91425;
}

.local-course .floating-apply-bar .floating-apply-button:hover,
.local-course .floating-apply-bar .floating-apply-button:focus {
  color: #fff;
  text-decoration: none;
}

.floating-apply-link:focus-visible,
.floating-apply-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body {
    padding-bottom: 96px;
  }

  .floating-apply-bar {
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .floating-apply-inner {
    gap: 10px;
    min-height: 72px;
    padding: 11px;
  }

  .floating-apply-message {
    font-size: 13px;
  }

  .floating-apply-actions {
    gap: 6px;
  }

  .floating-apply-link {
    width: 44px;
    min-height: 44px;
  }

  .floating-apply-button {
    width: auto;
    min-width: 112px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .floating-apply-message {
    max-width: 110px;
  }

  .floating-apply-button {
    min-width: 100px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-apply-link,
  .floating-apply-button {
    transition: none;
  }
}
