@import url('data:text/css,');
:root {
  font-family: ui-rounded, 'Segoe UI', system-ui, sans-serif;
  color: #484052;
  background: #faf8f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 920px;
  margin: auto;
  padding: 32px 28px 100px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  padding: 12px 17px;
  background: #eee9f3;
  color: #50465f;
  min-height: 44px;
}
button:hover {
  filter: brightness(0.97);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #997ac4;
  outline-offset: 3px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  color: #77608b;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 3px;
}
header button {
  border-radius: 50%;
  font-size: 25px;
  background: #efe6f7;
  width: 50px;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 44px 0 25px;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #94829e;
}
h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1.7px;
  font-weight: 650;
  margin: 16px 0;
}
h1 span {
  color: #c9a0bd;
}
p {
  line-height: 1.65;
  font-size: 14px;
  color: #867c8d;
}
.house {
  background: #eee9df;
  border-radius: 50% 45% 48% 40%;
  width: 210px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 85px;
  transform: rotate(4deg);
}
.house span {
  font-size: 11px;
  color: #887b70;
  margin-top: 8px;
}
#connection {
  font-size: 12px;
  color: #887b92;
  margin-bottom: 20px;
}
#tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #eeeaf0;
  padding: 6px;
  border-radius: 19px;
}
#tabs button {
  background: transparent;
  font-size: 12px;
  padding: 12px 7px;
  border-radius: 14px;
}
#tabs button[aria-pressed='true'] {
  background: white;
  box-shadow: 0 2px 7px #67517210;
}
#tabs b {
  display: inline-flex;
  margin-left: 5px;
  background: #e6dcee;
  padding: 3px 7px;
  border-radius: 9px;
  font-size: 11px;
}
.tools {
  display: flex;
  gap: 12px;
  margin: 26px 0 18px;
}
.search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #eae5ec;
  border-radius: 15px;
  padding: 0 14px;
  flex: 1;
  color: #9d8fa6;
  font-size: 22px;
}
.search input {
  border: 0;
  background: none;
  margin: 0;
  padding: 13px 8px;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
.primary {
  background: #88709d;
  color: white;
}
.categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 0 14px;
}
.categories button {
  white-space: nowrap;
  background: transparent;
  font-size: 12px;
  min-height: 34px;
  padding: 8px 13px;
}
.categories button[aria-pressed='true'] {
  background: #e9e0f0;
  color: #6c537e;
}
.group-title {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
}
.product {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #eee8ed;
  border-radius: 19px;
  padding: 16px;
  margin-bottom: 10px;
}
.emoji {
  background: #f3eee5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 25px;
}
.product-info {
  flex: 1;
  min-width: 0;
}
.product strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.product small {
  display: block;
  font-size: 11px;
  color: #9b90a1;
  margin-top: 5px;
}
.pill {
  padding: 7px 11px;
  font-size: 10px;
  border-radius: 9px;
  white-space: nowrap;
}
.stock {
  background: #e6f1e8;
  color: #597961;
}
.low {
  background: #faf0d9;
  color: #9c7f3b;
}
.buy {
  background: #f8e4e7;
  color: #ad6b79;
}
.edit {
  font-size: 18px;
  background: none;
  padding: 8px;
}
footer {
  text-align: center;
  color: #b0a4b5;
  font-size: 11px;
  margin: 35px 0;
}
.chat-launch {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #e8dcf0;
  color: #6b507f;
  border: 1px solid #d6c5e2;
  border-radius: 30px;
  padding: 15px 27px;
  box-shadow: 0 8px 30px #5e3e6b20;
  font-size: 13px;
  white-space: nowrap;
}
dialog {
  border: 1px solid #e7deeb;
  border-radius: 25px;
  padding: 28px;
  width: min(460px, calc(100% - 26px));
  max-height: 90dvh;
  color: #50465f;
  background: #fdfbf9;
}
dialog::backdrop {
  background: #40314666;
  backdrop-filter: blur(4px);
}
h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
label {
  display: block;
  font-size: 12px;
  color: #7f718a;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin: 7px 0 17px;
  padding: 12px;
  border: 1px solid #ded5e4;
  border-radius: 11px;
  background: white;
  color: #50465f;
}
.columns {
  display: flex;
  gap: 12px;
}
.columns > * {
  flex: 1;
  min-width: 0;
}
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.hint {
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 40px 12px;
  border: 1px dashed #ddd0e5;
  border-radius: 20px;
}
.empty span {
  font-size: 40px;
}
#toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: #51435f;
  color: white;
  padding: 15px 22px;
  border-radius: 15px;
  width: max-content;
  max-width: 90%;
  z-index: 10;
  font-size: 13px;
}
#proposals p {
  padding: 10px;
  background: #eee5f4;
  border-radius: 10px;
}
@media (max-width: 550px) {
  main {
    padding: 22px 18px 100px;
  }
  .welcome {
    margin-top: 32px;
  }
  h1 {
    font-size: 34px;
  }
  .house {
    width: 115px;
    height: 130px;
    font-size: 57px;
  }
  .house span {
    font-size: 8px;
  }
  .welcome p:not(.eyebrow) {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  #tabs {
    gap: 1px;
  }
  #tabs button {
    font-size: 10px;
    padding: 10px 3px;
  }
  #tabs b {
    margin-left: 2px;
    padding: 2px 4px;
  }
  .product {
    padding: 12px;
    gap: 10px;
  }
  .emoji {
    width: 40px;
    height: 42px;
  }
  .pill {
    padding: 6px;
    font-size: 9px;
  }
  .product strong {
    font-size: 13px;
  }
}

