/* Brewstock — vérification des adresses (mu-plugin brewstock-adresses.php), 13/10/2026.
   Styles minimaux et neutres : ils reprennent les variables --bw-* du thème v2 quand elles existent, sinon des valeurs
   sobres. Dans une couche (@layer) : le thème, quel qu'il soit, garde la main sur ce qu'il définit lui-même. */
@layer bw-adresses {
	.bw-adr-cache { display: none !important; }

	.bw-adr-liste {
		display: block;
		width: 100%;
		min-height: var(--bw-tap, 48px);
		font-size: max(16px, 1em); /* pas de zoom automatique sur iPhone */
	}

	.bw-adr-champ { position: relative; display: block; }

	.bw-adr-propositions {
		position: absolute;
		z-index: 60;
		left: 0;
		right: 0;
		max-height: min(60vh, 22rem);
		overflow-y: auto;
		padding: 4px 0;
		background: var(--bw-surface, #fff);
		color: var(--bw-text, #1e1e1c);
		border: 1px solid var(--bw-line-strong, #8e8d87);
		border-radius: var(--bw-radius-s, 6px);
		box-shadow: var(--bw-shadow-2, 0 6px 18px rgb(0 0 0 / 0.12));
	}
	.bw-adr-propositions [role="option"] {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: var(--bw-tap, 48px);
		padding: 6px 12px;
		line-height: 1.3;
		cursor: pointer;
	}
	.bw-adr-propositions [role="option"]:hover { background: var(--bw-green-pale, #eef3f0); }
	.bw-adr-propositions [role="option"][aria-selected="true"] {
		background: var(--bw-green-pale, #eef3f0);
		outline: 2px solid var(--bw-ink, #1e1e1c);
		outline-offset: -2px;
	}
	.bw-adr-ville { font-size: 0.875em; color: var(--bw-text-soft, #5f5e59); }

	.bw-adr-note { display: block; margin-top: 4px; font-size: 0.875rem; line-height: 1.4; color: var(--bw-text-soft, #5f5e59); }
	.bw-adr-note--alerte { color: var(--bw-error, #b42318); font-weight: 600; }

	.bw-adr-annonce {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	@media (prefers-reduced-motion: reduce) {
		.bw-adr-propositions { scroll-behavior: auto; }
	}
}

/* Ville figée (seule commune du code postal) : hors couche, pour se distinguer du fond blanc que le thème v2 donne aux
   champs dans sa propre couche. Un thème sans couche, plus précis, garde la main. */
input.bw-adr-fige { background-color: var(--bw-cream, #f7f7f4); cursor: default; }
