.jasmine-palette-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
}
.jasmine-palette-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 99px;
  background: #171714;
  color: #fffaf3;
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.jasmine-palette-toggle span:first-child { font-size: 16px; line-height: 1; }
.jasmine-palette-panel {
  position: absolute;
  left: 0;
  bottom: 54px;
  width: min(286px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid rgba(20,20,18,.16);
  background: #fffaf3;
  color: #171714;
  box-shadow: 0 16px 50px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.jasmine-palette-widget.is-open .jasmine-palette-panel { opacity: 1; visibility: visible; transform: none; }
.jasmine-palette-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.jasmine-palette-head strong { font-size: 12px; font-weight: 500; }
.jasmine-palette-close { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.jasmine-palette-options { display: grid; gap: 7px; }
.jasmine-palette-option {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(20,20,18,.13);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.jasmine-palette-option[aria-pressed="true"] { border-color: #171714; background: rgba(20,20,18,.055); }
.jasmine-palette-swatches { display: flex; direction: ltr; }
.jasmine-palette-swatches i { width: 17px; height: 17px; border: 1px solid rgba(20,20,18,.16); border-radius: 50%; margin-left: -3px; }
@media (max-width: 520px) {
  .jasmine-palette-widget { left: 12px; bottom: 12px; }
  .jasmine-palette-toggle { min-height: 40px; padding: 8px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .jasmine-palette-panel { transition: none; }
}