.cute-icon {
  background: #f1e9f4;
  flex-shrink: 0;
}
.cute-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.reset-filters {
  font-size: 11px;
  padding: 6px 12px;
  min-height: 32px;
  background: #f0ebf5;
  margin: 2px 0 8px;
}
.product-info small {
  line-height: 1.4;
}
.product strong {
  line-height: 1.45;
}
.product {
  min-height: 78px;
}
/* Compact header and a single focus ring around the complete search field. */
header {
  margin-bottom: 28px;
}
.search:focus-within {
  outline: 2px solid #997ac4;
  outline-offset: 2px;
}
.search input:focus-visible {
  outline: none;
}
.search input {
  border-radius: 0;
}
.search {
  min-width: 0;
}

.subgroup-title {
  font-size: 12px;
  font-weight: 650;
  color: #8c769c;
  margin: 22px 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e4d9e9;
  letter-spacing: 0.2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-label select {
  width: auto;
  margin: 0;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 12px;
  background: #f5f0f8;
  border-color: #e6ddeb;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 550px) {
  .header-actions {
    gap: 8px;
  }
  .language-label select {
    padding: 9px 7px;
    font-size: 11px;
  }
  .brand {
    font-size: 28px;
  }
}
.product {
  padding: 0;
  gap: 4px;
  overflow: hidden;
}
.product-open {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  border-radius: 18px;
  padding: 16px;
  min-height: 78px;
}
.product-info {
  display: block;
}
.quick-quantity {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 0;
}
.quick-quantity button {
  width: 40px;
  min-height: 40px;
  padding: 4px;
  border-radius: 12px;
  font-size: 21px;
  background: #f1eaf5;
}
.quick-quantity span {
  font-size: 13px;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.quick-quantity button:disabled {
  cursor: default;
  opacity: 0.35;
}
.editor-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}
.editor-stepper input {
  margin: 0;
  text-align: center;
}
.editor-stepper button {
  font-size: 22px;
}
.stock-settings {
  margin: 20px 0;
}
.stock-settings summary {
  cursor: pointer;
  font-size: 13px;
  color: #88709d;
}
#purchase-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
#purchase-tools label {
  flex: 1;
}
#purchase-tools input {
  margin-bottom: 0;
}
.danger {
  color: #aa596c;
  background: #f9e7ed;
}
.editor-actions .danger {
  margin-right: auto;
}
@media (max-width: 550px) {
  .product {
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
  }
  .product-open {
    padding: 12px;
    gap: 9px;
    min-width: 100%;
  }
  .quick-quantity {
    padding: 0 12px 10px;
    margin-left: auto;
  }
  .product-open .pill {
    margin-left: auto;
  }
  .quick-quantity button {
    width: 44px;
    min-height: 44px;
  }
  .product-open .emoji {
    flex-shrink: 0;
  }
}
[hidden] {
  display: none !important;
}
.spice-product {
  flex-wrap: wrap;
}
.spice-product .product-open {
  flex-basis: 100%;
  padding-bottom: 10px;
}
.spice-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 14px;
  width: 100%;
}
.spice-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  min-height: 56px;
  padding: 8px;
  border: 1px solid #ebe3ef;
  background: #faf7fc;
  border-radius: 13px;
}
.spice-choice[aria-pressed='true'] {
  border-color: #a58aba;
  background: #eee3f5;
  box-shadow: inset 0 0 0 1px #a58aba;
}
.level-jar {
  position: relative;
  display: block;
  width: 20px;
  height: 27px;
  flex-shrink: 0;
  border: 2px solid #9d89aa;
  border-radius: 3px 3px 6px 6px;
  overflow: hidden;
  background: #fffaf3;
}
.level-jar:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #c1accf;
}
.jar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #a8c195;
}
.level-full .jar-fill {
  height: 90%;
}
.level-half .jar-fill {
  height: 50%;
}
.level-low .jar-fill {
  height: 15%;
  background: #ddc188;
}
.level-buy .jar-fill {
  height: 10%;
  background: #d7a0a8;
}
.level-empty .jar-fill {
  height: 0;
}
#spice-editor .spice-levels {
  padding: 8px 0;
}
.spice-choice:disabled {
  cursor: wait;
}
@media (max-width: 550px) {
  .spice-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 12px;
  }
  .spice-choice {
    min-height: 52px;
    font-size: 11px;
  }
}

