* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f6f7f8;
}

.center {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    flex-direction: column;
}

.product {
    padding: 35px;
    background-color: #fff;
    position: relative;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.07);
    border-radius: 0 0 6px 6px;
    max-width: 540px;
    width: 100%;
}

.product-head {
    margin-bottom: 34px;
    padding-bottom: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #DEE3F1;
}

.product-top {
    background: linear-gradient(-45deg, #fff 10px, transparent 0), linear-gradient(45deg, #fff 10px, transparent 0);
    background-position-x: 0%, 0%;
    background-position-y: 0%, 0%;
    background-repeat: repeat, repeat;
    background-size: auto, auto;
    background-position: left top;
    background-repeat: repeat-x;
    background-size: 20px 20px;
    content: " ";
    display: block;
    height: 20px;
    width: 100%;
    position: absolute;
    top: -20px;
    left: 0;
}

.product-image {
    margin-right: 24px;
    width: 100%;
    height: 100%;
    max-width: 120px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-name {
    width: 100%;
}

.product-title {
    margin-bottom: 10px;
    width: 186px;
}

.product-price,
.product-title {
    width: 100%;
    text-align: right;
    font-size: 20px;
    font-weight: 600;
    color: #1A243F;
}

.product-price span {
    color: #ff8a00;
}

.product-form__item {
    margin-bottom: 1.25em;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 0.5em;
}

.product-form__item-link {
    color: #eb5757;
    font-family: 'Play', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.product-form__item-agreement {
    margin-top: 20px;
    align-items: center;
}

.product-form__item:last-child {
    margin-bottom: 0;
}

.product-form__item span {
    font-size: 14px;
    color: #1A243F;
}

.product-accept {
    font-size: 12px;
    font-weight: 400;
    color: #868695;
    display: flex;
    align-items: center;
}

.product-accept a {
    color: #242424;
    text-decoration: unset;
}

.input {
    padding: 0 21px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.07);
    border-radius: 0.75rem;
    outline: none;
    height: 3.25rem;
    border: 0.063rem solid #ebeaed;
    background-color: #f5f5f5;
    font-size: 1rem;
}

.input::placeholder {
    color: #2F2F35;
}

.email {
    width: 100%;
}

.promocode {
    /* margin-top: 0.25em; */
    width: 100%;
    background-color: unset;
    box-shadow: unset;
}


.container {
    display: block;
    position: relative;
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    display: block;
    height: 20px;
    width: 20px;
    border: 1px solid #9a9a9a;
    border-radius: 2px;
}

/* On mouse-over, add a grey background color */
.container:hover input~.checkmark {
    border: 1px solid #4dae51;
}

/* When the checkbox is checked, add a blue background */
.container input:checked~.checkmark {
    /* border: 1px solid #4dae51; */
    border: unset;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #4dae51;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.labeled {
    margin-left: 10px;
}

.btn-payment {
    padding: 14px 0;
    display: block;
    background: #4dae51;
    border-radius: 0.75rem;
    width: 100%;
    height: 3.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: all .3s;
    outline: none;
    border: none;
    cursor: pointer;
    transition: 0.3s all ease-in;
}

.btn-payment:hover {
    filter: brightness(1.2);
}

.btn-payment:active {
    transform: translateY(1px);
}

.return {
    position: absolute;
    left: -104px;
    top: -20px;
    background-color: #fff;
    background: #FFFFFF;
    box-shadow: 0px 2px 2px rgba(22, 36, 74, 0.07);
    border-radius: 6px;
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-form__payments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.product-form__payments_item img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.product-form__payments_item {
    height: 80px;
    border-radius: 4px;
    background-color: #fff;
    border: 2px solid #DBE1EC;
    display: flex;
    -ms-align-items: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
    position: relative;
}

.product-form__payments_item-inside {
    position: absolute;
    bottom: 0;
    font-size: 12px;
    right: 0;
    color: #000;
    border: 1px solid gray;
    opacity: 0.4;
}

.product-form__payments_item-active {
    border: 2px solid #FD7166 !important;
    background-color: #FD71660A;
}

.product-form__payments_item:hover {
    border: 2px solid burlywood;
}

@media screen and (max-width: 1024px) {
    .product-top {
        width: 100%;
    }

    svg {
        width: 100%;
    }

    .return {
        margin-right: 10px;
        position: unset;
        width: 80px;
        height: 47px;
    }
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-platform {
    outline: none;
    border: none;
    color: black;
    background-color: #eee;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 6px;
}

.btn-platform:hover {
    background: rgba(251, 187, 67, .3);
}

.btn-platform.active {
    background: rgba(251, 187, 67, .3);
    border: 1px solid #fbbb43;
}

sup {
    position: relative;
    font-size: 0.5em;
    line-height: 0;
    vertical-align: baseline !important;
    top: -1.5em;
}

.offer .product-image,
.offer .product-form__payments {
    display: none;
}

.product .tooltip {
    position: absolute;
    visibility: hidden;
    min-width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product sup:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.error {
    color: #ff4343;
}

.success {
    color: #4bb24b;
}

.payform-status {
    margin: 30px auto 0;
    text-align: center;
}

.qty-input {
    color: #000;
    background: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 20px;
    border-radius: 0.25rem;
    border: 0.063rem solid #ebeaed;
}

.qty-input .product-qty,
.qty-input .qty-count {
    background: transparent;
    color: inherit;
    font-weight: bold;
    font-size: 14px;
    border: none;
    display: inline-block;
    min-width: 0;
    height: 2.0rem;
    line-height: 1;
}

.qty-input .product-qty:focus,
.qty-input .qty-count:focus {
    outline: none;
}

.qty-input .product-qty {
    width: 50px;
    min-width: 0;
    display: inline-block;
    text-align: center;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input .product-qty::-webkit-outer-spin-button,
.qty-input .product-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.qty-input .qty-count {
    padding: 0;
    cursor: pointer;
    width: 2.5rem;
    font-size: 1.25em;
    text-indent: -100px;
    overflow: hidden;
    position: relative;
}

.qty-input .qty-count:before,
.qty-input .qty-count:after {
    content: "";
    height: 2px;
    width: 10px;
    position: absolute;
    display: block;
    background: #000;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.qty-input .qty-count--minus {
    border-right: 1px solid #e2e2e2;
}

.qty-input .qty-count--add {
    border-left: 1px solid #e2e2e2;
}

.qty-input .qty-count--add:after {
    transform: rotate(90deg);
}

.qty-input .qty-count:disabled {
    color: #ccc;
    background: #f2f2f2;
    cursor: not-allowed;
    border-color: transparent;
}

.qty-input .qty-count:disabled:before,
.qty-input .qty-count:disabled:after {
    background: #ccc;
}

.promo-error {
    background-color: #ffc6c6;
    padding: 5px;
    font-size: 14px;
    color: #901515;
    border-radius: 12px;
    margin: 5px auto;
    width: 100%;
    text-align: center;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    -webkit-backdrop-filter: blur(17.5px);
    backdrop-filter: blur(17.5px);
    visibility: hidden;
    justify-content: center;
    display: flex;
    opacity: 0;
    transition: visibility 0.4s, opacity 0.4s linear;
    overflow: auto;
}

.popup__group {
    margin-top: 100px;
    padding: 25px 30px 40px;
    max-width: 700px;
    width: 100%;
    height: -moz-fit-content;
    height: fit-content;
    border-radius: 30px;
    background: #FFFFFF;
    position: relative;
}

.popup__close {
    background: url("../../img/icons/popup-close.svg") no-repeat;
    background-size: contain;
    border: transparent;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.popup h2 {
    font-weight: 700;
    font-size: 22px;
    line-height: 120%;
    color: #1f2633;
    text-align: center;
}

.popup p {
    margin-top: 20px;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
    color: #606c80;
}

.popup__buttons {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.popup__button {
    padding: 10px 20px;
    background: linear-gradient(88.21deg, #12DE4B 0.86%, #02ADEE 97.76%);
    border: 1px solid gainsboro;
    border-radius: 10px;
    font-weight: 400;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.popup__button:hover {
    filter: brightness(1.2);
}

.popup__button-white {
    background: transparent;
    color: #817979;
    border: 1px solid #f1f1f1;
}

.popup_opened {
    opacity: 1;
    visibility: visible;
    z-index: 100;
}