/* Base: hidden by default (desktop + mobile) */
.cob-scroll-top {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cob-scroll-top__icon {
  font-size: 20px;
  line-height: 1;
}

.cob-scroll-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cob-scroll-top:hover,
.cob-scroll-top:active {
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.cob-scroll-top:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .cob-scroll-top {
    display: flex;
  }
}

@media (min-width: 769px) {
  .cob-scroll-top {
    display: none !important;
  }
}

