/* A small, isolated frame around the original client websites. */
body[data-muestra] {
  --muestra-context-height: 66px;
  padding-top: var(--muestra-context-height);
  scroll-padding-top: calc(var(--muestra-context-height) + 16px);
}
html:has(body[data-muestra]) { scroll-padding-top: calc(var(--muestra-context-height, 66px) + 16px); }
.muestra-context, .muestra-context *, .muestra-dialog, .muestra-dialog * { box-sizing: border-box; }
.muestra-context {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 8px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid #b6a6e94a;
  background: #100e21;
  color: #f8f6ff;
  font: 500 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 3px 18px #100e211a;
}
.muestra-context__identity { min-width: 0; display: grid; gap: 2px; }
.muestra-context__identity strong { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.muestra-context__identity span { color: #d2cae4; font-size: 12px; overflow-wrap: anywhere; }
.muestra-context__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.muestra-context a, .muestra-dialog a, .muestra-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #bca9e655;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
.muestra-context a { color: #f8f6ff; background: transparent; }
.muestra-context a:hover { background: #ffffff12; }
.muestra-context a.muestra-context__cta, .muestra-dialog a.muestra-context__cta { color: #171226; background: #e3d7ff; border-color: #e3d7ff; }
.muestra-context a.muestra-context__cta:hover, .muestra-dialog a.muestra-context__cta:hover { background: #f1eaff; }
.muestra-context :focus-visible, .muestra-dialog :focus-visible { outline: 3px solid #be9bff; outline-offset: 3px; }
body[data-muestra] [data-muestra-offset-header] { top: var(--muestra-context-height); }
body[data-muestra] :is(button, input:not([type="checkbox"]):not([type="radio"]), select, summary, nav a, a.button, a.btn, a.primary, a.cta) { min-height: 44px; }
body[data-muestra] nav a { display: inline-flex; align-items: center; }
body[data-muestra] :is(.chat-panel, .product-photo-preview) { max-height: calc(100dvh - var(--muestra-context-height) - 24px); }
body[data-muestra] .chat-panel { max-height: calc(100dvh - var(--muestra-context-height) - 100px); }
.muestra-noscript { margin: 0; padding: 14px 20px; background: #100e21; color: #fff; font: 14px/1.5 system-ui, sans-serif; }
.muestra-noscript a { color: #e3d7ff; text-decoration: underline; }
.muestra-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  padding: 28px;
  border: 1px solid #d6cee6;
  border-radius: 16px;
  background: #fcfaff;
  color: #241c36;
  box-shadow: 0 18px 80px #130b3340;
  font: 15px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.muestra-dialog::backdrop { background: #100b25a8; }
.muestra-dialog h2 { margin: 0 0 12px; color: #241c36; font: 700 23px/1.25 system-ui, sans-serif; letter-spacing: -.02em; }
.muestra-dialog p { margin: 0 0 18px; color: #53485f; font: inherit; }
.muestra-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.muestra-dialog button { background: #fff; color: #30243f; border-color: #cec2dc; }
.muestra-dialog[open] { display: block; }
@media (max-width: 640px) {
  body[data-muestra] { --muestra-context-height: 108px; }
  .muestra-context { flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px; }
  .muestra-context__identity { width: 100%; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; }
  .muestra-context__identity strong { font-size: 12px; }
  .muestra-context__identity span { font-size: 11px; }
  .muestra-context__actions { width: 100%; gap: 8px; }
  .muestra-context a { flex: 1; padding: 8px 10px; font-size: 12px; }
  .muestra-dialog { padding: 22px; }
}
