:root {
  --mfwm-ivory: #f7f2e8;
  --mfwm-cream: #eadfce;
  --mfwm-white: #fffdf8;
  --mfwm-blush: #e9cfd0;
  --mfwm-soft-rose: #dcaeb3;
  --mfwm-dusty-rose: #b97c85;
  --mfwm-mauve: #845f66;
  --mfwm-sage: #a9b39f;
  --mfwm-eucalyptus: #657d6d;
  --mfwm-leaf: #4e6758;
  --mfwm-deep-leaf: #30483c;
  --mfwm-champagne: #ceb078;
  --mfwm-peach: #e8cfbb;
  --mfwm-taupe: #7d6d61;
  --mfwm-ink: #2e352f;
}

* { box-sizing: border-box; }

/* Ακύρωση της παλιάς fixed/scaled mobile υλοποίησης του Elementor. */
@media (max-width: 767px) {
  html,
  body {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
  }

  .mf-wedding {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100svh !important;
    margin: 0 !important;
    padding: max(18px, env(safe-area-inset-top)) 12px max(22px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: auto !important;
  }

  .mf-card-wrap {
    width: min(94vw, 450px) !important;
    max-width: 450px !important;
    height: auto !important;
    margin: auto !important;
    transform: none !important;
    transform-origin: center !important;
    will-change: auto !important;
  }
}

/* Παλέτα της ανθοδέσμης: ivory, blush, rose, eucalyptus, sage, champagne. */
.mf-wedding {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  background:
    radial-gradient(circle at 8% 9%, rgba(255,253,248,.98) 0 15%, transparent 34%),
    radial-gradient(circle at 91% 11%, rgba(233,207,208,.68) 0 12%, transparent 37%),
    radial-gradient(circle at 8% 88%, rgba(101,125,109,.34) 0 12%, transparent 36%),
    radial-gradient(circle at 91% 88%, rgba(206,176,120,.42) 0 13%, transparent 35%),
    linear-gradient(145deg, #fbf7ef 0%, #eadfce 25%, #dde5da 48%, #efd7d5 72%, #f3e7dc 100%) !important;
}

.mf-wedding .mf-silk {
  opacity: .42 !important;
  animation: none !important;
  background: linear-gradient(116deg, transparent 24%, rgba(255,255,255,.64) 45%, transparent 67%) !important;
}

.mf-wedding .mf-depth {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(64,88,74,.10)) !important;
}

.mf-wedding .mf-glow {
  animation: none !important;
  filter: blur(65px) !important;
}

.mf-wedding .mf-glow.one { background: rgba(255,253,248,.88) !important; }
.mf-wedding .mf-glow.two { background: rgba(216,165,170,.46) !important; }
.mf-wedding .mf-glow.three { background: rgba(113,132,120,.34) !important; }

.mf-wedding .mf-petal {
  animation-duration: 18s !important;
  background: linear-gradient(145deg, #fffdf8, var(--mfwm-blush) 58%, var(--mfwm-soft-rose)) !important;
  box-shadow: none !important;
}

.mf-wedding .mf-light { display: none !important; }

.mf-wedding .mf-card-wrap {
  padding: 2px !important;
  border-radius: 38px !important;
  background: linear-gradient(135deg, #fffdf8 0%, var(--mfwm-champagne) 22%, var(--mfwm-sage) 48%, var(--mfwm-blush) 72%, #fffdf8 100%) !important;
  background-size: 100% 100% !important;
  box-shadow: 0 26px 70px rgba(70,72,62,.24), 0 0 0 1px rgba(255,255,255,.45) !important;
  animation: none !important;
}

.mf-wedding .mf-card {
  border-radius: 36px !important;
  background:
    linear-gradient(180deg, rgba(31,44,36,.16), rgba(54,36,40,.24)),
    radial-gradient(circle at 12% 8%, rgba(169,179,159,.52) 0 15%, transparent 36%),
    radial-gradient(circle at 88% 15%, rgba(220,174,179,.50) 0 15%, transparent 37%),
    radial-gradient(circle at 14% 87%, rgba(206,176,120,.30) 0 16%, transparent 38%),
    radial-gradient(circle at 87% 85%, rgba(185,124,133,.46) 0 17%, transparent 40%),
    linear-gradient(145deg,
      #3c594b 0%,
      #607766 25%,
      #7d816f 43%,
      #92796f 59%,
      #93666d 79%,
      #574a47 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.40), inset 0 -1px 0 rgba(255,255,255,.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
}

.mf-wedding .mf-card::before {
  border-color: rgba(255,253,248,.34) !important;
}

.mf-wedding .mf-card::after { display: none !important; }

.mf-wedding .mf-small-title {
  color: rgba(255,253,248,.84) !important;
  animation: none !important;
  opacity: 1 !important;
}

.mf-wedding .mf-emblem {
  color: #fffdf8 !important;
  border-color: rgba(255,253,248,.68) !important;
  box-shadow: 0 0 0 8px rgba(169,179,163,.10) !important;
  animation: none !important;
  opacity: 1 !important;
}

.mf-wedding .mf-names,
.mf-wedding .mf-name-main,
.mf-wedding .mf-child-name,
.mf-wedding .mf-message,
.mf-wedding .mf-divider,
.mf-wedding .mf-upload-area {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.mf-wedding .mf-child-name { color: #f8e7d8 !important; text-shadow: 0 3px 16px rgba(29,32,27,.58) !important; }
.mf-wedding .mf-divider span { color: #efd39e !important; }
.mf-wedding .mf-message { color: #fffdf8 !important; text-shadow: 0 3px 18px rgba(27,31,26,.62) !important; }
.mf-wedding .mf-name-main,
.mf-wedding .mf-small-title,
.mf-wedding .mf-invite {
  color: #fffdf8 !important;
  text-shadow: 0 3px 18px rgba(27,31,26,.62) !important;
}

/* Τα πεδία δεν υπάρχουν πλέον στην αρχική. */
.mf-wedding .mf-wish-label,
.mf-wedding #guest-wish,
.mf-wedding #guest-name,
.mf-wedding .mf-lww-name-label,
.mf-wedding .mf-lww-name-input {
  display: none !important;
}

.mf-wedding .mf-button-shell {
  background: linear-gradient(90deg, #fffdf8, var(--mfwm-champagne), var(--mfwm-eucalyptus), var(--mfwm-soft-rose), var(--mfwm-peach), #fffdf8) !important;
  background-size: 100% 100% !important;
  animation: none !important;
  box-shadow: 0 14px 34px rgba(45,70,57,.25) !important;
}

.mf-wedding .mf-button {
  border: 0 !important;
  background: linear-gradient(135deg, #fffdf8 0%, #f2eadf 38%, #e5ece5 68%, #f0dedd 100%) !important;
  color: var(--mfwm-deep-leaf) !important;
  animation: none !important;
  cursor: pointer !important;
  box-shadow: inset 0 0 0 1px rgba(113,132,120,.18) !important;
}

.mf-wedding .mf-button::before { display: none !important; }
.mf-wedding .mf-button::after { border-color: rgba(185,120,128,.22) !important; }
.mf-wedding .mf-button-icon { color: var(--mfwm-champagne) !important; animation: none !important; }
.mf-wedding .mf-button-text small { color: var(--mfwm-dusty-rose) !important; }

@media (max-width: 767px) {
  .mf-wedding .mf-card { padding: 32px 17px 24px !important; }
  .mf-wedding .mf-small-title { margin-bottom: 10px !important; font-size: 8px !important; letter-spacing: 2.2px !important; }
  .mf-wedding .mf-emblem { width: 52px !important; height: 52px !important; margin-bottom: 13px !important; font-size: 22px !important; }
  .mf-wedding .mf-names { font-size: clamp(34px, 10vw, 44px) !important; }
  .mf-wedding .mf-divider { margin: 17px auto !important; }
  .mf-wedding .mf-message { font-size: clamp(15px, 4.1vw, 18px) !important; line-height: 1.5 !important; }
  .mf-wedding .mf-upload-area { margin-top: 18px !important; }
  .mf-wedding .mf-button { min-height: 66px !important; padding: 10px 8px !important; }
  .mf-wedding .mf-button-text { font-size: 11px !important; }
}

html.mfwm-modal-open,
body.mfwm-modal-open { overflow: hidden !important; overscroll-behavior: none !important; }

.mfwm-modal[hidden] { display: none !important; }

.mfwm-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mfwm-viewport-offset-top, 0px);
  z-index: 2147483646;
  width: 100%;
  height: var(--mfwm-visible-height, 100dvh);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 7%, rgba(255,253,248,.98) 0 15%, transparent 37%),
    radial-gradient(circle at 91% 9%, rgba(233,207,208,.58) 0 11%, transparent 38%),
    radial-gradient(circle at 7% 93%, rgba(101,125,109,.28) 0 11%, transparent 37%),
    radial-gradient(circle at 91% 91%, rgba(206,176,120,.38) 0 12%, transparent 36%),
    linear-gradient(145deg, #fbf7ef, #e9dfcf 31%, #dfe7dc 61%, #efd9d6 100%);
  font-family: Arial, sans-serif;
  isolation: isolate;
}

.mfwm-modal-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-padding-top: 16px;
  scroll-padding-bottom: 24px;
}

.mfwm-modal-card {
  width: min(100%, 560px);
  margin: auto;
  padding: 22px;
  border: 1px solid rgba(112,135,122,.30);
  border-radius: 30px;
  background:
    linear-gradient(155deg, rgba(255,253,248,.995), rgba(247,239,228,.995) 47%, rgba(236,224,219,.99) 72%, rgba(229,237,228,.99));
  color: var(--mfwm-ink);
  box-shadow: 0 26px 80px rgba(54,64,57,.24);
}

.mfwm-modal-header {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.mfwm-floral-mark {
  position: relative;
  width: 62px;
  height: 32px;
}

.mfwm-floral-mark span {
  position: absolute;
  top: 8px;
  width: 24px;
  height: 14px;
  border-radius: 80% 20% 75% 25%;
}

.mfwm-floral-mark span:nth-child(1) { left: 2px; background: var(--mfwm-sage); transform: rotate(-28deg); }
.mfwm-floral-mark span:nth-child(2) { left: 19px; top: 2px; background: var(--mfwm-blush); transform: rotate(5deg); }
.mfwm-floral-mark span:nth-child(3) { right: 2px; background: var(--mfwm-eucalyptus); transform: rotate(28deg); }

.mfwm-step-label {
  color: var(--mfwm-mauve);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.mfwm-step-dots { display: flex; gap: 7px; }
.mfwm-step-dots i { width: 22px; height: 4px; border-radius: 99px; background: #ded8ce; }
.mfwm-step-dots i.is-active { background: linear-gradient(90deg, var(--mfwm-eucalyptus), var(--mfwm-dusty-rose)); }

.mfwm-step { display: none; }
.mfwm-step.is-active { display: block; }

.mfwm-kicker {
  margin-bottom: 9px;
  color: var(--mfwm-dusty-rose);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.1px;
  text-align: center;
}

.mfwm-step h2 {
  margin: 0;
  color: var(--mfwm-deep-leaf);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 8.2vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}

.mfwm-step > p {
  max-width: 440px;
  margin: 12px auto 20px;
  color: #6d726d;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.mfwm-step label {
  display: block;
  margin: 0 0 8px;
  color: var(--mfwm-deep-leaf);
  font-size: 14px;
  font-weight: 800;
}

.mfwm-step label span {
  color: var(--mfwm-mauve);
  font-size: 11px;
  font-weight: 600;
}

.mfwm-step textarea,
.mfwm-step input[type="text"] {
  width: 100%;
  min-height: 58px;
  padding: 15px 16px;
  border: 2px solid #d5ddd4;
  border-radius: 17px;
  outline: 0;
  background: #fff;
  color: var(--mfwm-ink);
  font: 500 16px/1.45 Arial, sans-serif;
  box-shadow: inset 0 1px 4px rgba(47,70,57,.04);
  scroll-margin: 20px 0 160px;
}

.mfwm-step textarea { min-height: 138px; resize: vertical; }
.mfwm-step textarea:focus,
.mfwm-step input[type="text"]:focus { border-color: var(--mfwm-eucalyptus); box-shadow: 0 0 0 4px rgba(113,132,120,.12); }

.mfwm-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 18px;
}

.mfwm-actions.one { grid-template-columns: 1fr 1.35fr; }

.mfwm-button {
  min-height: 54px;
  padding: 13px 15px;
  border: 0;
  border-radius: 15px;
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
}

.mfwm-button.primary {
  background: linear-gradient(135deg, #4f6a5d 0%, var(--mfwm-eucalyptus) 42%, #b98a92 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(91,111,100,.22);
}

.mfwm-button.secondary {
  background: linear-gradient(135deg, #806862 0%, #b68991 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(143,98,104,.18);
}

.mfwm-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }

.mfwm-file-input {
  position: fixed !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.mfwm-picker-button {
  width: 100%;
  min-height: 116px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1.5px solid rgba(183,138,146,.48);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,252,246,.98), rgba(247,237,232,.98) 45%, rgba(235,241,235,.98) 100%);
  color: var(--mfwm-deep-leaf);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 12px 30px rgba(140,116,112,.10);
  cursor: pointer;
}

.mfwm-picker-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mfwm-eucalyptus);
  color: #fff;
  font-size: 29px;
  font-weight: 300;
}

.mfwm-picker-button span:last-child { display: grid; gap: 5px; text-align: left; }
.mfwm-picker-button b { font-size: 13px; letter-spacing: .8px; }
.mfwm-picker-button small { color: var(--mfwm-mauve); font-size: 12px; }

.mfwm-selection {
  margin-top: 16px;
  padding: 18px 16px;
  border: 1px solid rgba(181,146,154,.28);
  border-left: 6px solid var(--mfwm-eucalyptus);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(239,244,238,.92), rgba(255,248,244,.96) 52%, rgba(245,236,230,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.mfwm-selection strong,
.mfwm-selection span { display: block; }
.mfwm-selection strong { color: var(--mfwm-deep-leaf); font-size: 16px; }
.mfwm-selection span { margin-top: 4px; color: #697069; font-size: 13px; }

.mfwm-change-files {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mfwm-mauve);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-decoration: underline;
  cursor: pointer;
}

.mfwm-upload-step,
.mfwm-success-step,
.mfwm-error-step { text-align: center; }

.mfwm-upload-emblem,
.mfwm-success-icon,
.mfwm-error-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(228,196,201,.98), rgba(133,154,139,.98) 58%, rgba(241,220,190,.98));
  color: #fff;
  font-family: Georgia, serif;
  font-size: 38px;
  box-shadow: 0 14px 34px rgba(92,103,95,.18);
  border: 1px solid rgba(255,255,255,.45);
}

.mfwm-success-icon { background: linear-gradient(145deg, var(--mfwm-eucalyptus), var(--mfwm-deep-leaf)); }
.mfwm-error-icon { background: linear-gradient(145deg, var(--mfwm-mauve), var(--mfwm-dusty-rose)); }

.mfwm-progress {
  width: 100%;
  height: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e6e0;
  box-shadow: inset 0 2px 5px rgba(47,70,57,.09);
}

.mfwm-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mfwm-eucalyptus), var(--mfwm-soft-rose), var(--mfwm-champagne));
  transition: width .2s linear;
}

.mfwm-progress-row {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #697069;
  font-size: 12px;
}

.mfwm-progress-row b { color: var(--mfwm-deep-leaf); }

.mfwm-upload-wish {
  max-width: 455px;
  margin: 4px auto 7px;
  padding: 0;
  border: 0;
  color: var(--mfwm-deep-leaf);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 7vw, 39px);
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
}

.mfwm-upload-name {
  margin: 0 auto 18px;
  color: var(--mfwm-mauve);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-align: center;
}

.mfwm-upload-wish[hidden],
.mfwm-upload-name[hidden] {
  display: none !important;
}

.mfwm-upload-step.is-active {
  min-height: min(560px, calc(var(--mfwm-visible-height, 100dvh) - 56px));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2px 2px 0;
}

.mfwm-upload-step::before,
.mfwm-success-step::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 4px;
}

.mfwm-upload-step .mfwm-upload-emblem {
  margin-bottom: 12px;
}

.mfwm-upload-step .mfwm-thankyou {
  margin-top: auto;
}

.mfwm-thankyou,
.mfwm-success-wish {
  margin-top: 22px;
  padding: 18px 14px 0;
  border-top: 1px solid #ddd8ce;
  color: var(--mfwm-mauve);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.18;
}





.mfwm-success-step.is-active {
  min-height: min(560px, calc(var(--mfwm-visible-height, 100dvh) - 56px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
}

.mfwm-success-step .mfwm-success-icon {
  margin-bottom: 12px;
}

.mfwm-success-step .mfwm-success-wish {
  order: 0;
  max-width: 440px;
  margin: 4px auto 18px;
  padding: 0;
  border: 0;
  color: var(--mfwm-deep-leaf);
  font-size: clamp(27px, 7vw, 38px);
  line-height: 1.08;
}

.mfwm-success-step h2 {
  margin-top: 0;
  font-size: clamp(29px, 7.5vw, 40px);
}

.mfwm-success-step .mfwm-success-text {
  margin: 10px auto 0;
  color: #677068;
  font-size: 13px;
  line-height: 1.5;
}

.mfwm-success-thanks {
  max-width: 430px;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid #ddd8ce;
  color: #8b6f75;
  font: 600 22px/1.22 "Cormorant Garamond", Georgia, serif;
}

.mfwm-success-step .mfwm-done {
  width: auto;
  min-width: 130px;
  min-height: 38px;
  margin-top: auto;
  padding: 10px 20px;
  border: 1px solid rgba(51,75,62,.32);
  border-radius: 999px;
  background: rgba(255,253,248,.84);
  color: var(--mfwm-deep-leaf);
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: 1.4px;
  box-shadow: none;
  cursor: pointer;
}

.mfwm-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  width: min(92vw, 430px);
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--mfwm-deep-leaf);
  color: #fff;
  font: 700 13px/1.4 Arial, sans-serif;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease;
}

.mfwm-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Όταν το πληκτρολόγιο μικραίνει το viewport, η κάρτα γίνεται φυσικά κυλιόμενη. */
@media (max-height: 650px) {
  .mfwm-modal-page { align-items: flex-start; }
  .mfwm-modal-card { margin: 0 auto; }
}

@media (max-width: 420px) {
  .mfwm-modal-card { padding: 18px 15px; border-radius: 24px; }
  .mfwm-step h2 { font-size: 32px; }
  .mfwm-actions { grid-template-columns: 1fr 1.25fr; }
  .mfwm-button { padding-inline: 10px; font-size: 11px; }
}



.mfwm-modal.is-keyboard-open .mfwm-modal-page {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(124px, calc(env(safe-area-inset-bottom) + 92px));
  scroll-behavior: auto;
}

.mfwm-modal.is-keyboard-open .mfwm-modal-card {
  margin: 0 auto 10px;
  border-radius: 22px;
}

.mfwm-modal.is-keyboard-open .mfwm-modal-header {
  margin-bottom: 10px;
}

.mfwm-modal.is-keyboard-open .mfwm-floral-mark {
  display: none;
}

.mfwm-modal.is-keyboard-open .mfwm-step h2 {
  font-size: clamp(26px, 7vw, 34px);
}

.mfwm-modal.is-keyboard-open .mfwm-step > p {
  margin-top: 7px;
  margin-bottom: 10px;
}

.mfwm-modal.is-keyboard-open .mfwm-step textarea {
  min-height: 105px;
}

.mfwm-modal.is-keyboard-open .mfwm-actions {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom));
  margin-top: 14px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(251,247,239,0) 0%, rgba(251,247,239,.88) 24%, rgba(251,247,239,.98) 100%);
  z-index: 6;
}

