.checkout-client-type {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 15px;
}

.checkout-client-type a {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #222;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 400;
    background: white;
}

.checkout-client-type a.active {
    background: var(--main-blue);
    color: white;
}

.cfc-flex-3 {
    display: flex;
    align-items: center;
    justify-content: space-between;

}



.cfc-flex-3 .checkout-form-item {
    flex: 0 0 32%;
}

.checkout-form-item input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: #f1f1f1;
    border: none;
    font-size: 18px;
    color: #222;
}

.checkout-form-item{
    position: relative;
}

.checkout-form-item label span {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.checkout-form-item label span span {
    color: #e11d2a;
    display: unset;
}

.cfc-flex-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.cfc-flex-2 .checkout-form-item {
    flex: 0 0 49%;
}

.checkout-form-item {
    margin-bottom: 15px;
}

.checkout-form-client {
    padding: 20px 40px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    margin: 40px 0;
    background: white;
}

.checkout-form-shipping {
    padding: 20px 40px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    margin: 40px 0;
    background: white;
}

.checkout-left {
    width: 60%;
}

.cfc-title {
    font-size: 22px;
    font-weight: 500;
    padding: 10px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
    cursor: pointer;
}

/* Hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Track */
.slider3 {
    position: absolute;
    inset: 0;
    background-color: #e5e6ea;
    border-radius: 32px;
    transition: background-color 0.2s ease;
}

/* Knob */
.slider3::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    transition: transform 0.2s ease;
}

/* Checked state */
.switch input:checked+.slider3 {
    background-color: var(--main-blue);
}

.switch input:checked+.slider3::before {
    transform: translateX(20px);
}

.cfc-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 18px;
    column-gap: 15px;
}

.shipping-method-title {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
}

.shipping-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.shipping-methods a {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    border: 2px solid #eef0f3;
    background: #f7f8fa;
    font-size: 16px;
    color: #222;
    column-gap: 12px;
    padding: 13px 16px 13px 46px;
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.shipping-methods a::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #c9ced8;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shipping-methods a.disabled{
    background: #f1f1f1;
    border: 2px solid #f1f1f1;
    cursor: default;
}

.shipping-methods a.disabled img{
    opacity: .2;
}

.shipping-methods a.disabled span{
    opacity: .2;
    color: #777;
}

.shipping-methods a img {
    width: 32px;
}

.shipping-methods a img.np {
    width: 30px;
    margin-left: 0;
    border-radius: 5px;
}
.shipping-methods a img.up {
    width: 20px;
}

.shipping-methods a img.roz {
    width: 30px;
}

.shipping-methods a span {
    margin: 0;
    font-size: 17px;
}

.shipping-methods a.active {
    background-color: #f3f8ff;
    border: 2px solid var(--main-blue);
    color: #171a20;
    box-shadow: 0 0 0 3px rgba(48, 118, 213, 0.1);
}

.shipping-methods a.active::before {
    border-color: var(--main-blue);
    box-shadow: inset 0 0 0 4px var(--main-blue);
}

.shipping-methods a:hover{
    border-color: #d7dce4;
    background: #f2f4f7;
}

.shipping-methods a.active:hover{
    border-color: var(--main-blue);
    background: #f3f8ff;
}

.shipping-fields {
    padding: 2px 0 4px 0;
}

.shipping-fields .checkout-form-item:last-of-type {
    margin-bottom: 0;
}


.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.payment-options input[type="radio"] {
    display: none;
    /* hide native radios */
}

.payment-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    column-gap: 18px;
    row-gap: 0;
    padding: 18px 20px;
    border: 2px solid #eef0f3;
    border-radius: 12px;
    cursor: pointer;
    background-color: #f7f8fa;
    font-size: 15px;
    line-height: 1.35;
    color: #333;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.payment-option svg {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 14px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #eaf1fc;
    color: var(--main-blue, #3076d5);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.payment-option__body {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
}

