:host {
  display: block;
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.logo-button {
  position: fixed;
  bottom: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  background: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.logo-button:hover {
  transform: scale(1.05);
}

.container {
  position: fixed;
  bottom: 96px;
  height: 0;
  width: 0;
  min-width: 0;
  z-index: 1000;
  padding: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  transform-origin: bottom right;
  opacity: 0;
  display: flex;
  flex-direction: column;
}

.container.visible {
  height: 80%;
  width: 30rem;
  opacity: 1;
}

.container.visible.isExpanded {
  width: 38rem;
}

.container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.logo-button.right,
.container.right {
  right: 1.25rem;
}

.logo-button.left,
.container.left {
  left: 1.25rem;
}

main {
  flex: 1;
  width: 100%;
  /* padding: 1rem; */
  overflow-y: auto;
  border-bottom: 1px solid #ececec;
}

main::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

footer {
  padding: 0.875rem;
  margin-top: auto;
}

.logo-button:active {
  transform: scale(0.95);
}

.launcher-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  /* .container.visible {
    width: 25rem;
  } */

  .container.visible.isExpanded {
    width: clamp(28rem, 90%, 35rem);
  }
}

@media screen and (max-width: 480px) {
  .container.visible {
    width: 100%;
    height: 100dvh;
    min-width: auto;
    max-width: none;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .container.visible.isExpanded {
    width: 100%;
  }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-container p {
  color: #666;
  font-size: 14px;
  margin: 0;
}
