body {
    padding: 3em;
}

main[mood="form"] article,
main[mood="sucess"] article,
main[mood="loading"] article {
    display: none;
}

main[mood="form"] article#form {
    display: block;
}

main[mood="sucess"] article#sucess {
    display: flex;
}

main[mood="loading"] article#loading {
    display: flex;
}

article#sucess {
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(/midia/thanks.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f26836;
}

article#loading {
    left: 0;
    position: fixed;
    top: 0;
    background-color: #f26836;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: #fff;
}

main header {
    display: flex;
    margin-bottom: 1em;
}

main header img {
    width: auto;
    height: 10vw;
}

main header .content {
    margin-left: 1em;
}

main header .content h2 {
    margin-bottom: 1em;
}

main header .content p {
    margin-bottom: .5em;
}

main div#form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div#form>button {
    padding: .5em 5em;
    border-radius: 5px;
    border: none;
    outline: none;
    background-color: #00a650;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
}

main div#form form {
    margin-bottom: 2em;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

main div#form form h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    font-style: italic;
}

form {
    margin-bottom: 1.5em;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field#checkbox {
    gap: 5px;
}

.field input,
.field select,
.field textarea {
    border-radius: 4px;
    padding: .2em 0;
    border: 2px solid #000;
}

.field input {
    height: fit-content;
    position: relative;
    top: 6px;
}

.fieldsGroup {
    display: flex;
    align-items: flex-end;
    gap: 15px;

}

.fieldsGroup .field {
    margin-bottom: 0;
    margin-right: 10px;
}

.fieldsGroup .field:last-child {
    margin-right: 0;
}

.field#checkbox {
    flex-direction: row;
}

.field#checkbox label {
    margin-bottom: 1px;
}

.field label#green {
    color: green;
    display: flex;
    align-items: center;
}

.field label iconify-icon {
    margin-right: 3px;
}

.field input,
.field select {
    width: fit-content;
}

.start input,
.end input {
    width: 4em;
}

.field.full input,
.field.full select {
    width: 100%;
}

.docAttach {}

.docAttach .attachs {
    display: flex;
    margin: 0;
    gap: 30px;
}

.docAttach .attachs#menu {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
}

.docAttach .attachs .attach {
    gap: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.docAttach .attachs .attach.item .container {
    border: 0;
    width: fit-content;
}

.attachs .attach.item .container img {
    position: relative;
    height: 95%;
    width: fit-content;
}

.docAttach .attachs .attach:last-child {
    margin-right: 0;
}

.attachs .attach .container {
    border: 1px solid black;
    border-radius: 10px;
    padding: 1em;
    width: auto;
    height: 10em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 5px;
    position: relative;
}

.attachs .attach .container#banner {
    width: 30em;
}


.attachs .attach .container span {
    background-color: #e6e7e8;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachs .attach .container img {
    position: absolute;
    width: 95%;
    border-radius: 10px;
}

.fieldsGroup .field.full {
    width: 95%;
}

.field#cep_field {
    width: 15%;
}

.field#cidade_field {
    width: 15%;
}

.field#endereco_field {
    width: 75%;
}

.field#numero_field {
    width: 20%;
}

.field#bairro_field {
    width: 25%;
}

.field#razao_social_field {
    width: 65%;
}

.field#CNPJ_field {
    width: 35%;
}

.fieldsGroup .field.full input {
    width: 100%;
}

.docAttach#column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.docAttach#column .fieldsGroup {
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 50%;
    justify-content: center;
    align-items: flex-start;
}

.docAttach#column .fieldsGroup .field {
    margin: 0;
}

.fieldsGroup#column {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
    margin-top: 1em;
}

.fieldsGroup#column .field {
    display: flex;
    flex-direction: row;
}

.fieldsGroup#column p {
    margin-bottom: .3em;
}

.fieldsGroup#column .field label {
    margin: 0;
}

.checkboxes {
    display: flex;
    justify-content: space-between;
}

.checkGroup {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.checkboxes .check {
    margin-bottom: .5em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 calc(33.333% - 10px);
}

.docAttach>p {
    margin: 1em 0 .3em 0;
}

.districts {
    margin: 1em 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.districts .field,
.field#minimum_value {
    display: flex;
    flex-direction: row;
    border: 2px solid #d1d6da;
    width: 15em;
    height: 35px;
    border-radius: 4px;
    margin: 0;
    background-color: #ffffff;
}

.district {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.district p {
    margin-bottom: .2em;
}

.districts .field input,
.field#minimum_value input {
    border: none;
    outline: none;
    width: 100%;
}

.districts .field span,
.field#minimum_value span {
    padding: 5px 10px;
    background-color: #e8ebf0;
    font-size: 12px;
    margin-right: 5px;
    display: flex;
    align-items: center;
}

