.site-service-toast {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 99999;

  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;

  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);

  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;

  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.site-service-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.site-service-toast--offline {
  background: #c62828;
}

.site-service-toast--online {
  background: #2e7d32;
}

.site-service-toast__icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.site-service-toast__text {
  flex: 1 1 auto;
}

.site-service-toast__title {
  margin: 0;
  font-weight: 700;
}

.site-service-toast__desc {
  margin: 2px 0 0;
  font-size: 14px;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .site-service-toast {
    top: 12px;
    left: 12px;
    right: 12px;
    min-width: 0;
    max-width: none;
    font-size: 15px;
  }

  .site-service-toast__desc {
    font-size: 13px;
  }
}

/* ============================================================
   COOKIE / ANALYTICS CONSENT
============================================================ */

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;

  width: min(420px, calc(100vw - 36px));
  padding: 18px 18px 16px;

  border: 2px solid #111;
  border-radius: 22px;
  background: #fff;
  color: #111;

  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.45;

  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.42),
    0 6px 18px rgba(0, 0, 0, 0.28);

  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

html.theme-night .cookie-consent {
  background: #222;
  color: #fff;
  border-color: #555;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.65),
    0 6px 18px rgba(0, 0, 0, 0.45);
}

.cookie-consent__close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 34px;
  height: 34px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;

  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent__close:hover {
  transform: scale(1.12);
}

.cookie-consent__title {
  margin: 0 34px 8px 0;
  font-family: 'WellwaitFree', 'Lato', Arial, sans-serif;
  font-size: 28px;
  line-height: 1.05;
}

.cookie-consent__text {
  margin: 0 0 14px;
  font-size: 16px;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent__btn {
  min-height: 44px;
  padding: 10px 14px;

  border: 2px solid #111;
  border-radius: 14px;

  font: inherit;
  font-weight: 700;
  cursor: pointer;

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.cookie-consent__btn:hover {
  transform: scale(1.04);
}

.cookie-consent__btn--accept {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.cookie-consent__btn--necessary {
  background: #fff;
  color: #111;
}

html.theme-night .cookie-consent__btn--necessary {
  background: #333;
  color: #fff;
  border-color: #777;
}

.cookie-consent__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;

  color: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;

    width: auto;
    max-width: none;
    padding: 16px 14px 14px;

    border-radius: 18px;

    box-shadow:
      0 16px 42px rgba(0, 0, 0, 0.42),
      0 4px 14px rgba(0, 0, 0, 0.24);
  }

  .cookie-consent__title {
    font-size: 24px;
  }

  .cookie-consent__text {
    font-size: 15px;
  }

  .cookie-consent__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .cookie-consent__btn,
  .cookie-consent__link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 320px) {
  .cookie-consent {
    left: 8px;
    right: 8px;
    bottom: 8px;

    padding: 14px 12px 12px;
    border-radius: 16px;

    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.38),
      0 3px 10px rgba(0, 0, 0, 0.22);
  }

  .cookie-consent__close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 22px;
  }

  .cookie-consent__title {
    margin-right: 32px;
    font-size: 22px;
  }

  .cookie-consent__text {
    font-size: 14px;
  }

  .cookie-consent__btn,
  .cookie-consent__link {
    min-height: 40px;
    font-size: 14px;
  }
}