.mfwm-modal.mfwm-ios.is-keyboard-open .mfwm-modal-page {
  padding-bottom: max(138px, calc(env(safe-area-inset-bottom) + 104px));
}

/* Cinematic Live Projector — 16:9 / Full HD */
html.mfwm-projector-mode,
body.mfwm-projector-mode {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #17211c !important;
}

.mfwm-projector {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 15%, rgba(235,207,207,.28), transparent 32%),
    radial-gradient(circle at 87% 82%, rgba(197,168,116,.22), transparent 33%),
    radial-gradient(circle at 82% 14%, rgba(105,132,114,.28), transparent 34%),
    linear-gradient(145deg, #19251f, #31483c 42%, #735b5f 72%, #3d332f);
  color: #fffdf8;
  font-family: Arial, sans-serif;
  cursor: default;
}

.mfwm-projector.controls-hidden { cursor: none; }
.mfwm-projector.controls-hidden .mfwm-projector-fullscreen,
.mfwm-projector.controls-hidden .mfwm-projector-counter { opacity: 0; }

.mfwm-projector-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.mfwm-projector-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .32;
  animation: mfwmProjectorOrb 18s ease-in-out infinite alternate;
}

.mfwm-projector-orb.orb-one { width: 30vw; height: 30vw; left: -8vw; top: -8vw; background: #f2d9d9; }
.mfwm-projector-orb.orb-two { width: 32vw; height: 32vw; right: -8vw; top: 8vh; background: #789281; animation-delay: -7s; }
.mfwm-projector-orb.orb-three { width: 28vw; height: 28vw; left: 38vw; bottom: -12vw; background: #d1b174; animation-delay: -12s; }

.mfwm-projector-petal {
  position: absolute;
  width: clamp(14px, 1.4vw, 28px);
  aspect-ratio: .68;
  border-radius: 75% 25% 68% 32%;
  background: linear-gradient(145deg, #fffaf5, #e7c4c8 60%, #b9878f);
  opacity: .42;
  animation: mfwmProjectorPetal 20s linear infinite;
}
.mfwm-projector-petal.petal-one { left: 12%; top: -8%; }
.mfwm-projector-petal.petal-two { left: 63%; top: -12%; animation-delay: -8s; animation-duration: 24s; }
.mfwm-projector-petal.petal-three { left: 88%; top: -10%; animation-delay: -15s; animation-duration: 28s; }

.mfwm-projector-topline {
  position: absolute;
  z-index: 50;
  top: clamp(20px, 2.3vh, 34px);
  left: clamp(26px, 3.2vw, 64px);
  right: clamp(26px, 3.2vw, 64px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,253,248,.76);
  font-size: clamp(9px, .72vw, 13px);
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  pointer-events: none;
}

.mfwm-projector-topline strong {
  margin-left: auto;
  max-width: 48vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,253,248,.9);
  font-weight: 600;
}

.mfwm-projector-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eec9cd;
  box-shadow: 0 0 0 5px rgba(238,201,205,.14), 0 0 16px rgba(238,201,205,.7);
  animation: mfwmProjectorLive 2s ease-in-out infinite;
}

.mfwm-projector-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mfwm-projector-waiting,
.mfwm-projector-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.05s ease, transform 1.25s cubic-bezier(.2,.7,.2,1), filter 1.05s ease;
}

.mfwm-projector-waiting {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 8vh 8vw;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,253,248,.12), transparent 28%),
    linear-gradient(145deg, rgba(32,55,44,.72), rgba(102,70,75,.72));
}
.mfwm-projector-waiting:not(.is-active) { opacity: 0; pointer-events: none; }
.mfwm-projector-waiting.is-leaving,
.mfwm-projector-scene.is-leaving { opacity: 0; transform: scale(1.035); filter: blur(5px); }
.mfwm-projector-scene.is-entering { opacity: 0; transform: scale(.985); filter: blur(5px); }

