:root {
  --mgdc-teal: #008a80;
  --mgdc-teal-dark: #006d66;
  --mgdc-brown: #342424;
  --mgdc-gold: #d7a948;
  --mgdc-cream: #fffaf1;
}

.mgdc, .mgdc * { box-sizing: border-box; }
.mgdc { position: relative; z-index: 999990; font-family: Gilroy, Montserrat, Arial, sans-serif; color: var(--mgdc-brown); }
.mgdc-lock { overflow: hidden !important; }

.mgdc__launcher {
  position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: calc(max(24px, calc(env(safe-area-inset-bottom) + 16px)) + var(--mgdc-cookie-offset, 0px));
  z-index: 999991; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 88px; min-height: 0; padding: 0;
  color: var(--mgdc-teal-dark); border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font: inherit; cursor: pointer; transition: transform .25s ease, bottom .25s ease;
}
.mgdc__launcher:hover { transform: translateY(-3px); }
.mgdc__launcher:focus-visible { outline: 3px solid rgba(0,138,128,.42); outline-offset: 4px; }
.mgdc__launcher-text { display: block; max-width: 88px; padding: 4px 10px 5px; border: 1px solid rgba(0,138,128,.22); border-radius: 999px; color: var(--mgdc-teal-dark); background: rgba(255,255,255,.94); box-shadow: 0 5px 14px rgba(24,72,68,.12); font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: .015em; white-space: nowrap; }
.mgdc__launcher:hover .mgdc__launcher-text { color: #fff; border-color: var(--mgdc-teal); background: var(--mgdc-teal); }

.mgdc-candle { position: relative; display: block; flex: 0 0 auto; }
.mgdc-candle--launcher { width: 34px; height: 72px; filter: drop-shadow(0 5px 5px rgba(44,33,25,.2)); }
.mgdc-candle--modal { width: 102px; height: 218px; filter: drop-shadow(0 20px 20px rgba(20,12,8,.3)); }
.mgdc-candle__image { position: absolute; z-index: 2; left: 50%; bottom: 0; display: block; width: auto; max-width: none; height: 100%; transform: translateX(-50%); }
.mgdc-candle__aura { position: absolute; z-index: 0; left: 50%; top: -17%; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,204,92,.48), rgba(255,168,34,.12) 50%, transparent 72%); transform: translate(-50%, -20%); animation: mgdc-aura 2.6s ease-in-out infinite; }
.mgdc-candle__flame { position: absolute; z-index: 3; left: 50%; top: -13%; width: 29%; height: 25%; border-radius: 55% 45% 55% 45% / 70% 70% 35% 35%; background: linear-gradient(180deg, #fff7a8 0%, #ffc845 40%, #f07a19 78%, rgba(214,70,0,.75) 100%); box-shadow: 0 0 10px #ffbd45, 0 0 22px rgba(255,166,33,.55); transform-origin: 50% 100%; animation: mgdc-flame 1.25s ease-in-out infinite alternate; }
.mgdc-candle__flame span { position: absolute; left: 34%; top: 38%; width: 35%; height: 48%; border-radius: 50% 50% 45% 45%; background: linear-gradient(#fff, #ffe577 65%, #58b9cb); opacity: .92; }

.mgdc-modal[hidden] { display: none !important; }
.mgdc-modal { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transition: opacity .26s ease; }
.mgdc-modal.is-open { opacity: 1; }
.mgdc-modal__backdrop { position: absolute; inset: 0; background: rgba(27,18,18,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mgdc-modal__dialog { position: relative; width: min(900px, 100%); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid rgba(215,169,72,.3); border-radius: 28px; background: var(--mgdc-cream); box-shadow: 0 35px 90px rgba(16,8,8,.42); transform: translateY(18px) scale(.975); transition: transform .32s cubic-bezier(.2,.75,.25,1); outline: none; }
.mgdc-modal.is-open .mgdc-modal__dialog { transform: translateY(0) scale(1); }
.mgdc-modal__dialog::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at 18% 24%, rgba(255,202,91,.19), transparent 36%), linear-gradient(135deg, rgba(255,255,255,.45), transparent 42%); }
.mgdc-modal__close { position: absolute; z-index: 5; right: 18px; top: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(52,36,36,.12); border-radius: 50%; color: var(--mgdc-brown); background: rgba(255,255,255,.72); cursor: pointer; transition: transform .2s, background .2s; }
.mgdc-modal__close:hover { transform: rotate(6deg); background: #fff; }
.mgdc-modal__close svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mgdc-modal__content { position: relative; z-index: 2; display: grid; grid-template-columns: 34% 66%; min-height: 625px; }
.mgdc-modal__visual { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 27px 0 0 27px; background: linear-gradient(160deg, #302020, #49302b 55%, #6d4731); }
.mgdc-modal__visual::before, .mgdc-modal__visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(215,169,72,.18); }
.mgdc-modal__visual::before { width: 310px; height: 310px; }
.mgdc-modal__visual::after { width: 420px; height: 420px; }
.mgdc-modal__form-wrap { padding: 54px 62px 46px; }
.mgdc-modal__eyebrow { margin: 0 0 8px; color: var(--mgdc-teal); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.mgdc-modal h2 { margin: 0 0 13px; color: var(--mgdc-brown); font-size: clamp(31px, 3.1vw, 43px); line-height: 1.04; letter-spacing: -.035em; }
.mgdc-modal h2 br { display: block !important; }
.mgdc-modal__lead { max-width: 520px; margin: 0 0 25px; color: #786a65; font-size: 14px; line-height: 1.55; }

.mgdc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.mgdc-form__field--amount, .mgdc-form__consent, .mgdc-form__submit, .mgdc-form__status { grid-column: 1 / -1; }
.mgdc-form__field label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 750; }
.mgdc-form input[type="text"], .mgdc-form input[type="email"], .mgdc-form input[type="number"] { width: 100%; height: 48px; padding: 0 15px; border: 1px solid #ded5c9; border-radius: 12px; color: var(--mgdc-brown); background: rgba(255,255,255,.82); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.mgdc-form input:focus { border-color: var(--mgdc-teal); background: #fff; box-shadow: 0 0 0 4px rgba(0,138,128,.1); outline: 0; }
.mgdc-form__amount-wrap { position: relative; }
.mgdc-form__amount-wrap input { padding-right: 46px !important; font-weight: 800 !important; }
.mgdc-form__amount-wrap > span { position: absolute; right: 17px; top: 50%; color: #85746b; font-weight: 800; transform: translateY(-50%); }
.mgdc-form__quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.mgdc-form__quick button { min-width: 70px; padding: 7px 12px; border: 1px solid #ded5c9; border-radius: 20px; color: #65554f; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.mgdc-form__quick button:hover, .mgdc-form__quick button.is-active { border-color: var(--mgdc-teal); color: #fff; background: var(--mgdc-teal); }
.mgdc-form__consent { position: relative; display: flex; align-items: flex-start; gap: 10px; color: #746661; font-size: 12px; line-height: 1.45; cursor: pointer; }
.mgdc-form__consent > input { position: absolute; opacity: 0; pointer-events: none; }
.mgdc-form__check { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid #cfc3b6; border-radius: 6px; background: #fff; transition: .2s; }
.mgdc-form__check svg { width: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: .2s; }
.mgdc-form__consent input:checked + .mgdc-form__check { border-color: var(--mgdc-teal); background: var(--mgdc-teal); }
.mgdc-form__consent input:checked + .mgdc-form__check svg { opacity: 1; transform: scale(1); }
.mgdc-form__consent input:focus-visible + .mgdc-form__check { box-shadow: 0 0 0 4px rgba(0,138,128,.12); }
.mgdc-form__consent a { color: var(--mgdc-teal-dark); text-decoration: underline; text-underline-offset: 2px; }
.mgdc-form__submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--mgdc-teal), #006f68); box-shadow: 0 12px 24px rgba(0,138,128,.2); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.mgdc-form__submit:hover { transform: translateY(-2px); box-shadow: 0 15px 28px rgba(0,138,128,.28); }
.mgdc-form__submit:disabled { opacity: .7; cursor: wait; }
.mgdc-form__submit svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.mgdc-form__submit:hover svg { transform: translateX(3px); }
.mgdc-form__submit.is-loading svg { animation: mgdc-arrow 1s ease-in-out infinite; }
.mgdc-form__status { min-height: 18px; margin-top: -8px; font-size: 12px; text-align: center; }
.mgdc-form__status.is-error { color: #a83838; }
.mgdc-form__status.is-success { color: var(--mgdc-teal-dark); font-weight: 700; }
.mgdc-form__hp { position: fixed !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@keyframes mgdc-flame { 0% { transform: translateX(-50%) rotate(-2deg) scale(.96,1.03); } 45% { transform: translateX(-48%) rotate(2deg) scale(1.04,.96); } 100% { transform: translateX(-52%) rotate(-1deg) scale(.98,1.06); } }
@keyframes mgdc-aura { 0%,100% { opacity: .72; transform: translate(-50%,-20%) scale(.9); } 50% { opacity: 1; transform: translate(-50%,-20%) scale(1.12); } }
@keyframes mgdc-arrow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (max-width: 760px) {
  .mgdc__launcher { right: max(12px, env(safe-area-inset-right)); bottom: calc(max(14px, calc(env(safe-area-inset-bottom) + 8px)) + var(--mgdc-cookie-offset, 0px)); width: 80px; min-height: 0; padding: 0; }
  .mgdc-candle--launcher { width: 31px; height: 66px; }
  .mgdc-modal { align-items: end; padding: 0; }
  .mgdc-modal__dialog { width: 100%; max-width: 100vw; max-height: calc(100dvh - 10px); overflow-x: hidden; border-radius: 24px 24px 0 0; }
  .mgdc-modal__content { display: block; width: 100%; min-width: 0; min-height: 0; }
  .mgdc-modal__visual { height: 116px; border-radius: 23px 23px 0 0; }
  .mgdc-candle--modal { width: 58px; height: 124px; transform: translateY(24px); }
  .mgdc-modal__visual::before { width: 170px; height: 170px; }
  .mgdc-modal__visual::after { display: none; }
  .mgdc-modal__form-wrap { width: 100%; min-width: 0; padding: 27px 20px max(24px, calc(env(safe-area-inset-bottom) + 14px)); }
  .mgdc-modal__close { top: 13px; right: 13px; color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
  .mgdc-modal h2 { font-size: 29px; }
  .mgdc-modal__lead { margin-bottom: 20px; }
  .mgdc-form { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mgdc-form__field { min-width: 0; }
  .mgdc-form__field--amount, .mgdc-form__consent, .mgdc-form__submit, .mgdc-form__status { grid-column: auto; }
}

@media (max-width: 420px) {
  .mgdc__launcher-text { max-width: 80px; padding-inline: 9px; font-size: 12px; }
  .mgdc-modal__form-wrap { padding-left: 16px; padding-right: 16px; }
  .mgdc-form__quick button { min-width: 63px; padding-inline: 9px; }
}

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