.nbq-product-mockup {
    --nbq-blue: #1d4ed8;
    --nbq-ink: #13233d;
    --nbq-border: #d9e0ea;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: 28px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 24px 0;
    padding: 22px;
    border: 1px solid var(--nbq-border);
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
}

.nbq-product-mockup,
.nbq-product-mockup * {
    box-sizing: border-box;
}

.nbq-mockup-stage {
    position: relative;
    min-height: 300px;
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    background: #f5f7fb;
}

.nbq-mockup-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    touch-action: manipulation;
    opacity: 0;
    transition: opacity .18s ease;
}

.nbq-product-mockup.is-ready .nbq-mockup-canvas { opacity: 1; }

.nbq-mockup-loading {
    position: absolute;
    color: #52627a;
    font-size: 14px;
}

.nbq-product-mockup.is-ready .nbq-mockup-loading { display: none; }
.nbq-mockup-loading.is-error { color: #b42318; padding: 16px; text-align: center; }
.nbq-mockup-fallback-image { display: block; width: 100%; max-width: 100%; height: auto; }
.nbq-product-mockup.is-ready:not(.is-image-only) .nbq-mockup-fallback-image { display: none; }

.nbq-mockup-controls {
    display: grid;
    gap: 17px;
    align-content: start;
    min-width: 0;
}

.nbq-mockup-control-group { display: grid; gap: 8px; }
.nbq-mockup-control-group > label,
.nbq-mockup-advanced label { color: var(--nbq-ink); font-weight: 700; font-size: 14px; }

.nbq-mockup-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.nbq-mockup-swatch {
    width: 31px;
    height: 31px;
    padding: 0;
    border: 2px solid #fff;
    outline: 1px solid var(--nbq-border);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(19, 35, 61, .08);
}

.nbq-mockup-swatch.is-selected { outline: 2px solid var(--nbq-blue); outline-offset: 2px; }
.nbq-custom-color { display: flex; align-items: center; gap: 10px; color: #52627a; font-size: 13px; }
.nbq-color-picker { width: 42px; height: 28px; padding: 0; border: 1px solid var(--nbq-border); border-radius: 5px; cursor: pointer; }

.nbq-brand-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--nbq-border);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

.nbq-logo-file-label { display: inline-flex; align-items: center; width: fit-content; min-height: 34px; padding: 0 12px; border: 1px solid var(--nbq-border); border-radius: 5px; background: #fff; color: var(--nbq-ink); cursor: pointer; font-size: 13px; font-weight: 600; }
.nbq-logo-file-label:hover { border-color: var(--nbq-blue); color: var(--nbq-blue); }
.nbq-logo-upload { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.nbq-logo-file-name { color: #6b778b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbq-mockup-advanced { display: grid; gap: 10px; padding-top: 2px; }
.nbq-mockup-advanced summary { color: var(--nbq-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.nbq-pick-source { width: 100%; min-height: 35px; border: 1px solid var(--nbq-blue); border-radius: 5px; background: #fff; color: var(--nbq-blue); cursor: pointer; font-size: 13px; font-weight: 700; }
.nbq-pick-source:hover { background: #eff6ff; }
.nbq-center-logo { width: 100%; min-height: 35px; border: 1px solid #9aa8bc; border-radius: 5px; background: #fff; color: #52627a; cursor: pointer; font-size: 13px; font-weight: 700; }
.nbq-center-logo:hover { border-color: var(--nbq-blue); color: var(--nbq-blue); }
.nbq-horizontal-logo { width: 100%; min-height: 35px; border: 1px solid #9aa8bc; border-radius: 5px; background: #fff; color: #52627a; cursor: pointer; font-size: 13px; font-weight: 700; }
.nbq-horizontal-logo:hover { border-color: var(--nbq-blue); color: var(--nbq-blue); }
.nbq-source-readout { margin: -2px 0 0; color: #52627a; font-size: 12px; }
.nbq-product-mockup.is-picking-source .nbq-mockup-canvas { cursor: crosshair; outline: 2px dashed var(--nbq-blue); outline-offset: -2px; }
.nbq-mockup-advanced label { display: grid; grid-template-columns: 66px 1fr 38px; gap: 8px; align-items: center; font-weight: 400; color: #52627a; }
.nbq-mockup-advanced input[type="range"] { width: 100%; accent-color: var(--nbq-blue); }
.nbq-mockup-advanced output { text-align: right; font-size: 12px; }

.nbq-mockup-download {
    width: 100%;
    min-height: 43px;
    border: 0;
    border-radius: 6px;
    background: var(--nbq-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.nbq-mockup-download:hover { filter: brightness(.92); }
.nbq-mockup-note { margin: 0; color: #6b778b; font-size: 12px; line-height: 1.5; }
.nbq-mockup-notice { padding: 12px 15px; border-left: 3px solid #f59e0b; background: #fff8e7; }

@media (max-width: 760px) {
    .nbq-product-mockup {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
        gap: 16px;
        margin: 16px 0;
        overflow: hidden;
    }
    .nbq-mockup-stage {
        min-height: 180px;
        max-height: none;
    }
    .nbq-mockup-controls { gap: 14px; }
    .nbq-mockup-swatches { gap: 8px; }
    .nbq-mockup-swatch { width: 30px; height: 30px; }
    .nbq-logo-file-label { max-width: 100%; }
    .nbq-mockup-advanced label { grid-template-columns: 72px minmax(0, 1fr) 42px; }
}

@media (max-width: 420px) {
    .nbq-product-mockup { padding: 10px; border-radius: 10px; }
    .nbq-mockup-stage { min-height: 150px; }
    .nbq-mockup-advanced label { grid-template-columns: 66px minmax(0, 1fr) 38px; gap: 6px; }
}