.districts .field.filled span {
    background-color: var(--primary-color);
    border: #000 solid 1px;
    color: #000;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.addcity {
    display: flex;
    align-items: center;
    gap: 10px;
}

form .add {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: .1em 1em;
    border-radius: 4px;
    white-space: nowrap;
    border: none;
    outline: none;
    cursor: pointer;
}

.cities .item {
    padding: 1em;
}

.cities .item h4 {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.cities .item h4 span {
    border: 2px #ed1c24 solid;
    border-radius: 4px !important;
    color: #ed1c24;
    background-color: white;
    text-transform: initial;
    font-size: 11px !important;
    cursor: pointer;
    padding: 1px 5px;
}

.cities .item:nth-child(even) {
    background-color: #f1f1f1;
}

.schedule {
    display: flex;
    flex-direction: column;
}

.hours {
    display: flex;
    height: fit-content;
    align-items: center;
    width: 20%;
}

.hours .hour {
    width: 45%;
}

.hours p {
    top: 5px;
    right: 5px;
    position: relative;
}

.hours .hour input {
    width: 90%;
    background: #e3e4e5;
    border: none;
    padding: 0;
    text-align: center;
}

.weekDays {
    display: flex;
    justify-content: space-between;
    width: 70%;
    align-items: center;
}

.weekDays .day {
    background-color: #eb1c24;
    border: 2px solid black;
    border-radius: 4px;
    width: 100%;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    margin-right: 10px;
    cursor: pointer;
}

.weekDays .day:last-child {
    margin: 0;
}

strong#schedule {
    display: block;
    margin-top: 1em;
}

strong#schedule {
    display: block;
    margin-top: 1em;
}

strong#schedule .red {
    color: red;
}

strong#schedule .green {
    color: green;
}

.schedules {
    overflow: auto;
}

.page-schedule {
    font-size: 1.3em;
    display: flex;
    justify-content: flex-start;
}

.page-schedule strong {
    margin-right: 1em;
}


.schedule {
    margin: 3em 1em;
    padding-bottom: 3em;
    border-bottom: 3px #ddd solid;
}

.schedule:first-child {
    margin: 1em;
}

.schedule:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 1em;
}

.products {
    width: 40em;
    background-color: #fde0df;
    padding: 1.5em;
    border-radius: 19px !important;
    margin: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chooseGroups {
    display: flex;

    >label {
        margin-right: 5px;
    }
}

.chooseGroup {
    margin-right: 10px;
    display: flex;
}

.chooseGroup .radio {
    background-color: #fff;
    width: 1.1em;
    height: 1.2em;
    min-height: auto;
    border-radius: 100% !important;
    border: 1px solid;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    position: relative;
}

.checked {
    background-color: #f15827;
    width: 85%;
    height: 80%;
    border-radius: 100% !important;
    position: absolute;
}

.products p {
    color: #ed1c24;
    font-weight: bolder;
    font-size: 22px;
}

.products-options {
    height: 13em;
    width: 96%;
    overflow: auto;
    margin-top: 1.5em;
    background-color: white;
}

h1.page-schedule {
    font-size: 2em;
    margin: 0 0 .5em 0;
    display: flex;
    align-items: center;
}

.days {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 1em 0;
    gap: 20px;
    flex-wrap: wrap;
}

.box {
    width: 100%;
    display: flex;
    justify-content: center;
}

#segmento .box {
    width: fit-content;
}

.option {
    margin: 1em 0.5em;
}

.option {
    display: flex;
}

.day p,
.option p {
    font-size: 1em;
    font-weight: 500;
    margin: 4px;
}

.day p {
    white-space: nowrap;
    /* Impede a quebra de linha */
    overflow: hidden;
    /* Oculta o conteúdo que não se encaixa */
    text-overflow: ellipsis;
    text-align: center;
}

.content.has-day p,
.check .checked p {
    font-size: .8em;
}

.option p {
    margin: 0;
}

.day .content,
.check .content,
.option .content {
    width: 15px;
    height: 15px;
    border-radius: 2px !important;
    text-align: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    user-select: none;
}

.day .content p,
.check .content p,
.option .content p {
    margin: 0 auto;
}

.option p {
    font-size: 1.5em;
    margin: 0 8px;
    color: black;
}

.option .content {
    margin: 0;
}

.option .content,
.option .content p {
    font-size: 15px !important;
    color: white;
}

.has-day,
.option .selected {
    background-color: #f15827;
    border: 1px #f15827 solid;
    color: #fff;
}

.not-has-day,
.option .unselected {
    background-color: #fff !important;
    border: 1px #bec0c3 solid !important;
    color: #bec0c3;
}

.check .content {
    position: relative;
}