.mfwm-projector-monogram,
.mfwm-projector-wish-emblem {
  width: clamp(84px, 7.5vw, 138px);
  height: clamp(84px, 7.5vw, 138px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,253,248,.52);
  border-radius: 50%;
  color: #fffdf8;
  font: 400 clamp(38px, 3.6vw, 64px)/1 Georgia, serif;
  box-shadow: 0 0 0 12px rgba(255,255,255,.035), 0 22px 70px rgba(0,0,0,.18);
}

.mfwm-projector-eyebrow,
.mfwm-projector-wish-kicker {
  margin-top: 28px;
  color: #e9c9cc;
  font-size: clamp(11px, .9vw, 17px);
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.mfwm-projector-waiting h1 {
  max-width: 1200px;
  margin: 18px 0 0;
  color: #fffdf8;
  font: 600 clamp(58px, 6.1vw, 118px)/.98 "Cormorant Garamond", "GFS Didot", Georgia, serif;
  text-shadow: 0 12px 55px rgba(0,0,0,.26);
}

.mfwm-projector-waiting p {
  margin: 22px 0 0;
  color: rgba(255,253,248,.74);
  font: italic 500 clamp(24px, 2vw, 38px)/1.2 "Cormorant Garamond", Georgia, serif;
}

.mfwm-projector-media-scene { background: #121713; }
.mfwm-projector-image-backdrop {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(42px) saturate(.92) brightness(.44);
  transform: scale(1.04);
  will-change: transform;
}

.mfwm-projector-image-wrap {
  position: absolute;
  inset: clamp(58px, 6.4vh, 94px) clamp(46px, 5vw, 96px) clamp(44px, 5.2vh, 80px);
  display: grid;
  place-items: center;
  overflow: visible;
  padding: clamp(10px, 1.3vw, 24px);
  will-change: transform;
}

.mfwm-projector-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.05) contrast(1.03) brightness(1.01);
  image-orientation: from-image;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  border-radius: clamp(3px, .35vw, 8px);
  box-shadow: 0 32px 100px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.12);
}

