/* Self-contained, theme-safe storefront component. */
.mggoev-field,.mggoev-modal{--mggoev-accent:#35356d;font-family:inherit}
.mggoev-field,.mggoev-field *,.mggoev-modal,.mggoev-modal *{box-sizing:border-box}
.mggoev-field{width:100%;clear:both;margin:16px 0 18px;line-height:1.5}
.mggoev-inline{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e4e5eb;background:linear-gradient(135deg,#f9f9fc,#fff);border-radius:13px;min-height:82px}
.mggoev-inline-icon{flex:0 0 38px;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#eeeef7;color:var(--mggoev-accent);font-size:24px;line-height:1}
.mggoev-inline-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.mggoev-inline-text strong{font-size:14px;font-weight:700;color:#25263b}
.mggoev-inline-text strong span{color:#c14257}
.mggoev-inline-help{font-size:12px;color:#77798a}
.mggoev-inline-state{font-size:12px;font-weight:600;color:#676d80}
.mggoev-inline-state:empty{display:none}
.mggoev-inline-state.mggoev-success{color:#177448}
.mggoev-inline-state.mggoev-error{color:#b5263b}
.mggoev-inline-state.mggoev-info{color:#4b5184}
.mggoev-start,.mggoev-confirm,.mggoev-resend,.mggoev-close{font-family:inherit;appearance:none;-webkit-appearance:none;cursor:pointer}
.mggoev-start{flex:0 0 auto;border:none;border-radius:9px;background:var(--mggoev-accent);color:#fff;font-size:12px;font-weight:700;padding:12px 14px;line-height:1.35;min-height:42px;box-shadow:0 4px 10px rgba(45,45,96,.14)}
.mggoev-start:hover,.mggoev-confirm:hover{filter:brightness(1.08)}
.mggoev-start:disabled{opacity:.62;cursor:wait}
.mggoev-verified .mggoev-inline{background:#f6fbf8;border-color:#c6e8d4}
.mggoev-verified .mggoev-inline-icon{background:#ddf3e7;color:#177448}
.mggoev-verified .mggoev-start{background:#198354;cursor:default}
.mggoev-modal[hidden]{display:none!important}
.mggoev-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;color:#25263b;isolation:isolate}
.mggoev-backdrop{position:absolute;inset:0;background:rgba(14,16,30,.59);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.mggoev-dialog{position:relative;z-index:1;width:100%;max-width:438px;max-height:min(92dvh,750px);overflow-y:auto;overscroll-behavior:contain;border-radius:20px;padding:30px 30px 24px;background:#fff;border:1px solid rgba(255,255,255,.7);box-shadow:0 25px 80px rgba(8,12,30,.28);text-align:center;outline:none;animation:mggoev-pop .2s ease-out}
.mggoev-close{position:absolute;right:17px;top:14px;border:0;background:transparent;color:#83869a;font-size:27px;font-weight:300;width:34px;height:34px;line-height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.mggoev-close:hover{background:#f1f1f5;color:#35384b}
.mggoev-envelope{width:62px;height:62px;border-radius:20px;background:linear-gradient(140deg,#efeffb,#e5e8fd);color:var(--mggoev-accent);display:flex;justify-content:center;align-items:center;margin:0 auto 16px}
.mggoev-steps{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#9596a5;margin:0 0 8px}
.mggoev-steps span{margin:0 5px;color:#bfc0cb}
.mggoev-dialog h2{font-size:23px!important;line-height:1.35!important;color:#20233a!important;margin:0 0 10px!important;font-weight:800!important;letter-spacing:.2px}
.mggoev-dialog p#mggoev-dialog-desc{font-size:13px!important;line-height:1.8!important;color:#6f7484!important;margin:0 auto 13px!important;max-width:320px}
.mggoev-email-chip{display:inline-flex;gap:7px;align-items:center;justify-content:center;max-width:100%;min-height:29px;background:#f4f4fa;border:1px solid #e9e9f2;border-radius:16px;padding:4px 12px;color:#4f5475;font-size:12px;word-break:break-all;margin:0 auto 22px}
.mggoev-email-chip span:last-child{overflow-wrap:anywhere}
.mggoev-code-row{display:grid;grid-template-columns:repeat(var(--mggoev-digits, 6),minmax(0,1fr));gap:8px;margin:0 auto 13px;max-width:352px;direction:ltr}
.mggoev-code-row:has(.mggoev-digit:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr));max-width:268px}
.mggoev-digit{display:block;width:100%!important;min-width:0!important;max-width:none!important;height:53px!important;min-height:0!important;margin:0!important;padding:0!important;border:1.5px solid #dedfeb!important;background:#f8f8fb!important;border-radius:11px!important;box-shadow:none!important;outline:none!important;color:#22283e!important;font-family:inherit!important;font-size:24px!important;font-weight:750!important;line-height:52px!important;text-align:center!important;caret-color:var(--mggoev-accent)!important;-webkit-text-fill-color:#22283e!important;transition:border-color .15s,background .15s,box-shadow .15s}
.mggoev-digit:focus{border-color:var(--mggoev-accent)!important;background:#fff!important;box-shadow:0 0 0 3px rgba(69,69,145,.12)!important}
.mggoev-digit[aria-invalid="true"]{border-color:#de7e8b!important;background:#fffafa!important}
.mggoev-feedback{font-size:12px;line-height:1.5;min-height:20px;margin:0 0 6px;color:#58607a;font-weight:600}
.mggoev-feedback.mggoev-error{color:#b52e46}
.mggoev-feedback.mggoev-success{color:#177c4e}
.mggoev-confirm{display:block;width:100%;min-height:49px;line-height:1.35;border:0;background:var(--mggoev-accent);border-radius:11px;color:#fff;font-size:15px;font-weight:750;box-shadow:0 8px 20px rgba(53,53,109,.18);margin:0 0 19px;padding:12px}
.mggoev-confirm:disabled{opacity:.6;cursor:wait}
.mggoev-completed .mggoev-confirm{background:#198354}
.mggoev-resend-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 6px;font-size:12px;color:#858797}
.mggoev-resend{border:0;background:none;color:var(--mggoev-accent);padding:4px 1px;font-size:12px;font-weight:750;text-decoration:none}
.mggoev-resend:not(:disabled):hover{text-decoration:underline}
.mggoev-resend:disabled{opacity:.55;cursor:default}
.mggoev-dialog p.mggoev-dialog-note{font-size:14px!important;font-weight:600!important;line-height:1.8!important;color:#606579!important;margin:15px 0 0!important;padding-top:13px;border-top:1px solid #f0f0f3}
.mggoev-field button:focus-visible,.mggoev-modal button:focus-visible{outline:3px solid #96a2f5;outline-offset:3px}
@keyframes mggoev-pop{from{opacity:.45;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:560px){
  .mggoev-modal{padding:12px;align-items:center}
  .mggoev-dialog{padding:25px 20px 20px;border-radius:18px;max-height:calc(100dvh - 24px)}
  .mggoev-dialog h2{font-size:21px!important}
  .mggoev-code-row{gap:6px}
  .mggoev-digit{height:48px!important;font-size:22px!important;line-height:47px!important;border-radius:9px!important}
  .mggoev-inline{gap:9px;padding:12px;flex-wrap:wrap}
  .mggoev-inline-icon{width:34px;flex-basis:34px;height:34px}
  .mggoev-inline-text{min-width:150px}
  .mggoev-start{min-height:40px;padding:10px 12px}
}
@media(max-width:375px){
  .mggoev-dialog{padding:23px 16px 18px}
  .mggoev-code-row{gap:5px}
  .mggoev-digit{height:46px!important;font-size:20px!important;line-height:45px!important}
  .mggoev-dialog h2{font-size:20px!important}
  .mggoev-inline{align-items:flex-start}
  .mggoev-start{width:100%;margin-top:4px}
}
@media(max-height:610px){.mggoev-dialog{padding-top:18px;padding-bottom:16px}.mggoev-envelope{height:45px;width:45px;margin-bottom:7px}.mggoev-dialog h2{font-size:19px!important}.mggoev-email-chip{margin-bottom:12px}.mggoev-dialog p.mggoev-dialog-note{margin-top:8px!important;padding-top:8px}}
@media(prefers-reduced-motion:reduce){.mggoev-dialog{animation:none}.mggoev-digit{transition:none}}

/* Shown only after WooCommerce has actually created and logged in the member. */
.mggoev-welcome{position:fixed;top:24px;right:24px;z-index:2147480000;display:flex;align-items:center;gap:12px;max-width:min(400px,calc(100vw - 32px));background:#fff;border:1px solid #dae8e0;border-radius:14px;box-shadow:0 12px 40px rgba(13,35,21,.16);padding:15px 19px;color:#273342;font:13px/1.6 Arial,'Microsoft JhengHei',sans-serif;animation:mggoev-welcome-life 7s forwards;pointer-events:none}
.mggoev-welcome-mark{display:flex;width:37px;height:37px;border-radius:50%;align-items:center;justify-content:center;background:#e1f5e8;color:#157d49;font-size:21px;font-weight:800}
.mggoev-welcome>span:last-child{display:flex;flex-direction:column;gap:1px}.mggoev-welcome strong{font-size:14px}
@media(max-width:560px){.mggoev-welcome{top:auto;bottom:18px;right:12px;left:12px;max-width:none}}
@keyframes mggoev-welcome-life{0%{opacity:0;transform:translateY(-10px)}8%{opacity:1;transform:translateY(0)}89%{opacity:1;transform:translateY(0)}100%{opacity:0;visibility:hidden;transform:translateY(-8px)}}
@media(prefers-reduced-motion:reduce){.mggoev-welcome{animation:none}}
