/* ===== CART PAGE ===== */
.vek21-cart-wrap {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.vek21-cart-wrap .woocommerce {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.vek21-cart-wrap .woocommerce-cart-form {
    flex: 1;
    min-width: 0;
}

.vek21-cart-wrap .cart-collaterals {
    flex: 0 0 320px;
    position: sticky;
    top: 20px;
}

.vek21-cart-wrap .shop_table {
    display: block;
    width: 100%;
    border: none;
    margin: 0;
}

.vek21-cart-wrap .shop_table thead {
    display: none;
}

.vek21-cart-wrap .shop_table tbody {
    display: block;
    width: 100%;
}

.vek21-cart-wrap .shop_table tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 12px 20px;
    padding: 24px 0;
    border-bottom: 1px solid #ebedf0;
    align-items: start;
}

.vek21-cart-wrap .shop_table tr {
    display: block;
}

.vek21-cart-wrap .shop_table td {
    padding: 0;
    border: none;
    display: block;
}

.vek21-cart-wrap .shop_table td::before {
    display: none !important;
}

/* Notices */
.vek21-cart-wrap .woocommerce-message,
.vek21-cart-wrap .woocommerce-info,
.vek21-cart-wrap .woocommerce-error {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 24px;
    list-style: none;
    font-family: Arial, sans-serif;
    font-weight: 600;
}

.vek21-cart-wrap .woocommerce-message {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.vek21-cart-wrap .woocommerce-info {
    background: #e8f4fd;
    color: #004a80;
    border: 1px solid #64b5f6;
}

.vek21-cart-wrap .woocommerce-error {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f48fb1;
}

.vek21-cart-wrap .woocommerce-error li {
    list-style: none;
}

/* ===== CHECKOUT PAGE ===== */
.vek21-co {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vek21-co .woocommerce-form-coupon-toggle {
    margin-bottom: 20px;
}

.vek21-co .woocommerce-form-coupon-toggle .woocommerce-info {
    padding: 14px 20px;
    background: #f4f8fe;
    border: 1px solid #c8ddf5;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    margin-bottom: 0;
    list-style: none;
}

.vek21-co .woocommerce-info {
    padding: 14px 20px;
    background: #f4f8fe;
    border: 1px solid #c8ddf5;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    margin-bottom: 20px;
    list-style: none;
}

.vek21-co .checkout_coupon {
    background: #f9f9fb;
    border: 1px solid #ebedf0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.vek21-co .checkout_coupon p {
    margin: 0 0 12px;
    font-size: 14px;
}

.vek21-co .checkout_coupon .form-row-first {
    display: inline-block;
    width: auto;
}

.vek21-co .checkout_coupon .form-row-last {
    display: inline-block;
    width: auto;
}

.vek21-co .checkout_coupon input[type="text"] {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d1d5;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.vek21-co .checkout_coupon button {
    height: 44px;
    padding: 0 24px;
    background: #b2586e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.vek21-co .checkout_coupon button:hover {
    background: #964457;
}

/* Layout */
.vek21-co .woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.vek21-co .woocommerce-checkout>*:not(#customer_details):not(#order_review) {
    flex: 0 0 100%;
    width: 100%;
}

.vek21-co #customer_details {
    flex: 1;
    min-width: 0;
}

.vek21-co #customer_details .col-1,
.vek21-co #customer_details .col-2 {
    width: 100%;
    float: none;
    max-width: none;
    padding: 0;
    margin-bottom: 8px;
}

.vek21-co #order_review_heading {
    display: none;
}

.vek21-co #order_review {
    flex: 0 0 380px;
    background: #fff;
    border: 1px solid #ebedf0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 20px;
}

.vek21-co #order_review::before {
    content: 'Ваш заказ';
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

/* Headings */
.vek21-co h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 0;
    border-bottom: none;
}

/* Form fields */
.vek21-co .woocommerce-billing-fields__field-wrapper,
.vek21-co .woocommerce-shipping-fields__field-wrapper,
.vek21-co .woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.vek21-co .form-row {
    margin-bottom: 18px;
    box-sizing: border-box;
}

.vek21-co .form-row-wide {
    width: 100%;
}

.vek21-co .form-row-first,
.vek21-co .form-row-last {
    width: calc(50% - 8px);
}

.vek21-co .form-row.notes {
    width: 100%;
}

.vek21-co .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6d6d6d;
}

.vek21-co .form-row .required {
    color: #e52e6b;
}

.vek21-co .form-row input[type="text"],
.vek21-co .form-row input[type="email"],
.vek21-co .form-row input[type="tel"],
.vek21-co .form-row input[type="number"],
.vek21-co .form-row input[type="password"],
.vek21-co .form-row textarea,
.vek21-co .form-row select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d1d1d5;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    outline: none;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.vek21-co .form-row input:focus,
.vek21-co .form-row select:focus,
.vek21-co .form-row textarea:focus {
    border-color: #4a76c9;
    box-shadow: 0 0 0 3px rgba(74, 118, 201, 0.08);
}

