/* Zammad Chat Custom Widget */

/* Immagine nel FAB (online e offline) */
.zammad-fab-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

/* Icona Material Icons nell'header */
.zammad-custom-icon {
  font-size: 22px;
  vertical-align: middle;
  line-height: 1;
  color: inherit;
}

/* ── Widget offline ─────────────────────────── */

.zammad-offline-widget {
  position: fixed;
  bottom: 24px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: sans-serif;
}

/* FAB circolare */
.zammad-offline-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.15s ease;
}

.zammad-offline-fab:hover {
  transform: scale(1.06);
}

/* Pannello messaggio offline — stesse dimensioni del widget Zammad aperto */
.zammad-offline-panel {
  display: none;
  flex-direction: column;
  font-size: 12px;
  width: 33em;
  height: 30em;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background: #fff;
  position: fixed;
  bottom: 0;
  right: 30px;
}

.zammad-offline-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 3.5em;
  flex-shrink: 0;
}

.zammad-offline-panel-title {
  font-weight: bold;
  font-size: 14px;
}

.zammad-offline-panel-close {
  cursor: pointer;
  font-size: 16px;
  opacity: 0.8;
}

.zammad-offline-panel-close:hover {
  opacity: 1;
}

.zammad-offline-panel-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 3.5em;
  padding: 20px;
  text-align: center;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.zammad-offline-panel-body p {
  margin: 0;
  color: black;
  font-size: 1.3em;
  line-height: 1.45;
  font-family: inherit;
}

/* Mobile */
@media (max-width: 600px) {
  .zammad-offline-widget {
    right: 0;
    bottom: 0;
  }

  .zammad-offline-panel {
    width: 100%;
    right: 0;
    bottom: 0;
    border-radius: 8px 8px 0 0;
  }
}
