.nk-sticker-picker {
  position: fixed;
  inset: 0;
  margin: auto;
  color-scheme: light dark;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 24px));
  max-height: min(600px, calc(100dvh - 32px));
  padding: 16px;
  border: 1px solid #8a8f9e;
  border-radius: 20px;
  background: light-dark(#fff, #181b24);
  color: light-dark(#172037, #f3f5ff);
  font:
    14px/1.45 system-ui,
    sans-serif;
  overflow: auto;
  overscroll-behavior: contain;
}
.nk-sticker-picker::backdrop {
  background: #11182780;
}
.nk-sticker-picker * {
  box-sizing: border-box;
}
.nk-sticker-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.nk-sticker-picker h2 {
  font-size: 18px;
  margin: 0;
}
.nk-sticker-picker button,
.nk-sticker-picker select,
.nk-sticker-picker input {
  font: inherit;
  color: inherit;
  border: 1px solid #969bae;
  border-radius: 10px;
  min-height: 44px;
  background: transparent;
}
.nk-sticker-picker button {
  cursor: pointer;
  padding: 6px;
}
.nk-sticker-picker button:focus-visible,
.nk-sticker-picker select:focus-visible,
.nk-sticker-picker input:focus-visible {
  outline: 3px solid #6485ff;
  outline-offset: 2px;
}
.nk-sticker-picker .nk-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.nk-sticker-picker label {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.nk-sticker-picker input,
.nk-sticker-picker select {
  width: 100%;
  padding: 8px;
}
.nk-sticker-picker .nk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.nk-sticker-picker .nk-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-color: transparent;
  overflow: hidden;
  font-size: 11px;
  word-break: keep-all;
}
.nk-sticker-picker .nk-grid button:hover {
  background: light-dark(#edf0ff, #30384f);
}
.nk-sticker-picker img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.nk-sticker-picker .nk-status {
  margin: 8px 0 0;
  min-height: 20px;
}

.nk-sticker-picker[data-theme="dark"] {
  color-scheme: dark;
}
.nk-sticker-picker[data-theme="light"] {
  color-scheme: light;
}
.message-bubble img.nk-sticker-image,
.nk-sticker-image {
  display: inline-block;
  vertical-align: middle;
  width: 144px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.nk-sticker-trigger {
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
}
@media (max-width: 420px) {
  .composer:has(#sticker-button) {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
  }
  .composer:has(#sticker-button) textarea {
    flex-basis: 100%;
    order: 0;
    width: 100%;
    min-width: 0;
  }
  .composer:has(#sticker-button) .photo-actions {
    order: 1;
    flex: 1;
  }
  .composer:has(#sticker-button) .photo-actions .icon-button {
    width: 44px;
    height: 44px;
  }
  .composer:has(#sticker-button) .send-button {
    order: 2;
  }
  .table-chat #chat-form {
    flex-wrap: wrap;
  }
  .table-chat #chat-input {
    min-width: 0;
    flex: 1 1 100px;
  }
}
