body > main article.form,
body > main article.abstract {
    display: block;
    background: var(--gray);
    border: var(--box-border);
    border: var(--border);
    border-radius: var(--box-border-radius);
    width: calc(100% - 2.5em);
    margin: 1.25em auto;
    padding: 0 1em 1em 1em;
}

body > main article.form article.form {
    border: none;
    background: transparent;
    margin: 1rem 0;
    padding: 0;
}

body > main article.form.fullWidth {
    display: block;
    margin: 1rem auto;
}

body > main article.abstract {
    border: var(--border);
}

body > main article.abstract > * {
    width: 100%;
}

body > main article.abstract > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body > main article.abstract > ul > li {
    border-bottom: var(--box-border);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    margin: 0 0 .5em 0;
    min-height: 24px;
    line-height: 24px;
    font-weight: 600;
}

body > main article.abstract > ul > li:last-child {
    grid-template-columns: 50px 1fr;
}

body > main article.abstract > ul > li > span {
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

body > main article.abstract > ul > li:last-of-type {
    border: none;
    margin: 0;
}

body > main article.abstract > ul > li.image img {
    max-width: 100%;
}

body > main article.abstract > ul > li > .price {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-content: space-between;
    margin: .25em 0 0 0;
}

body > main article.abstract > ul > li.address {
    grid-template-columns: 1fr 1fr;
}

body > main article.abstract > ul > li.address > span.title {
    grid-column-start: 1;
    grid-column-end: 3;
    text-align: left;
}

body > main article.abstract > ul > li.address m-value:nth-child(even) > span {
    padding: 0;
}

body > main article.abstract > ul > li > .price m-value {
    width: auto;
}

body > main article.abstract > ul > li > .price > span,
body > main article.abstract > ul > li > .price > span > m-value span.value {
    position: relative;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: initial;
    overflow: unset;
    padding: 0;
    text-align: right;
}

body > main article.abstract > ul > li > .price > span .removeIt m-value span.value {
    position: relative;
    overflow: unset;
}

body > main article.abstract > ul > li > .price > span > span {
    font-size: 1rem;
    font-weight: 400;
}

body > main article.abstract > ul > li > .price > span.small {
    font-size: .85rem;
    font-weight: 400;
    margin: 0.25em 0 0 0;
}

body > main article.abstract > ul > li m-value > span {
    color: var(--black);
    font-weight: 400;
    font-size: 1em;
    text-align: right;
    padding: 0 0 0 0.5em;
}

body > main article.abstract > ul > li .price m-value > span {
    padding: 0;
    font-size: .8rem;
}

body > main article.abstract > ul > span.small {
    font-size: .85rem;
    line-height: 1.5em;
}

body > main article.abstract > ul ~ m-button {
    margin: 1.5em 0 0 auto;
    max-width: fit-content;
    display: block;
    direction: rtl;
}

body > main article.abstract > ul ~ m-button.next > .icon {
    margin: -4px 0 0 4px;
}

body > main article.form h2,
body > main article.abstract h2 {
    font-size: 1.5em;
    font-family: var(--primary-font);
    margin: .75em 0;
    width: 100%;
    text-align: left;
    text-transform: uppercase;
}

body > main article.form m-list h2 {
    margin: 0 0 .5rem 0;
    line-height: 1.75rem;
    white-space: break-spaces;
}

body > main article.form m-list h3 {
    font-size: 1rem;
    margin: 0 0 .5rem 0;
    line-height: 1.25rem;
    white-space: break-spaces;
}

body > main article.abstract.notice {
    padding: 0 0 1em 0;
}

body > main article.abstract.notice h2 {
    font-family: var(--primary-font);
    border-top-right-radius: var(--box-border-radius);
    border-top-left-radius: var(--box-border-radius);
    background: var(--primary);
    margin: 0;
    padding: 0.5em;
    text-transform: uppercase;
    font-size: 1.5em;
}

body > main article.abstract.notice h2.info:before {
    content: '';
    height: 28px;
    width: 28px;
    min-width: 28px;
    top: -2px;
    background: var(--black);
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.25em 0 0;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background: var(--white);
    -webkit-mask-image: url(https://mediagroup-central.s3.eu-central-1.amazonaws.com/images/icons/info.svg);
    mask-image: url(https://mediagroup-central.s3.eu-central-1.amazonaws.com/images/icons/info.svg);
}

body > main article.abstract.notice p {
    padding: 1em 1em 0 1em;
    margin: 0;
}

body > main article.abstract.notice a {
    color: var(--primary);
    text-decoration: underline;
}

body > main article.abstract h2 {
    margin: .5em 0;
}

body > main article.form p,
body > main article.abstract p {
    width: 100%;
}

body > main article.form a {
    color: var(--primary);
}

body > main article.form m-list p.text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    white-space: break-spaces;
    margin: 0;
}

body > main article > div.info {
    width: 100%;
    background: var(--primary);
    border-radius: var(--box-border-radius);
    padding: 1em;
    margin: 0.5em 0 1em 0;
}

body > main article span.small {
    position: relative;
    display: block;
    margin: 1.25em 0 0 0;
}

main > article > section {
    margin: 0;
    width: 100%;
}

body > main article.form nav {
    width: 100%;
    display: inline-block;
}

body > main article.form nav m-button {
    margin: 0 1rem 0 0;
}

body > main article.form nav m-button:last-child {
    margin: 0;
}

body > main article.form nav m-button.next {
    float: right;
}

fieldset > div {
    display: inline-block;
    width: calc(100% - 32px);
}

.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

body > main article .payment {
    flex-direction: column;
}

body > main article .payment > fieldset {
    border-bottom: 1px solid var(--medium-gray);
    margin: 0;
    padding: 1em 0;
    /*width: calc(100% - 24px);*/
}

body > main article .payment > fieldset div {
    position: relative;
    display: none;
    opacity: 0;
    height: 0;
    transition: all .3s;
}

body > main article .payment > fieldset m-state.active ~ div {
    display: block;
    opacity: 1;
    width: 100%;
    height: 100%;
    margin: 48px 0 0 0;
}

body > main article .payment > fieldset m-state.radiobutton {
    min-height: 42px;
    margin: 0;
}

m-state > .frame {
    /*min-width: 42px;*/
    min-width: auto;
}

body > main article * > fieldset m-state > .frame > .label {
    margin: 0;
    text-align: left;
    line-height: 1.5em;
}

body > main article .payment > fieldset m-state .label img {
    position: relative;
    display: block;
    max-height: 32px;
    width: auto;
    margin: 0 auto 0 0;
}

body > main article.stepper {
    padding: 0 0 0 .5em;
    background: var(--gray);
}

body > main article.stepper > h2,
body > main article.stepper > p {
    padding: 0 1rem 0 .5rem;
}

.stepper {
    margin: 4em 1em 0 1em;
    padding: 0;
    width: calc(100% - 2em);
}

.stepper > li {
    position: relative;
    list-style: none;
    border-left: 1px solid var(--gray);
    min-height: 2em;
    top: 1em;
    margin: 0 0 3em 0;
    padding: 0 0 0 1.5em;
}

.stepper > li:last-of-type {
    border: none;
    min-height: 0;
    margin: 0;
}

.stepper > li.completed > *,
.stepper > li > * {
    display: none;
}

.stepper > li > * {
    position: relative;
    top: -1.7em;
}

.stepper > li.active > *,
.stepper > li > .circle,
.stepper > li.completed > h2,
body > main article.form .stepper > li > h2 {
    display: block;
    margin: 0;
}

.stepper > li > .circle {
    position: absolute;
    left: -1em;
    background: var(--medium-gray);
    color: var(--white);
    width: 2em;
    height: 2em;
    border-radius: 50%;
    text-align: center;
    line-height: 2em;
    font-weight: 700;
    top: -2.5em;
}

.stepper > li.active > .circle,
.stepper > li.completed > .circle {
    background: var(--primary);
}

.stepper > li.completed > .circle {
    color: transparent;
}

.stepper > li.completed > .circle:before {
    content: '';
    height: 2em;
    width: 2em;
    min-width: 2em;
    background: var(--white);
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.5em 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-image: url(https://mediagroup-central.s3.eu-central-1.amazonaws.com/images/icons/check.svg);
    mask-image: url(https://mediagroup-central.s3.eu-central-1.amazonaws.com/images/icons/check.svg);
}

body > main article.stepper .stepper > li > nav {
    margin: 1em 0;
}

@media (min-width: 768px) {
    body > main article.form.fullWidth section {
        position: relative;
        display: inline-flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        flex-wrap: nowrap;
    }

    body > main article.form.fullWidth section fieldset {
        width: 100%;
        margin: 0 1em 0 0;
    }

    body > main article.form.fullWidth section fieldset:last-child {
        margin: 0;
    }

    body > main article.stepper > h2,
    body > main article.stepper > p {
        padding: 0 1rem 0 0;
    }

    body > main article.stepper .stepper > li.active section {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    body > main article.stepper .stepper > li section fieldset {
        width: 100%;
        margin: 0 1em 0 0;
    }

    body > main article.stepper .stepper > li section fieldset:last-child {
        margin: 0;
    }

    body > main article.abstract > ul > li m-value > span {
        padding: 0;
    }

    body > main article.stepper {
        padding: 0 0 0 1em;
    }

    .stepper > li {
        padding: 0 0 0 2em;
        width: 100%;
        position: relative;
        display: inline-block;
    }

    .stepper > li > * {
        display: none;
    }

    .stepper > li.active > * {
        display: inline-block;
    }

    body > main article.form m-list p.text {
        -webkit-line-clamp: 3;
    }

}

@media (min-width: 1400px) {
    body > main {
        display: block;
        width: 1400px;
        margin: 4em auto 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: calc(var(--max-content-width) - 2em);
    }

    body > main article.form {
        margin: 0 auto 2em 0;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
        align-content: flex-start;
        height: fit-content;
        width: calc(var(--max-content-width) - 464px);
    }

    body > main article.form.fullWidth {
        width: 100%;
    }

    body > main article.abstract {
        width: 400px;
        position: absolute;
        margin: 0;
        z-index: 1;
        top: 0;
        left: calc(50% + 250px);
    }

    body > main article.abstract > ul > li {
        grid-template-columns: 1fr;
        margin: 0 0 .25em 0;
    }

    body > main article.abstract > ul > li m-value > span,
    body > main article.abstract > ul > li > span {
        text-align: left;
    }

    body > main article section {
        position: relative;
        display: inline-flex;
        flex-direction: row;
        justify-content: space-between;
        width: calc(100% - 2rem);
        flex-wrap: nowrap;
    }

    body > main article.fullWidth > section {
        flex-direction: column;
    }

    body > main article section.variant_true {
        flex-wrap: wrap;
    }

    body > main article section div > section {
        flex-direction: row;
    }

    body > main article section fieldset {
        width: 100%;
        margin: 0 1em 0 0;
    }

    body > main article section.debit {
        flex-direction: column;
    }

    fieldset.small {
        width: 50%;
    }
    body > main article section fieldset:last-child,
    body > main article > section fieldset:last-child {
        margin: 0;
    }
}