/*************************** New *****************/

#new {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 40px;
}

#newTitle {
    font-weight: 700;
    font-size: 42px;
    text-align: center;
    padding: 0 20px;
}

#newProgress {
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    column-gap: 15px;
    padding: 0 80px 0 40px;
}

.newProgressItem {
    padding: 10px 10px 10px 45px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    transition: 0.3s;
    position: relative;
    background-color: var(--light-brown);
    color: white;
}

.newProgressItem::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    bottom: 0;
    left: 0;
    border-left: 35px solid white;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    transition: 0.3s;
    z-index: 1;
}

.newProgressItem::before {
    content: "";
    transition: 0.3s;
    position: absolute;
    width: 0;
    height: 0;
    bottom: 0;
    right: -34px;
    border-left: 35px solid var(--light-brown);
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    z-index: 2;
}

.newProgressItem.active {
    background-color: var(--brown);
    font-weight: 700;
}

.newProgressItem.active::before {
    border-left-color: var(--brown);
}

#new .swiper-slide {
    height: auto;
}

@media (max-width: 800px) {

    #newTitle {
        font-size: 32px;
    }

    #newProgress {
        column-gap: 5px;
        padding: 0 40px 0 20px;
    }

    .newProgressItem {
        padding: 8px 0 8px 20px;
        font-size: 10px;
        height: 40px;
    }

    .newProgressItem::after {
        border-left: 20px solid white;
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
    }

    .newProgressItem::before {
        right: -20px;
        border-left: 20px solid var(--light-brown);
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
    }


}

/********************* Templates *******************/

#newSwiperTemplates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 40px;
    column-gap: 40px;
    padding: 0 20px;
}

.newSwiperTemplatesItem {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: white;
}

.newSwiperTemplatesItem[template="9"] {
    order: -99;
    border: 3px solid var(--brown);
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 8px;
}

.newSwiperTemplatesItem[template="9"]::after {
    content: "Start from scratch";
}

.newSwiperTemplatesItem[template="9"] svg {
    width: 60px;
    height: auto;
}

.newSwiperTemplatesItemThumbnail {
    border-radius: 8px;
    aspect-ratio: 1;
}

@media (max-width: 800px) {
    #newSwiperTemplates {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 15px;
        column-gap: 15px;
    }
}

/************************* Name *************************/

#newSwiperName {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#newSwiperNameTitle {
    font-size: 26px;
    text-align: center;
    margin-bottom: 20px;
}

#newSwiperNameInput {
    max-width: 300px;
    margin-bottom: 20px;
}

#newSwiperNameButton {
    margin-bottom: 10px;
}

#newSwiperNameBack {
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--black);
}

#newSwiperNameBack svg {
    width: 20px;
    height: auto;
}
