/* 99 COOKIES: fixed bottom-left frosted card (after skylights.tech .modal-cookies). z-index band 900. */
.ck {
  position: fixed;
  left: 0;
  bottom: 20px;
  width: 100%;
  z-index: 900;
  pointer-events: none;
}
.ck[hidden] { display: none; }

.ck .ck__wrap { display: flex; justify-content: flex-start; }

.ck .ck__card {
  pointer-events: auto;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border-radius: 5px;
  color: var(--white);
  background-color: rgba(13, 14, 16, .78);
  border: 1px solid rgba(245, 246, 247, .2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45);
}

.ck .ck__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ck .ck__title {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.ck .ck__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -6px -6px 0 0;
  border-radius: 4px;
  color: rgba(245, 246, 247, .8);
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.ck .ck__close:hover { color: var(--white); background-color: rgba(245, 246, 247, .08); }

.ck .ck__text {
  padding-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: rgba(245, 246, 247, .78);
}

/* Preferences panel */
.ck .ck__prefs { overflow: hidden; }
.ck .ck__list { padding-top: 16px; display: grid; gap: 0; }
.ck .ck__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(245, 246, 247, .12);
}
.ck .ck__row:last-child { border-bottom: 1px solid rgba(245, 246, 247, .12); }
.ck .ck__row-txt { display: grid; gap: 2px; min-width: 0; }
.ck .ck__row-title { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.ck .ck__row-desc { font-size: var(--fs-xs); line-height: 1.45; color: var(--steel); }

.ck .ck__switch { position: relative; flex: none; display: inline-flex; cursor: pointer; }
.ck .ck__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.ck .ck__track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(245, 246, 247, .16);
  border: 1px solid rgba(245, 246, 247, .2);
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.ck .ck__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform .3s var(--ease-out);
}
.ck .ck__switch input:checked + .ck__track { background: var(--accent); border-color: var(--accent); }
.ck .ck__switch input:checked + .ck__track::after { transform: translateX(16px); }
.ck .ck__switch input:disabled { cursor: not-allowed; }
.ck .ck__switch input:disabled + .ck__track { opacity: .55; }
.ck .ck__switch input:focus-visible + .ck__track { outline: 2px solid var(--signal-blue); outline-offset: 3px; }

/* Buttons (after skylights .button green / gray) */
.ck .ck__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.ck .ck__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  background-color: rgba(245, 246, 247, .05);
  border: 1px solid rgba(245, 246, 247, .18);
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.ck .ck__btn:hover { border-color: rgba(245, 246, 247, .9); }
.ck .ck__btn[hidden] { display: none; }
.ck .ck__btn--primary { background-color: var(--accent); border-color: var(--accent); padding-left: 11px; }
.ck .ck__btn--primary:hover { background-color: #3651ff; border-color: #3651ff; }
.ck .ck__btn--save { background-color: var(--white); border-color: var(--white); color: var(--ink); }
.ck .ck__btn--save:hover { background-color: var(--paper-2); border-color: var(--paper-2); }

.ck .ck__dot-wrap { position: relative; width: 15px; height: 15px; flex: none; overflow: hidden; }
.ck .ck__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: transform .3s cubic-bezier(.3, .86, .36, .95);
}
.ck .ck__arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  color: var(--accent);
  transform: translate(calc(-50% - 8px), calc(-50% + 8px));
  transition: transform .3s cubic-bezier(.3, .86, .36, .95);
}
@media (hover: hover) {
  .ck .ck__btn--primary:hover .ck__dot { transform: translate(-50%, -50%) scale(1.8); }
  .ck .ck__btn--primary:hover .ck__arrow { transform: translate(-50%, -50%); }
}

@media (min-width: 768px) {
  .ck { bottom: 30px; }
  .ck .ck__card { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); }
  .ck .ck__text { padding-top: 15px; }
  .ck .ck__actions { padding-top: 30px; }
}

@media (max-width: 480px) {
  .ck { bottom: 16px; }
  .ck .ck__card { padding: 16px; }
  .ck .ck__actions { gap: 8px; }
  .ck .ck__btn--primary { flex: 1 1 100%; justify-content: center; }
  .ck .ck__btn:not(.ck__btn--primary) { flex: 1 1 0; justify-content: center; }
}
