/* "Zoek met een foto" — knop naast het zoekveld + paneel (schermvullend op mobiel).
   Volgt de bestaande configurator-look: zwart, oranje accent, pillen. */

.icg-wiz__photo-row { margin: -0.4rem 0 1rem; }
.icg-wiz__photo-row[hidden] { display: none; }
.icg-wiz__photo-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff; border: 1px solid #2e2e2e; border-radius: 999px;
    padding: .6rem 1.2rem; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.icg-wiz__photo-btn:hover { border-color: #ee9441; color: #ee9441; }

html.icg-photo-open { overflow: hidden; }

.icg-photo { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; font-family: var(--icg-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); color: #fff; }
.icg-photo, .icg-photo *, .icg-photo *::before, .icg-photo *::after { box-sizing: border-box; }
.icg-photo[hidden], .icg-photo [hidden] { display: none !important; }
.icg-photo__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.icg-photo__sheet {
    position: relative; width: min(560px, 100%); max-height: 94vh; display: flex; flex-direction: column;
    background: #141414; border: 1px solid #2e2e2e; border-radius: 18px; box-shadow: 0 30px 80px -20px #000; outline: none;
}
.icg-photo__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #242424; }
.icg-photo__title { flex: 1; text-align: center; font-size: 15px; }
.icg-photo__back { background: none; border: 0; color: #a8a8a8; font: inherit; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 6px 8px; }
.icg-photo__back:hover { color: #fff; }
.icg-photo__x { background: none; border: 0; color: #a8a8a8; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 8px; }
.icg-photo__x:hover { color: #fff; }
.icg-photo__body { padding: 16px 18px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.icg-photo__h { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.icg-photo__h--sp { margin-top: 24px; }
.icg-photo__muted { color: #a8a8a8; font-size: 14px; margin: 0 0 12px; }
.icg-photo__small { font-size: 12.5px; }
.icg-photo__lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a8a8a8; margin: 12px 0 6px; }
.icg-photo__lbl--sp { margin-top: 18px; }
.icg-photo__msg { background: rgba(238, 148, 65, .14); border: 1px solid #ee9441; border-radius: 12px; padding: 10px 14px; color: #f4a660; font-size: 14px; margin: 10px 0; }

.icg-photo__stack { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.icg-photo__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 15px; border-radius: 999px; padding: .85rem 1.6rem; text-align: center; line-height: 1.25;
}
.icg-photo__btn--primary { background: #ee9441; color: #0a0a0a; border: 0; }
.icg-photo__btn--primary:hover { background: #fff; }
.icg-photo__btn--ghost { background: transparent; color: #fff; border: 1px solid #2e2e2e; }
.icg-photo__btn--ghost:hover { border-color: #ee9441; color: #ee9441; }
.icg-photo__btn--wide { display: flex; width: 100%; }
.icg-photo__btn:disabled { opacity: .35; cursor: not-allowed; }

.icg-photo__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.icg-photo__pill { background: #1d1d1d; color: #e8e8e8; border: 1px solid #3a3a3a; border-radius: 999px; padding: .45rem 1rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.icg-photo__pill:hover { border-color: #ee9441; color: #fff; }
.icg-photo__pill.is-on { background: #ee9441; border-color: #ee9441; color: #0a0a0a; }
.icg-photo__games { margin: 4px 0 14px; }

.icg-photo__stage { position: relative; width: 100%; max-width: 400px; aspect-ratio: 4 / 5; margin: 12px auto; overflow: hidden; border-radius: 16px; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.icg-photo__stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; will-change: transform; }
.icg-photo__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.icg-photo__frame { position: absolute; pointer-events: none; border: 2.5px solid #ee9441; border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .6); }
.icg-photo__zoom { display: flex; align-items: center; gap: 14px; max-width: 400px; margin: 0 auto 14px; }
.icg-photo__zoom span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a8a8a8; }
.icg-photo__zoom input { flex: 1; accent-color: #ee9441; }
[data-view="frame"] .icg-photo__btn--wide, [data-view="cam"] .icg-photo__btn--wide { max-width: 400px; margin-left: auto; margin-right: auto; }

.icg-photo__bar { height: 8px; border-radius: 999px; background: #242424; overflow: hidden; margin: 16px 0 12px; }
.icg-photo__bar i { display: block; height: 100%; width: 4%; border-radius: 999px; background: #ee9441; transition: width .35s ease; }

.icg-photo__edit label { display: block; min-width: 0; }
.icg-photo__edit { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 8px 0 14px; }
.icg-photo__edit input {
    width: 100%; background: #0a0a0a; border: 1px solid #3a3a3a; color: #fff; border-radius: 12px; padding: .8rem 1rem; font-size: 16px; font-family: inherit;
}
.icg-photo__edit input:focus { outline: none; border-color: #ee9441; box-shadow: 0 0 0 3px rgba(238, 148, 65, .18); }
.icg-photo__edit input::placeholder { color: #777; }
@media (min-width: 560px) { .icg-photo__edit { grid-template-columns: 1fr 1fr; gap: 12px; } }

.icg-photo__best { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: #0f0f0f; border: 1px solid #2e2e2e; border-radius: 16px; padding: 16px; }
.icg-photo__best img { width: min(62%, 240px); aspect-ratio: 63 / 88; object-fit: cover; border-radius: 10px; background: #242424; box-shadow: 0 20px 50px -20px #000; }
.icg-photo__best-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; line-height: 1.15; }
.icg-photo__best .icg-photo__btn { margin-top: 10px; }
.icg-photo__badge { align-self: center; font-size: 11px; font-weight: 700; color: #6be487; background: rgba(62, 214, 96, .12); border-radius: 999px; padding: 3px 10px; }

.icg-photo__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 14px; }
@media (min-width: 520px) { .icg-photo__grid { grid-template-columns: repeat(3, 1fr); } }
.icg-photo__tile { display: flex; flex-direction: column; gap: 5px; text-align: left; font: inherit; color: #fff; background: #0f0f0f; border: 1px solid #2e2e2e; border-radius: 14px; padding: 8px; cursor: pointer; }
.icg-photo__tile:hover { border-color: #ee9441; }
.icg-photo__tile img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 8px; background: #242424; }
.icg-photo__tile .n { font-weight: 700; font-size: 13px; line-height: 1.2; }
.icg-photo__tile .s { font-size: 12px; color: #a8a8a8; line-height: 1.25; }
.icg-photo__tile .icg-photo__badge { align-self: flex-start; }
.icg-photo__manual { margin: 8px 0 14px; }

/* Doorlopend scannen: teller + "Klaar" in de kop, korte melding na "Ja, dit is mijn kaart". */
.icg-photo__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.icg-photo__titles .icg-photo__title { flex: none; }
.icg-photo__count { font-size: 12.5px; font-weight: 600; color: #ee9441; }
.icg-photo__finish { background: #ee9441; color: #0a0a0a; border: 0; border-radius: 999px; padding: .45rem 1.1rem; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.icg-photo__finish:hover { background: #fff; }
.icg-photo__toast {
    position: absolute; z-index: 2; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); max-width: calc(100% - 32px);
    background: #1d1d1d; color: #fff; border: 1px solid #ee9441; border-radius: 999px; padding: 10px 18px;
    font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 12px 40px -12px #000; pointer-events: none;
    opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s ease, transform .25s ease; visibility: hidden;
}
.icg-photo__toast.is-on { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    .icg-photo__toast { transition: none; transform: translate(-50%, 0); }
}
.icg-photo--continuous [data-view="choose"] .icg-photo__btn--primary { padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: 16px; }

@media (max-width: 640px) {
    .icg-photo { align-items: stretch; }
    .icg-photo__sheet { width: 100%; max-height: none; height: 100%; border: 0; border-radius: 0; }
}
