/*
@media (min-width: 760px) {
    #or_connect_form .responsive_item:has(p-select-wrapper),
    #or_connect_form .responsive_item:has(p-segmented-control) {
        display: block;
        width: 100%;
        overflow: visible;
        z-index: 20;
    }

    #or_connect_form .responsive_item:has(p-select-wrapper) .pds-card,
    #or_connect_form .responsive_item:has(p-segmented-control) .pds-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible;
    }

}
*/

.pds-margin-bw-grids {
    margin-top: 24px;
}




.orconnect-photo-annotation-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 80px);
    padding: 8px 0 14px 0;
    overflow: hidden;
}

.orconnect-photo-annotation-toolbar,
.orconnect-photo-annotation-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.orconnect-photo-annotation-toolbar {
    justify-content: center;
}

.orconnect-photo-annotation-footer {
    justify-content: center;
}

.orconnect-photo-annotation-toolbar {
    padding: 0 2px;
}

.orconnect-photo-tool {
    min-width: 58px;
}

.orconnect-photo-annotation-canvas-wrap {
    flex: 1;
    min-height: 260px;
    overflow: auto;
    text-align: center;
    touch-action: none;
    padding: 2px 0 8px 0;
    max-width: 100%;
}

.orconnect-photo-annotation-canvas-wrap canvas {
    border: 1px solid #626669;
    touch-action: none;
}

.orconnect-photo-rotation-preview-wrap {
    flex: 1;
    min-height: 260px;
    overflow: auto;
    text-align: center;
    max-width: 100%;
}

.orconnect-photo-rotation-preview {
    max-width: 100%;
    max-height: calc(100vh - 190px);
    border: 1px solid #626669;
    object-fit: contain;
}

@media (max-width: 600px) {
    .orconnect-photo-annotation-toolbar,
    .orconnect-photo-annotation-footer {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .orconnect-photo-annotation-footer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .orconnect-photo-annotation-toolbar p-button,
    .orconnect-photo-annotation-footer p-button,
    .orconnect-photo-tool {
        min-width: 0;
        width: 100%;
    }

    .orconnect-photo-tool {
        min-height: 48px;
    }
}
