/* BBQ PHOTO LAYOUT CSS v1 */

/* Верхняя строка формы: телефон и отправка */
.mangal-card .photo-upload-form > div:first-of-type {
    display: flex !important;
    flex-direction: column;
    gap: 8px !important;
    width: 100%;
}

/* Поле телефона */
.mangal-card .photo-upload-form input[name="bcode"] {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 42px;
    padding: 10px 12px !important;
    font-size: 14px !important;
    text-align: center !important;
    border-radius: 9px !important;
    box-sizing: border-box;
    flex-grow: 0 !important;
}

/* Кнопка отправки */
.mangal-card .photo-upload-form > div:first-of-type > .btn-submit {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px !important;
    font-size: 13px !important;
    font-weight: 700;
    border-radius: 9px;
    box-sizing: border-box;
    flex-grow: 0 !important;
}

/* Мобильная версия */
@media (max-width: 600px) {
    .mangal-card .photo-upload-form input[name="bcode"] {
        min-height: 46px;
        font-size: 14px !important;
    }

    .mangal-card .photo-upload-form > div:first-of-type > .btn-submit {
        min-height: 48px;
        font-size: 13px !important;
    }
}


/* BBQ PHOTO BUTTON ORDER v1 */

/* Позволяем элементам формы участвовать в общем порядке */
.mangal-card .photo-upload-form > div:first-of-type {
    display: contents !important;
}

/* Телефон — первым */
.mangal-card .photo-upload-form input[name="bcode"] {
    order: 1;
}

/* Выбор фотографий — вторым и третьим */
.mangal-card .photo-upload-form > .file-lbl:nth-of-type(1) {
    order: 2;
}

.mangal-card .photo-upload-form > .file-lbl:nth-of-type(2) {
    order: 3;
}

/* Отправка отчёта — последней */
.mangal-card .photo-upload-form .btn-submit {
    order: 4;
    width: 100%;
    justify-content: center;
}
