/* Stylesheet File*/

/* Fonts */

@font-face {
    font-family: "TochkaSans";
    font-weight: 300;
    font-style: normal;
    src: url('fonts/TTNormsProTochka/WOFF2/TT_Norms_Pro_Tochka_Light.woff2') format('woff2'),
    url('fonts/TTNormsProTochka/WOFF/TT_Norms_Pro_Tochka_Light.woff') format('woff'),
    url('fonts/TTNormsProTochka/TTF/TT_Norms_Pro_Tochka_Light.ttf') format('truetype');
}

@font-face {
    font-family: "TochkaSans";
    font-weight: 400;
    font-style: normal;
    src: url('fonts/TTNormsProTochka/WOFF2/TT_Norms_Pro_Tochka_Regular.woff2') format('woff2'),
    url('fonts/TTNormsProTochka/WOFF/TT_Norms_Pro_Tochka_Regular.woff') format('woff'),
    url('fonts/TTNormsProTochka/TTF/TT_Norms_Pro_Tochka_Regular.ttf') format('truetype');
}

@font-face {
    font-family: "TochkaSans";
    font-weight: 500;
    font-style: normal;
    src: url('fonts/TTNormsProTochka/WOFF2/TT_Norms_Pro_Tochka_Medium.woff2') format('woff2'),
    url('fonts/TTNormsProTochka/WOFF/TT_Norms_Pro_Tochka_Medium.woff') format('woff'),
    url('fonts/TTNormsProTochka/TTF/TT_Norms_Pro_Tochka_Medium.ttf') format('truetype');
}

@font-face {
    font-family: "TochkaSans";
    font-weight: 700;
    font-style: normal;
    src: url('fonts/TTNormsProTochka/WOFF2/TT_Norms_Pro_Tochka_DemiBold.woff2') format('woff2'),
    url('fonts/TTNormsProTochka/WOFF/TT_Norms_Pro_Tochka_DemiBold.woff') format('woff'),
    url('fonts/TTNormsProTochka/TTF/TT_Norms_Pro_Tochka_DemiBold.ttf') format('truetype');
}

@font-face {
    font-family: "TochkaSans";
    font-weight: 800;
    font-style: normal;
    src: url('fonts/TTNormsProTochka/WOFF2/TT_Norms_Pro_Tochka_Bold.woff2') format('woff2'),
    url('fonts/TTNormsProTochka/WOFF/TT_Norms_Pro_Tochka_Bold.woff') format('woff'),
    url('fonts/TTNormsProTochka/TTF/TT_Norms_Pro_Tochka_Bold.ttf') format('truetype');
}

@font-face {
    font-family: "TochkaSans";
    font-weight: 900;
    font-style: normal;
    src: url('fonts/TTNormsProTochka/WOFF2/TT_Norms_Pro_Tochka_ExtraBold.woff2') format('woff2'),
    url('fonts/TTNormsProTochka/WOFF/TT_Norms_Pro_Tochka_ExtraBold.woff') format('woff'),
    url('fonts/TTNormsProTochka/TTF/TT_Norms_Pro_Tochka_ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: "TochkaSans";
    font-weight: normal;
    font-style: normal;
    src: url('fonts/TTNormsProTochka/WOFF2/TT_Norms_Pro_Tochka_Regular.woff2') format('woff2'),
    url('fonts/TTNormsProTochka/WOFF/TT_Norms_Pro_Tochka_Regular.woff') format('woff'),
    url('fonts/TTNormsProTochka/TTF/TT_Norms_Pro_Tochka_Regular.ttf') format('truetype');
}

/* Desktop Styles */



* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
}

