/* Btw- en adresvelden op de afrekenpagina — NR Agri.
   Eigen klassen met voorvoegsel nr-co-, zodat er niets botst met de checkout. */

.nr-co-blok {
    margin: 0 0 1rem;
    padding: .85rem .9rem;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #fbfcfe;
}

.nr-co-blok--btw {
    border-color: color-mix(in srgb, var(--nr-primary, #6CBF4A) 35%, #dfe4ec);
    background: color-mix(in srgb, var(--nr-primary, #6CBF4A) 5%, #fff);
}

.nr-co-rij {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: .6rem;
}

.nr-co-veld { min-width: 0; }

.nr-co-label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: var(--nr-secondary, #142C73);
    margin-bottom: .3rem;
}

.nr-co-input {
    display: block;
    width: 100%;
    margin-top: .25rem;
    padding: .58rem .7rem;
    border: 1px solid #d5dae3;
    border-radius: 8px;
    background: #fff;
    font-size: .95rem;
    font-family: inherit;
    color: #1f2937;
}

.nr-co-input:focus {
    outline: none;
    border-color: var(--nr-primary, #6CBF4A);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nr-primary, #6CBF4A) 20%, transparent);
}

.nr-co-uitleg {
    margin: .4rem 0 0;
    font-size: .8rem;
    line-height: 1.5;
    color: #6b7280;
}

.nr-co-melding {
    margin: .5rem 0 0;
    padding: .45rem .6rem;
    border-radius: 7px;
    font-size: .84rem;
    line-height: 1.45;
}

.nr-co-melding--ok {
    background: #eff8ef;
    color: #2f6b2f;
    border-left: 3px solid var(--nr-primary-dark, #46812F);
}

.nr-co-melding--fout {
    background: #fdf0f0;
    color: #a11c1c;
    border-left: 3px solid #E41F12;
}

.nr-co-melding--waarschuwing {
    background: #fff8ed;
    color: #8a5216;
    border-left: 3px solid #d98324;
}

.nr-co-melding--bezig,
.nr-co-melding--info {
    background: #f2f4f8;
    color: #6b7280;
    border-left: 3px solid #b6bfcc;
}

@media (max-width: 560px) {
    .nr-co-rij { grid-template-columns: 1fr; }
}

/* Kop boven het adresblok, zodat duidelijk is wat de bezoeker hier doet. */
.nr-co-kop {
    margin: 0 0 .35rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--nr-secondary, #142C73);
}

/* Losse labels (span in plaats van label, om de checkout niet te storen). */
span.nr-co-label {
    display: block;
    margin-bottom: .25rem;
}

/* ------------------------------------------------------------------ */
/*  Adres zoeken (België, Frankrijk, Spanje)                           */
/*  De klant typt, de officiële adressenbank stelt echte adressen voor. */
/* ------------------------------------------------------------------ */

.nr-co-zoek { position: relative; }

.nr-co-suggesties {
    position: absolute;
    z-index: 60;
    left: 0;
    right: 0;
    margin: .2rem 0 0;
    padding: .25rem;
    list-style: none;
    max-height: 15rem;
    overflow-y: auto;
    border: 1px solid #d5dae3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 44, 115, .12);
}

.nr-co-suggesties[hidden] { display: none; }

.nr-co-suggestie {
    padding: .5rem .6rem;
    border-radius: 6px;
    font-size: .9rem;
    line-height: 1.35;
    color: #1f2937;
    cursor: pointer;
}

.nr-co-suggestie:hover,
.nr-co-suggestie.is-actief {
    background: color-mix(in srgb, var(--nr-primary, #6CBF4A) 12%, #fff);
    color: var(--nr-secondary, #142C73);
}

/* Zonder muis: de toetsenbordkeuze moet altijd zichtbaar zijn. */
@media (prefers-reduced-motion: no-preference) {
    .nr-co-suggestie { transition: background-color .12s ease; }
}
