.payment_box.payment_method_stripe{
 background:#fff !important; 
  margin-top:10px !important;
}
.woocommerce-checkout #payment fieldset .form-row {
    padding: 0 !important;
	margin-top: 10px !important;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: start;
}

.checkout-layout__left,
.checkout-layout__right {
    min-width: 0;
}

.checkout-box,
.checkout-summary-box,
.checkout-layout__right #payment {
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    margin-bottom: 24px;
}

.checkout-box__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #bfbfc9;
}

.checkout-box__title,
.checkout-summary-box__title {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.2;
}

.checkout-box__head .checkout-box__title {
    margin-bottom: 0;
}

.checkout-box__meta {
    color: #b8b8c2;
    font-size: 24px;
}

.checkout-cart-row {
    display: grid;
    grid-template-columns: 1fr auto 30px;
    gap: 18px 110px;
    align-items: center;
}

.checkout-cart-row__name {
    font-size: 16px;
    line-height: 1.4;
}

.checkout-cart-row__qty {
    margin-left: 6px;
    color: #666;
}

.checkout-cart-row__price {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 18px;
}

.checkout-cart-row__old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.checkout-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f1f1f5;
    text-decoration: none;
    font-size: 16px;
    color: #bfbfc9;
}

.checkout-remove-btn:hover {
    background: #3f89c4;
    color: #fff;
}

.checkout-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 18px;
}

.checkout-summary-line--total {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e6e6ee;
    font-size: 20px;
    font-weight: 700;
}

.checkout-layout__right #payment {
    margin-top: 0;
}

.checkout-layout__right .woocommerce-checkout-review-order-table {
}

/* Личные данные */
.checkout-box--personal .form-row {
    width: 100%;
    margin-bottom: 0;
}

.checkout-box--personal input.input-text {
    height: 56px;
    border-radius: 12px;
    padding: 0 16px;
}

/* Промокод */
.checkout-box--coupon .woocommerce-form-coupon-toggle {
    display: none;
}

.checkout-box--coupon form.checkout_coupon,
.checkout-box--coupon .checkout_coupon {
    display: flex !important;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-box--coupon .form-row-first {
    width: 100%;
    margin: 0;
}

.checkout-box--coupon .form-row-last {
    width: 160px;
    margin: 0;
}

.checkout-box--coupon input.input-text {
    height: 56px;
    border-radius: 12px;
    padding: 0 16px;
}

.checkout-box--coupon button.button {
    width: 100%;
    height: 56px;
    border-radius: 12px;
}

/* Правая колонка */
.checkout-layout__right .payment_methods {
    margin-top: 20px;
}

.checkout-layout__right #place_order {
    width: 100%;
    min-height: 56px;
    border-radius: 14px;
    float: none;
    background: #3f89c4;
}

.checkout-layout__right #place_order:hover {
    background: #246293;
    opacity: 1;
}

@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

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

.cart-container .cart {
    background: #f9f9f9;
}

.nav-custom .nav-wrap {
    padding: 0 !important;
}

.nav-wrap {
    padding: 9px 0;
}

body.page-template-Cart {
    background: #f9f9f9;
}

.nav-custom {
    padding: 9px 0;
}

.page_title-title {
    display: none;
}

.checkout-cart-list {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 20px;
}

strong.woocommerce-Price-amount {
    font-weight: 600;
}

.checkout-cart-row__old-price {
    font-size: 12px;
}

label.required_field {
    display: none !important;
}

.checkout-box--coupon p {
}

#billing_email {
    border-radius: 10px !important;
    border: 1px solid #bfbfc9 !important;
}

input#coupon_code_custom {
    border-radius: 10px !important;
    border: 1px solid #bfbfc9 !important;
}

.couponfield {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

p.form-row.form-row-last {
    width: 237px !important;
    border-radius: 10px;
}

.couponfield button.button {
    width: 170px !important;
    flex: 0 0 170px !important;
    padding: 15px 40px !important;
    border: none !important;
    background: #f1f7fb;
    color: #3f89c4;
    font-size: 16px;
    font-weight: 600;
}

.couponfield button.button:hover {
    background: #f1f7fb;
    opacity: 1;
}

p.form-row.form-row-first {
    width: 100%;
}

.checkout-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.checkout-box__head-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
}

.checkout-box__head-right {
    flex-shrink: 0;
}

.checkout-clear-cart:hover {
    text-decoration: none;
}

.checkout-box__meta {
    color: #b8b8c2;
    font-size: 18px;
}

button.back-button.cart-popup {
    background: #f1f7fb;
    border: none;
}

.checkout-clear-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b8b8c2;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
}