body {
    padding: 40px 0;
    background-color: var(--tochka-ui__page-secondary, #F9F9F9);
}

header {
    display: flex;
    align-items: center;

    width: 480px;
    height: 40px;

    margin: 0 auto;
}

.content {
    box-sizing: border-box;
    max-width: 480px;

    margin: 21px auto 0;
    padding-bottom: 30px;


    border-radius: 18px;
}

.content__icon {
    margin-bottom: 40px;
}

.content__header {
    margin: 0 0 20px;

    font: 36px TochkaSans;
    font-weight: 500;
    line-height: 40px;
}

.content__ul {
    list-style-type: none;

    padding: 0;
}

.content__subtitle{
    font: 18px TochkaSans;
    font-style: normal;
    font-weight: 500;

    line-height: 22px;

    color: #333333;

    margin: 0;
}

.content__title {
    font: 42px TochkaSans;
    font-style: normal;
    font-weight: 500;
    line-height: 48px;

    color: #333333;
    margin: 15px 0 0;
}

.content__text {
    font: 16px TochkaSans;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.01em;

    color: #333333;

    margin: 0;
}

.indent {
    margin-top: 10px;
}

.payment-options {
}

.payment-options >  *:not(:last-child) {
    margin-bottom: 15px;
}

.payment-methods {
}

.payment-methods >  *:not(:last-child) {
    margin-bottom: 15px;
}

.card {
    background: #FFFFFF;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 30px;
}

.card--button {
    display: block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 0.09, 0.34, 0.83), box-shadow .3s ease;
    width: 100%;
    outline: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    opacity: 1;
    pointer-events: auto;
    will-change: transform;
    padding: 30px;
}

.card--static {
    pointer-events: none;
}

.card--button:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.12s cubic-bezier(0.34, 0.09, 0.34, 0.83);
}

.card--button:active {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.card__acc-right {
    margin-left: auto;
    align-self: center;
}

.cell-button {
    border-radius: 15px;
    background: var(--tochka-ui__container-default);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: rgba(0, 0, 0, 0.05) 0 5px 15px;
    will-change: transform;
    width: 100%;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 0.09, 0.34, 0.83), box-shadow 0.4s cubic-bezier(0.34, 0.09, 0.34, 0.83);
    padding: 15px 20px;
}

.cell-button:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0 12px 25px;
    transform: translateY(-2px);
    transition: 0.12s cubic-bezier(0.34, 0.09, 0.34, 0.83);
}

.cell-content {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
}

