/*
 * Camera projection toggle — shared by all three surfaces that render
 * threed/partials/camera_projection_toggle.html:
 *   - the published viewer's floating menu (dark panel)
 *   - the classic editor's floating menu (dark panel)
 *   - the v2 editor's unified layers panel (light panel)
 *
 * Colours are inherited (currentColor / transparent) rather than hard-coded so
 * the same markup reads correctly on the dark floating menu AND the light v2
 * rail without a per-surface fork.
 */

.camera-projection-control {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    margin-bottom: 4px;
}

.camera-projection-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.75;
    margin-bottom: 6px;
}

.camera-projection-label i {
    margin-right: 4px;
}

.camera-projection-switch {
    display: flex;
    width: 100%;
    border: 1px solid rgba(128, 128, 128, 0.45);
    border-radius: 5px;
    overflow: hidden;
}

.camera-projection-btn {
    flex: 1 1 50%;
    padding: 5px 6px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 500;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.72;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.camera-projection-btn + .camera-projection-btn {
    border-left: 1px solid rgba(128, 128, 128, 0.45);
}

.camera-projection-btn:hover {
    opacity: 1;
    background: rgba(128, 128, 128, 0.18);
}

/* Selected state: a tinted fill that is visible on both light and dark panels. */
.camera-projection-btn.active {
    opacity: 1;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.85);
    color: #fff;
}

.camera-projection-btn:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.9);
    outline-offset: -2px;
}
