/* Modern checkout page */
@media (min-width: 1026px) {
    body > .logo {
        position: fixed;
        top: 18px;
        left: 50%;
        right: auto;
        z-index: 120;
        width: 96px;
        height: 46px;
        margin-left: -48px;
        text-align: center;
    }

    body > .logo > a.logo {
        position: static;
        display: block;
        width: 96px;
        height: 46px;
        margin: 0;
        transform: none;
        text-align: center;
    }

    body > .logo > a.logo img {
        position: static;
        display: block !important;
        width: 96px;
        height: auto;
        margin: 0 auto;
        transform: none;
    }

    .main_nav_container .menu-item:hover > .submenu {
        display: flex !important;
    }
}

.main-container.col1-layout,
.main-container.col1-layout > .main,
.main-container.col1-layout .col-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#content_page.tl-checkout-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px 56px;
    color: #2f3a45;
}

.tl-checkout-page *,
.tl-checkout-page *::before,
.tl-checkout-page *::after {
    box-sizing: border-box;
}

.tl-checkout-header {
    margin-bottom: 22px;
}

.tl-checkout-kicker,
.tl-section-kicker {
    margin: 0 0 6px;
    color: #009ad8;
    font: 700 12px/1.4 Arial, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tl-checkout-header h1,
.tl-panel-head h2 {
    margin: 0;
    color: #263746;
    font-family: Comfortaa, Arial, sans-serif;
    font-weight: 700;
}

.tl-checkout-header h1 {
    font-size: 30px;
    line-height: 1.2;
}

.tl-panel-head h2 {
    font-size: 19px;
    line-height: 1.3;
}

.tl-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(330px, .68fr);
    gap: 24px;
    align-items: start;
}

.tl-checkout-side {
    position: sticky;
    top: 18px;
}

.tl-checkout-panel {
    width: 100%;
    min-width: 0;
    border: 1px solid #e6edf2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(39, 59, 77, .08);
}

.tl-products-panel {
    padding: 22px;
}

.tl-form-panel {
    padding: 20px;
    margin-bottom: 16px;
}

.tl-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef3f6;
}

.tl-cart-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 18px;
}

.tl-cart-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.tl-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 126px 110px;
    gap: 16px;
    align-items: center;
    min-height: 112px;
    padding: 14px 12px 14px 46px;
    border: 1px solid #e8eff4;
    border-radius: 8px;
    background: #fbfdff;
}

.tl-cart-remove {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    color: #9aa7b2;
    font: 700 22px/21px Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}

.tl-cart-remove:hover,
.tl-cart-remove:focus {
    color: #fff;
    background: #ef4c5d;
    text-decoration: none !important;
}

.tl-cart-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
    background: #fff;
    color: transparent;
    font-size: 0;
    overflow: hidden;
}

.tl-cart-thumb img {
    display: block;
    max-width: 76px;
    max-height: 76px;
    width: auto;
    height: auto;
}

.tl-cart-title {
    display: inline-block;
    max-width: 100%;
    color: #263746;
    font: 700 16px/1.35 Arial, sans-serif;
    text-decoration: none;
    overflow-wrap: break-word;
    white-space: normal;
}

.tl-cart-item-main {
    min-width: 0;
}

.tl-cart-title:hover,
.tl-cart-title:focus {
    color: #009ad8;
}

.tl-cart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: #7a8894;
    font-size: 14px;
}

.tl-cart-meta strong,
.tl-cart-line-total strong,
.tl-total-row strong {
    color: #263746;
}

.tl-cart-qty {
    display: inline-grid;
    grid-template-columns: 34px minmax(48px, auto) 34px;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid #d9e4ec;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.tl-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 38px;
    color: #009ad8;
    font: 700 22px/1 Arial, sans-serif;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.tl-qty-btn:hover,
.tl-qty-btn:focus {
    color: #fff;
    background: #009ad8;
    text-decoration: none !important;
}

.tl-qty-value {
    min-width: 48px;
    color: #4d5b66;
    font: 700 14px/1 Arial, sans-serif;
    text-align: center;
    white-space: nowrap;
}

.tl-cart-line-total {
    min-width: 0;
    text-align: right;
}

.tl-cart-line-total span {
    display: block;
    margin-bottom: 5px;
    color: #8a97a3;
    font-size: 12px;
    text-transform: uppercase;
}

.tl-cart-line-total strong {
    font: 700 17px/1.2 Arial, sans-serif;
    white-space: nowrap;
}

.tl-order-total-box {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dceaf3;
    border-radius: 8px;
    background: #f7fbfe;
}

.tl-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #64727f;
    font-size: 15px;
}

