/* Baner cookies + przycisk WhatsApp */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.cookie-banner:not([hidden]) {
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(107, 140, 255, 0.08) inset;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
}

.cookie-banner__text a {
  color: #5eead4;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.cookie-banner__text a:hover {
  color: #7dd3fc;
}

.cookie-banner__actions {
  flex-shrink: 0;
}

.cookie-banner__accept {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
}

.wa-float {
  position: fixed;
  right: max(1.15rem, env(safe-area-inset-right, 0px));
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 4.25rem));
  z-index: 9997;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.wa-float:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 3px;
}

.wa-float__ico {
  display: block;
}

@media (max-width: 600px) {
  .wa-float {
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(6.25rem, calc(env(safe-area-inset-bottom, 0px) + 5rem));
    width: 3.15rem;
    height: 3.15rem;
  }

  .wa-float__ico {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }

  .wa-float:hover {
    transform: none;
  }
}
