.popup-container-wrapper {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: flex;
  width: min(272px, calc(100vw - 16px));
  max-height: calc(100vh - 48px);
  padding: 16px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.side-popup {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  background: #fafafa;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
}

.side-popup .popup-content p {
  margin: 0 0 14px;
  color: #121212;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.side-popup .popup-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.side-popup .popup-actions button {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.side-popup .popup-actions button:hover {
  filter: brightness(0.94);
}

.kwordle-popup-close {
  background: #121212;
  color: #fafafa;
}

.kwordle-popup-never-show {
  background: #e3e5e8;
  color: #4b5563;
}

@media (max-width: 767px) {
  .popup-container-wrapper {
    right: 4px;
    bottom: 4px;
    left: 4px;
    width: auto;
    max-height: min(50vh, 360px);
    padding: 12px;
  }

  .side-popup {
    padding: 14px;
  }

  .side-popup .popup-actions {
    flex-direction: row;
  }

  .side-popup .popup-actions button {
    flex: 1;
  }
}