.essential-reminders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.essential-reminder {
  padding: 16px;
  background: #faf0da;
  border: 1px solid #ead5a3;
  border-radius: 18px;
  min-width: 0;
}
.essential-reminder:only-child {
  grid-column: 1/-1;
}
.essential-reminder.is-urgent {
  background: #fbe9e8;
  border-color: #e8b9b7;
}
.essential-reminder h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0;
  margin: 0 0 12px;
  color: #94713e;
}
.essential-reminder.is-urgent h2 {
  color: #a15e64;
}
.reminder-symbol {
  display: grid;
  place-items: center;
  background: #f0dfb5;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 15px;
  flex-shrink: 0;
}
.is-urgent .reminder-symbol {
  background: #f1cdcd;
}
.reminder-count {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  font-size: 11px;
  border-radius: 9px;
  background: #f0dfb5;
}
.is-urgent .reminder-count {
  background: #f1cdcd;
}
.essential-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.essential-items button {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  font-size: 12px;
  background: #fffaf0;
  padding: 8px 11px;
  min-height: 44px;
  border: 1px solid #ecdebf;
}
.is-urgent .essential-items button {
  background: #fff7f6;
  border-color: #efd1d0;
}
.essential-items .essential-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
}
.essential-items .essential-icon img {
  width: 100%;
  height: 100%;
}
@media (max-width: 550px) {
  .essential-reminders {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .essential-reminder {
    padding: 14px;
  }
  .essential-reminder h2 {
    font-size: 13px;
  }
  .essential-items button {
    padding: 7px 9px;
    font-size: 11px;
  }
}
.essential-option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 5px 0 20px;
}
.essential-option input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #947ca6;
  flex-shrink: 0;
}

#settings {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
}
.modal-close {
  position: absolute;
  inset: 10px 10px auto auto;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: transparent;
}
.key-login:not([hidden]) {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.key-login p:empty {
  display: none;
}
#google-login:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  background: #fff;
}

dialog label {
  font-weight: 700;
}

#reserve-settings {
  margin: 14px 0;
}
#reserve-settings summary {
  cursor: pointer;
  color: #77608b;
  font-size: 13px;
  font-weight: 700;
}

.editor-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.editor-tabs button {
  flex: 1;
}
.editor-tabs button[aria-pressed='true'] {
  background: #dfd0ec;
  color: #503b64;
  font-weight: 700;
}

