/* Result Review actions aligned with the Nannovative CTA system. */
body[data-flow-state="results"]:not(.send-details-open) .result-review-actions {
    grid-area: actions;
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-self: end;
    justify-self: center;
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 0;
}

body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #openSendDetails,
body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #retakePhoto {
    position: relative;
    inset: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: var(--nv-button-height, 54px);
    height: auto;
    margin: 0;
    padding: var(--nv-button-padding, 12px 24px);
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
}

body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #openSendDetails {
    order: 1;
}

body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #retakePhoto {
    order: 2;
}

body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #openSendDetails svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #openSendDetails:hover:not(:disabled),
body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #retakePhoto:hover:not(:disabled),
body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #openSendDetails:focus-visible:not(:disabled),
body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #retakePhoto:focus-visible:not(:disabled) {
    transform: translateY(-2px);
}

body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #openSendDetails:active:not(:disabled),
body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #retakePhoto:active:not(:disabled) {
    transform: translateY(1px);
}

@media (max-width: 900px), (orientation: portrait) {
    body[data-flow-state="results"]:not(.send-details-open) .result-review-actions {
        gap: 8px;
        width: min(100%, 340px);
    }

    body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #openSendDetails,
    body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #retakePhoto {
        min-height: 46px;
        padding-inline: 14px;
    }

    body[data-flow-state="results"]:not(.send-details-open) .result-review-actions #openSendDetails svg {
        width: 19px;
        height: 19px;
    }
}
