/* ================================================================
   Vandeto GPS Autofill v2.0.0 — gps.css
   ================================================================ */

/* ── Wrapper flex autour du champ Adresse ────────────────────── */
.vga-addr-wrap {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}
.vga-addr-wrap input#ad_address {
	flex: 1 1 auto;
	min-width: 0;
}

/* ── Bouton GPS ──────────────────────────────────────────────── */
#vga-btn {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	gap:             7px;
	padding:         0 18px;
	height:          42px;
	min-width:       42px;
	flex-shrink:     0;
	background:      var(--vga-color, #ff1700);
	color:           #fff !important;
	font-size:       13px;
	font-weight:     700;
	line-height:     1;
	border:          none;
	border-radius:   8px;
	cursor:          pointer;
	white-space:     nowrap;
	box-shadow:      0 2px 12px rgba(255, 23, 0, 0.3);
	transition:      background .18s, transform .14s, box-shadow .18s;
	-webkit-tap-highlight-color: transparent;
	user-select:     none;
}
#vga-btn svg { width:16px; height:16px; flex-shrink:0; stroke:currentColor; }
#vga-btn:hover  { transform:translateY(-1px); box-shadow:0 4px 18px rgba(255,23,0,.42); }
#vga-btn:active { transform:scale(.97); }
#vga-btn:disabled { opacity:.6; cursor:wait; transform:none !important; }

/* ── Spinner inline ──────────────────────────────────────────── */
.vga-spin {
	display:      inline-block;
	width:        15px;
	height:       15px;
	border:       2.5px solid rgba(255,255,255,.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation:    vga-rot .6s linear infinite;
	flex-shrink:  0;
}
@keyframes vga-rot { to { transform: rotate(360deg); } }

/* ── Highlight champ rempli ──────────────────────────────────── */
.vga-filled {
	border-color: #1D9E75 !important;
	box-shadow:   0 0 0 3px rgba(29,158,117,.13) !important;
	transition:   border-color .25s, box-shadow .25s !important;
}

/* ── Toast ───────────────────────────────────────────────────── */
#vga-toast {
	position:   fixed;
	bottom:     28px;
	left:       50%;
	transform:  translateX(-50%) translateY(16px);
	background: #11151c;
	color:      #fff;
	font-size:  13px;
	font-weight: 600;
	padding:    11px 22px;
	border-radius: 50px;
	box-shadow: 0 6px 28px rgba(0,0,0,.22);
	z-index:    99999;
	opacity:    0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
	white-space: nowrap;
	max-width:  calc(100vw - 40px);
	text-align: center;
}
#vga-toast.vga-show       { opacity:1; transform:translateX(-50%) translateY(0); }
#vga-toast.vga-success    { background:#1D9E75; }
#vga-toast.vga-error      { background:#c0392b; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
	#vga-btn .vga-label { display: none; }
	#vga-btn { padding: 0; width: 42px; }
	#vga-toast { bottom: 80px; }
}