.cell-text {
    display: flex;
    gap: 2px;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.cell--title {
    color: var(--tochka-ui__primitive-primary);
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0;
    text-overflow: ellipsis;
    min-width: 0;
    text-wrap: nowrap;
    overflow: hidden;
}

.cell--subtitle {
    color: var(--tochka-ui__primitive-secondary);
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-overflow: ellipsis;
    min-width: 0;
    text-wrap: nowrap;
    overflow: hidden;
}

.cell-acc--left {
    box-sizing: border-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin-right: 20px;
    flex-shrink: 0;
    background: var(--tochka-ui__primitive-neutral4OnInverse);
    border: none;
    overflow: hidden;
    transition: border 0.2s, background-color 0.2s;
    mask: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 54 54' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20C0 10.5719 0 5.85786 2.92893 2.92893C5.85786 0 10.5719 0 20 0H34C43.4281 0 48.1421 0 51.0711 2.92893C54 5.85786 54 10.5719 54 20V34C54 43.4281 54 48.1421 51.0711 51.0711C48.1421 54 43.4281 54 34 54H20C10.5719 54 5.85786 54 2.92893 51.0711C0 48.1421 0 43.4281 0 34V20Z' fill='%23000'/%3E%3C/svg%3E%0A");
    position: relative;
    border-radius: 0 !important;
}

.cell-acc--right {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
    padding-left: 15px;
    margin-left: auto;
}

.container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.card__text-content > *:not(:last-child) {
    margin-bottom: 2px;
}

.card__text-content--center {
    align-self: center;
}

.cancel-card {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    text-decoration: none;
}

.cancel-card__text {
    font: 18px TochkaSans;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    color: #747474;
}

.description {
    font: 14px TochkaSans;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;

    letter-spacing: 0.01em;

    color: #747474;

    margin: 0;
}

.detail-order-link-modal {
    font: 16px TochkaSans;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.01em;
    cursor: pointer;
    color: #835DE1;
    margin-top: 10px;
    transition: opacity 0.4s cubic-bezier(0.34, 0.09, 0.34, 0.83);
}

.detail-order-link-modal:hover {
    opacity: 0.5;
}

.detail-order-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.detail-order-cell__sub-title {
    font: 14px TochkaSans;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.01em;
    color: #676767;
    margin-bottom: 3px;
}

.detail-order-cell__title {
    font: 16px TochkaSans;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.01em;
    color: #191919;
}

.detail-order-cell__left {
    /** Обертка для позиционирования flex элемента */
}

.detail-order-cell__right {
    font: 16px TochkaSans;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.01em;
}

.modal {
    position: fixed;
    overflow: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
    padding: 24px;
    display: none;
    background: #19191966;
}

.modal--open {
    display: flex;
}

.modal__close {
    cursor: pointer;
    display: block;
    margin-left: auto;
    width: 24px;
    margin-bottom: 20px;
}

.modal__content {
    padding: 20px;
    margin: auto;
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    border-radius: 18px;
    position: relative;
}

.modal__scroll {
    overflow: auto;
    max-height: 335px;
    margin: 0 -20px 0 -20px;
    padding: 0 20px;
}

.modal__scroll::-webkit-scrollbar {
    display: none;
}

.modal__title {
    pointer-events: none;
    font: 24px TochkaSans;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 30px;
}

.modal__gap {
    height: 15px;
}

.detail-order-list {
}

.detail-order-list__head {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
    padding: 10px 0;
    width: max-content;
}

.detail-order-list__name {
    font: 24px TochkaSans;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    color: #191919;
}

.detail-order-list__icon {
    width: 18px;
    height: 18px;
}

.detail-order-list__icon--rotate {
    transform: rotate(180deg);
}

.detail-order-list__body {
    display: none;
}

.detail-order-list__body--open {
    display: block;
}

.product-info-cell {
    padding: 10px 0;
}

.product-info-cell--title {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--tochka-ui__primitive-secondary);
    margin-bottom: 2px;
}

.product-info-cell--description {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--tochka-ui__primitive-primary)
}


.product-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 15px;
}

.product-detail-item__left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.product-detail-item__wrap-text {
    min-width: 0;
}

.product-detail-item__count {
    font: 14px TochkaSans;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    color: #676767;
    margin-top: 2px;
}

.product-detail-item__icon {
    width: 44px;
    height: 44px;
}

.product-detail-item__text {
    font: 16px TochkaSans;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    color: var(--tochka-ui__primitive-primary);
}

.product-detail-item__title {
    color: var(--tochka-ui__primitive-primary);
}

.product-detail-item__subtitle {
    color: var(--tochka-ui__primitive-secondary);
}

.product-detail-item__text--fixed {
    width: max-content;
    flex-shrink: 0;
    color: var(--tochka-ui__primitive-secondary);
}

.product-detail-item__text--short {
    min-width: 0;
}

.product-detail-item__ellipsis {
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}


.button-primary {
    border: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 0 20px;
    position: relative;
    text-align: center;
    user-select: none;
    margin: 0;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: var(--tochka-ui__bg-brand);
    color: var(--tochka-ui__primitive-defaultFixed);
    fill: var(--tochka-ui__primitive-defaultFixed);
    outline: none;
    box-shadow: inset 0 0 0 0 var(--tochka-ui__state-bg-brandActive),inset 0 0 0 0 var(--tochka-ui__bg-default);
    transition: box-shadow 0.3s;

    width: 100%;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    height: 50px;
    border-radius: 10px;
}

.button-primary:hover {
    background: var(--tochka-ui__state-bg-brandActive);
    transition: 0.12s cubic-bezier(0.34, 0.09, 0.34, 0.83);
}

.accept-cell {
    display: block;
    border-radius: 12px;
    background-color: var(--tochka-ui__container-transparent1);
    padding: 15px 20px;
    width: 100%;
    cursor: pointer;
}

.accept-cell:hover {
    background-color: var(--tochka-ui__state-container-transparent1Active);
}

