/* cookieconsent.css — APUS cookie consent (Consent Mode v2). Бренд: оранжевый #ff6005. */
:root { --cc-orange: #ff6005; --cc-orange-2: #ff8a3d; --cc-ink: #241c15; }

.apus-cc {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100000;
  width: 400px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  transform: translateY(20px) scale(.98);
  transition: opacity .3s ease, transform .35s cubic-bezier(.34, 1.3, .5, 1);
}
.apus-cc.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.apus-cc__card {
  background: linear-gradient(180deg, #fff, #fff8f3);
  border: 1px solid rgba(255, 96, 5, .16);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px -16px rgba(90, 35, 0, .35), 0 6px 16px rgba(90, 35, 0, .10);
  font-family: inherit;
}

.apus-cc__head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.apus-cc__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--cc-orange), var(--cc-orange-2));
  box-shadow: 0 6px 14px -4px rgba(255, 96, 5, .55);
}
.apus-cc__head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--cc-ink); letter-spacing: -.01em; }

.apus-cc__text { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: #6a5f55; }
.apus-cc__text a { color: var(--cc-orange); font-weight: 600; text-decoration: none; }
.apus-cc__text a:hover { text-decoration: underline; }

/* категории */
.apus-cc__prefs { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.apus-cc__prefs[hidden] { display: none; }
.apus-cc__btn[hidden] { display: none; }
.apus-cc__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 13px; background: #fff; border: 1px solid #f0e6dd; border-radius: 12px; cursor: pointer;
}
.apus-cc__row--locked { cursor: default; opacity: .85; }
.apus-cc__meta { display: flex; flex-direction: column; gap: 3px; }
.apus-cc__meta strong { font-size: 13.5px; color: var(--cc-ink); font-weight: 700; }
.apus-cc__meta small { font-size: 11.5px; color: #8a7d72; line-height: 1.4; }

/* свитч */
.apus-cc__switch {
  position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px;
  background: #d9cfc6; transition: background .2s ease;
}
.apus-cc__switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s cubic-bezier(.34, 1.5, .6, 1);
}
.apus-cc__switch.is-on { background: linear-gradient(135deg, var(--cc-orange), var(--cc-orange-2)); }
.apus-cc__switch.is-on::after { transform: translateX(18px); }

/* кнопки */
.apus-cc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.apus-cc__btn {
  flex: 1 1 auto; min-width: 110px; padding: 11px 16px; border-radius: 11px; border: 0;
  font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.apus-cc__btn--accept {
  color: #fff !important; background: linear-gradient(135deg, var(--cc-orange), var(--cc-orange-2)) !important;
  box-shadow: 0 8px 18px -6px rgba(255, 96, 5, .6); order: 3; flex-basis: 100%;
}
.apus-cc__btn--accept:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -6px rgba(255, 96, 5, .7); }
.apus-cc__btn--save { color: #fff !important; background: #241c15 !important; order: 3; flex-basis: 100%; }
.apus-cc__btn--save:hover { transform: translateY(-2px); }
.apus-cc__btn--ghost { background: #f3ece5 !important; color: #5a4f45 !important; }
.apus-cc__btn--ghost:hover { background: #ece2d8 !important; color: var(--cc-ink) !important; }

/* кнопка повторного открытия настроек */
.apus-cc-reopen {
  position: fixed; left: 18px; bottom: 18px; z-index: 99998;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--cc-orange), var(--cc-orange-2));
  box-shadow: 0 8px 20px -6px rgba(255, 96, 5, .6);
  display: flex; align-items: center; justify-content: center;
  opacity: .55; transition: opacity .2s ease, transform .2s ease;
}
.apus-cc-reopen:hover { opacity: 1; transform: scale(1.08); }
.apus-cc-reopen svg { width: 22px !important; height: 22px !important; flex: 0 0 auto; display: block; }

@media (max-width: 600px) {
  .apus-cc { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .apus-cc__btn { min-width: 0; }
}
