/* Zorem Live Demo: button + popup. */
.zld-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.zld-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 0 28px; min-height: 56px;
	border: 2px solid #c7d2fe; border-radius: .75rem;
	background: #fff; color: #4f46e5;
	font: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1;
	cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.zld-btn:hover { background: #eef2ff; border-color: #818cf8; transform: translateY(-2px); }
.zld-btn:focus { outline: none; }
.zld-btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
@media (max-width: 639px) { .zld-row > * { width: 100%; min-height: 60px; } }

html.zld-lock { overflow: hidden; }
.zld-overlay {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; background: rgba(15, 23, 42, .6);
	animation: zld-fade .15s ease;
}
.zld-overlay[hidden] { display: none !important; }
@keyframes zld-fade { from { opacity: 0; } to { opacity: 1; } }
.zld-modal {
	position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
	padding: 28px 28px 24px; border-radius: 16px; background: #fff;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px; line-height: 1.55; color: #0f172a; text-align: left;
	-webkit-font-smoothing: antialiased;
}
.zld-modal *, .zld-modal *::before, .zld-modal *::after { box-sizing: border-box; }
.zld-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: #64748b; cursor: pointer; padding: 4px; }
.zld-close:hover { color: #0f172a; }
.zld-logo { display: block; height: 20px; width: auto; margin: 0 0 22px; }
.zld-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 220px; color: #64748b; font-size: 14px; }
.zld-loading[hidden] { display: none; }
.zld-spin { width: 28px; height: 28px; border: 3px solid #e0e7ff; border-top-color: #4f46e5; border-radius: 50%; animation: zld-spin .8s linear infinite; }
@keyframes zld-spin { to { transform: rotate(360deg); } }
.zld-modal section[hidden] { display: none; }
.zld-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.zld-modal h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: #0f172a; }
.zld-sub { margin: 0 0 22px; color: #64748b; font-size: 14.5px; }
.zld-form { display: grid; gap: 14px; margin: 0; }
.zld-form label { display: grid; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: #0f172a; }
.zld-form input[type="text"],
.zld-form input[type="email"] {
	width: 100%; height: 46px; margin: 0; padding: 0 14px;
	border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
	font: inherit; font-size: 15px; color: #0f172a; box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.zld-form input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.zld-form .zld-code { height: 58px; text-align: center; font-size: 28px; font-weight: 800; letter-spacing: 12px; font-variant-numeric: tabular-nums; }
.zld-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.zld-captcha:empty { display: none; }
.zld-captcha { min-height: 65px; }
.zld-submit {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; height: 48px; padding: 0 20px; margin: 0;
	border: 0; border-radius: 10px; background: #4f46e5; color: #fff !important;
	font: inherit; font-size: 15px; font-weight: 700; text-decoration: none !important;
	cursor: pointer; box-shadow: 0 6px 16px rgba(79, 70, 229, .3);
	transition: background .15s ease, transform .15s ease;
}
.zld-submit:hover { background: #4338ca; transform: translateY(-1px); }
.zld-submit:focus { outline: none; }
.zld-submit:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px; }
.zld-submit[disabled] { opacity: .65; cursor: wait; transform: none; }
.zld-submit.is-busy::after { content: ""; width: 16px; height: 16px; margin-left: 10px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: zld-spin .7s linear infinite; }
.zld-note { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: #64748b; }
.zld-link { background: none; border: 0; padding: 0; font: inherit; color: #4f46e5; font-weight: 600; cursor: pointer; }
.zld-link:hover { text-decoration: underline; }
.zld-msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13.5px; }
.zld-msg[hidden] { display: none; }
.zld-msg.is-good { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.zld-done { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #dcfce7; color: #16a34a; font-size: 28px; font-weight: 800; margin: 0 0 16px; }

/* ---------- Verify step: same design as the CEV verification popup ---------- */
.zld-modal.is-otp { text-align: center; }
.zld-modal.is-otp .zld-logo { display: none; }
.zld-otp { text-align: center; }
.zld-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0 0 16px; border-radius: 12px; background: #4f46e5; color: #fff; }
.zld-mark svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zld-otp h2 { font-size: 20px; font-weight: 650; letter-spacing: -.018em; margin: 0 0 10px; color: #0f172a; }
.zld-desc { margin: 0 0 18px; color: #64748b; font-size: 13.5px; line-height: 1.5; }
.zld-desc strong { color: #0f172a; font-weight: 600; background: #f1f5f9; border-radius: 5px; box-shadow: 0 0 0 3px #f1f5f9; word-break: break-word; }
.zld-otp form { margin: 0; }
.zld-otp-row { display: flex; justify-content: center; gap: 8px; margin: 0 0 4px; direction: ltr; }
.zld-modal .zld-otp-input {
	width: 52px !important; height: 60px !important; margin: 0 !important; padding: 0 !important;
	font: inherit; font-size: 22px !important; font-weight: 650; font-variant-numeric: tabular-nums; text-align: center; color: #0f172a;
	border: 1.5px solid #d8dee9 !important; border-radius: 9px !important; outline: none;
	background: #f4f6fa !important; box-shadow: none !important; box-sizing: border-box !important;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
	-moz-appearance: textfield;
}
.zld-modal .zld-otp-input:not(:placeholder-shown) { background: #fff !important; border-color: #4f46e5 !important; }
.zld-modal .zld-otp-input:focus { background: #fff !important; border-color: #4f46e5 !important; box-shadow: 0 0 0 4px rgba(79, 70, 229, .16) !important; }
.zld-otp-row.is-error .zld-otp-input { border-color: #dc2626 !important; animation: zld-shake .4s cubic-bezier(.16, 1, .3, 1); }
.zld-otp-row.is-success .zld-otp-input { border-color: #059669 !important; }
@keyframes zld-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.zld-otp-msg { margin: 10px 0 0; color: #dc2626; font-size: 13px; line-height: 1.45; font-weight: 500; }
.zld-otp-msg[hidden] { display: none; }
.zld-otp-msg.is-good { color: #059669; }
.zld-otp-btn { margin-top: 16px !important; }
.zld-otp-foot { display: grid; gap: 6px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(15, 23, 42, .08); color: #64748b; font-size: 12.5px; line-height: 1.5; }
.zld-otp-foot [hidden] { display: none; }
.zld-otp-foot .zld-link { font-size: 12.5px; }
@media (max-width: 400px) { .zld-modal .zld-otp-input { width: 42px !important; height: 52px !important; font-size: 20px !important; } .zld-otp-row { gap: 6px; } }

/* The theme styles images globally; keep the popup logo at its own size. */
.zld-modal img.zld-logo { display: block !important; width: auto !important; height: 20px !important; max-width: 110px !important; max-height: 20px !important; margin: 0 0 22px !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
