.neosale-hidden {
    display: none !important;
}

.neosale-payment,
.neosale-payment *,
.neosale-payment *::before,
.neosale-payment *::after,
.neosale-result,
.neosale-result *,
.neosale-result *::before,
.neosale-result *::after {
    box-sizing: border-box;
}

.neosale-result-page {
    margin: 0;
    background: #1f1f1f;
}

.t-popup[data-tooltip-hook="#popup:buy1click"],
.t-popup_show[data-tooltip-hook="#popup:buy1click"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.neosale-official-holder .tn-atom {
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.neosale-official-holder * {
    outline: 0 !important;
}
.neosale-official-holder {
    width: auto !important;
    min-width: 260px !important;
}

.neosale-official-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.neosale-price-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 270px;
    flex-shrink: 0;
}

@media screen and (max-width: 640px) {
    .neosale-price-image {
        display: none !important;
    }
}

.neosale-official-button {
    width: 100%;
    height: 100%;
    /*min-height: 54px;*/
	padding-top: 10px;
	padding-bottom: 10px;
    display: grid;
    place-items: center;
    border: 0;
    outline: 0;
    border-radius: 10px;
    background: #17a8df;
    color: #ffffff;
    font: 700 18px/1.05 Roboto, Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.neosale-official-button small {
    display: block;
	margin-top: 5px;
    font-size: 14px;
    line-height: 1.05;
    font-weight: 400;
}

.neosale-official-button:hover {
    background: #159fda;
}

.neosale-official-button:focus,
.neosale-official-button:focus-visible,
.neosale-official-button:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
.neosale-official-button {
    width: auto !important;
    min-width: 180px !important;
}

.neosale-partner-disabled .tn-atom {
    cursor: default !important;
    pointer-events: auto;
}

.neosale-partner-disabled img {
    opacity: 0.42;
    filter: grayscale(1);
}

body.neosale-modal-open {
    overflow: hidden;
}

.neosale-payment[hidden] {
    display: none !important;
}

.neosale-payment {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    font-family: Roboto, Arial, sans-serif;
}

.neosale-payment__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(5px);
}

.neosale-payment__dialog {
    position: relative;
    z-index: 1;
    width: min(660px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
}

.neosale-payment__inner {
    padding: 24px 30px 24px;
}

.neosale-payment__close {
    position: absolute;
    top: 17px;
    right: 19px;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #111111;
    font-size: 28px;
    line-height: 20px;
    cursor: pointer;
}

.neosale-payment__title {
    margin: 0 auto 30px;
    max-width: 520px;
    font-size: 40px;
    line-height: 1.24;
    font-weight: 700;
    text-align: center;
}

.neosale-payment__form {
    display: grid;
    gap: 20px;
}

.neosale-payment__form .neosale-payment__submit {
    gap: 0 !important;
}

.neosale-payment__field {
    display: grid;
    gap: 8px;
}

.neosale-payment__field span {
    color: #8b8b8b;
    font-size: 16px;
    font-weight: 700;
}

.neosale-payment__field input,
.neosale-payment__field textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #f8f8f8;
    color: #000000;
    font: inherit;
    font-size: 16px;
    padding: 17px 18px;
    outline: none;
}

.neosale-payment__field textarea {
    min-height: 88px;
    resize: vertical;
}

.neosale-payment__error {
    color: #ff6b6b;
    font-size: 13px;
    line-height: 1.25;
}

.neosale-payment__error:empty {
    display: none;
}

.neosale-payment__field.is-invalid input,
.neosale-payment__field.is-invalid textarea {
    border-color: #ff8d8d;
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.18);
}

.neosale-payment__agreement {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: #202020;
    font-size: 14px;
    line-height: 1.35;
}

.neosale-payment__agreement input {
    position: relative;
    width: 14px;
    height: 14px;
    margin: 2px 0 0;
    appearance: none;
    border: 1px solid #777777;
    background: #ffffff;
}

.neosale-payment__agreement input:checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 5px;
    height: 9px;
    border-right: 2px solid #111111;
    border-bottom: 2px solid #111111;
    transform: rotate(45deg);
}

.neosale-payment__agreement a {
    color: #009bf5;
    text-decoration: none;
}

.neosale-payment__agreement .neosale-payment__error {
    grid-column: 2;
}

.neosale-payment__submit {
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    background: #1d95f0;
    color: #ffffff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
	gap: 0 !important;
}

.neosale-payment__submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.neosale-payment__text,
.neosale-payment__note,
.neosale-payment__eyebrow {
    display: none;
}

.neosale-payment__message {
    min-height: 20px;
    color: #7ed8ff;
    font-weight: 500;
}

.neosale-payment__message.is-error {
    color: #ff6b6b;
}

.neosale-result {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 0;
    background: #1f1f1f;
    color: #ffffff;
    font-family: Roboto, Arial, sans-serif;
}

.neosale-result__card {
    position: relative;
    width: min(940px, 100%);
    overflow: hidden;
    background: #1f1f1f;
    box-shadow: none;
}

.neosale-result__visual {
    display: block;
    width: 100%;
    height: auto;
    background: #0b0e12;
}

