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

.page-body {
    align-items: start;
    min-height: unset;
}

.card-wrapper {
    counter-reset: zones;
    display: grid;
    gap: 3rem;
}

.card {
    counter-increment: zones;
}

.card-header {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 2rem 1rem;

    &:before {
        content: counter(zones);
        display: block;
        text-align: center;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        border: 2px solid $secondary;
        color: $secondary;
        line-height: 0.95rem;

        font-weight: 900;
        font-size: $type-size-050;

        @include desktop-medium {
            font-size: $type-size-150;
            width: 1.5rem;
            height: 1.5rem;
            line-height: 1.45rem;
        }
    }

    .flex-between {
        gap: 1rem;
    }

    .card-subtitle {
        margin-left: $spacing-200;
        font-size: $type-size-200;
        color: $gray-default;
        font-weight: normal;

        icon {
            margin-right: $spacing-100;

            &::ng-deep svg {
                height: 1rem;
                width: 1rem;
            }
        }
    }

    .zone-list {
        margin-top: $spacing-200;
        margin-bottom: $spacing-200;
    }
}

.edit-button {
    margin-left: auto;
}

.gc-2 {
    grid-column: 2;
}

input[type="text"],
input[type="number"] {
    height: 2.5rem;
    line-height: 1em;
    font-size: $type-size-200;
    padding: 0.5rem;
    border-color: $gray-light;
}

input[type="color"] {
    width: 3rem;
    height: 2.5rem;
    border-color: $gray-light;
    border-radius: $spacing-050;

    &.new-color {
        height: 3rem;
    }

    &::-webkit-color-swatch {
        border-color: $gray-light;
    }
}

.check-label {
    display: flex;
    gap: $spacing-400;
    input {
        transform: scale(150%);
    }
}

.zone {
    &__handle {
        display: grid;
        align-items: center;
        border-left: 1px solid rgba($black, 0.05);

        i {
            display: block;
            font-size: $type-size-200;
            color: rgba($black, 0.5);
            transition: all 200ms ease;
        }

        &:hover {
            cursor: move;

            i {
                color: rgba($black, 0.75);
            }
        }
    }
}

.add-new .field-label {
    font-size: $type-size-100;
}
