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

%grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: v-space(2);
}

.c-portfolio-settings {
    &__name {
        @extend %modal-section-large;
        padding-top: v-space(3);
        padding-bottom: v-space(3);
        background-color: $seafoam;

        label {
            size: 1.2rem;
            line-height: v-space(2);
            color: $seafoam-20;
        }
    }

    &__name-input {
        input {
            font-size: 2.4rem;
            padding: 0;
            font-weight: $font-weight-bold;
        }
    }

    &__approach,
    &__public-portfolio {
        @extend %modal-section-large;
    }

    &__public-portfolio {
        margin-bottom: v-space(4);
        p {
            margin: 0;
            text-align: right;
        }
    }

    &__switch {
        margin-top: v-space(3);

        &--hidden {
            display: none;
        }
    }

    &__toggle-text {
        @extend %label;
        color: $seafoam;
        border: none;
        margin: 0;
        padding: 0;
        cursor: pointer;

        &:focus {
            outline: none;
        }
    }

    &__copy-icon {
        width: 1.2rem;
    }

    &__copy-button {
        @extend %body-text-xs;
        color: $seafoam;
        width: initial;
        margin-right: v-space(2);

        &:hover,
        &:active {
            color: lighten($seafoam, 10%);
        }

        &--disabled {
            pointer-events: none;
            color: $grey-70;
            opacity: 0.5;
        }
    }

    &__copy-text {
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap;
        height: v-space(6);
        display: flex;
        align-items: center;

        -ms-overflow-style: -ms-autohiding-scrollbar;

        &::-webkit-scrollbar,
        &::-webkit-scrollbar-corner,
        &::-webkit-scrollbar-button,
        &::-webkit-scrollbar-track,
        &::-webkit-scrollbar-track-piece,
        &::-webkit-scrollbar-thumb,
        &::-webkit-resizer {
            width: 0px;
            height: 0px;
        }

        scrollbar-width: none; // Firefox only property

        &--disabled {
            opacity: 0.5;
        }
    }

    &__help {
        font-size: 1.2rem;
    }

    &__hr {
        @extend %horizontal-line;
        margin: 0;
        margin-bottom: 0.1rem; // Compensate for 0.1rem border
        width: 100%;
    }

    &__label {
        @extend %label;
        display: block;
        margin-top: v-space(3);
        margin-bottom: v-space(1);
    }

    &__description {
        @extend %modal-section-large;
        margin-top: v-space(0.5); // Compensating relative position
        label {
            @extend %label;
            display: block;
            margin-bottom: v-space(1);
            position: relative;
            top: v-space(3);
        }

        textarea {
            min-height: v-space(14);
        }
    }

    &__button {
        margin-top: v-space(6);
        height: v-space(8);
        box-shadow: none;
        border-radius: 0 !important;
        font-size: 1.4rem !important;
    }
}
