/* SPDX-License-Identifier: MIT
   Copyright (c) 2026 Sorcha Contributors

   In-person (proximity) presentation — Feature 185.
   Deliberately plain: this screen is used at a counter or a roadside, often in a hurry, sometimes in bright
   sun. Legibility and a large tap target beat decoration. */

.proximity {
    max-width: 32rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.proximity h1 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.proximity__status {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.proximity__hint {
    font-size: 0.875rem;
    opacity: 0.75;
    margin: 1rem 0 1.5rem;
}

/* The engagement code. White plate regardless of theme — a QR on a dark background does not scan. */
.proximity__qr {
    background: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    max-width: 20rem;
}

.proximity__qr svg {
    width: 100%;
    height: auto;
    display: block;
}

.proximity__asks {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.proximity__ask {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.proximity__ask label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex: 1;
}

.proximity__ask input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.proximity__ask-name {
    font-size: 1rem;
}

.proximity__ask--unmet {
    opacity: 0.6;
}

/* "They'll keep this" — intentToRetain.
   Given visual weight ON PURPOSE. It is the disclosure people least expect and most need to see: proving
   you are over 18 and having a copy of that kept are materially different things. */
.proximity__retain {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(214, 158, 46, 0.18);
    color: #8a5a00;
    white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
    .proximity__retain {
        background: rgba(236, 201, 75, 0.2);
        color: #f6e05e;
    }
}

.proximity__primary,
.proximity__secondary {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.proximity__primary {
    background: #2b6cb0;
    color: #fff;
}

.proximity__primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.proximity__secondary {
    background: transparent;
    border-color: rgba(128, 128, 128, 0.4);
    color: inherit;
}
