// Styles for the new-import sub-view of the Imports settings tab
// (StepForm + bucket upload).

.import-new-view {
    display: flex;
    flex-direction: column;
    // Left-aligned, full-width content matching the other settings tabs
    // (General, Signatures…).
    align-items: stretch;
    gap: var(--c--globals--spacings--sm);
}

// Rendered in the settings tab title slot: the back-link sits above the heading.
.import-new-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--c--globals--spacings--3xs);

    &__back {
        // Compact, secondary — a link back to the list, not a heading-sized CTA.
        font-weight: 400;
    }
}

.import-form {
    display: flex;
    flex-direction: column;
    gap: var(--c--globals--spacings--sm);
    width: 100%;

    // Helper copy: left-aligned, secondary, like the field descriptions
    // elsewhere. Excludes the OR separator, which keeps its own divider styling.
    .form-field-row:not(.import-form__or-separator) > p {
        margin: 0;
        color: var(--c--contextuals--content--semantic--neutral--secondary);
        font-size: 0.875rem;
    }
}

.import-form__or-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--c--globals--spacings--base);
    color: var(--c--contextuals--content--semantic--neutral--tertiary);
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-block: var(--c--globals--spacings--sm);
    text-transform: uppercase;

    &:before, &:after {
        content: "";
        display: inline-block;
        width: 14px;
        height: 1px;
        background-color: currentColor;
    }
}

.import-form__archive {
    position: relative;
    .progress-bar-container {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        line-height: 1;
        gap: var(--c--globals--spacings--sm);
        justify-content: center;
        align-items: center;
        padding-top: 12px;
        padding-inline: 25%;
        width: 100%;
        background-color: var(--c--contextuals--background--surface--tertiary);
        backdrop-filter: blur(2px);
        border-radius: var(--c--globals--spacings--xs);
        height: 100%;
        font-variant-numeric: tabular-nums;
    }
}
