/* Ported from uus classic-child custom.css — CMS infolehed only.
   Source: body#cms width (~3172-3219) + MIU KIDS INFOLEHTEDE (~4976-5021).
   All selectors scoped to body#cms. HB adapter for page-content--cms. */

body#cms .rte > div,
body#cms .cms-content > div,
body#cms .page-cms > div,
body#cms [style*="max-width: 850px"] {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 992px) {
    body#cms #content-wrapper,
    body#cms .container {
        padding-left: 40px !important;
        padding-right: 40px !important;
        box-sizing: border-box !important;
    }
    body#cms .rte > div,
    body#cms .cms-content > div {
        max-width: 1100px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 767px) {
    body#cms #content-wrapper,
    body#cms .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    body#cms .page-content,
    body#cms .cms-content,
    body#cms .rte {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

body#cms .miu-container,
body#cms #miu-tingimused,
body#cms #miu-makse,
body#cms #miu-inbank,
body#cms #miu-maksa-hiljem,
body#cms #miu-asutused,
body#cms #miu-privaatsus {
    border-radius: 24px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
body#cms .miu-box { border-radius: 20px !important; }
body#cms .miu-title-box { border-radius: 30px !important; }

@media only screen and (max-width: 767px) {
    body#cms #content.page-content,
    body#cms .page-cms { padding: 0px !important; }
    body#cms .miu-container,
    body#cms #miu-tingimused,
    body#cms #miu-makse,
    body#cms #miu-inbank,
    body#cms #miu-maksa-hiljem,
    body#cms #miu-asutused,
    body#cms #miu-privaatsus {
        padding: 8px !important;
        margin: 10px 0 !important;
        border-radius: 12px !important;
    }
    body#cms .miu-box { padding: 15px !important; border-radius: 12px !important; }
    body#cms .miu-title-box {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }
}

body#cms #content.page-content--cms > div[id^="miu-"],
body#cms #content.page-content--cms > div.miu-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
@media (min-width: 992px) {
    body#cms #content.page-content--cms > div[id^="miu-"],
    body#cms #content.page-content--cms > div.miu-container {
        max-width: 1100px !important;
        margin: 0 auto !important;
    }
}
