.flatmeta-share-btn {
  position: fixed;
  top: calc(var(--navbar-height, 64px) + 1.25rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(72, 83, 191, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
  z-index: 1050;
}

.flatmeta-share-btn:hover,
.flatmeta-share-btn:focus-visible {
  background: #4853bf;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
  outline: none;
}

.flatmeta-share-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45), 0 16px 28px rgba(0, 0, 0, 0.35);
}

.flatmeta-share-btn i {
  font-size: 1.1rem;
}

.flatmeta-share-feedback {
  position: fixed;
  top: calc(var(--navbar-height, 64px) + 4.75rem);
  right: clamp(1rem, 3vw, 2rem);
  background: rgba(17, 24, 75, 0.95);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1049;
}

.flatmeta-share-feedback[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

[data-flatmeta-share="hidden"] .flatmeta-share-btn,
[data-flatmeta-share="hidden"] .flatmeta-share-feedback {
  display: none !important;
}

@media (max-width: 768px) {
  .flatmeta-share-btn {
    top: auto;
    bottom: 1.5rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .flatmeta-share-feedback {
    top: auto;
    bottom: calc(1.5rem + 60px);
    right: 1.25rem;
  }
}

@media print {
  .flatmeta-share-btn,
  .flatmeta-share-feedback {
    display: none !important;
  }
}
