/**
 * 01DS Float — Front-end Styles v2.1.0
 *
 * KEY: .ods-floater is ALWAYS position:fixed (set by JS).
 * This means it NEVER contributes to document scroll height
 * and cannot cause infinite-scroll / layout issues.
 */

/* Hide source element injected into the DOM */
.ods-float-content {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Panel wrapper ─────────────────────────────────────────────────────── */
.ods-floater {
  position: fixed !important;
  z-index: 999990;
  width: var(--ods-w, 300px);
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  contain: layout style;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .10);
  overflow: hidden;
  transition:
    top    var(--ods-speed, 600ms) cubic-bezier(0.22, 1, 0.36, 1),
    bottom var(--ods-speed, 600ms) cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.3s ease,
    transform 0.3s ease;
  animation: ods-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ods-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Inner content ─────────────────────────────────────────────────────── */
.ods-floater__inner {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ods-floater__inner img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.ods-floater__inner a       { color: #0073aa; }
.ods-floater__inner a:hover { color: #005177; }

/* ── Close button ──────────────────────────────────────────────────────── */
.ods-floater__close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  color: #555;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}

.ods-floater__close:hover,
.ods-floater__close:focus-visible {
  background: rgba(0, 0, 0, .18);
  color: #000;
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* ── Dark mode ─────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .ods-floater {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
  }
  .ods-floater__inner        { color: #ddd; }
  .ods-floater__inner a      { color: #74b9ff; }
  .ods-floater__close        { background: rgba(255,255,255,.1); color: #ccc; }
  .ods-floater__close:hover  { background: rgba(255,255,255,.2); color: #fff; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ods-floater { animation: none; transition: opacity 0.2s; }
}
