/* Kit Phone Input — self-contained widget, Kit green theme (see kit_phone_input.js). */

.kit-phone-wrap { position: relative; display: flex; align-items: stretch; width: 100%; border: 1.5px solid #e5e7eb; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.kit-phone-wrap.focused { border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.kit-phone-wrap.kit-phone-invalid { border-color: #ef4444; }
.kit-phone-wrap.kit-phone-invalid.focused { box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }

.kit-phone-real { display: none !important; }

.kit-phone-country { display: flex; align-items: center; gap: 6px; padding: 0 12px; border: none; border-right: 1px solid #e5e7eb; background: #f6faf7; border-radius: 12px 0 0 12px; cursor: pointer; font-weight: 600; color: #15803d; white-space: nowrap; }
.kit-phone-country:hover { background: #e9f9ef; }
.kit-phone-flag { font-size: 16px; line-height: 1; }
.kit-phone-dial { font-size: 13px; }
.kit-phone-caret { font-size: 10px; color: #9ca3af; }

.kit-phone-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 9px 13px; font-size: 14px; color: #111827; border-radius: 0 12px 12px 0; }
.kit-phone-input::placeholder { color: #9ca3af; }

/* Detached to <body> when open + fixed-positioned, so no wizard/overflow can clip it. */
.kit-phone-dd { display: none; position: fixed; width: 320px; max-width: 92vw; background: #fff; border-radius: 12px; box-shadow: 0 12px 36px rgba(17, 24, 39, .2); border: 1px solid #eef0f4; z-index: 100060; overflow: hidden; }
.kit-phone-dd.kit-phone-dd-open { display: block; }
.kit-phone-search { padding: 10px; border-bottom: 1px solid #f1f3f5; }
.kit-phone-search input { width: 100%; border: 1px solid #e5e7eb; border-radius: 18px; padding: 7px 14px; outline: none; font-size: 13px; }
.kit-phone-search input:focus { border-color: #86efac; }
.kit-phone-list { max-height: 260px; overflow-y: auto; padding: 4px; }
.kit-phone-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 13px; color: #1f2937; border-radius: 8px; }
.kit-phone-item:hover { background: #e9f9ef; }
.kit-phone-item.active { background: #dcfce7; font-weight: 600; }
.kit-phone-cname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit-phone-cdial { color: #6b7280; font-size: 12px; }
.kit-phone-empty { padding: 16px; text-align: center; color: #9ca3af; font-size: 13px; }