.tl-total-row-final {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #dceaf3;
    color: #263746;
    font-size: 18px;
}

.tl-total-row-final strong {
    color: #f28a19;
    font-size: 22px;
}

.tl-coupon-row {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #e3edf4;
    border-bottom: 1px solid #e3edf4;
}

.tl-coupon-row label {
    margin: 0;
    color: #64727f;
    font-size: 14px;
}

.tl-coupon-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.tl-coupon-control input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 1px solid #cfdde7;
    border-radius: 8px;
    padding: 0 12px;
    color: #263746;
    font-size: 15px;
}

.tl-coupon-control input:focus,
.tl-checkout-form .tl-control:focus {
    border-color: #009ad8;
    box-shadow: 0 0 0 3px rgba(0, 154, 216, .14);
    outline: none;
}

.tl-coupon-control a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 40px;
    border-radius: 999px;
    background: #009ad8;
    color: #fff;
    font: 700 14px/1 Arial, sans-serif;
    text-decoration: none;
    transition: background .15s ease;
}

.tl-coupon-control a:hover,
.tl-coupon-control a:focus {
    background: #007fb3;
    color: #fff;
    text-decoration: none !important;
}

.tl-cart-errors {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #ffd4c7;
    border-radius: 8px;
    background: #fff7f4;
    color: #bf4b27;
    font-size: 14px;
}

.tl-checkout-form {
    display: grid;
    gap: 0;
}

.tl-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 18px;
}

.tl-field,
.tl-checkout-form .form-group {
    margin-bottom: 0;
}

.tl-field-full {
    grid-column: 1 / -1;
}

.tl-checkout-form label {
    display: block;
    margin-bottom: 7px;
    color: #566573;
    font: 700 14px/1.3 Arial, sans-serif;
}

.tl-checkout-form label span {
    color: #9aa7b2;
    font-weight: 400;
}

.tl-checkout-form .tl-control,
.tl-checkout-form .form-control {
    width: 100%;
    max-width: 100%;
    height: 44px;
    border: 1px solid #cfdde7;
    border-radius: 8px;
    box-shadow: none;
    color: #263746;
    font-size: 15px;
}

.tl-checkout-page #delivery_form #city,
.tl-checkout-page #delivery_form #warehouse,
.tl-checkout-page #delivery_form #warehouses,
.tl-checkout-page #delivery_form .adress-new__inp {
    width: 100% !important;
    max-width: 100%;
    height: 44px;
    border: 1px solid #cfdde7;
    border-radius: 8px;
    box-shadow: none;
    color: #263746;
    font-size: 15px;
}

.tl-checkout-form .tl-textarea {
    min-height: 92px;
    padding-top: 10px;
    resize: vertical;
}

.tl-social-login {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #e4edf3;
    border-radius: 8px;
    background: #fbfdff;
}

.tl-social-title {
    margin-bottom: 10px;
    color: #64727f;
    font-size: 14px;
}

.tl-checkout-page .auth-clients {
    margin: 0;
    padding: 0;
}

.tl-checkout-page .auth-client {
    margin: 0 8px 0 0;
}

.tl-checkout-page .city_list,
.tl-checkout-page .depart_list,
.tl-checkout-page .orderDelivery {
    margin-top: 14px;
}

.tl-checkout-page .select2-container {
    width: 100% !important;
}

.tl-checkout-page .select2-container--default .select2-selection--single {
    height: 44px;
    border: 1px solid #cfdde7;
    border-radius: 8px;
}

.tl-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    color: #263746;
}

.tl-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.tl-submit-row {
    margin-top: 18px;
}

.tl-checkout-page #delivery_form .tl-submit-button,
.tl-checkout-page #delivery_form .btn_tin.buy-button.tl-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    min-height: 48px;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 18px rgba(40, 174, 231, .24) !important;
    background: #28aee7 !important;
    background-color: #28aee7 !important;
    color: #fff !important;
    font: 700 15px/1.2 Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    transition: background .15s ease, transform .15s ease;
}

.tl-checkout-page #delivery_form .tl-submit-button:hover,
.tl-checkout-page #delivery_form .tl-submit-button:focus {
    background: #009ad8 !important;
    background-color: #009ad8 !important;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.tl-checkout-empty {
    max-width: 520px;
    margin: 34px auto 0;
    padding: 32px;
    border: 1px solid #e6edf2;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 32px rgba(39, 59, 77, .08);
}