.accept-cell__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.accept-cell__error {
    font: 14px TochkaSans;
    padding-top: 8px;
    border-top: 2px solid #D84D4D;
    color: #D84D4D;
    margin-top: 15px;
    display: none;
    user-select: none;
}

.accept-cell__error--show {
    display: block;
}

.accept-cell__text {
    font: 16px TochkaSans;
    color: #191919;
}

.accept-cell__text a {
    font-weight: 500;
    color: #835DE1;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.accept-cell__input {
    display: none;
}

.accept-cell__circle {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #19191973;
    flex-shrink: 0;
    transition: all .12s cubic-bezier(.34, .09, .34, .83)
}

.accept-cell__input[type="radio"]:checked + .accept-cell__circle {
    border: 6px solid var(--tochka-ui__bg-brand);
}

.accept-cell__input[type="checkbox"]:checked + .accept-cell__circle {
    border-color: var(--tochka-ui__bg-brand);
    background-color: var(--tochka-ui__bg-brand);
}

.accept-cell__input[type="checkbox"] + .accept-cell__circle:before {
    background-color: transparent;
    transform: rotate(-48.5deg);
    width: 12px;
    top: 10px;
    left: 7px;
    content: "";
    height: 2px;
    position: absolute;
    border-radius: 2px;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.23, 1);
}

.accept-cell__input[type="checkbox"] + .accept-cell__circle:after {
    background-color: transparent;
    transform: rotate(45deg);
    width: 6px;
    top: 12px;
    left: 5px;
    content: "";
    height: 2px;
    position: absolute;
    border-radius: 2px;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.23, 1);
}

.accept-cell__input[type="checkbox"]:checked + .accept-cell__circle:before,
.accept-cell__input[type="checkbox"]:checked + .accept-cell__circle:after {
    background-color: var(--tochka-ui__bg-defaultFixed);
}

/* Mobile Styles */

@media (max-width: 600px) {
    body {
        padding: 30px 20px;
    }

    header {
        width: 100%;
    }

    .content {
        max-width: 100%;
        padding: 0;
    }

    .card {
        border-radius: unset;
        box-shadow: unset;
        padding: 0;
    }

    .payment-options {
        margin: 30px -20px 0 -30px;
    }

    .content__main-icon {
        margin: 40px 0 30px;
    }

    .content__title {
        font-size: 34px;
        line-height: 39px;
    }

    .payment-options >  *:not(:last-child) {
        margin-bottom: 0;
    }

    .card--button {
        border-radius: 0;
        background: transparent;
        transition: none;
        box-shadow: none !important;
        padding: 15px 30px !important;
    }

    .card--button:hover {
        background: #F6F6F6;
        transform: none;
    }

    .modal {
        padding: 0;
    }

    .modal__close {
        margin-bottom: 35px;
    }

    .modal__content {
        border-radius: 0;
        max-width: 100%;
    }

    .modal__title {
        font-size: 16px;
        font-weight: 500;
        position: absolute;
        top: 17px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .modal__scroll {
        display: contents;
    }
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 1;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
}

.spinner {
    height: 48px;
    width: 48px;
    color: #7658E0;
    position: relative;
    display: inline-block;
    border: 2px solid;
    border-radius: 50%;
    border-top-color: transparent;
    animation: rotate 1s linear infinite;
}

.spinner-text {
    width: 480px;
    height: 40px;
    font: 16px TochkaSans;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.01em;
    color: #B2B2B2;
    margin-top: 31px;
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.arrow {
    position: absolute;
    width: 44px;
    height: 44px;
    left: 40px;
    top: 20px;
    border: 1px solid #E1E1E1;
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cell-empty-10 {
    height: 10px;
}

.cell-empty-15 {
    height: 15px;
}

.cell-empty-20 {
    height: 20px;
}

.cell-empty-30 {
    height: 30px;
}

.cell-empty-60 {
    height: 60px;
}

.text-primary {
    color: var(--tochka-ui__primitive-primary);
}

.text-secondary {
    color: var(--tochka-ui__primitive-secondary);
}
