.c-modal {
    padding: 2rem;
    box-shadow: none !important;
    width: 100%;
    position: relative;
    background-color: $background;

    &__content {
        // min-height: 515px;
        @extend .scroll-style;
        max-height: 331;
        background-color: #ffffff;
        padding: 20px 35px;
        display: flex;
        flex-wrap: wrap;
        overflow: hidden;
        @include breakpoint(md) {
            padding: 15px 25px;
            .description {
                grid-column: unset;
            }
        }
    }
    &__header {
        @include flex(false, false, flex-start, center);
        height: 55px;
        padding-left: 20px;
        background-color: #efeeee;
    }

    &__footer {
        @include flex(false, false, flex-end, center);
        min-height: 50px;
        button {
            position: absolute;
            right: 0px;
            bottom: 0px;
            margin: 20px 2rem 2rem 0px;
        }
    }

    .modal-btn {
        margin-top: 15px;
    }
    .description {
        grid-column: 2/-1;
    }
    .comentary {
        grid-column: 1/-1;
    }
}

.modal {
    &--l {
        .header + div,
        .header + form {
            height: 620px;
        }
        .c-modal__content {
            height: 515px;
        }
    }
    &--m {
        .header + div,
        .header + form {
            height: 335px;
        }
        .c-modal__content {
            height: 270px;
        }
    }
}

.cols-grid {
    display: grid;
    gap: 10px 30px;
    &.grid {
        &-2 {
            grid-template-columns: 1fr 1fr;
        }
        &-3 {
            grid-template-columns: repeat(3, minmax(135px, 1fr));
        }
        &-4 {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }
        &-5 {
            grid-template-areas:
                "1 1 1 1 2 2"
                "3 3 4 4 5 5";
            :nth-child(1) {
                grid-column-end: span 4;
            }
            :nth-child(2) {
                grid-column-end: span 2;
            }
            :nth-child(3) {
                grid-column-end: span 2;
            }
            :nth-child(4) {
                grid-column-end: span 2;
            }
            :nth-child(5) {
                grid-column-end: span 2;
            }
        }

        &-img {
            grid-template-columns: 200px auto;
            gap: 10px 40px;
            @include breakpoint(md) {
                grid-template-columns: 200px auto !important;
                gap: 10px 30px;
            }
            @include breakpoint(s) {
                grid-template-columns: 1fr !important;
            }
        }
    }
    @include breakpoint(md) {
        grid-template-columns: 1fr;
    }
    @include breakpoint(s) {
        grid-template-columns: 1fr !important;
    }
}

.grid-block {
    &__title {
        font-weight: 500;
        margin: 15px 0;
    }
}

.image-square {
    @include flex(true, false, center, center);
    @include widhHeight(200px, 200px);
    position: relative;
    background: $background;
    margin: 0 auto;
    .reservation-number {
        font-size: 33px;
        color: $primary-brand;
    }
    &__buttons {
        @include flex(false, false, center, center);
        @include position(absolute, 5px, 5px, unset, unset);
        gap: 7px;
    }
    p {
        padding-bottom: 10px;
    }
    span{
        color: $primary-brand;
        font-size: 30px;
    }
    .user-img {
        max-width: 200px;
        max-height: 200px;
    }
}

.image-round {

    @include flex(true, false, center, center);
    @include widhHeight(200px, 250px);
    position: relative;
    margin: 0 auto;
    .reservation-number {
        font-size: 33px;
        color: var(--main-blue);
    }
    &__buttons {
        @include flex(false, false, center, center);
        @include position(absolute, 5px, 5px, unset, unset);
        gap: 7px;
    }
    p {
        padding-bottom: 10px;
    }
    span {
        color: var(--main-blue);
        font-size: 30px;
    }

    button{
        width: 170px !important;
    }

    .user-img {
        @include widhHeight(170px, 170px);
        max-width: 170px;
        max-height: 170px;
        margin-bottom: 15px;

        display: inline-block;
        position: relative;
        overflow: hidden;
        border-radius: 50%;
        background-size: contain;

        width: 170px !important;
        height: 100%;
 
    }
}

.custom-dialog {
    min-width: 100% !important;
    display: flex;
    justify-content: center;
}
