:root {
    --h1_text_color: #525B5B;
    --h2_text_color: #525B5B;
    --h3_text_color: #525B5B;
    --h4_text_color: #525B5B;
    --h5_text_color: #525B5B;
    --h6_text_color: #525B5B;
    --text_primary_color: #333;
    --input_primary_color: #AEBD15;
    --input_text_primary_color: #fff;
    --button_primary_color: #AEBD15;
    --button_text_primary_color: #fff;
}

.agreementContainer {
    color: var(--text_primary_color);
    max-width: 960px;
    margin: 2rem auto;
    font-size: 18px;
}

.agreementContainerError {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.agreementContainer h1 {
    color: var(--h1_text_color);
}

.agreementContainer h2 {
    color: var(--h2_text_color);
}

.agreementContainer h3 {
    color: var(--h3_text_color);
}

.agreementContainer h4 {
    color: var(--h4_text_color);
}

.agreementContainer h5 {
    color: var(--h5_text_color);
}

.agreementContainer h6 {
    color: var(--h6_text_color);
}

.agreementContainer h1 {
    font-size: clamp(30px, 4vw, 40px);
}

.agreementContainer h2 {
    font-size: clamp(22px, 3vw, 24px);
}

.agreementContainer h3 {
    font-size: clamp(20px, 3vw, 22px);
}

.agreementContainer button[type="submit"],
.agreementContainer input[type="submit"] {
    display: inline-block;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 2px;
    outline: none;
    transition: all .2s ease;
    border: 1px solid var(--input_primary_color);
}

.agreementContainer input[type="submit"] {
    background: var(--input_primary_color);
    color: var(--input_text_primary_color);
    border: 1px solid var(--input_primary_color);
}

.agreementContainer button[type="submit"] {
    background: var(--button_primary_color);
    color: var(--button_text_primary_color);
    border: 1px solid var(--button_primary_color);
}

.agreementContainer button[type="submit"]:hover {
    background: var(--button_text_primary_color);
    color: var(--button_primary_color);
}

.agreementContainer input[type="submit"]:hover {
    background: var(--input_text_primary_color);
    color: var(--input_primary_color);
}

.agreementRequiredBlocks {
    padding: 2rem 0;
}

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

.agreementMarkdownBlock {
    border-bottom: 1px solid #ddd;
}

.agreementMarkdownBlock:not(.v2) {
    padding: 1rem 0;
}

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

.agreementDropDownBlockBtn h2,
.agreementDropDownBlockBtn h3 {
    margin: 0;
}

.agreementDropDownBlockBtn {
    padding: 20px 0;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.agreementDropDownBlockBtn:before {
    content: '';
    width: 12px;
    height: 12px;
    position: absolute;
    right: 5px;
    top: -5px;
    bottom: 0;
    margin: auto;
    border-width: 0 0 2px 2px;
    border-style: solid;
    border-color: #444;
    transform: rotate(-45deg);
    transition: transform ease .2s;
}

.agreementDropDownBlockBtn.active:before {
    transform: rotate(135deg);
    top: 10px;
}

.agreementDropDownBlockCnt {
    overflow: hidden;
    max-height: 0;
    position: relative;
    transition: all .3s ease;
}

.agreementDropDownBlockCnt.active {
    padding: 0 0 16px;
}

.agreementWiderrufForm {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    grid-gap: 20px;
    margin: 0 0 20px;
    padding: 0 0 20px;
    border-bottom: 1px solid #ddd;
}

.agreementWiderrufBlockRight {
    width: 100%;
    font-size: 14px;
    text-align: right;
    color: #444;
    margin: 1rem 0 -15px;
}

.agreementWiderrufBlockItalic {
    font-size: 14px;
    font-style: italic;
    color: #666;
    padding: 0 0 10px;
    margin: 0 0 10px 0;
    border-top: 1px solid #ddd;
}

.agreementWiderrufInlineBlock {
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.agreementWiderrufInlineBlock.end {
    justify-content: flex-end;
}

.agreementWiderrufBlock label {
    display: flex;
    flex-direction: row;
    grid-gap: 10px;
    line-height: 1.4;
}

.agreementWiderrufBlock label input {
    width: 21px !important;
    height: 21px !important;
    min-height: 21px !important;
    min-width: 21px !important;
    background: #ddd !important;
    margin: 5px 0 0 !important;
    outline: none !important;
    accent-color: var(--input_primary_color);
}

.agreementWiderrufBlock label input:before {
    line-height: 22px;
    font-size: 15px
}

.agreementWiderrufBlockPrint {
    display: block;
    margin-left: 10px;
    cursor: pointer;
}

.agreementWiderrufBlockPrint i {
    font-size: 20px;
}

.agreementMarkdownWarnBlock {
    display: block;
    border: 4px solid var(--text_primary_color);
    width: 100%;
    padding: 10px;
    margin: 2rem 0;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body,
    body {
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        margin: 0;
        padding: 1rem 2rem;
    }

    .agreementContainer {
        font-size: 15px;
    }

    .agreementContainer h1 {
        font-size: 34px;
    }

    .agreementContainer h2 {
        font-size: 24px;
    }

    .agreementContainer h3 {
        font-size: 20px;
    }

    .agreementDropDownBlockBtn,
    .agreementDropDownBlockCnt {
        max-height: 100% !important;
    }

    .agreementDropDownBlockCnt {
        padding: 0 0 16px;
    }

    .agreementDropDownBlockBtn:before {
        content: none;
    }

    .agreementWiderrufPrint {
        display: none;
    }
}