.nstv-detail-photo img[src*="-studio-20261127"],
.nstv-catalog-photo img[src*="-studio-20261127"] {
    padding: 10px;
    scale: 1.1;
}

.nstv-site .nstv-rice-image-link img[src*="-studio-20261127"],
.nstv-site .nstv-rice-pair--current img[src*="-studio-20261127"],
.nstv-site .nstv-rice-story-images img[src*="-studio-20261127"] {
    scale: 1.13;
}

.nstv-site .nstv-rice-image-link img[src*="gao-seng-cu-5kg-khung-don-studio-20261127"] {
    scale: 1.08;
}

.nstv-site :is(.nstv-rice-pair--current, .nstv-rice-story-images):has(> img[src*="-studio-20261127"]) {
    overflow: hidden;
}

.nstv-shop-card.is-packaging .nstv-packaging-preview img[src*="-studio-20261127"] {
    padding: 7px;
    scale: 1.1;
}

.nstv-rice-studio-trigger,
.nstv-packaging-preview:has(> img[src*="-studio-20261127"]) {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.nstv-rice-studio-cue {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 5px 10px;
    border: 1px solid #d4decd;
    border-radius: 7px;
    background: #fffef9;
    color: #193d29;
    font: 600 13px/1.4 system-ui, sans-serif;
    pointer-events: none;
}

.nstv-rice-studio-viewer {
    box-sizing: border-box;
    width: min(820px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    margin: auto;
    padding: 0;
    border: 1px solid #b4c3af;
    border-radius: 14px;
    background: #fffef9;
    color: #193d29;
}

.nstv-rice-studio-viewer::backdrop {
    background: #193d29b8;
}

.nstv-rice-studio-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    max-height: calc(100dvh - 30px);
}

.nstv-rice-studio-header,
.nstv-rice-studio-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
}

.nstv-rice-studio-header h2 {
    margin: 0;
    color: inherit;
    font: 650 clamp(16px, 3vw, 23px)/1.35 system-ui, sans-serif;
}

.nstv-rice-studio-tools {
    flex-wrap: wrap;
    padding-top: 0;
}

.nstv-rice-studio-views,
.nstv-rice-studio-magnify {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nstv-rice-studio-magnify {
    align-items: center;
    gap: 8px;
}

.nstv-rice-studio-hint {
    color: #536051;
    font: 14px/1.3 system-ui, sans-serif;
}

.nstv-rice-studio-viewer button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #759583;
    border-radius: 8px;
    color: #17613a;
    background: #fffef9;
    font: 600 14px/1.3 system-ui, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.nstv-rice-studio-viewer button:hover {
    background: #eff4eb;
}

.nstv-rice-studio-viewer button[aria-pressed="true"],
.nstv-rice-studio-viewer[data-enlarged] .nstv-rice-studio-magnify button {
    color: #fff;
    background: #17613a;
    border-color: #17613a;
}

.nstv-rice-studio-viewer :focus-visible {
    outline: 3px solid #976218;
    outline-offset: 2px;
}

.nstv-rice-studio-window {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border-top: 1px solid #d4decd;
    background: #eff4eb;
}

.nstv-rice-studio-window:focus-visible {
    outline-offset: -3px;
}

.nstv-rice-studio-viewer .nstv-rice-studio-art {
    display: block;
    width: min(100%, 610px);
    height: auto;
    max-width: none;
    margin: 0 auto;
}

.nstv-rice-studio-viewer[data-view="bag"] .nstv-rice-studio-art {
    width: min(100%, 760px);
}

.nstv-rice-studio-viewer[data-enlarged] .nstv-rice-studio-art {
    width: max(740px, 100%);
}

.nstv-rice-studio-art[hidden],
.nstv-rice-studio-error[hidden] {
    display: none;
}

.nstv-rice-studio-error {
    margin: 8px;
}

@media (max-width: 600px) {
    .nstv-detail-photo img[src*="-studio-20261127"] {
        padding: 8px;
    }

    .nstv-catalog-photo img[src*="-studio-20261127"] {
        padding: 5px;
    }

    .nstv-rice-studio-viewer {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
    }

    .nstv-rice-studio-panel {
        max-height: calc(100dvh - 18px);
    }

    .nstv-rice-studio-header,
    .nstv-rice-studio-tools {
        padding-inline: 10px;
    }

    .nstv-rice-studio-window {
        padding: 6px;
    }
}