.checkout-clear-cart::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.checkout-layout__left {
    display: flex;
    flex-direction: column;
}

.checkout.woocommerce-checkout {
    margin-top: 0;
}

.woocommerce-message {
    display: none;
}

.cart-subtotal {
    display: flex !important;
    visibility: visible !important;
}

#add_payment_method #payment ul.payment_methods,
.woocommerce-cart #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
}

.payment_box.payment_method_tbank {
    background: none !important;
    font-size: 12px !important;
    line-height: 14px !important;
    color: #8b8b8b !important;
}

.payment_box small {
    font-size: 100%;
}

.woocommerce-checkout #payment div.payment_box {
    padding: 0;
}

.form-row.place-order {
    padding: 0 !important;
}

button#place_order {
    margin: 10px 0 20px 0;
}

.woocommerce-page #payment #place_order {
    border-radius: 10px !important;
}

.woocommerce-checkout #payment ul.payment_methods li input {
    margin-right: 10px;
}

.checkout-layout__right #payment {
    margin-top: -65px;
}

.checkout-summary-line--total {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 20px;
    border-top: none;
    border-bottom: 1px solid #bfbfc9;
    font-size: 24px;
    font-weight: 400;
}

.includes_tax {
    display: none;
}

a.button.empty-cart-button {
    display: none !important;
}

.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout {
    display: none;
}

#billing_email[aria-invalid="true"] {
    border: 1px solid #ff0004 !important;
}

.input-text.has-error {
    border: 1px solid #ff0004 !important;
}

.checkout_coupon #coupon_code.has-error {
    border: 1px solid #ff0004 !important;
}

.checkout_coupon #coupon_code.has-error[type="text"] {
    border: 1px solid #ff0004 !important;
    border-right: 1px solid #ff0004 !important;
}

p#billing_email_description {
    margin-top: 10px;
    color: #ff004 !important;
}

button.coupbut {
    background: #f1f7fb !important;
    opacity: 1 !important;
}

.checkout-clear-cart:hover {
    color: #000;
}

.checkout-layout__left > *:nth-child(1) {
    order: 3;
}

.checkout-layout__left > *:nth-child(2) {
    order: 1;
}

.checkout-layout__left > *:nth-child(3) {
    order: 2;
}

.checkout_coupon #coupon_code.has-error {
    border-right: 1px solid #ff0004 !important;
}

.checkout_coupon #coupon_code {
    width: 100%;
    height: auto;
    border: 1px solid #bfbfc9 !important;
    border-right: 1px solid #bfbfc9 !important;
    border-radius: 10px !important;
}

.woocommerce form.checkout_coupon {
    display: flex;
    flex-wrap: wrap !important;
    gap: 10px 10px !important;
}

.checkout-box input {
    color: #111;
    -webkit-text-fill-color: #111;
}

.checkout-box input::placeholder {
    color: #999;
    -webkit-text-fill-color: #999;
    opacity: 1;
}

.checkout_coupon #coupon_code[type="text"] {
    border-right: 1px solid #bfbfc9 !important;
    border-radius: 10px !important;
}

.checkout_coupon {
    display: flex;
    flex-wrap: wrap !important;
    gap: 10px 10px !important;
}

.checkout_coupon input {
    flex: 1 !important;
}

.checkout_coupon button {
    flex: 0 0 auto !important;
}

.checkout_coupon .coupon-error-notice {
    width: 100%;
    margin-top: 0 !important;
    color: #ff0004 !important;
    font-size: 14px;
}

.woocommerce form .form-row {
    margin-bottom: 0 !important;
}

.checkout-cart-row__price bdi,
.woocommerce-Price-amount bdi {
    font-weight: 600 !important;
}

.coupon-error-notice {
    display: none !important;
}

.coupon-error-notice:last-of-type {
    display: inline !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

body:has(.applyc) button[name="apply_coupon"] {
    background: #3f89c4 !important;
    color: #fff !important;
}

.cart-container .cart {
    margin-top: 88px !important;
    margin-bottom: 88px !important;
}

@media (max-width: 768px) {
    .checkout-layout__left > *:nth-child(1) {
        order: 3;
    }

    .checkout-layout__left > *:nth-child(2) {
        order: 1;
    }

    .checkout-layout__left > *:nth-child(3) {
        order: 2;
    }

    .checkout-box,
    .checkout-summary-box,
    .checkout-layout__right #payment {
        border-radius: 20px;
        padding: 15px;
        margin-bottom: 24px;
    }

    .checkout-box__head-left {
        flex-direction: column;
    }

    .checkout-box__head {
        align-items: flex-end;
    }

    .checkout-cart-row {
        gap: 5px !important;
    }

    .checkout-layout {
        gap: 0;
    }

    .nav_main {
        justify-content: flex-end !important;
    }

    .cart-container .cart {
        margin-top: 68px !important;
        margin-top: 30px !important;
    }

    .checkout-box__title,
    .checkout-summary-box__title {
        margin: 0 0 10px;
        font-size: 28px;
        line-height: 1.2;
    }

    .woocommerce form.checkout_coupon {
        margin-bottom: 0 !important;
    }

    .checkout-checkbox-label {
        font-size: 12px !important;
    }

    .checkout-box.checkout-box--coupon {
        margin-bottom: 0;
    }
	
	.checkout.woocommerce-checkout{
		margin-top:84px !important;
	}
}