.payment-option__title {
    display: block;
    font-weight: 500;
    font-size: 18px;
}

.payment-option__desc {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

/* Hover effect */
.payment-option:hover {
    border-color: #d7dce4;
    background-color: #f2f4f7;
}

/* Checked state */
.payment-options input[type="radio"]:checked+.payment-option {
    border-color: var(--main-blue, #3076d5);
    background-color: #f3f8ff;
    box-shadow: 0 0 0 3px rgba(48, 118, 213, 0.1);
}

.payment-options input[type="radio"]:checked+.payment-option svg {
    background: var(--main-blue, #3076d5);
    color: #fff;
}

.payment-options input[type="radio"]:checked+.payment-option .payment-option__body::before {
    border-color: var(--main-blue, #3076d5);
    box-shadow: inset 0 0 0 4px var(--main-blue, #3076d5);
}

.payment-options input[type="radio"]:checked+.payment-option .payment-option__desc {
    color: #4b5563;
}

.checkout-right {
    width: 35%;
    /* margin-top: 45px; */
}

.checkout-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.checkout-payments {
    padding: 20px 40px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    margin: 40px 0;
    background: white;
}

.checkout-cart {
    padding: 20px 40px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    background: white;
}

.checkout-cart-items .cart-item {
    align-items: center;
    column-gap: 15px;
    padding: 25px 0;
    border-bottom: 2px solid #f1f1f1;
    border-right: none;
    border-top: none;
    border-left: none;
    border-radius: 0px;
    margin-bottom: 0;
    position: relative;
}

.checkout-cart-items .cart-item:last-child {

    border: none;
}

.checkout-cart-items .cart-item .cart-item__image {
    width: 80px;
    flex: 0 0 80px;
}

.checkout-cart-items .cart-item .cart-item__image img {
    width: 80px;
    border-radius: 7px;
}

.checkout-cart-items .cart-item__right {
    flex: 0 0 calc(100% - 100px);
    width: calc(100% - 220px);
}

.checkout-cart-items .cart-item__title {
    padding-right: 30px;
}


.checkout-cart-items .cart-item__title a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    line-height: 20px;
}

.checkout-cart-items .cart-item__code.pif-code {
    width: auto;
    display: inline-block;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    font-size: 14px;
    font-weight: bold;
}

.checkout-cart-items .product-one__priceBuy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 0;
    margin: 10px 0 0;
}

.checkout-cart-items .product-one__price.f-1 {
    flex: 0 0 100px;
    align-items: center;
}

.checkout-cart-items .product-one__quantity {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0;
}


.checkout-cart-items .poq-likes {
    display: none;
}

.checkout-cart-items .cart-item .product-one__priceValue {
    font-size: 23px;
    margin-top: 0px;
}

.checkout-totals .cart-right {
    width: 100%;
}

.checkout-totals .promo-block {
    border-radius: 0px;
}

.checkout-terms {
    padding: 0 20px 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #8a8f98;
    text-align: center;
}

.checkout-terms a {
    color: var(--main-blue, #3076d5);
    text-decoration: underline;
}

.checkout-terms a:hover {
    text-decoration: none;
}

.checkout-form-flex {
    display: flex;
}

.checkout-form-edit_button {
    display: block;
    transition: all 0.4s;
    padding: 12px;
    margin-left: 10px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    background-color: #f1f1f1;
}

.checkout-form-edit_button svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.checkout-form-edit_button:hover {
    background: var(--main-blue);
    border-color: var(--main-blue);
}

.checkout-form-edit_button:hover svg {
    fill: #fff;
}

.checkout-form-flex.unfocus input{
    pointer-events: none;
    outline: none;
    color: #666;
}


@media(max-width: 768px){
    .checkout-left {
    width: 100%;
}

.checkout-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
}

.checkout-right {
    width: 35%;
    margin-top: 45px;
}

.checkout-client-type {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 15px;
    flex-wrap: wrap;
}
.checkout-client-type a {
    padding: 10px;
    display: flex;
    background: white;   
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #222;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 400;
    margin-top: 14px;
    background: white;
}

main.checkout .breadcrumbs-mobile{
    display: none;
}

.checkout-form-client {
    padding: 20px 20px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    margin: 0;
    background: white;
}

.cfc-title{
    flex-direction: column;
}

.cfc-title .cfc-name{
    margin-bottom: 10px;
}
    .cfc-flex-3 .checkout-form-item {
        flex: 0 0 100%;
        width: 100%;
    }

        .cfc-flex-2 .checkout-form-item {
        flex: 0 0 100%;
        width: 100%;
    }

.cfc-flex-3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.cfc-flex-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.checkout-form-shipping {
    padding: 20px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    margin: 18px 0 0 0;
    background: white;
}

.shipping-methods {
    width: 100%;
}


.cfc-switch{font-size: 16px;}


.shipping-methods a{
    width: 100%;
    padding: 11px 12px 11px 42px;
}

.shipping-methods a::before {
    left: 13px;
}

.shipping-methods a span {
    font-size: 15px;
}

.shipping-fields {
    padding-left: 0;
}

.shipping-methods a img.up {
    width: 20px;
    margin-left: 4px;
}
.payment-options {
    grid-template-columns: 1fr;
}

.payment-option {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    column-gap: 12px;
    row-gap: 0;
    padding: 14px;
    text-align: left;
}

.payment-option svg {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 11px;
}

.payment-option__body {
    padding-left: 26px;
}

.checkout-payments {
    padding: 20px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    margin: 18px 0 0 0px;
    background: white;
}

.checkout-right {
        width: 100%;
        margin-top: 0;
    }
}

#city_suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(17, 26, 32, 0.14);
    z-index: 10001;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
}

.city-option {
    padding: 11px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    line-height: 1.4;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.city-option:hover {
    background: #eaf1fc;
    color: #171a20;
}

#city_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9999;
}


#department_suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(17, 26, 32, 0.14);
    z-index: 10001;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
}

.department-option {
    padding: 11px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    line-height: 1.4;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.department-option:hover {
    background: #eaf1fc;
    color: #171a20;
}

#department_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9999;
}



.client-type-fields{
    display: none;
}

.client-type-fields.open{
    display: block;
}

#password_field{
    display: none;
}