.check .checked {
    background-color: #44aa55;
    border: 1px #000 solid;
    color: #000;
}



.check .checked.limit {
    background-color: #ffdb3b;
}

.check .unchecked {
    background-color: #fff !important;
    border: 1px #bec0c3 solid !important;
    color: #bec0c3;
}

.check:has(.unchecked) input {
    display: none;
}

.check input {
    border-radius: 3px;
    outline: none;
    border: 1px solid #000;
}

.hours {
    display: flex;
}

.start,
.end {
    display: flex;
    width: 10em;
    margin: 0 0.5em;
}

.start p,
.end p {
    font-weight: 900;
    font-size: 15px;
    margin: 10px;
}

.delete {
    border: 1px #ed1c24 solid;
    border-radius: 4px !important;
    color: #ed1c24;
    background-color: white;
    text-transform: initial;
    font-size: 15px !important;
    cursor: pointer;
    width: 7em;
    height: 2em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

    >p {
        margin: 0;
    }
}

.toAdd {
    border: 1px #00a650 solid;
    border-radius: 4px !important;
    color: white;
    cursor: pointer;
    background-color: #00a650;
    padding: 5px 36px;
    text-transform: initial;
    font-size: 15px !important;
    cursor: pointer;
    margin: 20px 0 0 10px;
    width: 9em;
}

.payments {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-type .title h1 {
    font-weight: bold;
    margin: 0;
    font-size: 1.5em;
}

.payment-type .payment-methods {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.methods .check-box {
    display: flex;
}

.methods .details {
    display: flex;
    align-items: center;
}

.methods .details img {
    height: 3em;
    top: 4px;
    position: relative;
    margin: 0 5px;
    filter: grayscale(100%);
}

.methods .details p {
    color: #9d9d9d;
}

.methods .check-box.active .details img {
    filter: none;
}

.methods .check-box.active .details p {
    color: #000;
}

.question .field {
    flex-direction: row;
    margin: 5px 0 5px 0;
    gap: 5px;
}

.question .field.column {
    flex-direction: column;
}

.question .field.column input {
    width: 13em;
    padding: .5em;
}

.question .field.column textarea {
    height: 7em;
}

/*  */

section#cropped {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    background-color: #000000ab;
    z-index: 999;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;

    >div#cropped {
        width: 80%;
        height: 80%;
        position: relative;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

        .cropped {
            width: 90%;
            height: 70%;
        }
    }
}

#cropped .actions {
    display: flex;
    align-items: center;
    margin-top: 2em;

    >button {
        margin: 10px;
        position: relative;
        top: 8%;
        outline: 0;
        border: 0;
        background-color: #ff6609;
        color: #fff;
        padding: 5px 15px;
        border-radius: 2px !important;
        font-weight: bold;
    }

    >button#cancelCropButton {
        background-color: #fd3a3a;
    }
}

label.required {
    color: red !important;
    font-weight: 600;
}

label.required::after {
    content: " *";
}

.download {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background-color: #ff6611;
    padding: 5px;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 8px;
}

.download iconify-icon {
    font-size: 15px;
}

@media screen and (max-width: 750px) {

    body {
        padding: 1.5em;
    }

    section#cropped {
        >div#cropped {
            width: 95%;
            height: 80%;
        }
    }

    main header {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    main header .content h2 {
        text-align: center;
    }

    main header img {
        height: 30vw;
    }

    .fieldsGroup {
        flex-wrap: wrap;
    }

    .docAttach .attachs {
        flex-wrap: wrap;
    }

    .attachs .attach .container#banner {
        width: 90%;
    }

    .docAttach#column .attachs {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .docAttach#column .fieldsGroup {
        width: 100%;
    }

    .district {
        flex: 0 0 calc(50% - 15px);
    }

    .districts .field,
    .field#minimum_value {
        width: 95%;
    }

    .days {
        flex-wrap: wrap;
    }

    .day {
        flex: 1 1 calc(50% - 10px);
    }

    .addcity {
        align-items: stretch;
    }

    .fieldsGroup .field.full#cep_field {
        width: 25%;
    }

    .fieldsGroup .field.full#cidade_field {
        width: 30%;
    }

    .fieldsGroup .field.full#bairro_field {
        width: 35%;
    }

    .field#cpf_field,
    .field#rg_field,
    .field#orgao_emissor_field,
    .field#razao_social_field,
    .field#CNPJ_field,
    .field#tel_cobranca_field {
        width: 100%;
    }

    .field#cpf_field input,
    .field#rg_field input,
    .field#orgao_emissor_field input,
    .field#tel_cobranca_field input {
        width: 100% !important;
    }

    .fieldsGroup .field {
        margin-right: 0;
    }

    .checkboxes .check {
        flex: 1 1 calc(50% - 10px);
    }
}