.tl-checkout-empty h2 {
    margin: 0 0 18px;
    color: #263746;
}

.tl-checkout-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: #009ad8;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.tl-result-panel {
    max-width: 720px;
    margin: 34px auto 0;
    padding: 42px;
    text-align: center;
}

.tl-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #28aee7;
    box-shadow: 0 12px 26px rgba(40, 174, 231, .24);
    color: #fff;
    font: 700 34px/1 Arial, sans-serif;
}

.tl-result-icon-muted {
    background: #8fa3b5;
    box-shadow: 0 12px 26px rgba(84, 103, 119, .18);
    font-size: 30px;
}

.tl-result-panel h1 {
    margin: 0 0 16px;
    color: #263746;
    font-family: Comfortaa, Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.tl-result-lead {
    margin: 0 auto 12px;
    color: #263746;
    font-size: 20px;
    line-height: 1.45;
}

.tl-result-lead strong {
    color: #f28a19;
}

.tl-result-text,
.tl-result-note {
    max-width: 560px;
    margin: 0 auto 12px;
    color: #5b6874;
    font-size: 16px;
    line-height: 1.55;
}

.tl-result-note {
    color: #758493;
    font-size: 14px;
}

.tl-result-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 14px;
    padding: 0 26px;
    border-radius: 999px;
    background: #28aee7;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.tl-result-button:hover,
.tl-result-button:focus {
    background: #009ad8;
    color: #fff;
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    #content_page.tl-checkout-page {
        padding-top: 26px;
    }

    .tl-checkout-layout {
        grid-template-columns: 1fr;
    }

    .tl-checkout-side {
        position: static;
    }
}

@media (max-width: 760px) {
    #content_page.tl-checkout-page {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 20px 12px 42px;
        overflow-x: hidden;
    }

    .tl-checkout-header h1 {
        font-size: 24px;
    }

    .tl-products-panel,
    .tl-form-panel,
    .tl-result-panel {
        padding: 16px;
    }

    #content_page.tl-checkout-page .tl-cart-item {
        display: flex !important;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0 12px;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 14px 12px 14px 44px;
        overflow: hidden;
    }

    #content_page.tl-checkout-page .tl-cart-thumb {
        flex: 0 0 74px;
        order: 1;
        width: 74px;
        height: 74px;
        margin: 0;
    }

    .tl-cart-thumb img {
        max-width: 66px;
        max-height: 66px;
    }

    #content_page.tl-checkout-page .tl-cart-item-main {
        flex: 1 1 calc(100% - 86px);
        order: 2;
        min-width: 0 !important;
        max-width: calc(100% - 86px);
        overflow: hidden;
    }

    #content_page.tl-checkout-page .tl-cart-title {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
        white-space: normal !important;
    }

    #content_page.tl-checkout-page .tl-cart-qty {
        flex: 0 0 auto;
        order: 3;
        justify-self: start;
        margin: 12px 0 0 86px;
    }

    #content_page.tl-checkout-page .tl-cart-line-total {
        flex: 0 0 100%;
        order: 4;
        grid-column: auto !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid #e6edf2;
        text-align: left;
    }

    .tl-cart-line-total span {
        margin-bottom: 0;
    }

    .tl-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #content_page.tl-checkout-page .tl-cart-item {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 96px;
        padding: 12px 10px 12px 34px;
    }

    .tl-cart-remove {
        left: 8px;
    }

    #content_page.tl-checkout-page .tl-cart-thumb {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .tl-cart-thumb img {
        max-width: 52px;
        max-height: 52px;
    }

    #content_page.tl-checkout-page .tl-cart-item-main {
        flex-basis: calc(100% - 70px);
        max-width: calc(100% - 70px);
    }

    #content_page.tl-checkout-page .tl-cart-qty {
        margin-left: 70px;
    }

    #content_page.tl-checkout-page .tl-cart-title {
        font-size: 14px;
    }

    .tl-cart-meta {
        font-size: 13px;
    }

    .tl-coupon-control {
        grid-template-columns: 1fr;
    }

    .tl-coupon-control a {
        width: 100%;
    }

    .tl-total-row {
        font-size: 14px;
    }

    .tl-total-row-final {
        align-items: flex-start;
        flex-direction: column;
    }

    .tl-result-panel h1 {
        font-size: 24px;
    }

    .tl-result-lead {
        font-size: 18px;
    }
}