#password_field.open{
    display: block;
}

.checkout-form-item .text-danger {
    color: #E91E63;
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
}

.client-type-fields .cfc-flex-3,
.client-type-fields .cfc-flex-2{
    align-items: flex-start;
}


@media (max-width: 768px) {
    .checkout-cart-items .cart-item {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        column-gap: 12px;
        padding: 16px 0;
        position: relative;
    }
    .checkout-cart-items .cart-item .cart-item__image {
        flex: 0 0 64px;
        width: 64px;
    }
    .checkout-cart-items .cart-item .cart-item__image img {
        width: 64px;
        height: auto;
    }
    .checkout-cart-items .cart-item__right {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
    .checkout-cart-items .cart-item__title a {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 6px;
        padding-right: 34px;
    }
    .checkout-cart-items .cart-item__code.pif-code {
        font-size: 13px;
        margin: 0;
    }
    .checkout-cart-items .product-one__priceBuy {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        margin-top: 10px;
    }
    .checkout-cart-items .product-one__price.f-1 {
        flex: 0 0 auto;
        align-items: flex-start;
        margin: 0;
        order: 2;
    }
    .checkout-cart-items .cart-item .product-one__priceValue {
        font-size: 18px;
    }
    .checkout-cart-items .product-one__price.f-2 {
        flex: 0 0 auto;
        margin: 0;
        order: 1;
    }
    .checkout-cart-items .product-one__quantity {
        font-size: 14px;
        color: #3f3f3f;
        white-space: nowrap;
        border: none;
        margin: 0;
    }
    .checkout-cart-items .poq-likes {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
        position: absolute;
        top: 14px;
        right: 0;
    }
    .checkout-cart-items .poq-likes a img {
        width: 20px;
    }
}

@media (min-width: 1025px) {
    .checkout-flex .checkout-right {
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

.checkout-success .success-contacts-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 26px auto 0;
    color: var(--main-blue, #3076d5);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: color .15s ease;
    white-space: nowrapу;
}
.checkout-success .success-contacts-link:hover {
    color: var(--main-blue-hover, #245db0);
}

@media(max-width: 767px) {
    .payment-option__body {
    text-align: left;
}
}

@media (max-width: 600px) {
.checkout-cart-items .cart-item__code.pif-code {
        width: auto;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        column-gap: 0;
        font-size: 14px;
        font-weight: bold;
        flex-direction: column;
        line-height: 15px;
    }

#checkout .checkout-cart-items .poq-likes {
        display: flex;
        margin: 0;
        top: auto;
        bottom: 100px;
    }

.checkout-cart-items .cart-item__title a {
        text-decoration: none;
        font-size: 16px;
        color: #333;
        font-weight: 500;
        margin-bottom: 10px;
        display: block;
        line-height: 16px;
    }
}

#checkout .checkout-cart-items .product-one__quantity {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

#checkout .checkout-cart-items .poq-likes {
    display: flex;
    margin: 0;
    position: absolute;
    top: 20px;
    right: 0;
}

#checkout .checkout-cart-items .product-one__priceBuy {
    display: flex;
    column-gap: 0;
    margin: 15px 0 0;
    gap: 15px;
    flex-wrap: wrap;
}

.checkout-cart.is-collapsed .checkout-cart-items {
    display: none;
}

.checkout-cart:not(.is-collapsed) .checkout-cart-items {
    margin-top: 10px;
}

@media (max-width: 767px) {
.checkout-cart-items .cart-item {
        padding: 14px 2px !important;
        margin: 0 !important;
        border: none !important;
        border-bottom: 1px solid #eef0f3 !important;
        border-radius: 0 !important;
        background: none !important;
        align-items: flex-start;
        gap: 12px;
    }

.checkout-cart-items .cart-item:last-child {
        border-bottom: none !important;
    }

.checkout-cart-items .cart-item__image {
        flex: 0 0 62px !important;
        width: 62px !important;
    }

.checkout-cart-items .cart-item__image img {
        width: 62px !important;
        height: 62px !important;
        object-fit: contain;
    }

.checkout-cart-items .cart-item__title, .checkout-cart-items .cart-item__title a {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

.checkout-cart-items .cart-item__code {
        font-size: 12px !important;
        margin: 4px 0 0 !important;
        padding: 0 !important;
        background: none !important;
    }

.checkout-cart-items .product-one__priceBuy {
        display: flex !important;
        gap: 10px;
        margin-top: 10px !important;
        flex-wrap: nowrap;
    }

.checkout-cart-items .product-one__price.f-1 {
        margin: 0 !important;
        flex: 0 0 auto;
    }

.checkout-cart-items .product-one__priceValue {
        font-size: 18px !important;
        margin: 0 !important;
    }

.checkout-cart-items .product-one__price.f-2 {
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        gap: 12px;
        flex: 0 0 auto;
    }

.checkout-cart-items .product-one__quantity.ppc {
        height: 38px;
        margin: 0 !important;
    }

.checkout-cart-items .product-one__quantity.ppc a {
        width: 34px !important;
        height: 36px !important;
        font-size: 18px !important;
    }

.checkout-cart-items .product-one__quantity.ppc input {
        width: 34px !important;
        height: 36px !important;
    }

.checkout-cart-items .poq-likes {
        position: static !important;
        margin: 0 !important;
        top: auto !important;
        right: auto !important;
    }

.checkout-cart-items .poq-likes .removeProduct img {
        width: 22px;
    }
}
