/*#omx eyJhbGciOiJITUFDLVNIQTI1NiIsInBheWxvYWQiOnsib3duZXIiOiJKZXPDg8K6cyBPcnRlZ2EgTWF0ZXUiLCJkbmkiOiI3NDM3OTIyMk0iLCJsaWNlbnNlIjoiTGljZW5jaWEgcmVzZXJ2YWRhIC8gUHJvcGllZGFkIGludGVsZWN0dWFsIiwib3JpZ2luIjoiT01fNzQzNzkyMjJNIiwiYnVpbGQiOiIyMDI2LTA4LTI1XzIyNTY1MiIsImZpbGUiOiIwODUyMDc4OGM2IiwicGF0aCI6ImFzc2V0cy9jc3MvaW52aXRhdGlvbk1hbmFnZXIucGhhc2UyLWIyLmNzcyJ9LCJzaWciOiJhMDFhYTM1M2ZhMWYxYTQ4N2IwNWIyZDIxNGU2MWU5MWIxNzkxOTJkNzU4OTQ3MDNjZjQ3MTJhZjk3OTU4YzAxIn0=*/
/* Phase 2B.2 — renderer parity and selector interaction.
 * The JavaScript renderer contract owns geometry; this layer maps the same
 * custom properties to the historical canvas DOM and to compact thumbnails.
 */

/* Selector header stays quiet. View controls live in the first body row. */
.bo-envelope-config-panel .bo-envelope-card-title-upgraded {
  grid-template-columns: minmax(0, 1fr) !important;
}

.bo-envelope-config-panel .bo-envelope-card-actions {
  display: none !important;
}