.product.spice-product .spice-levels {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product.spice-product .spice-choice {
  justify-content: center;
  min-height: 44px;
  padding: 4px;
}
.product.spice-product .level-label {
  display: none;
}
@media (max-width: 550px) {
  .product.quantity-product {
    flex-wrap: nowrap;
  }
  .quantity-product .product-open {
    min-width: 0;
    padding: 10px 4px 10px 9px;
    gap: 6px;
  }
  .quantity-product .quick-quantity {
    flex: none;
    margin: 0;
    padding: 0 6px 0 0;
    gap: 2px;
  }
  .quantity-product .quick-quantity button {
    width: 38px;
    min-height: 44px;
  }
  .quantity-product .pill {
    white-space: normal;
    text-align: center;
    flex: none;
    max-width: 52px;
  }
}

#chat-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 32dvh;
  overflow: auto;
}
#chat-history:empty {
  display: none;
}
.chat-bubble {
  max-width: 90%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #50465f;
}
.from-user {
  align-self: flex-end;
  background: #e8dbf2;
}
.from-casita {
  align-self: flex-start;
  background: #f1ebf5;
}
#chat-form {
  margin-top: 12px;
}
#chat-form textarea {
  font-weight: 400;
}

dialog > h2,
dialog > form > h2 {
  padding-inline-end: 32px;
}
dialog .actions {
  align-items: stretch;
  flex-wrap: nowrap;
  gap: clamp(4px, 2vw, 10px);
}
dialog .actions > button {
  min-width: 0;
  padding-inline: clamp(6px, 2vw, 17px);
  overflow-wrap: anywhere;
}
@media (max-width: 550px) {
  dialog .actions > button {
    font-size: 13px;
  }
}

.product:has(.gluten-marker) {
  position: relative;
}
.gluten-marker {
  position: absolute;
  inset: 3px 5px auto auto;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff1d5;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

#favorite-reminder {
  margin: 0 0 12px;
  background: #f2ebf7;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 13px;
}
#favorite-summary {
  cursor: pointer;
  font-weight: 650;
}
#favorite-items {
  margin-top: 8px;
}
#favorite-toggle {
  margin-bottom: 10px;
  font-size: 13px;
}

.product {
  position: relative;
}
.product .product-open {
  width: 100%;
  min-width: 100%;
  padding-right: 52px;
}
.product-open .pill {
  flex: none;
  margin-left: auto;
}
.product.quantity-product {
  flex-wrap: wrap;
}
.quantity-product .quick-quantity {
  margin-left: auto;
  padding: 0 28px 10px 0;
}
.card-favorite {
  position: absolute;
  inset: 3px 3px auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: #846492;
  font-size: 23px;
  line-height: 1;
}
.card-favorite[aria-pressed='true'] {
  color: #85610b;
}
.gluten-marker {
  inset: auto 14px 7px auto;
  color: #9a6d12;
}
.product:has(.gluten-marker) .quick-quantity,
.product:has(.gluten-marker) .spice-levels {
  padding-right: 44px;
}
.product.quantity-product {
  flex-wrap: nowrap;
  align-items: center;
  padding-right: 44px;
  gap: 0;
}
.product.quantity-product .product-open {
  width: auto;
  min-width: 0;
  padding: 10px 5px 10px 10px;
  min-height: 66px;
  gap: 6px;
}
.product.quantity-product .quick-quantity {
  flex: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.product.quantity-product .quick-quantity button {
  width: 36px;
  min-height: 44px;
}
.product.quantity-product .pill {
  white-space: normal;
  text-align: center;
  max-width: 52px;
}

.essential-reminders:has(+ #favorite-reminder:not([hidden])) {
  margin-bottom: 12px;
}
#favorite-reminder {
  border: 1px solid #d8c5e8;
  border-radius: 18px;
  color: #674b7d;
  margin-bottom: 22px;
}
#favorite-items button,
#account-favorites button {
  background: #eee2f6;
  border-color: #d8c5e8;
  color: #59406f;
}
#account-favorites-title {
  font-size: 15px;
  margin-bottom: 8px;
}
@media (max-width: 550px) {
  .essential-reminders:has(+ #favorite-reminder:not([hidden])) {
    margin-bottom: 10px;
  }
}

#favorite-items button {
  background: #fcf8ff;
  border-color: #dfd0eb;
}

