@use "../../../../../scss/abstracts/" as *;

.add-new {
    border: 1px solid $gray-light;
    background-color: $gray-lighter;
    border-radius: $spacing-100;
    padding: $spacing-500;

    .add-new-title {
        border-bottom: 2px solid $gray-light;
        padding-bottom: $spacing-100;
        margin-bottom: $spacing-600;
    }

    .form {
        align-items: flex-end;
        gap: $spacing-600;
    }
}

.add-button {
    padding-right: $spacing-600;
    padding-left: $spacing-600;
}

.faqs-question {
    width: 85%;
    padding: $spacing-300 $spacing-200 $spacing-200;
    border-radius: $spacing-100;
    border: 1px solid $blue-200;
    color: $blue-800;
    background-color: $blue-50;
    font-weight: bold;
    font-size: $type-size-300;
}

ul {
    width: 100%;
}

li {
    font-size: $type-size-200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: $spacing-400;

    button {
        border: none;
        background: none;
        margin-right: 1rem;
    }

    .faqs-actions {
        display: flex;
        align-items: center;
        gap: $spacing-200;

        .remove-button {
            display: flex;
            align-items: center;
            gap: $spacing-200;

            icon {
                color: $red-default;
            }

            &:hover {
                cursor: pointer;
            }
        }
    }
}

li + li {
    border-top: 1px solid rgba($black, 0.1);
}
.no-table-data {
    color: $gray-dark;
    margin: $spacing-500;
    display: flex;
    justify-content: center;
    font-style: italic;
}

.cdk-drag-preview {
    box-sizing: border-box;
    border-radius: 4px;
    box-shadow:
        0 5px 5px -3px rgba(0, 0, 0, 0.2),
        0 8px 10px 1px rgba(0, 0, 0, 0.14),
        0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.cdk-drag-placeholder {
    opacity: 0;
}

.cdk-drag-animating {
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.field-definition-wrapper {
    display: inline-block;
}

.inline-display {
    align-items: start;
    column-gap: 0.8rem;

    .edit-button {
        cursor: pointer;
        color: $primary;

        &:hover {
            text-decoration: underline;
        }
    }
}

.reorderable {
    &__title {
        @include desktop-medium {
            align-items: center;
        }
    }

    &__status {
        @include desktop-medium {
            margin-left: auto;
        }
    }
}
