/* max-button/assets/css/style.css */

#max-button-wrapper {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;
}

.max-button-bubble {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.max-button-item {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background-color: #2e72d2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.3s ease !important;
  overflow: visible !important; /* или просто убрать */
  position: relative;
}

.max-button-item:hover {
  transform: scale(1.1);
}

.max-button-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #2e72d2;
  border-radius: 50%;
  z-index: 1;
}

.tg-icon,
.max-icon {
  position: relative;
}

.tg-icon::before,
.max-icon::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #2e72d2;
  border-radius: 50%;
  top: 0;
  right: 0;
  z-index: 3;
  transform: translate(30%, -30%);
}


.max-button-item img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  display: block !important;
  z-index: 2;
  position: relative;
}

.max-button-scope .max-button-settings input[type="text"] {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

.max-button-scope .max-button-settings .description a {
  color: #2e72d2;
  text-decoration: underline;
  font-weight: 500;
}
.max-button-scope img {
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .max-button-scope img {
    width: 36px;
    height: 36px;
  }
}
*, *::before, *::after {
  box-sizing: border-box;
}
html[dir="rtl"] #max-button-wrapper {
  right: auto;
  left: 20px;
}