/* Η κύρια φωτογραφία μένει ολόκληρη. Η κινηματογραφική κίνηση γίνεται
   κυρίως στο θολό φόντο, ώστε να μη χάνονται πρόσωπα ή άκρα της εικόνας. */
.mfwm-projector-media-scene.is-portrait .mfwm-projector-image {
  max-width: min(62vw, 760px);
  max-height: 96%;
}

.mfwm-projector-media-scene.is-square .mfwm-projector-image {
  max-width: min(76vw, 1040px);
  max-height: 96%;
}

.mfwm-projector-media-scene.is-landscape .mfwm-projector-image {
  max-width: 98%;
  max-height: 96%;
}

.mfwm-projector-media-scene.ken-one .mfwm-projector-image-wrap { animation: mfwmWrapFloatOne 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-two .mfwm-projector-image-wrap { animation: mfwmWrapFloatTwo 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-three .mfwm-projector-image-wrap { animation: mfwmWrapFloatThree 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-four .mfwm-projector-image-wrap { animation: mfwmWrapFloatFour 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-five .mfwm-projector-image-wrap { animation: mfwmWrapFloatFive 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-six .mfwm-projector-image-wrap { animation: mfwmWrapFloatSix 9s ease-in-out both; }

.mfwm-projector-media-scene.ken-one .mfwm-projector-image { animation: mfwmPhotoOne 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-two .mfwm-projector-image { animation: mfwmPhotoTwo 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-three .mfwm-projector-image { animation: mfwmPhotoThree 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-four .mfwm-projector-image { animation: mfwmPhotoFour 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-five .mfwm-projector-image { animation: mfwmPhotoFive 9s ease-in-out both; }
.mfwm-projector-media-scene.ken-six .mfwm-projector-image { animation: mfwmPhotoSix 9s ease-in-out both; }

.mfwm-projector-media-scene.ken-one .mfwm-projector-image-backdrop { animation: mfwmBackdropOne 9s ease-out both; }
.mfwm-projector-media-scene.ken-two .mfwm-projector-image-backdrop { animation: mfwmBackdropTwo 9s ease-out both; }
.mfwm-projector-media-scene.ken-three .mfwm-projector-image-backdrop { animation: mfwmBackdropThree 9s ease-out both; }
.mfwm-projector-media-scene.ken-four .mfwm-projector-image-backdrop { animation: mfwmBackdropFour 9s ease-out both; }
.mfwm-projector-media-scene.ken-five .mfwm-projector-image-backdrop { animation: mfwmBackdropFive 9s ease-out both; }
.mfwm-projector-media-scene.ken-six .mfwm-projector-image-backdrop { animation: mfwmBackdropSix 9s ease-out both; }

.mfwm-projector-media-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,22,18,.34), transparent 18%, transparent 77%, rgba(15,22,18,.42)),
    radial-gradient(circle at 50% 45%, transparent 42%, rgba(10,17,13,.30) 100%);
}

.mfwm-projector-media-veil::after {
  content: '';
  position: absolute;
  inset: -12%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 48%, transparent 66%);
  mix-blend-mode: screen;
  opacity: .42;
  animation: mfwmLightSweep 10s ease-in-out infinite;
}

.mfwm-projector-video-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(233,195,199,.18), transparent 35%),
    radial-gradient(circle at 80% 75%, rgba(112,139,120,.20), transparent 37%),
    #111712;
}

.mfwm-projector-video {
  position: absolute;
  inset: clamp(52px, 6vh, 88px) clamp(38px, 4.3vw, 82px) clamp(38px, 4.7vh, 72px);
  width: calc(100% - clamp(76px, 8.6vw, 164px));
  height: calc(100% - clamp(90px, 10.7vh, 160px));
  object-fit: contain;
  background: #111;
  box-shadow: 0 32px 100px rgba(0,0,0,.34);
}

.mfwm-projector-corner-mark {
  position: absolute;
  z-index: 10;
  right: clamp(34px, 4vw, 78px);
  bottom: clamp(24px, 3.5vh, 52px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,253,248,.8);
  text-shadow: 0 3px 20px rgba(0,0,0,.6);
}
.mfwm-projector-corner-mark span { font: 400 clamp(24px, 2vw, 38px)/1 Georgia, serif; }
.mfwm-projector-corner-mark small { max-width: 34vw; font-size: clamp(9px, .72vw, 13px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.mfwm-projector-wish-scene {
  display: grid;
  place-items: center;
  padding: clamp(55px, 6vh, 90px) clamp(70px, 7vw, 140px) clamp(48px, 5vh, 78px);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.92), transparent 27%),
    radial-gradient(circle at 91% 13%, rgba(231,194,198,.68), transparent 31%),
    radial-gradient(circle at 8% 91%, rgba(102,129,111,.42), transparent 31%),
    radial-gradient(circle at 91% 88%, rgba(207,177,121,.44), transparent 31%),
    linear-gradient(145deg, #fbf6ed, #eadfd2 37%, #dfe7dc 66%, #efd8d6);
}

.mfwm-projector-wish-frame {
  position: relative;
  width: min(1500px, 88vw);
  min-height: min(760px, 76vh);
  padding: clamp(48px, 5vh, 82px) clamp(70px, 7vw, 130px) clamp(38px, 4vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(80,105,90,.25);
  border-radius: clamp(30px, 3vw, 58px);
  background: rgba(255,253,248,.84);
  color: #30483c;
  text-align: center;
  box-shadow: 0 38px 130px rgba(73,77,69,.22), inset 0 0 0 10px rgba(255,255,255,.24);
  overflow: hidden;
}

.mfwm-projector-floral-corners i {
  position: absolute;
  width: clamp(80px, 9vw, 170px);
  height: clamp(42px, 5vw, 90px);
  opacity: .32;
  background:
    radial-gradient(ellipse at 16% 60%, #657d6d 0 15%, transparent 16%),
    radial-gradient(ellipse at 42% 35%, #a9b39f 0 17%, transparent 18%),
    radial-gradient(ellipse at 67% 60%, #e2bcc1 0 18%, transparent 19%),
    radial-gradient(ellipse at 88% 34%, #ceb078 0 13%, transparent 14%);
}
.mfwm-projector-floral-corners i:nth-child(1) { left: 18px; top: 18px; transform: rotate(-25deg); }
.mfwm-projector-floral-corners i:nth-child(2) { right: 18px; top: 18px; transform: scaleX(-1) rotate(-25deg); }
.mfwm-projector-floral-corners i:nth-child(3) { left: 18px; bottom: 18px; transform: scaleY(-1) rotate(-25deg); }
.mfwm-projector-floral-corners i:nth-child(4) { right: 18px; bottom: 18px; transform: scale(-1) rotate(-25deg); }

.mfwm-projector-wish-emblem {
  width: clamp(68px, 6vw, 108px);
  height: clamp(68px, 6vw, 108px);
  color: #506b5b;
  border-color: rgba(80,107,91,.33);
  box-shadow: 0 0 0 10px rgba(169,179,159,.08);
}

.mfwm-projector-wish-kicker { margin-top: 18px; color: #b67d86; }

.mfwm-projector-wish-text {
  max-width: 1280px;
  margin: clamp(24px, 3vh, 45px) auto 0;
  color: #30483c;
  font: italic 500 clamp(44px, 4.6vw, 88px)/1.08 "GFS Didot", "Cormorant Garamond", Georgia, serif;
  letter-spacing: .005em;
  text-shadow: 0 2px 0 rgba(255,255,255,.5);
  overflow-wrap: anywhere;
}

.mfwm-projector-pen {
  display: inline-block;
  margin-left: .15em;
  color: #b47a83;
  font: 400 .48em/1 Georgia, serif;
  transform: rotate(-18deg) translateY(-.08em);
  animation: mfwmPenBlink .8s steps(1) infinite;
}
.mfwm-projector-pen.is-finished { opacity: 0; animation: none; }

.mfwm-projector-wish-name {
  min-height: 1.4em;
  margin-top: clamp(18px, 2.3vh, 34px);
  color: #8b6168;
  font: 600 clamp(26px, 2.2vw, 43px)/1.15 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .035em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.mfwm-projector-wish-name.is-visible { opacity: 1; transform: translateY(0); }

.mfwm-projector-wish-footer {
  margin-top: auto;
  padding-top: clamp(22px, 2.8vh, 38px);
  color: #81746b;
  font: 600 clamp(17px, 1.3vw, 25px)/1.25 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .025em;
}

.mfwm-projector-counter {
  position: absolute;
  z-index: 55;
  left: clamp(26px, 3.2vw, 64px);
  bottom: clamp(22px, 3vh, 48px);
  color: rgba(255,253,248,.62);
  font-size: clamp(9px, .72vw, 13px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: opacity .35s ease;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.mfwm-projector-fullscreen {
  position: absolute;
  z-index: 60;
  right: clamp(24px, 2.4vw, 46px);
  top: 50%;
  width: clamp(42px, 3.2vw, 58px);
  height: clamp(42px, 3.2vw, 58px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(20,30,24,.42);
  color: #fffdf8;
  font-size: clamp(20px, 1.6vw, 28px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .35s ease, background .25s ease, transform .25s ease;
}
.mfwm-projector-fullscreen:hover { background: rgba(20,30,24,.72); transform: translateY(-50%) scale(1.06); }

@keyframes mfwmProjectorOrb { from { transform: translate3d(-2%, -2%, 0) scale(.96); } to { transform: translate3d(5%, 4%, 0) scale(1.08); } }
@keyframes mfwmProjectorPetal { 0% { transform: translate3d(0,-12vh,0) rotate(0); } 100% { transform: translate3d(12vw,118vh,0) rotate(540deg); } }
@keyframes mfwmProjectorLive { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes mfwmWrapFloatOne { from { transform: translate3d(-.45%, .3%, 0); } to { transform: translate3d(.45%, -.25%, 0); } }
@keyframes mfwmWrapFloatTwo { from { transform: translate3d(.35%, -.3%, 0); } to { transform: translate3d(-.35%, .25%, 0); } }
@keyframes mfwmWrapFloatThree { from { transform: translate3d(0, .45%, 0); } to { transform: translate3d(0, -.35%, 0); } }
@keyframes mfwmWrapFloatFour { from { transform: translate3d(-.3%, -.25%, 0); } to { transform: translate3d(.35%, .25%, 0); } }
@keyframes mfwmWrapFloatFive { from { transform: translate3d(.25%, .25%, 0); } to { transform: translate3d(-.3%, -.2%, 0); } }
@keyframes mfwmWrapFloatSix { from { transform: translate3d(0, -.35%, 0); } to { transform: translate3d(0, .35%, 0); } }
@keyframes mfwmPhotoOne { from { opacity: .88; transform: scale(.978) translate3d(-.3%, .2%, 0); } to { opacity: 1; transform: scale(1.038) translate3d(.32%, -.18%, 0); } }
@keyframes mfwmPhotoTwo { from { opacity: .90; transform: scale(1.04) translate3d(.35%, -.18%, 0); } to { opacity: 1; transform: scale(.986) translate3d(-.28%, .14%, 0); } }
@keyframes mfwmPhotoThree { from { opacity: .88; transform: translate3d(-.55%, .26%, 0) scale(.984); } to { opacity: 1; transform: translate3d(.42%, -.24%, 0) scale(1.034); } }
@keyframes mfwmPhotoFour { from { opacity: .90; transform: translate3d(.48%, -.28%, 0) scale(1.034); } to { opacity: 1; transform: translate3d(-.28%, .22%, 0) scale(.988); } }
@keyframes mfwmPhotoFive { from { opacity: .88; transform: translate3d(0, .48%, 0) scale(.986); } to { opacity: 1; transform: translate3d(0, -.34%, 0) scale(1.036); } }
@keyframes mfwmPhotoSix { from { opacity: .90; transform: translate3d(0, -.34%, 0) scale(1.034); } to { opacity: 1; transform: translate3d(0, .26%, 0) scale(.988); } }
@keyframes mfwmBackdropOne { from { transform: scale(1.06) translate3d(-1.8%,0,0); } to { transform: scale(1.18) translate3d(1.7%,0,0); } }
@keyframes mfwmBackdropTwo { from { transform: scale(1.18) translate3d(1.4%,-1.2%,0); } to { transform: scale(1.08) translate3d(-1.4%,1.2%,0); } }
@keyframes mfwmBackdropThree { from { transform: scale(1.08) translate3d(0,1.4%,0); } to { transform: scale(1.18) translate3d(0,-1.4%,0); } }
@keyframes mfwmBackdropFour { from { transform: scale(1.18) translate3d(-1.4%,-1.2%,0); } to { transform: scale(1.08) translate3d(1.4%,1.2%,0); } }
@keyframes mfwmBackdropFive { from { transform: scale(1.08) translate3d(-1.9%, .8%,0); } to { transform: scale(1.19) translate3d(1.7%, -.8%,0); } }
@keyframes mfwmBackdropSix { from { transform: scale(1.19) translate3d(1.7%, -1%,0); } to { transform: scale(1.08) translate3d(-1.5%, 1%,0); } }
@keyframes mfwmLightSweep { 0% { transform: translate3d(-22%,0,0); opacity: .04; } 20% { opacity: .2; } 52% { opacity: .12; } 100% { transform: translate3d(22%,0,0); opacity: .04; } }
@keyframes mfwmPenBlink { 0%,48% { opacity: 1; } 49%,100% { opacity: .22; } }


@media (min-aspect-ratio: 16/9) {
  .mfwm-projector-image-wrap {
    inset-inline: clamp(54px, 5.7vw, 110px);
  }
}

@media (max-aspect-ratio: 4/3) {
  .mfwm-projector-media-scene.is-portrait .mfwm-projector-image {
    max-width: min(76vw, 820px);
  }
}

@media (max-aspect-ratio: 4/3) {
  .mfwm-projector-wish-frame { width: 92vw; padding-inline: 7vw; }
  .mfwm-projector-wish-text { font-size: clamp(38px, 5.5vw, 72px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.mfwm-upload-step .mfwm-upload-summary {
  margin: 10px auto 14px;
  max-width: 420px;
  color: #6f746e;
  font-size: 14px;
}

.mfwm-upload-step .mfwm-upload-wish {
  margin-top: 6px;
}

.mfwm-upload-step .mfwm-upload-name {
  margin-bottom: 14px;
}

.mfwm-upload-step .mfwm-thankyou {
  background: linear-gradient(145deg, rgba(255,249,244,.85), rgba(244,236,233,.75));
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.mfwm-success-step .mfwm-success-wish {
  background: linear-gradient(145deg, rgba(248,242,237,.84), rgba(239,244,239,.72));
  border-radius: 18px;
  padding: 14px 16px;
}

.mfwm-step[data-step="3"] .mfwm-actions {
  margin-top: 18px;
}

.mfwm-step[data-step="3"] .mfwm-step-label { color: var(--mfwm-dusty-rose); }


/* Final iPhone keyboard stabilization */
.mfwm-modal,
.mfwm-modal-page,
.mfwm-modal-card {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.mfwm-modal-page {
  touch-action: pan-y;
  scrollbar-gutter: stable;
}

.mfwm-modal.mfwm-ios.is-keyboard-open .mfwm-modal-card {
  min-height: calc(var(--mfwm-visible-height, 100dvh) + 150px);
}

.mfwm-modal.mfwm-ios.is-keyboard-open .mfwm-step.is-active {
  padding-bottom: 110px;
}

.mfwm-modal.mfwm-ios.is-keyboard-open textarea,
.mfwm-modal.mfwm-ios.is-keyboard-open input[type="text"] {
  font-size: 16px !important;
  scroll-margin-top: 64px;
  scroll-margin-bottom: 190px;
}

/* Grand cinematic projector treatment */
.mfwm-projector-media-scene {
  isolation: isolate;
}

.mfwm-projector-media-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  background: #0f1712;
  animation: mfwmCinemaReveal 1.35s cubic-bezier(.18,.72,.2,1) both;
}

.mfwm-projector-media-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  opacity: .12;
  background-image:
    repeating-radial-gradient(circle at 15% 30%, rgba(255,255,255,.18) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 75% 65%, rgba(0,0,0,.22) 0 1px, transparent 1px 5px);
  background-size: 6px 6px, 7px 7px;
  mix-blend-mode: soft-light;
  animation: mfwmFilmGrain .75s steps(2) infinite;
}

.mfwm-projector-cinema-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}

.mfwm-projector-cinema-overlay::before {
  content: '';
  position: absolute;
  width: 42vw;
  height: 42vw;
  left: -18vw;
  top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,229,205,.18), rgba(255,219,197,.05) 38%, transparent 68%);
  filter: blur(10px);
  animation: mfwmLensGlow var(--mfwm-scene-duration, 9s) ease-in-out both;
}

.mfwm-projector-cinema-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.26), transparent 8%, transparent 92%, rgba(0,0,0,.26)),
    linear-gradient(180deg, rgba(0,0,0,.22), transparent 13%, transparent 87%, rgba(0,0,0,.28));
  box-shadow: inset 0 0 12vw rgba(0,0,0,.24);
}

.mfwm-projector-image-wrap::before {
  content: '';
  position: absolute;
  inset: clamp(4px, .5vw, 9px);
  z-index: -1;
  border-radius: clamp(9px, .8vw, 18px);
  background: linear-gradient(135deg, rgba(255,255,255,.17), rgba(238,206,211,.10), rgba(129,157,139,.10));
  filter: blur(16px);
  opacity: .7;
  animation: mfwmFrameBreath var(--mfwm-scene-duration, 9s) ease-in-out both;
}

.mfwm-projector-image {
  max-width: 94%;
  max-height: 92%;
  transform-box: border-box;
}

.mfwm-projector-media-scene.is-portrait .mfwm-projector-image {
  max-width: min(58vw, 720px);
  max-height: 92%;
}

.mfwm-projector-media-scene.is-square .mfwm-projector-image {
  max-width: min(72vw, 980px);
  max-height: 92%;
}

.mfwm-projector-media-scene.is-landscape .mfwm-projector-image {
  max-width: 94%;
  max-height: 92%;
}

.mfwm-projector-media-scene .mfwm-projector-image-wrap,
.mfwm-projector-media-scene .mfwm-projector-image,
.mfwm-projector-media-scene .mfwm-projector-image-backdrop {
  animation-duration: var(--mfwm-scene-duration, 9s) !important;
}

@keyframes mfwmCinemaReveal {
  0% { opacity: 1; transform: scale(1.02); }
  58% { opacity: .18; }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes mfwmFilmGrain {
  0% { transform: translate3d(0,0,0); }
  25% { transform: translate3d(-.35%,.25%,0); }
  50% { transform: translate3d(.28%,-.3%,0); }
  75% { transform: translate3d(.18%,.35%,0); }
  100% { transform: translate3d(0,0,0); }
}

@keyframes mfwmLensGlow {
  0% { transform: translate3d(-4vw,-2vh,0) scale(.86); opacity: .08; }
  45% { opacity: .38; }
  100% { transform: translate3d(78vw,54vh,0) scale(1.18); opacity: .08; }
}

@keyframes mfwmFrameBreath {
  0%,100% { opacity: .42; transform: scale(.99); }
  50% { opacity: .82; transform: scale(1.018); }
}
