/* WB Mail — Base front-end styles */
.wb-form-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.wb-form-wrap *, .wb-form-wrap *::before, .wb-form-wrap *::after { box-sizing: border-box; }

/* Override theme select wrappers */
.wb-form-wrap .wb-field select,
.wb-form-wrap .wb-field .select-wrap select,
.wb-form-wrap .select-wrap select {
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background-image: none !important;
}

/* Kill theme wrappers like .select-wrap::after arrows */
.wb-form-wrap .select-wrap::before,
.wb-form-wrap .select-wrap::after,
.wb-form-wrap .wb-field .select-wrap::before,
.wb-form-wrap .wb-field .select-wrap::after {
    display: none !important;
    content: none !important;
}

/* Fix select option display */
.wb-form-wrap .wb-field select option {
    padding: 8px 12px;
    line-height: 1.4;
}
.wb-field { display: flex; flex-direction: column; }

.wb-captcha { margin: 14px 0 4px; }
.wb-captcha-box { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(0,0,0,.18); border-radius: 8px; background: rgba(255,255,255,.7); cursor: pointer; font-size: 14px; line-height: 1.2; user-select: none; max-width: 100%; }
.wb-captcha-box input.wb-captcha-check { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wb-captcha-mark { width: 22px; height: 22px; flex: 0 0 22px; border: 2px solid rgba(0,0,0,.35); border-radius: 5px; position: relative; transition: border-color .2s, background .2s; }
.wb-captcha[data-state="solving"] .wb-captcha-mark { border-color: transparent; border-top-color: rgba(0,0,0,.45); border-right-color: rgba(0,0,0,.45); border-radius: 50%; animation: wb-spin .7s linear infinite; }
.wb-captcha[data-state="ok"] .wb-captcha-mark { border-color: #059669; background: #059669; }
.wb-captcha[data-state="ok"] .wb-captcha-mark::after { content: ''; position: absolute; left: 6px; top: 1px; width: 5px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.wb-captcha[data-state="ok"] .wb-captcha-text { color: #047857; }
.wb-captcha[data-state="failed"] .wb-captcha-text { color: #92400e; font-size: 12px; }
.wb-captcha .wb-turnstile { min-height: 65px; }
@keyframes wb-spin { to { transform: rotate(360deg); } }
