.uteka-widget {
    /* Минимально поддерживаемые размеры виджета: 320x520. */
    width: 100%;
    height: 768px;
    outline: 1px solid #e0e0e0;
}

.uteka-widget iframe {
    border: none;
    width: 100%;
    height: calc(100% - 57px);
}

.uteka-widget__container {
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 600px) {
    .uteka-widget__container {
        padding: 0 20px;
    }
}

@media (min-width: 768px) {
    .uteka-widget__container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .uteka-widget__container {
        padding: 0 44px;
    }
}

@media (min-width: 1440px) {
    .uteka-widget__container {
        padding: 0 60px;
        max-width: 1440px;
    }
}

.uteka-widget-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.uteka-widget-header__inner {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 56px;
}

.uteka-widget-header__title {
    background: url('https://widget.uteka.ru/static/img/widgets/title_2@mobile.svg') no-repeat;
    background-position: center;
    width: 230px;
    height: 24px;
}

.uteka-widget-header__logo {
    height: 16px;
}

.uteka-widget-header__logo img {
    height: 100%;
}

.uteka-widget-header__close {
    position: absolute;
    top: 0;
    right: -8px;
    bottom: 0;
    z-index: 5;
    margin: auto;
    width: 32px;
    height: 32px;
    background: url('https://widget.uteka.ru/static/img/widgets/close_2.svg') no-repeat center;
}

@media (min-width: 1024px) {
    .uteka-widget-header__inner {
        flex-direction: row;
    }

    .uteka-widget-header__title {
        background-image: url('https://widget.uteka.ru/static/img/widgets/title_2.svg');
        width: 264px;
        height: 24px;
    }

    .uteka-widget-header__logo {
        position: absolute;
        left: 0;
        bottom: 0;
        top: 0;
        margin: auto;
        height: 32px;
    }
}


/* Наши стили */
.uteka-widget {
    height: 620px;
}

.uteka-widget iframe {
    min-height: 660px !important
}

.uteka-widget-header {
    border: none;
    min-height: 80px;
}

.uteka-widget-header__inner {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px 16px !important;
    background: #fff !important;
    box-shadow: none !important;
    line-height: 0 !important
}

.uteka-widget-header__logo {
    height: 24px !important;
    margin: 5px 0 0 0 !important
}

.uteka-widget-header__inner {
    height: auto !important
}

.uteka-widget-header__title {
    display: block !important;
    margin: 0 !important;
    position: relative !important;
    text-align: center !important;
    width: 100% !important;
    height: 25px !important;
    color: #ffffff !important;
    background: none !important;
    font-family: sans-serif !important
}

.uteka-widget-header__title::after {
    content: 'Вы находитесь на виджете сервиса Ютека. АО «Отисифарм» не несет ответственность за содержание и корректность работы сервиса Ютека.' !important;
    display: inline-block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    padding: 5px 15px !important;
    line-height: 1.2 !important;
    font-size: 12px !important;
    text-align: center !important;
    color: #828282 !important;
    box-sizing: border-box !important
}

.uteka-widget-header__logo {
    margin-top: 6px !important
}

.uteka-widget-header__logo img {
    width: 79px !important
}

.uteka-widget__warning {
    display: block !important;
    margin: 0 !important;
    position: relative !important;
    text-align: center !important;
    width: 100% !important;
    height: 30px !important;
    color: #ffffff !important;
    background: #ffffff !important;
    font-family: sans-serif !important
}

.uteka-widget__warning::after {
    content: 'Вы находитесь на виджете сервиса Ютека. АО «Отисифарм» не несет ответственность за содержание и корректность работы сервиса Ютека.' !important;
    display: inline-block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    padding: 5px 15px !important;
    line-height: 1.2 !important;
    font-size: 12px !important;
    text-align: center !important;
    color: #828282 !important;
    box-sizing: border-box !important
}

.uteka-widget-buypage-wrapper {
    height: 620px !important;
    margin: 0 !important
}

.uteka-widget-buypage {
    position: relative;
    width: 100%;
    height: 620px;
    outline: 1px solid #e0e0e0
}

.uteka-widget-buypage iframe {
    border: none !important;
    width: 100% !important;
    height: calc(100% - 80px) !important;
    min-height: 0 !important;
}

.uteka-widget-header__close {
    display: none;
}

@media (min-width:1440px) {
    .uteka-widget-header__logo {
        position: relative !important;
        top: inherit !important;
        bottom: inherit !important;
        left: inherit !important;
        height: 32px !important;
        margin: auto !important
    }
}

@media (max-width:1440px) {
    .uteka-widget-header {
        padding: 0 0
    }
}

@media (min-width:768px) {
    .uteka-widget-header {
        flex-direction: row !important
    }

    .uteka-widget__title {
        background: url('https://widget.uteka.ru/static/img/widgets/title.svg') no-repeat !important;
        background-size: contain !important;
        width: 214px !important;
        height: 23px !important;
        margin-bottom: -3px !important
    }

    .uteka-widget__logo {
        margin-top: 0 !important;
        margin-left: 8px !important
    }

    .uteka-widget__logo img {
        width: 109px !important
    }
}

@media (min-width:1024px) {
    .uteka-widget__container {
        padding: 0 20px !important
    }

    .uteka-widget-header__logo {
        position: relative;
    }
}

@media (max-width:1024px) {
    .uteka-widget-header__inner {
        padding-bottom: 15px !important
    }
}

@media (min-width:768px) {
    .uteka-widget__container {
        padding: 0 20px !important
    }
}

@media (max-width:768px) {
    .uteka-widget__container {
        padding: 0 20px !important
    }

    .uteka-widget__warning {
        height: 50px !important
    }
}

@media (max-width:600px) {
    .uteka-widget-popup__body {
        overflow: hidden
    }

    .uteka-widget {
        height: 100% !important
    }

    .uteka-widget-header__title::after {
        font-size: 11px !important
    }

    .uteka-widget-header__inner {
        line-height: 0 !important;
        padding: 0 0 5px 0 !important
    }

    .uteka-widget-header__title {
        height: 44px !important
    }
}

@media (max-width:340px) {
    .uteka-widget__warning {
        height: 55px !important
    }

    .uteka-widget__warning::after {
        font-size: 11px !important
    }
}