.ck {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ck-in {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px 28px;
  padding-block: 18px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ck-txt {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.7;
}
.ck-txt p {
  margin: 0;
}
.ck-txt a {
  color: inherit;
  text-decoration: underline;
}
.ck-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
}
.ck-ok {
  flex: none;
  min-width: 132px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.ck-ok:hover {
  filter: brightness(1.08);
}
@media (min-width: 761px) {
  .ck-in {
    width: min(90%, 1180px);
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 640px) {
  .ck-in {
    flex-direction: column;
    align-items: stretch;
  }
  .ck-ok {
    width: 100%;
  }
}

.totop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--ck-h, 0px));
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    border-color 0.15s;
}
.totop.on {
  opacity: 1;
  transform: none;
}
.totop:hover {
  border-color: var(--fg);
}
.totop svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
}
@media (min-width: 761px) {
  .totop {
    right: 24px;
    bottom: calc(24px + var(--ck-h, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .totop {
    transition: none;
  }
}
