/* PMCRM OTP — verify screen (front end). Transparent: inherits the host page colour. */
.pmcrm-otp-host .ff-message-success{display:none!important}
.pmcrm-otp-wrap{--pm-line:rgba(127,127,127,.38);--pm-fill:rgba(127,127,127,.10);--pm-track:rgba(127,127,127,.20);--pm-bad:#e5484d;--pm-good:#1f9d55;--pm-cta:#FF4255;
  --pm-line:color-mix(in srgb,currentColor 30%,transparent);--pm-fill:color-mix(in srgb,currentColor 7%,transparent);--pm-track:color-mix(in srgb,currentColor 14%,transparent);
  margin:8px 0 0;padding:0;color:inherit;font-family:inherit;background:transparent!important;border:0!important;box-shadow:none!important}
.pmcrm-otp-wrap .pmcrm-otp-card{width:100%;max-width:420px;margin:0 auto;padding:6px 0 2px;box-sizing:border-box;text-align:center;color:inherit;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.pmcrm-otp-wrap .pmcrm-otp-title{margin:0 0 6px!important;padding:0!important;color:inherit!important;font-family:inherit!important;font-size:20px!important;font-weight:700!important;line-height:1.3!important;letter-spacing:normal!important;text-transform:none!important;border:0!important}
.pmcrm-otp-wrap .pmcrm-otp-sub{margin:0 0 22px!important;padding:0!important;color:inherit!important;opacity:.75;font-size:14px;line-height:1.5}

/* Code cells */
.pmcrm-otp-wrap .pmcrm-otp-cells{display:flex;justify-content:center;gap:10px;margin:0 0 18px}
.pmcrm-otp-wrap .pmcrm-otp-cell{flex:1 1 0;min-width:0;max-width:54px;height:58px;margin:0!important;padding:0!important;box-sizing:border-box;
  text-align:center;font-family:inherit;font-size:24px;font-weight:700;line-height:1;color:inherit!important;
  background:var(--pm-fill)!important;border:1.5px solid var(--pm-line)!important;border-radius:12px!important;box-shadow:none!important;outline:none!important;
  -webkit-appearance:none;appearance:none;-moz-appearance:textfield;transition:border-color .15s,box-shadow .15s,background .15s}
.pmcrm-otp-wrap .pmcrm-otp-cell.filled{border-color:currentColor!important}
.pmcrm-otp-wrap .pmcrm-otp-cell:focus,.pmcrm-otp-wrap .pmcrm-otp-cell:focus-visible{border-color:currentColor!important;box-shadow:0 0 0 3px var(--pm-track)!important;outline:none!important}
.pmcrm-otp-wrap .pmcrm-otp-cell:disabled{opacity:.5;cursor:not-allowed}
.pmcrm-otp-wrap.pmcrm-bad .pmcrm-otp-cell{border-color:var(--pm-bad)!important}
.pmcrm-otp-wrap.pmcrm-good .pmcrm-otp-cell{border-color:var(--pm-good)!important}
.pmcrm-otp-wrap .pmcrm-shake{animation:pmcrm-shake .4s ease}
@keyframes pmcrm-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}

/* Countdown */
.pmcrm-otp-wrap .pmcrm-otp-meta{max-width:330px;margin:0 auto}
.pmcrm-otp-wrap .pmcrm-otp-progress{height:3px;border-radius:3px;background:var(--pm-track);overflow:hidden;margin:0 0 8px}
.pmcrm-otp-wrap .pmcrm-otp-progress span{display:block;height:100%;width:100%;background:currentColor;opacity:.6;border-radius:3px;transition:width 1s linear}
.pmcrm-otp-wrap .pmcrm-otp-timer{margin:0!important;padding:0!important;color:inherit;font-size:13px;font-weight:600;opacity:.75}
.pmcrm-otp-wrap .pmcrm-otp-timer.expired{color:var(--pm-bad)!important;opacity:1}

