.ppc-3d-viewer { margin: 10px 0; }
.ppc-3d-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.ppc-3d-btn:hover { background: #111; color: #fff; }
.ppc-3d-btn span { font-size: 16px; }
.ppc-3d-btn.ppc-3d-btn--palco {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: #1d2327;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.ppc-3d-btn.ppc-3d-btn--palco span { font-size: 14px; }
.ppc-3d-btn.ppc-3d-btn--palco:hover { background: #fff; color: #1d2327; }
.ppc-3d-modal__box > .ppc-3d-nota { max-width: none; margin: 0; padding: 8px 16px 12px; }
.ppc-3d-modal--mini .ppc-3d-modal__box > .ppc-3d-nota { display: none; }
.ppc-3d-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}
.ppc-3d-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, .55);
}
.ppc-3d-modal__box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.ppc-3d-modal__box > * { flex: 0 0 auto; }
.ppc-3d-modal__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
.ppc-3d-modal__hint {
    font-size: 12px;
    color: #888;
    margin-right: auto;
}
.ppc-3d-modal__close {
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 2px 8px;
}
.ppc-3d-modal__box > .ppc-3d-modal__stage {
    position: relative;
    flex: 1 1 auto;
    height: min(560px, 70vh);
    min-height: 200px;
}
.ppc-3d-modal__stage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
.ppc-3d-modal__vistas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    background: #fff;
}
.ppc-3d-modal__vistas button {
    border: 1.5px solid #ddd;
    background: #fff;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
}
.ppc-3d-modal__vistas button:hover { border-color: #111; color: #111; }
.ppc-3d-modal__vistas button.is-ativa {
    background: #111;
    border-color: #111;
    color: #fff;
}
.ppc-3d-modal--mini .ppc-3d-modal__vistas { padding: 6px 8px; }
.ppc-3d-modal--mini .ppc-3d-modal__vistas button { padding: 5px 10px; font-size: 12px; }
.ppc-3d-modal__dock {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}
.ppc-3d-modal__dock:hover { border-color: #111; color: #111; }
.ppc-3d-modal--mini {
    pointer-events: none;
    align-items: flex-end;
    justify-content: flex-end;
}
.ppc-3d-modal--mini { padding: 0; }
.ppc-3d-modal--mini .ppc-3d-modal__backdrop { display: none; }
.ppc-3d-modal--mini .ppc-3d-modal__box {
    pointer-events: auto;
    width: min(340px, calc(100vw - 24px));
    margin: 0 12px 12px 0;
    box-shadow: 0 12px 44px rgba(0, 0, 0, .30);
}
.ppc-3d-modal--mini .ppc-3d-modal__box > .ppc-3d-modal__stage { height: 260px; min-height: 160px; }
@media (max-width: 600px) {
    .ppc-3d-modal:not(.ppc-3d-modal--mini) { padding: 0; }
    .ppc-3d-modal:not(.ppc-3d-modal--mini) .ppc-3d-modal__box {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }
    .ppc-3d-modal:not(.ppc-3d-modal--mini) .ppc-3d-modal__box > .ppc-3d-modal__stage { height: auto; }
    .ppc-3d-modal__hint { display: none; }
    .ppc-3d-modal__head b { margin-right: auto; }
    .ppc-3d-modal__head { padding: 10px 12px; }
}
.ppc-3d-modal--mini .ppc-3d-modal__hint { display: none; }
.ppc-3d-modal--mini .ppc-3d-modal__head { padding: 8px 12px; }
.ppc-3d-modal--mini .ppc-3d-modal__head b { font-size: 13px; }
.ppc-3d-modal__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
}
.ppc-3d-nota {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #8a8a8a;
    max-width: 420px;
}
.ppc-3d-nota b { color: #6b6b6b; }
