@import 'https://cdn.podeli.ru/common-css/font-faces.css';
@import 'https://cdn.podeli.ru/common-css/root-colors.css';

/* Стили для основного виджета */
.a4-widget-main {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    background: var(--white-text);
    border: 1px solid var(--form-line);
}

.widget-container {
    display: -ms-inline-flexbox;
    display: inline-flex;
    position: relative;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 20px 15px;
    font-family: 'Styrene B LC', sans-serif !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;

}

.widget-container__header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 10px;
}

.widget-header__left-part {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    white-space: nowrap;
}

.widget-discount__container {
    display: -ms-inline-flexbox;
    display: inline-flex;
    position: relative;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.widget-header__cloud {
    display: none;
    margin: 0 auto;
    width: 100px;
    position: absolute;
    left: 100%;
    font-family: 'Styrene B LC', sans-serif !important;
    bottom: 85%;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--gray);
}

.widget-cloud__text {
    font-size: 10px;
    margin: 0 auto;
    width: 69%;
    word-break: break-word;
    font-weight: 400;
    font-family: 'Styrene B LC', sans-serif !important;
    line-height: 15px;
    letter-spacing: -0.02em;
    color: var(--dark-date);
    white-space: normal;
}

.widget-header__right-part {
    position: relative;
    top: 2px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.widget-header__amount {
    font-size: 24px;
    font-family: 'Styrene B LC', sans-serif !important;
    font-weight: 400;
    margin-right: 10px;
    color: var(--black-text)
}

.widget-header__percent {
    position: relative;
    padding: 4px;
    height: 9px;
    background: var(--red-background);
    cursor: pointer;
}

.widget-header__info-text {
    font-size: 16px;
    font-family: 'Styrene B LC', sans-serif !important;
    font-weight: 400;
    white-space: nowrap;
    color: var(--black-text);
}

.widget-header__info-img {
    height: 18px;
    margin-left: 4px;
    margin-top: 0;
    cursor: pointer;
    -ms-touch-action: none;
    touch-action: none;
}

.widget-header__discount {
    font-size: 20px;
    font-family: 'Styrene B LC', sans-serif !important;
    font-weight: 400;
    margin-right: 10px;
    color: var(--discount);
    text-decoration: line-through;
}

.widget-content__parts {
    display: -ms-inline-flexbox;
    display: inline-flex;
    width: 100%;
}

.widget-content__part {
    position: relative;
    margin-right: 8px;
    width: 25%;
    left: 2px;
}

.widget-content__part:last-child {
    margin-right: 0;
}

.widget-content__part:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: 8px;
    background: var(--gray);
    opacity: 0.5;
}

.widget-content__part:first-child:before {
    opacity: 1;
    background: var(--red-background);
}

.widget-part__amount {
    font-size: 20px;
    font-family: 'Styrene B LC', sans-serif !important;
    font-weight: 400;
    color: var(--black-text);
    white-space: nowrap;
}

.widget-part__date {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 16px;
    margin-top: 7px;
    font-family: 'Styrene B LC', sans-serif !important;
    color: var(--dark-date);
    white-space: nowrap;
    opacity: 0.5;
}

.widget-container__footer {
    display: -ms-inline-flexbox;
    display: inline-flex;
    margin-top: 10px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.widget-footer__button-main {
    display: none;
    width: 238px;
    height: 40px;
    background: var(--red-background);
    font-size: 14px;
    font-weight: 400;
    border: none;
    border-radius: 4px;
    font-family: 'Styrene B LC', sans-serif !important;
    color: var(--white-text);
    margin-left: auto;
    cursor: pointer;
    white-space: nowrap;
}

.widget-footer__info {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.widget-footer__text {
    display: inline-block;
    width: 80px;
    font-family: 'Styrene B LC', sans-serif !important;
    color: var(--dark-date);
    font-size: 10px;
    font-weight: 400;
    margin-left: 12px;
}

/*-------------------------------------------------------*/

/*  стили правого блока с кнопкой  */

.widget-payment-block {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-right: 20px;
    max-width: 320px;
    font-family: 'Styrene B LC', sans-serif !important;
}

.widget-payment-block__header {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 15px;
    margin: 0 auto;
}

.widget-payment-block__button {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Styrene B LC', sans-serif !important;
    width: 50%;
    color: var(--white-text);
    padding: 10px 25px;
    background: var(--red-background);
    border: none;
    cursor: pointer;
}

.a4-widget__separator {
    height: 100px;
    border: 1px solid #000000;
    opacity: 0.1;
    margin: 0 20px;
}


/*-----------------стили формы------------------*/
.widget-form {
    display: none;
    z-index: 99;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-box-shadow: var(--box-shadow-radius);
    box-shadow: var(--box-shadow-radius);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background: var(--white-text);
    min-height: 390px;
    min-width: 450px;
    font-family: 'Styrene B LC', sans-serif !important;
}

.widget-form__background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: #000000;
    opacity: 0.5;
    z-index: 9;
}


.widget-form__block-1 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.widget-block-1__img {
    width: 120px;
    margin-bottom: 36px;
    border-radius: 0 !important;
}

.widget-block-1__text_primary {
    font-family: 'Styrene B LC', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    color: var(--black-text);
}

.widget-block-1__text_secondary {
    font-family: 'Styrene B LC', sans-serif !important;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--sub-text);
}

.widget-form__block-2 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100px;
    padding: 0 16px;
    background: var(--block-2-background);
}

.widget-block-2__payment {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.widget-payment__img {
    height: 28px;
    margin-bottom: 12px;
}

.widget-form__img_close {
    position: relative;
    margin-left: auto;
    margin-top: 14px;
    margin-right: 14px;
    height: 20px;
    width: 20px;
    cursor: pointer;
}

.widget-payment__line {
    position: relative;
    left: 50%;
    bottom: 25%;
    width: 65px;
    height: 1px;
    background: var(--form-line);
}

.widget-block-2__text_secondary {
    font-family: 'Styrene B LC', sans-serif !important;
    font-size: 8px;
    font-weight: 400;
    color: var(--sub-text);
}

.widget-form__block-3 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 56px;
    background: var(--block-3-background);
}

.widget-block-3__text {
    font-family: 'Styrene B LC', sans-serif !important;
    font-size: 12px;
    width: 70%;
    font-weight: 400;
    text-align: center;
    color: var(--sub-text);
}

.widget-form__block-4 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 76px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.widget-block-4__text_primary {
    font-family: 'Styrene B LC', sans-serif !important;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 2px;
    color: var(--black-text);
}

.widget-block-4__text_secondary {
    font-family: 'Styrene B LC', sans-serif !important;
    font-size: 8px;
    font-weight: 400;
    color: var(--sub-text);
    text-align: center;
}

.widget-block-4__text_primary-decoration {
    text-decoration: underline;
}

.widget-container__logo {
    width: 240px;
    height: 27px;
}

.widget-interactive-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.widget-interactive-block {
    display: none;
}

.widget-interactive-block__img {
    display: none;
}


/* Медиа запросы */


@media screen and (max-width: 480px) {
    .widget-header__amount {
        font-size: 18px;
    }

    .widget-header__info-text {
        font-size: 14px;
    }

    .widget-header__info-img {
        height: 14px;
    }

    .widget-part__date {
        font-size: 14px;
    }

    .widget-part__amount {
        font-size: 16px;
    }

    .widget-container__footer {
        flex-direction: column;
    }

    .widget-footer__button-main {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
        order: -1;
    }

    .widget-container__logo {
        order: 1;
    }
}