/* Actions — scoped hard so theme button styles (uppercase, spacing) cannot leak in */
.pmcrm-otp-wrap .pmcrm-otp-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin:20px auto 0;max-width:330px}
.pmcrm-otp-wrap .pmcrm-otp-verify,.pmcrm-otp-wrap .pmcrm-otp-resend{all:unset;box-sizing:border-box;cursor:pointer;font-family:inherit;text-align:center;text-transform:none!important;letter-spacing:normal!important}
.pmcrm-otp-wrap .pmcrm-otp-verify{display:block;width:100%;padding:14px 18px;border-radius:10px;background:var(--pm-cta);color:#fff!important;font-size:15px;font-weight:700;line-height:1.2;transition:filter .15s,opacity .15s}
.pmcrm-otp-wrap .pmcrm-otp-verify:hover{filter:brightness(.93)}
.pmcrm-otp-wrap .pmcrm-otp-resend{padding:4px 2px;color:inherit!important;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.pmcrm-otp-wrap .pmcrm-otp-verify:disabled,.pmcrm-otp-wrap .pmcrm-otp-resend:disabled{cursor:not-allowed;opacity:.45}
.pmcrm-otp-wrap .pmcrm-otp-resend:disabled{text-decoration:none}
.pmcrm-otp-wrap .pmcrm-otp-verify:focus-visible,.pmcrm-otp-wrap .pmcrm-otp-resend:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Status message */
.pmcrm-otp-wrap .pmcrm-otp-msg{display:flex;align-items:center;justify-content:center;gap:7px;min-height:20px;margin:14px 0 0!important;padding:0!important;font-size:14px;font-weight:600;line-height:1.4}
.pmcrm-otp-wrap .pmcrm-otp-msg.info{opacity:.75}
.pmcrm-otp-wrap .pmcrm-otp-msg.err{color:var(--pm-bad)!important}
.pmcrm-otp-wrap .pmcrm-otp-msg.ok{color:var(--pm-good)!important}
.pmcrm-otp-wrap .pmcrm-otp-msg.err:before,.pmcrm-otp-wrap .pmcrm-otp-msg.ok:before{flex:0 0 auto;width:17px;height:17px;border-radius:50%;color:#fff;font-size:11px;font-weight:800;line-height:17px;text-align:center}
.pmcrm-otp-wrap .pmcrm-otp-msg.err:before{content:"!";background:var(--pm-bad)}
.pmcrm-otp-wrap .pmcrm-otp-msg.ok:before{content:"\2713";background:var(--pm-good)}

/* Success state */
.pmcrm-otp-wrap .pmcrm-otp-done{display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 0}
.pmcrm-otp-wrap .pmcrm-check{width:72px;height:72px;display:block;margin:0 auto 16px}
.pmcrm-otp-wrap .pmcrm-check circle{fill:none;stroke:var(--pm-good);stroke-width:2;stroke-dasharray:151;stroke-dashoffset:151;animation:pmcrm-c .5s ease forwards}
.pmcrm-otp-wrap .pmcrm-check path{fill:none;stroke:var(--pm-good);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:34;stroke-dashoffset:34;animation:pmcrm-p .35s .45s ease forwards}
@keyframes pmcrm-c{to{stroke-dashoffset:0}}
@keyframes pmcrm-p{to{stroke-dashoffset:0}}
.pmcrm-otp-wrap .pmcrm-done-msg{margin:0!important;color:inherit;font-size:17px;line-height:1.5}

/* Narrow containers (e.g. the 400px homepage popup) and phones */
.pmcrm-otp-wrap.pmcrm-narrow .pmcrm-otp-title{font-size:18px!important}
.pmcrm-otp-wrap.pmcrm-narrow .pmcrm-otp-sub{font-size:13px;margin-bottom:18px!important}
.pmcrm-otp-wrap.pmcrm-narrow .pmcrm-otp-cells{gap:7px}
.pmcrm-otp-wrap.pmcrm-narrow .pmcrm-otp-cell{height:50px;font-size:20px;border-radius:10px!important}
.pmcrm-otp-wrap.pmcrm-narrow[data-len="4"] .pmcrm-otp-cell{height:54px;font-size:22px}
.pmcrm-otp-wrap.pmcrm-narrow .pmcrm-check{width:60px;height:60px;margin-bottom:12px}
.pmcrm-otp-wrap.pmcrm-narrow .pmcrm-done-msg{font-size:15px}
@media(max-width:380px){.pmcrm-otp-wrap .pmcrm-otp-cells{gap:6px}.pmcrm-otp-wrap .pmcrm-otp-cell{height:46px;font-size:19px}}
@media(prefers-reduced-motion:reduce){.pmcrm-otp-wrap .pmcrm-shake{animation:none}.pmcrm-otp-wrap .pmcrm-otp-progress span{transition:none}.pmcrm-otp-wrap .pmcrm-check circle,.pmcrm-otp-wrap .pmcrm-check path{animation:none;stroke-dashoffset:0}}

/* Hide the homepage popup intro once the OTP step begins (plugin adds the class). */
#p4-wrap.pmcrm-otp-active #p4-intro{display:none!important}
