/* Cookie consent banner */
.hyranse-cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui);
  padding: 22px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.hyranse-cookie-consent.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hyranse-cookie-consent__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hyranse-cookie-consent__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--main-tint);
  border: 1px solid color-mix(in srgb, var(--main-color) 22%, var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
}

.hyranse-cookie-consent__title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.hyranse-cookie-consent__text {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hyranse-cookie-consent__text a {
  color: var(--main-color);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hyranse-cookie-consent__text a:hover {
  color: var(--main-hover);
}

.hyranse-cookie-consent__btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hyranse-cookie-consent__btn {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}

.hyranse-cookie-consent__btn:hover {
  background: var(--bg-soft);
}

.hyranse-cookie-consent__btn--primary {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

.hyranse-cookie-consent__btn--primary:hover {
  background: var(--main-hover);
  border-color: var(--main-hover);
  color: #fff;
}

.hyranse-cookie-consent__btn--ghost {
  background: transparent;
}

.hyranse-cookie-consent__opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.hyranse-cookie-consent__opt:last-of-type {
  border-bottom: none;
}

.hyranse-cookie-consent__opt b {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.hyranse-cookie-consent__opt span {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hyranse-cookie-consent__foot {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.hyranse-cookie-consent__foot .hyranse-cookie-consent__btn {
  flex: 1;
}

.hyranse-cookie-consent__switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  border: none;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
  padding: 0;
}

.hyranse-cookie-consent__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hyranse-cookie-consent__switch.is-on {
  background: var(--main-color);
}

.hyranse-cookie-consent__switch.is-on::after {
  transform: translateX(18px);
}

.hyranse-cookie-consent__switch.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.hyranse-footer__cookie-settings {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted-on-dark);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.hyranse-footer__cookie-settings:hover {
  color: var(--text-on-dark);
  text-decoration: none;
}

@media (min-width: 640px) {
  .hyranse-cookie-consent {
    left: auto;
    right: 24px;
    margin: 0;
  }
}