.vek21-co .form-row textarea {
    height: auto;
    min-height: 90px;
    padding: 12px 14px;
}

.vek21-co .select2-container .select2-selection--single {
    height: 46px;
    border: 1px solid #d1d1d5;
    border-radius: 8px;
    padding: 8px 14px;
    background: #fff;
}

.vek21-co .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    font-size: 15px;
    color: #1a1a1a;
}

.vek21-co .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 12px;
}

.vek21-co .select2-container--focus .select2-selection--single {
    border-color: #4a76c9 !important;
    box-shadow: 0 0 0 3px rgba(74, 118, 201, 0.08) !important;
}

/* Order review table */
.vek21-co .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
}

.vek21-co .woocommerce-checkout-review-order-table thead th {
    text-align: left;
    padding: 10px 0;
    font-weight: 600;
    border-bottom: 1px solid #ebedf0;
    color: #6d6d6d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vek21-co .woocommerce-checkout-review-order-table td,
.vek21-co .woocommerce-checkout-review-order-table tbody th {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f7;
    color: #1a1a1a;
    font-size: 14px;
}

.vek21-co .woocommerce-checkout-review-order-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.vek21-co .woocommerce-checkout-review-order-table .cart-subtotal th,
.vek21-co .woocommerce-checkout-review-order-table .cart-subtotal td {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #ebedf0;
}

.vek21-co .woocommerce-checkout-review-order-table .order-total th,
.vek21-co .woocommerce-checkout-review-order-table .order-total td {
    font-size: 20px;
    font-weight: 800;
    border-bottom: none;
    padding-top: 16px;
    color: #1a1a1a;
}

/* Payment methods */
.vek21-co .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.vek21-co .wc_payment_methods li.wc_payment_method {
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid #ebedf0;
    border-radius: 10px;
    background: #fff;
    transition: all .15s ease;
}

.vek21-co .wc_payment_methods li.wc_payment_method:has(input:checked) {
    border-color: #4a76c9;
    background: #f4f8fe;
}

.vek21-co .wc_payment_methods li label {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
}

.vek21-co .wc_payment_methods li input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #4a76c9;
    cursor: pointer;
}

.vek21-co .wc_payment_methods .payment_box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ebedf0;
    font-size: 13px;
    color: #6d6d6d;
    line-height: 1.5;
    /* Force payment boxes to stay open. The user needs to see the credit card form at all times. */
    display: block !important;
}

.vek21-co .wc_payment_methods .payment_box p {
    margin: 0;
}

/* Place order button */
.vek21-co #place_order {
    display: block;
    width: 100%;
    height: 52px;
    background: #b2586e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: all .2s;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(178, 88, 110, 0.15);
}

.vek21-co #place_order:hover {
    background: #964457;
    box-shadow: 0 6px 16px rgba(178, 88, 110, 0.25);
}

.vek21-co .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 16px;
    font-size: 12px;
    color: #6d6d6d;
    line-height: 1.5;
}

.vek21-co .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.vek21-co .woocommerce-privacy-policy-text a {
    color: #4a76c9;
}

/* Error/success notices */
.vek21-co .woocommerce-error {
    padding: 14px 20px;
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f48fb1;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    list-style: none;
}

.vek21-co .woocommerce-error li {
    list-style: none;
}

.vek21-co .woocommerce-message {
    padding: 14px 20px;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .vek21-co {
        padding: 0 12px;
    }

    .vek21-co .woocommerce-checkout {
        flex-direction: column;
    }

    .vek21-co #order_review {
        flex: auto;
        width: 100%;
        position: static;
        box-sizing: border-box;
    }
}

/* Installment payment period options */
.vek21-co .installment-options label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ebedf0;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    font-weight: 400;
}

.vek21-co .installment-options label:has(input:checked) {
    border-color: #e52e6b;
    background: #fff5f8;
}

.vek21-co .installment-options input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 10px;
}

@media (max-width: 900px) {
    .vek21-cart-wrap .woocommerce {
        flex-direction: column;
    }

    .vek21-cart-wrap .cart-collaterals {
        flex: auto;
        width: 100%;
        position: static;
    }
}

@media (max-width: 580px) {
    .vek21-cart-item {
        flex-direction: column;
        gap: 12px;
    }

    .vek21-cart-item .vek21-cart-checkbox {
        margin-top: 0;
    }

    .vek21-cart-thumb {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 12px;
    }

    .vek21-cart-thumb img {
        width: 120px !important;
        height: 120px !important;
    }

    .vek21-cart-main-info {
        flex-direction: column;
        gap: 12px;
    }

    .vek21-cart-main-info>div:first-child {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .vek21-cart-qty,
    .vek21-cart-price {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        display: flex;
        text-align: left !important;
    }

    .vek21-cart-price {
        flex-direction: row-reverse;
    }

    .vek21-cart-delivery {
        flex-direction: column;
        gap: 8px !important;
    }

    .vek21-cart-actions {
        justify-content: space-between !important;
    }
}