/* Opt-in native dialog. Closed dialogs retain the browser's display:none. */
.messenger-choice {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(390px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 30px 24px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfbf8766;
  border-radius: 18px;
  background: #141b1c;
  color: #f2ecdf;
  box-shadow: 0 24px 100px #0009;
  font: 400 15px/1.55 var(--font-body, 'Jost', sans-serif);
  text-align: left;
}
.messenger-choice::backdrop { background: #080d11bf; }
.messenger-choice .messenger-choice-title {
  margin: 0 34px 12px 0;
  padding: 0;
  color: #f2ecdf;
  font: 400 32px/1.08 var(--font-display, 'Cormorant Garamond', Georgia, serif);
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}
.messenger-choice .messenger-choice-note { margin: 0 0 20px; color: #c3c8c4; }
.messenger-choice .messenger-choice-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #dfbf87;
  font: 300 30px/1 sans-serif;
  cursor: pointer;
}
.messenger-choice-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.messenger-choice .messenger-choice-option {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid #dfbf8766;
  border-radius: 9px;
  background: #dfbf8710;
  color: #f2dfb9;
  font: 500 15px/1.4 var(--font-body, 'Jost', sans-serif);
  text-align: center;
  text-decoration: none;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
.messenger-choice .messenger-choice-option:hover,
.messenger-choice .messenger-choice-close:hover { background: #dfbf8720; }
.messenger-choice :is(a, button):focus-visible { outline: 2px solid #dfbf87; outline-offset: 3px; }

/* These alternatives are parsed only when scripting is disabled. */
.messenger-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  color: var(--muted, #b7bdb9);
  font: 400 13px/1.4 var(--font-body, 'Jost', sans-serif);
  text-align: center;
}
.messenger-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 2px;
  color: var(--accent, #dfbf87);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: #dfbf8766;
  text-underline-offset: 4px;
}
.messenger-fallback a:hover { text-decoration-color: currentColor; }
.messenger-fallback a:focus-visible { outline: 2px solid #dfbf87; outline-offset: 3px; }
.consultation-guide-actions > noscript:has(> .messenger-fallback) {
  grid-column: 1 / -1;
  grid-row: 2;
}
.consultation-guide-actions .messenger-fallback { margin-top: -6px; }
.spice-set-info > noscript:has(> .messenger-fallback),
.selection-contact > noscript:has(> .messenger-fallback) { display: block; width: 100%; }

@media (max-width: 360px) {
  .messenger-choice { padding: 28px 18px 20px; }
  .messenger-choice .messenger-choice-title { font-size: 29px; }
}