.cart-container .page_title  {
    margin-top: 50px;
}
.cart-container .text-widget{
	background:#fff;
}

.cart-container .cart_block_table thead{
	display:none;
}
.cart-container .woocommerce table.shop_table.cart{
	background: #fff;
    border-radius: 28px;
	margin:24px 0 !important;
}

.cart-container .woocommerce table.shop_table.cart tr{
	border-bottom:0;
	padding:0 !important;
}

.cart-container .woocommerce table.shop_table.cart td{
	padding:30px 30px 20px 30px;
}
.cart-container .woocommerce table.shop_table.cart tr:not(:first-child) td {
    padding-top: 0;
}

.cart-container .woocommerce table.shop_table.cart a {
    color: #111;
}

.cart-container .woocommerce table.shop_table.cart a:hover {
    color: #111;
}

.cart-container .woocommerce table.shop_table.cart .product-remove a {
    color: #bfbfc9;
	float: right;
}

.cart-container .woocommerce table.shop_table.cart .product-remove a:hover {
    color: #fff;
}

/* старая цена */
.cart-container .woocs_price_code del, .woocs_price_code del bdi {
    color: #999;
    font-weight: 400;
    text-decoration: line-through; /* на всякий */
}

/* новая цена */
.cart-container .woocs_price_code ins, .woocs_price_code ins bdi {
    color: #000;
    font-weight: 700;
    text-decoration: none; /* убираем underline, если вдруг есть */
}

.cart-container .woocs_price_code {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
}
.cart-container td.product-thumbnail{
	padding-right:20px !important;
}
.cart-container td.product-name {
    padding-left: 0 !important;
}

.cart-container woocommerce .cart-collaterals .cart_totals, .cart-container .woocommerce-page .cart-collaterals .cart_totals{
	width:100%;
}

.cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals{
    width: 100%;
    padding: 30px;
    background: #fff;
    border-radius: 24px;
}

.cart-container .shop_table .cart-subtotal{
	display:none !important;
}

.cart-container .woocommerce a.button.alt{
	border-radius:10px;
}
.cart-container .woocommerce a.button.alt:hover{
	background:#246293;
	opacity:1;
}

.cart-container .woocommerce .cart-collaterals .cart_totals table.shop_table tbody th, .cart-container .woocommerce .cart-collaterals table.shop_table tbody td{
	border:none !important;
	font-size:18px;
	padding:10px 0 !important;
}



@media screen and (max-width: 768px) {
	.cart-container .page_title {
		margin-top: 80px;
	}
	.woocommerce table.shop_table.cart td.product-thumbnail{
		display:none !important;
	}
	.woocommerce table.shop_table_responsive tr td, 
	.woocommerce-page table.shop_table_responsive tr td{
		display:table-cell;
		align-content: flex-end;
	}
	.woocommerce table.shop_table_responsive tr td::before, 
	.woocommerce-page table.shop_table_responsive tr td::before{
		content:'';
	}
	.woocommerce table.shop_table.cart .product-remove{
		float:none;
	}
	.cart-container .woocommerce table.shop_table.cart tr {
		padding: 15px !important;
	}
	.cart-container .woocommerce table.shop_table.cart td {
		padding: 15px !important;
	}
	.woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr {
        display: table-row;
    }
	.cart-container .woocommerce table.shop_table.cart {
		border-radius: 20px;
	}
	.woocommerce table.shop_table_responsive tbody th, .woocommerce-page table.shop_table_responsive tbody th{
		display:table-cell;
	}
	
	.cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals{
		padding: 15px;
	}
	.cart-container .woocommerce a.button.alt{
		margin:0;
	}
	.cart-container .woocommerce .cart_totals .wc-proceed-to-checkout{
		padding:0;
	}
	.cart-container .woocommerce-cart .cart_block-subtext{
		margin-top:25px !important;
	}
}