/* =========================================================================
   Voxel SMS Login — web widget. Flat, neutral, matches the Voxel login popup:
   plain overlay, one soft shadow, hairline borders, no decorative flourishes.
   ========================================================================= */

.vsl-connect { margin-top: 10px; }

.vsl-phone-btn {
	display: flex; align-items: center; justify-content: center; gap: 9px;
	width: 100%;
}
.vsl-phone-btn .vsl-ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ------------------------------- overlay -------------------------------- */

.vsl-overlay {
	position: fixed; inset: 0; z-index: 100000;
	display: none; align-items: center; justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .72);
}
.vsl-overlay.vsl-open { display: flex; }

/* --------------------------------- box ---------------------------------- */

.vsl-box {
	position: relative;
	width: 100%; max-width: 400px;
	background: #fff; color: #1c1d20;
	border: 1px solid #e6e7ea;
	border-radius: 12px;
	padding: 28px 26px 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .14);
	font-family: inherit;
}
/* Loading state: block interaction only. Do NOT drop the box opacity — that
   made the login form behind the modal bleed through. The button spinner is
   the loading signal; the box stays fully opaque. */
.vsl-box.vsl-busy { pointer-events: none; }

.vsl-close {
	position: absolute; top: 14px; right: 14px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; padding: 0;
	border: 0; border-radius: 8px; cursor: pointer;
	background: transparent; color: #9c9fa6;
	transition: background .15s, color .15s;
}
.vsl-close:hover { background: #f3f3f5; color: #1c1d20; }
.vsl-close svg { display: block; }

/* -------------------------------- header -------------------------------- */

.vsl-head { margin: 0 0 20px; padding-right: 28px; }
.vsl-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 700; color: #1c1d20; }
.vsl-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: #6b6f7a; max-width: 36ch; }

/* -------------------------------- error --------------------------------- */

.vsl-err {
	color: #b32d2e; font-size: 13px; line-height: 1.4;
	margin: -4px 0 14px; padding: 9px 12px;
	background: #fdf2f2; border: 1px solid #f3d6d6; border-radius: 8px;
}
.vsl-err:empty { display: none; }

/* --------------------------- inputs & buttons --------------------------- */

.vsl-box .vsl-code {
	width: 100%; box-sizing: border-box;
	padding: 12px 14px; margin: 0 0 14px;
	border: 1px solid #d4d6dd; border-radius: 8px;
	background: #fff; color: #1c1d20;
	font-family: inherit;
	font-size: 18px; font-weight: 600; letter-spacing: .3em; text-align: center;
	font-variant-numeric: tabular-nums;
	outline: none; transition: border-color .15s, box-shadow .15s;
}
.vsl-box .vsl-code::placeholder { letter-spacing: normal; font-weight: 400; color: #b6bac2; }
.vsl-box .vsl-code:focus { border-color: #1c1d20; box-shadow: 0 0 0 3px rgba(28,29,32,.08); }

.vsl-btn {
	width: 100%; padding: 12px 16px;
	border: 0; border-radius: 8px; cursor: pointer;
	background: #1c1d20; color: #fff;
	font-size: 15px; font-weight: 600; font-family: inherit;
	transition: background .15s;
}
.vsl-btn:hover { background: #000; }

/* Loading: hide the label, spin a ring centred in the button, block clicks. */
.vsl-btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.vsl-btn.is-loading::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 18px; height: 18px; margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
	border-radius: 50%; animation: vsl-spin .6s linear infinite;
}
@keyframes vsl-spin { to { transform: rotate(360deg); } }

.vsl-sent { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: #6b6f7a; }
.vsl-sent strong { color: #1c1d20; font-weight: 600; }
.vsl-change {
	display: inline-block; margin-top: 14px;
	font-size: 13px; color: #6b6f7a; text-decoration: underline; text-underline-offset: 2px;
}
.vsl-change:hover { color: #1c1d20; }

/* -------------------- intl-tel-input phone field ------------------------ */

.vsl-box .iti {
	width: 100%; display: block; margin: 0 0 14px;
	border: 1px solid #d4d6dd; border-radius: 8px; background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.vsl-box .iti:focus-within { border-color: #1c1d20; box-shadow: 0 0 0 3px rgba(28,29,32,.08); }
.vsl-box .iti input.vsl-phone,
.vsl-box .iti input[type="tel"] {
	width: 100%; box-sizing: border-box; margin: 0;
	border: 0 !important; background: transparent; box-shadow: none !important;
	padding: 12px 14px; height: 48px;
	font-family: inherit; font-size: 15px; color: #1c1d20; outline: none;
}
.vsl-box .iti input.vsl-phone::placeholder { color: #b6bac2; }

/* Host recompresses the PNG flag sprite (lossy → blurry); drop the raster
   flags and show a clean dial code + country name instead. */
.iti__flag, .iti__flag-box { display: none !important; }

.vsl-box .iti__flag-container { padding: 0; }
.vsl-box .iti--separate-dial-code .iti__selected-flag,
.vsl-box .iti__selected-flag {
	background: transparent; border-radius: 8px 0 0 8px;
	padding: 0 12px 0 14px;
	border-right: 1px solid #e6e7ea;
}
.vsl-box .iti__selected-flag:hover, .vsl-box .iti__selected-flag:focus { background: #f7f7f8; }
.vsl-box .iti__selected-dial-code { font-size: 15px; color: #454952; font-variant-numeric: tabular-nums; }
.vsl-box .iti__arrow { border-top-color: #9c9fa6; margin-left: 8px; }
.vsl-box .iti__arrow--up { border-bottom-color: #9c9fa6; }

/* Country dropdown. With dropdownContainer=body the list lives in .iti--container
   on <body> (not inside .vsl-box), so these are unscoped. Lift it above the
   modal overlay (z 100000) — iti's default 1060 would hide it behind. */
.iti--container { z-index: 100002 !important; }
.iti__country-list {
	width: 320px; max-width: calc(100vw - 48px); max-height: 260px;
	box-sizing: border-box; margin: 6px 0 0; padding: 4px;
	border: 1px solid #e6e7ea; border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	white-space: nowrap; overscroll-behavior: contain;
	overflow-x: hidden; overflow-y: auto;
	font-family: inherit;
}
.iti__country {
	white-space: nowrap; display: flex; align-items: center;
	padding: 8px 12px; border-radius: 6px;
	font-size: 14px; color: #1c1d20; line-height: 1.2;
}
.iti__country-name { margin: 0 8px 0 0; }
.iti__dial-code { color: #9c9fa6; font-variant-numeric: tabular-nums; }
.iti__country.iti__highlight { background: #f3f3f5; }
.iti__country[aria-selected="true"], .iti__country.iti__active { background: #ececef; }
.iti__divider { margin: 4px; border-color: #ececef; }
.iti__country-list::-webkit-scrollbar { width: 10px; }
.iti__country-list::-webkit-scrollbar-thumb { background: #dcdde2; border: 3px solid #fff; border-radius: 8px; }

/* On phones iti forces a fixed full-screen picker (.iti-mobile). Let the list
   fill that panel and read comfortably. */
.iti-mobile .iti__country-list {
	width: 100%; max-width: 100%; max-height: 100%; height: 100%;
	margin: 0; border-radius: 14px; padding: 6px;
	white-space: normal; overflow-x: hidden;
}
.iti-mobile .iti__country {
	padding: 13px 14px; font-size: 16px; border-radius: 8px;
	white-space: normal; min-width: 0;
}
.iti-mobile .iti__country-name { white-space: normal; word-break: break-word; min-width: 0; }

/* ------------------------------ dark mode ------------------------------- */

@media (prefers-color-scheme: dark) {
	.vsl-box { background: #1c1d20; color: #f3f3f5; border-color: #34353b; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
	.vsl-close:hover { background: #2a2b30; color: #f3f3f5; }
	.vsl-title { color: #f6f6f8; }
	.vsl-sub, .vsl-sent { color: #a4a7b0; }
	.vsl-sent strong { color: #f3f3f5; }
	.vsl-err { background: #2a1c1f; border-color: #4a2a2f; color: #f2a6ae; }

	.vsl-box .vsl-code { background: #26272b; border-color: #3a3b40; color: #f3f3f5; }
	.vsl-box .vsl-code:focus { border-color: #f3f3f5; box-shadow: 0 0 0 3px rgba(243,243,245,.12); }
	.vsl-box .vsl-code::placeholder { color: #6c6f78; }

	.vsl-btn { background: #f3f3f5; color: #1c1d20; }
	.vsl-btn:hover { background: #fff; }
	.vsl-btn.is-loading::after { border-color: rgba(28,29,32,.3); border-top-color: #1c1d20; }
	.vsl-change { color: #a4a7b0; }
	.vsl-change:hover { color: #f3f3f5; }

	.vsl-box .iti { background: #26272b; border-color: #3a3b40; }
	.vsl-box .iti:focus-within { border-color: #f3f3f5; box-shadow: 0 0 0 3px rgba(243,243,245,.12); }
	.vsl-box .iti input.vsl-phone { color: #f3f3f5; }
	.vsl-box .iti input.vsl-phone::placeholder { color: #6c6f78; }
	.vsl-box .iti__selected-flag { border-right-color: #3a3b40; }
	.vsl-box .iti__selected-flag:hover, .vsl-box .iti__selected-flag:focus { background: rgba(255,255,255,.05); }
	.vsl-box .iti__selected-dial-code { color: #c8cad0; }
	.vsl-box .iti__arrow { border-top-color: #8b8e97; }

	.iti__country-list { background: #26272b; border-color: #3a3b40; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
	.iti__country { color: #f3f3f5; }
	.iti__country.iti__highlight { background: #2d2e34; }
	.iti__country[aria-selected="true"], .iti__country.iti__active { background: #34353b; }
	.iti__dial-code { color: #8b8e97; }
	.iti__divider { border-color: #3a3b40; }
	.iti__country-list::-webkit-scrollbar-thumb { background: #3a3b42; border-color: #26272b; }
}
