@import '~@equitysim/react-uikit/dist/styles/styleguide';
@import '~@equitysim/react-uikit/dist/styles/global/utils/size';

.c-file-upload {
    &__wrapper {
        @extend %modal-section-large;
        padding-top: v-space(4);
        padding-bottom: v-space(4);
    }

    &__target {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        width: 100%;
        padding: map-get($spacing-map, x-large);
        margin: 0;

        background-color: rgba($seafoam-20, 0.5);
        border-color: $seafoam-60;
        border-radius: 0.4rem;
        border-style: dashed;
        border-width: 0.2rem;
        outline: 0;

        transition: all $animation-duration;

        &--active {
            background-color: $seafoam-20;
            border-color: $seafoam;
        }

        &--hover:hover {
            background-color: $seafoam-20;
            border-color: $seafoam;
            cursor: pointer;
        }
    }

    &__icon {
        $size: 15rem;

        height: $size;
        width: $size;
        margin: map-get($spacing-map, x-large) 0;

        color: $seafoam-40;
        background-color: rgba($white, 0.8);
        border-color: $seafoam-80;
        border-radius: 50%;
        border-style: solid;
        border-width: 0.3rem;
        pointer-events: none;
    }

    &__message {
        color: $seafoam;
        margin-bottom: map-get($spacing-map, medium);
    }

    &__hr {
        @extend %heading-xs;
        color: $grey-75;
        margin: v-space(4) 0;

        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        letter-spacing: 1px;

        &::before,
        &::after {
            content: '';
            height: 1px;
            width: 100%;
            background-color: currentColor;
        }

        &::after {
            margin-left: map-get($spacing-map, small);
        }

        &::before {
            margin-right: map-get($spacing-map, small);
        }
    }

    &__button {
        box-shadow: none !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;

        &:last-of-type {
            border-bottom-left-radius: 0;
        }
        &:first-of-type {
            border-bottom-right-radius: 0;
        }
    }
}