.neosale-result__copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #f4f4f4;
    text-align: center;
    pointer-events: none;
}

.neosale-result__copy h1 {
    margin: 28px 0 26px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.18;
    font-weight: 400;
}

.neosale-result__copy p {
    margin: 0 0 26px;
    color: #f4f4f4;
    font-size: clamp(19px, 3vw, 28px);
    line-height: 1.25;
}

.neosale-result__check,
.neosale-result__fail-icon {
    position: relative;
    width: 102px;
    height: 102px;
    border: 4px solid #16a7e0;
    border-radius: 50%;
}

.neosale-result__check::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 27px;
    width: 35px;
    height: 20px;
    border-left: 5px solid #16a7e0;
    border-bottom: 5px solid #16a7e0;
    transform: rotate(-45deg);
}

.neosale-result__fail-icon::before,
.neosale-result__fail-icon::after {
    content: "";
    position: absolute;
    left: 48px;
    top: 26px;
    width: 4px;
    height: 48px;
    background: #16a7e0;
}

.neosale-result__fail-icon::before {
    transform: rotate(45deg);
}

.neosale-result__fail-icon::after {
    transform: rotate(-45deg);
}

.neosale-result__body {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.neosale-result__status,
.neosale-result__title,
.neosale-result__text,
.neosale-result__info {
    display: none;
}

.neosale-result__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: #1d95f0;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 560px) {
    .neosale-payment {
        align-items: stretch;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }

    .neosale-payment__dialog {
        position: relative;
        width: 100vw;
        height: 100dvh;
        min-height: 100dvh;
        max-height: none;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .neosale-payment__dialog::before {
        content: "";
        flex: 0 0 38px;
        display: block;
        background: #000000;
    }

    .neosale-payment__inner {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 17px 28px 34px;
    }

    .neosale-payment__close {
        top: 0;
        right: 0;
        z-index: 2;
        width: 38px;
        height: 38px;
        color: #ffffff;
        font-size: 28px;
        line-height: 38px;
        font-weight: 300;
        text-align: center;
    }

    .neosale-payment__title {
        margin: 0 0 18px;
        font-size: 20px;
        line-height: 1.28;
    }

    .neosale-payment__form {
        gap: 16px;
    }

    .neosale-payment__field {
        gap: 6px;
    }

    .neosale-payment__field span {
        font-size: 11px;
    }

    .neosale-payment__field input,
    .neosale-payment__field textarea {
        font-size: 11px;
        padding: 13px 12px;
    }

    .neosale-payment__agreement {
        grid-template-columns: 15px 1fr;
        gap: 7px;
        font-size: 11px;
        line-height: 1.35;
    }

    .neosale-payment__agreement input {
        width: 14px;
        height: 14px;
        margin-top: 0;
    }

    .neosale-payment__submit {
        min-height: 40px;
        font-size: 13px;
    }

    .neosale-result {
        display: block;
        min-height: 100dvh;
        padding: 0;
        background: #1f1f1f;
    }

    .neosale-result__card {
        width: 100%;
        min-height: 100dvh;
        background: #1f1f1f;
    }

    .neosale-result__visual {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 34dvh;
        object-fit: cover;
        object-position: center bottom;
    }

    .neosale-result__copy {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 9dvh;
        z-index: 1;
        justify-content: center;
        padding: 0;
    }

    .neosale-result__copy h1 {
        margin: 20px 0 18px;
        font-size: 24px;
        line-height: 1.2;
    }

    .neosale-result__copy p {
        margin-bottom: 16px;
        font-size: 15px;
        line-height: 1.25;
    }

    .neosale-result__check,
    .neosale-result__fail-icon {
        width: 70px;
        height: 70px;
    }

    .neosale-result__check::before {
        left: 20px;
        top: 18px;
        width: 25px;
        height: 15px;
    }

    .neosale-result__body {
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 16px;
        z-index: 2;
        display: block;
        padding: 0;
        background: transparent;
        color: #ffffff;
    }

    .neosale-result__info {
        display: none;
    }

    .neosale-result__button {
        width: 100%;
        min-height: 40px;
        font-size: 11px;
    }
}

.neosale-official-button {
    position: relative;
    overflow: visible !important;
}

.neosale-discount-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 90px;      /* 180/2 = 90, чтобы не было огромной */
    height: auto;
    pointer-events: none;
    z-index: 10;
}
/* Состояние кнопки, пока AJAX добавляет товар в корзину. */
.neosale-cart-busy {
    opacity: .65 !important;
    pointer-events: none !important;
    cursor: wait !important;
}


/* Полноэкранный спинер для stage 4/5, пока товар добавляется в корзину. */
.neosale-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .60);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.neosale-cart-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.neosale-cart-overlay[hidden] {
    display: none !important;
}

.neosale-cart-overlay__spinner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.neosale-cart-overlay__spinner span {
    width: 38px;
    height: 38px;
    border: 4px solid rgba(255, 255, 255, .55);
    border-top-color: #17a8df;
    border-radius: 50%;
    animation: neosale-cart-spin .8s linear infinite;
}

@keyframes neosale-cart-spin {
    to {
        transform: rotate(360deg);
    }
}
