.wwd-open { overflow: hidden !important; max-width: 100vw !important; }
.wwd-popup, .wwd-popup * { box-sizing: border-box; }
.wwd-popup { position: fixed; inset: 0; z-index: 999999; width: 100%; max-width: 100vw; overflow: hidden; display: grid; place-items: center; padding: 20px; direction: rtl; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; font-family: inherit; }
.wwd-popup[hidden] { display: none !important; }
.wwd-popup.is-visible { opacity: 1; visibility: visible; }
.wwd-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .68); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.wwd-dialog { --wwd-primary: #ae2775; position: relative; width: min(100%, 530px); min-width: 0; max-width: 100%; max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 42px 42px 36px; border: 1px solid rgba(255,255,255,.65); border-radius: 28px; background: linear-gradient(145deg, #fff 0%, #fff8fc 100%); color: #182033; box-shadow: 0 32px 90px rgba(15,23,42,.35); transform: translateY(24px) scale(.97); transition: transform .32s cubic-bezier(.2,.8,.2,1); text-align: right; isolation: isolate; }
.wwd-popup.is-visible .wwd-dialog { transform: translateY(0) scale(1); }
.wwd-close { position: absolute; z-index: 3; top: 14px; left: 14px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f1f3f7; color: #5b6475; font: 28px/1 Arial,sans-serif; cursor: pointer; transition: .2s ease; }
.wwd-close:hover { color: #fff; background: #ef4444; transform: rotate(6deg); }
.wwd-decoration { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.wwd-decoration-one { width: 190px; height: 190px; top: -110px; right: -70px; background: color-mix(in srgb, var(--wwd-primary) 22%, transparent); }
.wwd-decoration-two { width: 135px; height: 135px; bottom: -85px; left: -45px; background: color-mix(in srgb, var(--wwd-primary) 14%, transparent); }
.wwd-badge { display: inline-flex; padding: 7px 13px; margin: 0 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--wwd-primary) 12%, white); color: var(--wwd-primary); font-size: 13px; font-weight: 800; }
.wwd-dialog h2 { margin: 0 0 10px; color: #151b2b; font-size: clamp(24px, 4vw, 32px); line-height: 1.4; font-weight: 900; letter-spacing: -.4px; }
.wwd-description { margin: 0 0 24px; color: #667085; font-size: 15px; line-height: 1.9; }
.wwd-form { display: grid; gap: 14px; }
.wwd-name-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wwd-form label:not(.wwd-consent) { display: grid; min-width: 0; gap: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.wwd-form input[type="text"], .wwd-form input[type="tel"] { width: 100%; height: 49px; margin: 0; padding: 0 14px; border: 1px solid #d7dce5; border-radius: 13px; outline: none; background: rgba(255,255,255,.92); color: #101828; font: inherit; font-size: 15px; box-shadow: none; transition: border .2s ease, box-shadow .2s ease; }
.wwd-form input[type="tel"] { direction: ltr; text-align: left; }
.wwd-form input:focus { border-color: var(--wwd-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wwd-primary) 12%, transparent); }
.wwd-consent { display: flex; gap: 9px; align-items: flex-start; color: #667085; font-size: 12px; line-height: 1.7; cursor: pointer; }
.wwd-consent input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--wwd-primary); flex: 0 0 auto; }
.wwd-submit { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 22px; border: 0; border-radius: 14px; background: var(--wwd-primary); color: #fff; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; box-shadow: 0 12px 28px color-mix(in srgb, var(--wwd-primary) 28%, transparent); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.wwd-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 34px color-mix(in srgb, var(--wwd-primary) 36%, transparent); }
.wwd-submit:disabled { opacity: .75; cursor: wait; }
.wwd-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: wwd-spin .7s linear infinite; }
.wwd-submit.is-loading .wwd-spinner { display: block; }
.wwd-message { min-height: 0; color: #475467; font-size: 13px; line-height: 1.7; text-align: center; }
.wwd-message:empty { display: none; }
.wwd-message.is-error { display: block; padding: 10px 12px; border-radius: 10px; background: #fff0f0; color: #b42318; }
.wwd-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.wwd-success { padding: 12px 0 4px; text-align: center; animation: wwd-success .45s ease both; }
.wwd-success[hidden] { display: none !important; }
.wwd-check { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: #ecfdf3; color: #039855; font-size: 34px; font-weight: 900; box-shadow: 0 0 0 10px #f6fef9; }
.wwd-success h3 { margin: 0 0 8px; color: #151b2b; font-size: 24px; font-weight: 900; }
.wwd-success p { margin: 0 0 20px; color: #667085; font-size: 14px; line-height: 1.8; }
.wwd-code-wrap { display: flex; gap: 8px; align-items: stretch; padding: 7px; border: 1px dashed color-mix(in srgb, var(--wwd-primary) 42%, #d7dce5); border-radius: 15px; background: color-mix(in srgb, var(--wwd-primary) 6%, white); direction: ltr; }
.wwd-code { min-width: 0; flex: 1; display: grid; place-items: center; padding: 10px; color: #111827; font: 800 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; overflow-wrap: anywhere; }
.wwd-copy { flex: 0 0 auto; padding: 10px 15px; border: 0; border-radius: 10px; background: var(--wwd-primary); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.wwd-copy.copied { background: #039855; }
.wwd-expiry { margin: 12px 0 0 !important; font-size: 12px !important; }
@keyframes wwd-spin { to { transform: rotate(360deg); } }
@keyframes wwd-success { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .wwd-popup { padding: 12px; align-items: end; }
  .wwd-dialog { width: 100%; max-height: calc(100vh - 12px); padding: 36px 20px 24px; border-radius: 24px 24px 18px 18px; }
  .wwd-name-row { grid-template-columns: 1fr; }
  .wwd-dialog h2 { font-size: 24px; }
  .wwd-description { margin-bottom: 18px; }
  .wwd-close { top: 10px; left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .wwd-popup, .wwd-dialog, .wwd-success, .wwd-spinner { animation: none !important; transition: none !important; } }