.bo-envelope-config-panel .bo-env-selector-meta {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.bo-envelope-config-panel .bo-env-selector-count {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--bo-config-muted, #7d7280);
  font-size: 11px;
  white-space: nowrap;
}

.bo-envelope-config-panel .bo-env-selector-count strong {
  max-width: 132px;
  overflow: hidden;
  color: var(--bo-config-text, #302833);
  font-size: 11.5px;
  text-overflow: ellipsis;
}

.bo-envelope-config-panel .bo-env-selector-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.bo-envelope-config-panel .bo-env-selector-tools {
  display: inline-flex !important;
  grid-template-columns: none !important;
  gap: 2px !important;
  padding: 2px !important;
}

.bo-envelope-config-panel .bo-env-selector-tools button,
.bo-envelope-config-panel .bo-env-swiper-navigation button {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
}

.bo-envelope-config-panel .bo-env-swiper-navigation {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.bo-envelope-config-panel .bo-env-swiper-navigation[hidden] {
  display: none !important;
}

.bo-envelope-config-panel .bo-env-swiper-navigation button {
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f3f6fa !important;
  color: var(--bo-config-muted, #7d7280) !important;
}

.bo-envelope-config-panel .bo-env-swiper-navigation button:disabled {
  opacity: .34;
  cursor: default;
}

.bo-envelope-config-panel :is(.bo-env-visual-options, .bo-env-sample-options, .bo-env-seal-options).is-list-view {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  overflow: visible !important;
  touch-action: auto;
}

.bo-envelope-config-panel :is(.bo-env-visual-options, .bo-env-sample-options, .bo-env-seal-options).is-swiper-view {
  display: flex !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 3px 2px 9px !important;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.bo-envelope-config-panel :is(.bo-env-visual-options, .bo-env-sample-options, .bo-env-seal-options).is-pointer-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.bo-envelope-config-panel .is-swiper-view > :is(.bo-env-visual-card, .bo-env-sample-card, button) {
  flex: 0 0 clamp(176px, 82%, 280px) !important;
  width: clamp(176px, 82%, 280px) !important;
  min-width: 176px !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Canonical renderer: both contexts consume the exact same geometry tokens. */
.bo-envelope-renderer {
  --env-ratio: 1.4;
  --env-radius: 0px;
  --env-layout: legacy-basic;
  --env-flap-shape: polygon(0 0, 100% 0, 50% 78%);
  --env-flap-depth: 78%;
  --env-flap-radius: 0px;
  --env-body-shape: polygon(0 0, 50% 42%, 100% 0, 100% 100%, 0 100%);
  --env-seal-x: 50%;
  --env-seal-y: 57%;
  --env-seal-size: 30px;
  --env-copy-align: center;
}

.bo-envelope-renderer[data-render-context="thumbnail"] {
  position: relative;
  width: min(100%, calc(58px * var(--env-ratio)));
  height: 58px;
  display: block;
  overflow: hidden;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--bo-envelope-cover-color-1, #e6cfa7), #715b49 24%);
  border-radius: var(--env-radius);
  background: var(--bo-envelope-paper-fill, #f5edd1);
  box-shadow: 0 7px 14px rgba(70, 49, 38, .1);
  pointer-events: none;
  isolation: isolate;
}

.bo-envelope-renderer[data-render-context="thumbnail"] .bo-envelope-scene {
  position: absolute;
  inset: 0;
}

.bo-envelope-renderer[data-render-context="thumbnail"] .bo-envelope-inner-paper {
  position: absolute;
  inset: 9% 10% 12%;
  z-index: 2;
  border-radius: max(1px, calc(var(--env-radius) * .45));
  background: var(--bo-envelope-paper-fill, #f5edd1);
}

.bo-envelope-renderer[data-render-context="thumbnail"] .bo-envelope-body {
  position: absolute;
  inset: 16% 0 0;
  z-index: 3;
  border-radius: var(--env-radius);
  background: var(--bo-envelope-cover-fill, #e6cfa7);
  clip-path: var(--env-body-shape);
}

.bo-envelope-renderer[data-render-context="thumbnail"] .bo-envelope-flap {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: var(--env-flap-radius);
  background: var(--bo-envelope-tab-fill, #ecdeb8);
  clip-path: var(--env-flap-shape);
}

.bo-envelope-renderer[data-render-context="thumbnail"] .bo-envelope-seal {
  position: absolute;
  left: var(--env-seal-x);
  top: var(--env-seal-y);
  z-index: 6;
  width: clamp(10px, calc(var(--env-seal-size) * .42), 16px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--envelope-heart-color, #c2465d);
  box-shadow: 0 0 0 1.5px rgba(255, 248, 236, .9);
  translate: -50% -50%;
}

.bo-envelope-renderer[data-render-context="thumbnail"][data-renderer-envelope-seal="diamond"] .bo-envelope-seal { border-radius: 2px; rotate: 45deg; }
.bo-envelope-renderer[data-render-context="thumbnail"][data-renderer-envelope-seal="square"] .bo-envelope-seal { border-radius: 3px; }
.bo-envelope-renderer[data-render-context="thumbnail"][data-renderer-envelope-seal="star"] .bo-envelope-seal { border-radius: 0; clip-path: polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 92%,50% 71%,21% 92%,32% 56%,2% 35%,39% 34%); }

.bo-envelope-config-panel :is(.bo-env-visual-card, .bo-env-sample-card) .bo-env-renderer-preview {
  margin-inline: auto;
}

/* Map the canonical contract onto the stable historical canvas structure. */
:is(#template-content, #invitation-preview) #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]),
body > #EnvelopeCustomizer_popup .bo-envelope-preview-mount #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) {
  width: var(--env-width) !important;
  min-width: var(--env-width) !important;
  max-width: var(--env-width) !important;
  height: var(--env-height) !important;
  min-height: var(--env-height) !important;
  max-height: var(--env-height) !important;
}

body.bo-im-responsive-v2.bo-editor-design-editing #template-content #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) {
  width: var(--env-width) !important;
  min-width: var(--env-width) !important;
  max-width: var(--env-width) !important;
  height: var(--env-height) !important;
  min-height: var(--env-height) !important;
  max-height: var(--env-height) !important;
}

:is(#template-content, #invitation-preview) #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) > .envelope,
body > #EnvelopeCustomizer_popup .bo-envelope-preview-mount #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) > .envelope {
  background: transparent !important;
}

:is(#template-content, #invitation-preview) #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) > .envelope::before,
body > #EnvelopeCustomizer_popup .bo-envelope-preview-mount #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) > .envelope::before {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: var(--env-flap-radius) !important;
  background: var(--bo-envelope-tab-fill, var(--envelope-tab)) !important;
  clip-path: var(--env-flap-shape) !important;
  transform: rotateX(0deg) !important;
  transform-origin: 50% 0 !important;
  z-index: 5 !important;
}

:is(#template-content, #invitation-preview) #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]).flap > .envelope::before,
body > #EnvelopeCustomizer_popup .bo-envelope-preview-mount #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]).flap > .envelope::before {
  transform: rotateX(180deg) !important;
  z-index: 0 !important;
}

:is(#template-content, #invitation-preview) #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) > .envelope::after,
body > #EnvelopeCustomizer_popup .bo-envelope-preview-mount #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) > .envelope::after {
  top: 16% !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 84% !important;
  border: 0 !important;
  border-radius: var(--env-radius) !important;
  background: var(--bo-envelope-cover-fill, var(--envelope-cover)) !important;
  clip-path: var(--env-body-shape) !important;
  z-index: 3 !important;
}

:is(#template-content, #invitation-preview) #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) .heart,
body > #EnvelopeCustomizer_popup .bo-envelope-preview-mount #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) .heart {
  left: var(--env-seal-x) !important;
  top: var(--env-seal-y) !important;
  z-index: 7 !important;
}

:is(#template-content, #invitation-preview) #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer[data-envelope-style="modern"] :is(.solapa-text, .base-text),
:is(#template-content, #invitation-preview) #PersonalEnvelope_section #Envelope-wrapper.bo-envelope-renderer[data-envelope-style="minimal"] :is(.solapa-text, .base-text) {
  text-align: var(--env-copy-align) !important;
}

@media (max-width: 767px) {
  .bo-envelope-config-panel .bo-env-selector-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .bo-envelope-config-panel .bo-env-selector-actions {
    margin-left: auto;
  }

  .bo-envelope-config-panel .bo-env-selector-count strong {
    max-width: 118px;
  }

  body > #EnvelopeCustomizer_popup .bo-envelope-preview-mount #Envelope-wrapper.bo-envelope-renderer:not([data-envelope-style="basic"]) {
    max-width: var(--env-width) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bo-envelope-config-panel :is(.bo-env-visual-options, .bo-env-sample-options, .bo-env-seal-options) {
    scroll-behavior: auto !important;
  }
}

._omx_08520788c6{--omx:"a01aa353fa1f"}

/* Â© 2026 JesÃºs Ortega Mateu (DNI 74379222M) â€” Licencia reservada / Propiedad intelectual. Prohibida reproducciÃ³n/copia. Build 2026-08-25_225652 | File 08520788c6 | Sig a01aa353fa1f | assets/css/invitationManager.phase2-b2.css */
/*@omx eyJhbGciOiJITUFDLVNIQTI1NiIsInBheWxvYWQiOnsib3duZXIiOiJKZXPDg8K6cyBPcnRlZ2EgTWF0ZXUiLCJkbmkiOiI3NDM3OTIyMk0iLCJsaWNlbnNlIjoiTGljZW5jaWEgcmVzZXJ2YWRhIC8gUHJvcGllZGFkIGludGVsZWN0dWFsIiwib3JpZ2luIjoiT01fNzQzNzkyMjJNIiwiYnVpbGQiOiIyMDI2LTA4LTI1XzIyNTY1MiIsImZpbGUiOiIwODUyMDc4OGM2IiwicGF0aCI6ImFzc2V0cy9jc3MvaW52aXRhdGlvbk1hbmFnZXIucGhhc2UyLWIyLmNzcyJ9LCJzaWciOiJhMDFhYTM1M2ZhMWYxYTQ4N2IwNWIyZDIxNGU2MWU5MWIxNzkxOTJkNzU4OTQ3MDNjZjQ3MTJhZjk3OTU4YzAxIn0=*/
