/**
 * Multiscopic Analog Prints - front end.
 *
 * Version: 1.4.9 - Editor frame strip shows each whole frame (was cropped
 *   to 120px tall squares).
 * Version: 1.4.7 - The mail-in note stays hidden while it does not apply.
 * Version: 1.4.4 - Scene card tags sit in one group.
 * Version: 1.3.0 - STAGE 4. "Your digital files" cards.
 * Version: 1.2.0 - STAGE 3. Scene cards with the wiggle preview, the review
 *   bar, and the edit panel that holds FILM's editors.
 * Version: 1.1.0 - STAGE 2. "Your analog prints" on the order pages and the
 *   scan uploader, in the dark card style of the FILM and Stereo upload
 *   interfaces (surface #0d0b1f, border #1f1b3a, accent #8b5cf6, errors
 *   #ef4444).
 * Version: 1.0.0 - The mailed-film note above Add to Cart, in the quiet text
 *   color the FILM and Stereo product pages use for secondary lines.
 */

.realistec-analog-note[hidden] { display: none; }

.realistec-analog-note {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rt-text-muted, #a8a3c9);
}

/* ------------------------------------------------ order page section */

.realistec-analog {
    margin: 0 0 32px;
}

.realistec-analog-title {
    margin: 0 0 12px;
}

.realistec-analog-roll {
    margin: 0 0 16px;
    padding: 20px;
    background: #0d0b1f;
    border: 1px solid #1f1b3a;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.realistec-analog-roll-name {
    margin: 0 0 6px;
    font-weight: 600;
    color: #fff;
}

.realistec-analog-step {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #a8a3c9;
}

.realistec-analog-roll > .realistec-analog-step:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------ uploader (front and admin) */

.realistec-analog-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 16px;
    text-align: center;
    border: 2px dashed #2e2856;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.realistec-analog-drop:hover,
.realistec-analog-drop.is-over {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.06);
}

.realistec-analog-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.realistec-analog-drop-main {
    font-weight: 600;
    color: #fff;
}

.realistec-analog-drop-sub {
    font-size: 13px;
    color: #a8a3c9;
}

.realistec-analog-uploader.is-busy .realistec-analog-drop {
    opacity: 0.6;
}

.realistec-analog-progress {
    min-height: 1.4em;
    margin: 10px 0 0;
    font-size: 13px;
    color: #a8a3c9;
}

.realistec-analog-errors {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.realistec-analog-errors li {
    margin: 0 0 4px;
    font-size: 13px;
    color: #ef4444;
}

.realistec-analog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.realistec-analog-grid:empty {
    display: none;
}

.realistec-analog-tile {
    position: relative;
    margin: 0;
    padding: 0;
}

.realistec-analog-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #16132e;
    border-radius: 6px;
}

.realistec-analog-tile figcaption {
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 11px;
    color: #a8a3c9;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.realistec-analog-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 16px;
    line-height: 22px;
    color: #fff;
    background: rgba(13, 11, 31, 0.85);
    border: 1px solid #2e2856;
    border-radius: 50%;
    cursor: pointer;
}

.realistec-analog-remove:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.realistec-analog-done-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
}

.realistec-analog-done[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.realistec-analog-count {
    font-size: 13px;
    color: #a8a3c9;
}

@media (max-width: 480px) {
    .realistec-analog-roll {
        padding: 16px;
    }
    .realistec-analog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .realistec-analog-done-row .button {
        width: 100%;
    }
}

/* ---- 1.2.0 Stage 3: scene cards and the edit panel (front and admin) ---- */
.realistec-analog-scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 8px 0 0; }
.realistec-analog-scene-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; }
.realistec-analog-scene-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; background: #000; }
.realistec-analog-wiggle { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.realistec-analog-scene-wait { font-size: 12px; opacity: 0.7; }
.realistec-analog-scene-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.realistec-analog-tag { padding: 1px 8px; font-size: 11px; line-height: 18px; border-radius: 9px; }
.realistec-analog-scene-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.realistec-analog-scene-flag { margin: 0; font-size: 12px; line-height: 1.4; color: #ef4444; }
.realistec-analog-scene-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.realistec-analog-scene-msg { min-height: 1em; margin: 0; font-size: 12px; }
.realistec-analog-scene-msg.is-error { color: #ef4444; }

.realistec-analog-editor { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; background: rgba(5, 4, 15, 0.82); }
.realistec-analog-editor[hidden] { display: none; }
body.realistec-analog-editing { overflow: hidden; }
.realistec-analog-editor-box { width: 100%; max-width: 640px; padding: 20px; color: #e5e3f5; background: #0d0b1f; border: 1px solid #1f1b3a; border-radius: 12px; box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5); }
.realistec-analog-editor-head h2 { margin: 0 0 10px; font-size: 20px; color: #fff; }
.realistec-analog-editor-frames { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 14px; }
.realistec-analog-editor-frames img { display: block; flex: 1 1 0; min-width: 0; width: 100%; height: auto; max-height: 240px; object-fit: contain; border-radius: 6px; background: #000; }
.realistec-analog-editor .realistec-multi-upload-interface { margin: 0; }
.realistec-analog-editor-error { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; color: #a8a3c9; }
.realistec-analog-editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 12px 0 0; }
.realistec-analog-review .realistec-analog-scene-card { background: #0d0b1f; border: 1px solid #1f1b3a; }
.realistec-analog-review .realistec-analog-scene-card.is-approved { border-color: #22c55e; }
.realistec-analog-review .realistec-analog-scene-head strong { color: #fff; }
.realistec-analog-review .realistec-analog-tag { color: #e5e3f5; background: #1f1b3a; }
.realistec-analog-review .realistec-analog-tag.is-ok { color: #fff; background: #16a34a; }
.realistec-analog-review .realistec-analog-scene-msg { color: #a8a3c9; }
.realistec-analog-review-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 6px; }
.realistec-analog-review-count { font-weight: 600; color: #fff; }
.realistec-analog-review-roll { margin: 18px 0 4px; font-size: 16px; }
@media (max-width: 480px) {
    .realistec-analog-scene-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .realistec-analog-scene-tools .button { flex: 1 1 auto; }
    .realistec-analog-editor { padding: 0; }
    .realistec-analog-editor-box { min-height: 100%; border-radius: 0; }
}

/* ---- 1.3.0 Stage 4: Your digital files ---- */
.realistec-analog-files .realistec-analog-scene-card { background: #0d0b1f; border: 1px solid #1f1b3a; }
.realistec-analog-files .realistec-analog-scene-head strong { color: #fff; }