#voice-status:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f1e9f7;
  border-radius: 12px;
  font-size: 13px;
}
.voice-wave {
  display: none;
}
.recording .voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.voice-wave i {
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: #9165a9;
  animation: casita-listening 0.75s ease-in-out infinite alternate;
}
.voice-wave i:nth-child(2n) {
  animation-delay: -0.4s;
}
.voice-wave i:nth-child(3n) {
  animation-delay: -0.2s;
}
@keyframes casita-listening {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .voice-wave i {
    animation: none;
  }
  .voice-wave i:nth-child(2n) {
    height: 8px;
  }
}

.chat-actions .chat-cancel {
  margin-inline-end: auto;
}

.search #clear-search {
  flex: none;
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: transparent;
  font-size: 22px;
  color: #88709d;
  border-radius: 50%;
}

.essential-reminder > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #94713e;
  cursor: pointer;
  list-style: none;
}
.essential-reminder > summary::-webkit-details-marker,
#favorite-summary::-webkit-details-marker {
  display: none;
}
#favorite-summary {
  list-style: none;
  display: flex;
  align-items: center;
}
.essential-reminder > summary::after,
#favorite-summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: auto;
  margin-right: 3px;
  flex: none;
}
details[open].essential-reminder > summary::after,
#favorite-reminder[open] > summary::after {
  transform: rotate(225deg);
}
.essential-reminder[open] > summary {
  margin-bottom: 12px;
}
@media (max-width: 550px) {
  .essential-reminder > summary {
    font-size: 13px;
  }
}

.category-scroll {
  position: relative;
}
.categories {
  scrollbar-width: none;
}
.categories::-webkit-scrollbar {
  display: none;
}
.category-scroll-track {
  height: 3px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.category-scroll-track.is-visible {
  opacity: 1;
}
#category-scroll-thumb {
  position: absolute;
  height: 100%;
  background: #b6a4c5;
  border-radius: 4px;
}

#chat {
  padding: 22px;
  width: min(520px, calc(100% - 24px));
}
#chat h2 {
  margin: 4px 32px 4px 0;
  font-size: 23px;
}
#assistant-status {
  font-size: 11px;
  margin: 0 0 14px;
  color: #8c7f94;
}
.chat-workspace {
  max-height: 48dvh;
  overflow: auto;
  overscroll-behavior: contain;
}
#chat-history {
  max-height: none;
  overflow: visible;
  gap: 12px;
}
#chat-history .chat-bubble {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 13px;
}
#chat-history .from-user {
  background: #e8ddf3;
  color: #50375f;
  border-radius: 15px 15px 4px 15px;
}
#chat-history .from-casita {
  background: #f1f0ed;
  color: #59545d;
  border: 1px solid #e5e1dd;
  border-radius: 15px 15px 15px 4px;
}
#chat-history:empty::before {
  content: 'Contame qué compraste o qué se terminó ♡';
  display: block;
  padding: 20px 10px;
  color: #97899e;
  font-size: 13px;
  text-align: center;
}
#chat-review {
  background: #edf5ef;
  border: 1px solid #c9dfcf;
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px;
}
#chat-review h3 {
  margin: 0;
  color: #496c54;
  font-size: 15px;
}
#chat-review .review-hint {
  font-size: 11px;
  margin: 3px 0 10px;
  color: #6f8172;
}
#proposals .review-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dce9df;
  border-radius: 12px;
  margin: 7px 0;
}
.review-product-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.review-before {
  color: #9a929c;
  font-size: 11px;
}
.review-after {
  color: #3e7050;
  font-weight: 650;
  font-size: 12px;
}
#chat-review #apply {
  width: 100%;
  margin-top: 6px;
  background: #698c72;
}
#chat-form {
  border-top: 1px solid #e9e1ed;
  padding-top: 12px;
  margin-top: 14px;
}
#chat-form textarea {
  margin-bottom: 8px;
}
#chat-form .actions {
  margin-top: 0;
}
@media (max-width: 550px) {
  #chat {
    padding: 20px;
  }
  .chat-workspace {
    max-height: 43dvh;
  }
}

.widget-settings {
  border: 1px solid #dfd0ea;
  border-radius: 14px;
  padding: 12px;
  margin: 14px 0;
}
.widget-settings summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.widget-settings button {
  font-size: 12px;
  margin: 6px 0;
}
.widget-settings input {
  font-weight: 400;
  font-size: 12px;
}
