.jccm-checkout-shortcode-wrap,
.woocommerce .jccm-checkout-shortcode-wrap {
    width: 100%;
}

.jccm-checkout-fields {
    width: 100%;
    margin: 0 0 24px;
    box-sizing: border-box;
}

.jccm-section-heading {
    margin: 0 0 14px;
}

.jccm-section-heading h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.jccm-section-heading p {
    margin: 0;
    font-size: 14px;
    opacity: .75;
}

.jccm-product-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
}

.jccm-product-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.jccm-product-title h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.jccm-product-badge {
    display: inline-flex;
    width: max-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, .06);
}

.jccm-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.jccm-field {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.jccm-field-textarea,
.jccm-field-hidden {
    grid-column: 1 / -1;
}

.jccm-field label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.jccm-field .required {
    color: #c0392b;
}

.jccm-field input,
.jccm-field select,
.jccm-field textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, .14) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    background: #fff !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    outline: none !important;
    box-shadow: none !important;
}

.jccm-field textarea {
    min-height: 110px;
    resize: vertical;
}

.jccm-field input:focus,
.jccm-field select:focus,
.jccm-field textarea:focus {
    border-color: rgba(0, 0, 0, .45) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06) !important;
}

.jccm-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    opacity: .72;
}

.jccm-no-fields {
    border-style: dashed;
}

.jccm-buy-now-button {
    margin-left: 10px !important;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details {
    width: 100%;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    display: none !important;
}

.woocommerce-checkout-review-order table.shop_table,
.woocommerce-checkout-review-order #payment {
    border-radius: 18px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .jccm-product-card {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .jccm-fields-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .jccm-section-heading h3 {
        font-size: 19px;
    }

    .jccm-product-title h4 {
        font-size: 16px;
    }

    .jccm-field input,
    .jccm-field select,
    .jccm-field textarea {
        min-height: 46px;
        font-size: 16px !important;
    }

    .jccm-buy-now-button {
        display: block !important;
        width: 100% !important;
        margin: 10px 0 0 !important;
        text-align: center !important;
    }

    .single_add_to_cart_button:not(.jccm-buy-now-button) {
        width: 100%;
    }

    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td {
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .jccm-product-card {
        padding: 14px;
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
    }

    .jccm-section-heading p,
    .jccm-field label {
        font-size: 13px;
    }
}

/* v1.0.1 Compact mobile checkout UX fixes */
.jccm-checkout-shortcode-wrap .woocommerce-notices-wrapper,
.jccm-checkout-shortcode-wrap .woocommerce-form-coupon-toggle {
    margin-bottom: 12px !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-info {
    border-radius: 12px !important;
    padding: 12px 14px 12px 44px !important;
    margin: 0 0 14px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.jccm-checkout-shortcode-wrap #order_review_heading,
.woocommerce-checkout #order_review_heading {
    margin: 18px 0 10px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-review-order {
    width: 100% !important;
    margin-top: 0 !important;
}

.jccm-checkout-shortcode-wrap table.shop_table,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
    width: 100% !important;
    margin: 0 0 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.jccm-checkout-shortcode-wrap table.shop_table th,
.jccm-checkout-shortcode-wrap table.shop_table td,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td {
    padding: 10px 12px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
}

.jccm-checkout-shortcode-wrap table.shop_table thead th,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table thead th {
    font-size: 14px !important;
    font-weight: 800 !important;
}

.jccm-checkout-shortcode-wrap table.shop_table .product-total,
.jccm-checkout-shortcode-wrap table.shop_table td:last-child,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table .product-total,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td:last-child {
    text-align: right !important;
    white-space: nowrap !important;
}

.jccm-checkout-shortcode-wrap #payment,
.woocommerce-checkout .woocommerce-checkout-review-order #payment {
    margin: 0 !important;
    border-radius: 16px !important;
    background: #f6f3fb !important;
    overflow: hidden !important;
}

.jccm-checkout-shortcode-wrap #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
    padding: 12px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
}

.jccm-checkout-shortcode-wrap #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}

.jccm-checkout-shortcode-wrap #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
    margin: 8px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.jccm-checkout-shortcode-wrap #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

.jccm-checkout-shortcode-wrap #payment .place-order,
.woocommerce-checkout #payment .place-order {
    padding: 12px !important;
    margin: 0 !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-privacy-policy-text p,
.woocommerce-checkout .woocommerce-privacy-policy-text p {
    margin: 0 0 10px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.jccm-checkout-shortcode-wrap #place_order,
.woocommerce-checkout #place_order {
    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

@media (max-width: 768px) {
    .jccm-checkout-shortcode-wrap,
    .woocommerce .jccm-checkout-shortcode-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .jccm-checkout-fields {
        margin-bottom: 16px !important;
    }

    .jccm-section-heading {
        margin-bottom: 10px !important;
    }

    .jccm-section-heading h3 {
        font-size: 21px !important;
        margin-bottom: 4px !important;
    }

    .jccm-section-heading p {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .jccm-product-card {
        padding: 14px !important;
        margin-bottom: 14px !important;
        border-radius: 18px !important;
        box-shadow: 0 8px 22px rgba(0,0,0,.08) !important;
    }

    .jccm-product-title {
        margin-bottom: 12px !important;
        gap: 5px !important;
    }

    .jccm-product-badge {
        padding: 4px 9px !important;
        font-size: 11px !important;
    }

    .jccm-product-title h4 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    .jccm-fields-grid {
        gap: 10px !important;
    }

    .jccm-field label {
        margin-bottom: 5px !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .jccm-field input,
    .jccm-field select,
    .jccm-field textarea {
        min-height: 42px !important;
        padding: 9px 12px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
    }

    .jccm-field textarea {
        min-height: 82px !important;
    }

    .jccm-checkout-shortcode-wrap .woocommerce-info,
    .woocommerce-checkout .woocommerce-info {
        padding: 10px 12px 10px 42px !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .jccm-checkout-shortcode-wrap #order_review_heading,
    .woocommerce-checkout #order_review_heading {
        margin: 14px 0 8px !important;
        font-size: 20px !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table_responsive,
    .jccm-checkout-shortcode-wrap table.shop_table_responsive tbody,
    .jccm-checkout-shortcode-wrap table.shop_table_responsive tfoot,
    .jccm-checkout-shortcode-wrap table.shop_table_responsive tr,
    .jccm-checkout-shortcode-wrap table.shop_table_responsive th,
    .jccm-checkout-shortcode-wrap table.shop_table_responsive td,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive tbody,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive tfoot,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive tr,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive th,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive td {
        display: revert !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table_responsive,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive {
        display: table !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table_responsive tbody,
    .jccm-checkout-shortcode-wrap table.shop_table_responsive tfoot,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive tbody,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive tfoot {
        display: table-row-group !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table_responsive tr,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive tr {
        display: table-row !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table_responsive th,
    .jccm-checkout-shortcode-wrap table.shop_table_responsive td,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive th,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive td {
        display: table-cell !important;
        width: auto !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table_responsive tr td::before,
    .woocommerce-page .jccm-checkout-shortcode-wrap table.shop_table_responsive tr td::before {
        display: none !important;
        content: none !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table th,
    .jccm-checkout-shortcode-wrap table.shop_table td,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table th,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td {
        padding: 8px 10px !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table thead th,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table thead th {
        font-size: 13px !important;
    }

    .jccm-checkout-shortcode-wrap #payment ul.payment_methods,
    .woocommerce-checkout #payment ul.payment_methods {
        padding: 10px !important;
    }

    .jccm-checkout-shortcode-wrap #payment div.payment_box,
    .woocommerce-checkout #payment div.payment_box {
        margin-top: 7px !important;
        padding: 9px 10px !important;
        font-size: 12px !important;
    }

    body.jccm-sticky-place-order .jccm-checkout-shortcode-wrap #payment .place-order,
    body.jccm-sticky-place-order.woocommerce-checkout #payment .place-order {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 50 !important;
        padding: 10px !important;
        background: #f6f3fb !important;
        box-shadow: 0 -8px 20px rgba(0,0,0,.08) !important;
    }

    .jccm-checkout-shortcode-wrap .woocommerce-privacy-policy-text p,
    .woocommerce-checkout .woocommerce-privacy-policy-text p {
        font-size: 11px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }

    .jccm-checkout-shortcode-wrap #place_order,
    .woocommerce-checkout #place_order {
        min-height: 44px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 420px) {
    .jccm-checkout-shortcode-wrap table.shop_table th,
    .jccm-checkout-shortcode-wrap table.shop_table td,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table th,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td {
        padding: 7px 8px !important;
        font-size: 12px !important;
    }

    .jccm-checkout-shortcode-wrap .product-name {
        max-width: 170px !important;
        word-break: break-word !important;
    }
}


/* v1.0.3 Single product Buy Now button and product-page responsive UX fix */
.woocommerce div.product form.cart,
.woocommerce-page div.product form.cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 18px 0 20px !important;
}

.woocommerce div.product form.cart div.quantity,
.woocommerce-page div.product form.cart div.quantity {
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}

.woocommerce div.product form.cart div.quantity input.qty,
.woocommerce-page div.product form.cart div.quantity input.qty {
    width: 64px !important;
    min-height: 52px !important;
    height: 52px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0,0,0,.18) !important;
    text-align: center !important;
    font-size: 16px !important;
    box-shadow: none !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce-page div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .jccm-buy-now-button,
.woocommerce-page div.product form.cart .jccm-buy-now-button {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    height: 52px !important;
    min-width: 150px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border-radius: 10px !important;
    border: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.10) !important;
}

.woocommerce div.product form.cart .jccm-buy-now-button,
.woocommerce-page div.product form.cart .jccm-buy-now-button {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
}

.woocommerce div.product form.cart .jccm-buy-now-button:hover,
.woocommerce-page div.product form.cart .jccm-buy-now-button:hover {
    background: #111827 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.woocommerce div.product form.cart .single_add_to_cart_button + .jccm-buy-now-button,
.woocommerce-page div.product form.cart .single_add_to_cart_button + .jccm-buy-now-button {
    margin-left: 0 !important;
}

.woocommerce div.product .summary .product_meta,
.woocommerce-page div.product .summary .product_meta {
    margin-top: 14px !important;
    font-size: 14px !important;
}

.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
    border-radius: 18px !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .woocommerce div.product form.cart,
    .woocommerce-page div.product form.cart {
        display: grid !important;
        grid-template-columns: 74px 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 14px 0 16px !important;
    }

    .woocommerce div.product form.cart div.quantity,
    .woocommerce-page div.product form.cart div.quantity {
        grid-column: 1 / 2 !important;
        width: 100% !important;
    }

    .woocommerce div.product form.cart div.quantity input.qty,
    .woocommerce-page div.product form.cart div.quantity input.qty {
        width: 100% !important;
        min-height: 48px !important;
        height: 48px !important;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button,
    .woocommerce-page div.product form.cart .single_add_to_cart_button {
        grid-column: 2 / 3 !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        height: 48px !important;
    }

    .woocommerce div.product form.cart .jccm-buy-now-button,
    .woocommerce-page div.product form.cart .jccm-buy-now-button {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        height: 48px !important;
        margin: 0 !important;
    }
}

@media (max-width: 420px) {
    .woocommerce div.product form.cart,
    .woocommerce-page div.product form.cart {
        grid-template-columns: 68px 1fr !important;
        gap: 8px !important;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button,
    .woocommerce-page div.product form.cart .single_add_to_cart_button,
    .woocommerce div.product form.cart .jccm-buy-now-button,
    .woocommerce-page div.product form.cart .jccm-buy-now-button {
        font-size: 14px !important;
        border-radius: 9px !important;
    }
}


/* v1.0.4 Fast loading + stronger phone responsive UX */
.jccm-checkout-fields,
.jccm-product-card,
.jccm-checkout-shortcode-wrap #order_review,
.jccm-checkout-shortcode-wrap #payment {
    box-sizing: border-box !important;
}

.jccm-product-card {
    contain: layout paint !important;
}

.jccm-checkout-shortcode-wrap form.checkout {
    margin-top: 0 !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-form-coupon-toggle,
.jccm-checkout-shortcode-wrap .woocommerce-notices-wrapper {
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .jccm-checkout-shortcode-wrap .woocommerce-form-coupon-toggle,
    .woocommerce-checkout .woocommerce-form-coupon-toggle {
        margin-bottom: 10px !important;
    }

    .jccm-checkout-shortcode-wrap .woocommerce-info,
    .woocommerce-checkout .woocommerce-info {
        min-height: auto !important;
    }

    .jccm-checkout-shortcode-wrap #customer_details,
    .woocommerce-checkout #customer_details {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .jccm-checkout-shortcode-wrap #order_review,
    .woocommerce-checkout #order_review {
        margin-top: 0 !important;
    }

    .jccm-checkout-shortcode-wrap table.shop_table,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }

    .jccm-checkout-shortcode-wrap #payment,
    .woocommerce-checkout .woocommerce-checkout-review-order #payment {
        border-radius: 12px !important;
    }

    .jccm-checkout-shortcode-wrap #payment label,
    .woocommerce-checkout #payment label {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    .jccm-checkout-shortcode-wrap #payment ul.payment_methods li input,
    .woocommerce-checkout #payment ul.payment_methods li input {
        margin-right: 6px !important;
    }

    .jccm-checkout-shortcode-wrap #payment div.payment_box p,
    .woocommerce-checkout #payment div.payment_box p {
        margin: 0 !important;
    }

    .jccm-checkout-shortcode-wrap .woocommerce-privacy-policy-text,
    .woocommerce-checkout .woocommerce-privacy-policy-text {
        max-height: 76px !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-right: 2px !important;
    }

    .jccm-checkout-shortcode-wrap #place_order,
    .woocommerce-checkout #place_order {
        position: relative !important;
        z-index: 1 !important;
    }

    .woocommerce div.product .summary,
    .woocommerce-page div.product .summary {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .jccm-checkout-fields {
        margin-bottom: 12px !important;
    }

    .jccm-section-heading h3 {
        font-size: 19px !important;
    }

    .jccm-product-title h4 {
        font-size: 17px !important;
    }

    .jccm-field input,
    .jccm-field select,
    .jccm-field textarea {
        min-height: 40px !important;
    }

    .jccm-checkout-shortcode-wrap #order_review_heading,
    .woocommerce-checkout #order_review_heading {
        font-size: 19px !important;
        margin-top: 10px !important;
    }

    .jccm-checkout-shortcode-wrap #payment .place-order,
    .woocommerce-checkout #payment .place-order {
        padding: 8px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jccm-buy-now-button,
    .single_add_to_cart_button {
        transition: none !important;
        transform: none !important;
    }
}


/* v1.0.5 final UX + setup options */
body.jccm-hide-coupon-box .woocommerce-form-coupon-toggle,
body.jccm-hide-coupon-box form.checkout_coupon {
    display: none !important;
}

body.jccm-buy-now-replace.woocommerce div.product form.cart .single_add_to_cart_button:not(.jccm-buy-now-button),
body.jccm-buy-now-replace.woocommerce-page div.product form.cart .single_add_to_cart_button:not(.jccm-buy-now-button) {
    display: none !important;
}

body.jccm-buy-now-replace.woocommerce div.product form.cart,
body.jccm-buy-now-replace.woocommerce-page div.product form.cart {
    grid-template-columns: 74px 1fr !important;
}

body.jccm-buy-now-replace.woocommerce div.product form.cart .jccm-buy-now-button,
body.jccm-buy-now-replace.woocommerce-page div.product form.cart .jccm-buy-now-button {
    margin: 0 !important;
}

.jccm-checkout-shortcode-wrap .shop_table .product-name,
.woocommerce-checkout .shop_table .product-name {
    word-break: break-word !important;
}

@media (max-width: 768px) {
    body.jccm-buy-now-replace.woocommerce div.product form.cart .jccm-buy-now-button,
    body.jccm-buy-now-replace.woocommerce-page div.product form.cart .jccm-buy-now-button {
        grid-column: 2 / 3 !important;
    }

    body.jccm-fast-mobile .jccm-checkout-shortcode-wrap .woocommerce-privacy-policy-text::-webkit-scrollbar {
        width: 4px;
    }
}

/* v1.0.6 Physical / Import product payment summary */
.jccm-product-payment-notice,
.jccm-payment-summary {
    width: 100%;
    box-sizing: border-box;
    margin: 14px 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, .045), rgba(99, 102, 241, .055));
    color: #0f172a;
}

.jccm-product-payment-notice strong,
.jccm-payment-summary h3 {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 850;
}

.jccm-product-payment-notice span,
.jccm-product-payment-notice small,
.jccm-pay-note {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(15, 23, 42, .78);
}

.jccm-pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid rgba(15, 23, 42, .08);
    font-size: 14px;
    line-height: 1.3;
}

.jccm-pay-row:first-of-type {
    border-top: 0;
    padding-top: 2px;
}

.jccm-pay-row strong {
    white-space: nowrap;
    font-weight: 850;
}

.jccm-due-row strong {
    color: #b45309;
}

@media (max-width: 768px) {
    .jccm-product-payment-notice,
    .jccm-payment-summary {
        margin: 12px 0 14px;
        padding: 12px 13px;
        border-radius: 14px;
    }

    .jccm-product-payment-notice strong,
    .jccm-payment-summary h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .jccm-pay-row {
        padding: 8px 0;
        font-size: 13px;
    }

    .jccm-product-payment-notice span,
    .jccm-product-payment-notice small,
    .jccm-pay-note {
        font-size: 12px;
    }
}


/* v1.0.8 responsive gap + zero subtotal UX polish */
body.jccm-bd-stock-advance.woocommerce-checkout .cart-subtotal,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .cart-subtotal {
    display: none !important;
}

.jccm-subtotal-due {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
    white-space: nowrap;
}

.jccm-subtotal-due-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(15, 23, 42, .62);
}

.jccm-subtotal-due strong {
    display: block;
    font-size: 14px;
    color: #b45309;
}

.jccm-checkout-shortcode-wrap .product-name dl.variation,
.woocommerce-checkout .woocommerce-checkout-review-order .product-name dl.variation,
.jccm-checkout-shortcode-wrap .product-name .wc-item-meta,
.woocommerce-checkout .woocommerce-checkout-review-order .product-name .wc-item-meta {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 4px 8px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.jccm-checkout-shortcode-wrap .product-name dl.variation dt,
.jccm-checkout-shortcode-wrap .product-name dl.variation dd,
.woocommerce-checkout .woocommerce-checkout-review-order .product-name dl.variation dt,
.woocommerce-checkout .woocommerce-checkout-review-order .product-name dl.variation dd,
.jccm-checkout-shortcode-wrap .product-name .wc-item-meta li,
.woocommerce-checkout .woocommerce-checkout-review-order .product-name .wc-item-meta li {
    margin: 0 !important;
    padding: 0 !important;
}

.jccm-checkout-shortcode-wrap .product-name dl.variation dd p,
.woocommerce-checkout .woocommerce-checkout-review-order .product-name dl.variation dd p {
    margin: 0 !important;
    padding: 0 !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05) !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot th,
.jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot td,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table .order-total th,
.jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table .order-total td,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table .order-total td {
    font-weight: 900 !important;
    font-size: 15px !important;
}

body.jccm-bd-stock-advance .jccm-payment-summary {
    margin-top: 10px !important;
}

body.jccm-bd-stock-advance .jccm-pay-row.jccm-due-row {
    background: rgba(245, 158, 11, .07);
    margin: 4px -8px 0;
    padding: 9px 8px;
    border-radius: 10px;
    border-top: 0;
}

@media (min-width: 769px) {
    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
        max-width: 100% !important;
    }
    .jccm-checkout-shortcode-wrap table.shop_table th,
    .jccm-checkout-shortcode-wrap table.shop_table td,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table th,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td {
        padding: 11px 14px !important;
    }
    .jccm-product-card {
        padding: 20px !important;
    }
}

@media (max-width: 768px) {
    .jccm-checkout-shortcode-wrap,
    .jccm-checkout-shortcode-wrap form.checkout,
    .woocommerce-checkout form.checkout,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout .woocommerce-checkout-review-order {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
        table-layout: fixed !important;
        border-radius: 14px !important;
    }

    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table th.product-name,
    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table td.product-name,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table th.product-name,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td.product-name {
        width: 62% !important;
    }

    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table th.product-total,
    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table td.product-total,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table th.product-total,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td.product-total {
        width: 38% !important;
    }

    .jccm-subtotal-due-label {
        font-size: 10px !important;
    }

    .jccm-subtotal-due strong {
        font-size: 12px !important;
    }

    .jccm-payment-summary {
        margin: 10px 0 12px !important;
        padding: 11px 12px !important;
        border-radius: 14px !important;
    }

    .jccm-payment-summary h3 {
        font-size: 15px !important;
        margin-bottom: 4px !important;
    }

    .jccm-pay-row {
        padding: 7px 0 !important;
        gap: 8px !important;
    }

    .jccm-pay-row span,
    .jccm-pay-row strong {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .jccm-checkout-shortcode-wrap .product-name dl.variation,
    .woocommerce-checkout .woocommerce-checkout-review-order .product-name dl.variation,
    .jccm-checkout-shortcode-wrap .product-name .wc-item-meta,
    .woocommerce-checkout .woocommerce-checkout-review-order .product-name .wc-item-meta {
        display: block !important;
        margin-top: 5px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .jccm-checkout-shortcode-wrap .product-name dl.variation dt,
    .woocommerce-checkout .woocommerce-checkout-review-order .product-name dl.variation dt {
        display: inline !important;
        font-weight: 800 !important;
    }

    .jccm-checkout-shortcode-wrap .product-name dl.variation dd,
    .woocommerce-checkout .woocommerce-checkout-review-order .product-name dl.variation dd {
        display: inline !important;
    }

    .jccm-checkout-shortcode-wrap .product-name dl.variation dd::after,
    .woocommerce-checkout .woocommerce-checkout-review-order .product-name dl.variation dd::after {
        content: "";
        display: block;
        height: 3px;
    }

    .jccm-product-card {
        margin-bottom: 12px !important;
    }

    .jccm-checkout-shortcode-wrap #payment,
    .woocommerce-checkout .woocommerce-checkout-review-order #payment {
        margin-top: 10px !important;
    }
}

@media (max-width: 420px) {
    .jccm-checkout-shortcode-wrap .woocommerce-info,
    .woocommerce-checkout .woocommerce-info {
        padding-top: 9px !important;
        padding-bottom: 9px !important;
        margin-bottom: 10px !important;
    }

    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table th,
    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table td,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table th,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td {
        padding: 7px 8px !important;
    }

    .jccm-payment-summary {
        padding: 10px !important;
    }
}


/* v1.0.9 clean Bangladesh stock checkout display */
.jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table .product-name,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table .product-name {
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table .product-name .product-quantity,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table .product-name .product-quantity {
    font-weight: 700 !important;
}

.jccm-subtotal-due {
    gap: 4px !important;
}

.jccm-subtotal-due-label {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: rgba(15, 23, 42, .70) !important;
}

.jccm-subtotal-due strong {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #b45309 !important;
}

body.jccm-bd-stock-advance .jccm-payment-summary {
    margin-top: 10px !important;
}

@media (max-width: 768px) {
    .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table .product-name,
    .woocommerce-checkout .woocommerce-checkout-review-order table.shop_table .product-name {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .jccm-subtotal-due-label {
        font-size: 11px !important;
    }

    .jccm-subtotal-due strong {
        font-size: 13px !important;
    }
}


/* v1.1.0 Compact Order Summary UI */
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
    display: block !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table thead,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table thead {
    display: none !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tbody,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tbody,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot {
    display: block !important;
    width: 100% !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tr.cart_item,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tr.cart_item {
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tr.cart_item td,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tr.cart_item td {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-total,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-total {
    display: none !important;
}

.jccm-order-item-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(15,23,42,.82);
}

.jccm-order-item-breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,.045);
}

.jccm-order-item-breakdown b {
    color: #0f172a;
    font-weight: 850;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(15,23,42,.07) !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr th,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr td,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr th,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr td,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr td {
    text-align: right !important;
    white-space: nowrap !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total {
    padding-top: 10px !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td {
    font-size: 17px !important;
    font-weight: 950 !important;
}

body.jccm-bd-stock-advance .jccm-payment-summary h3 {
    margin-bottom: 8px !important;
}

@media (max-width: 768px) {
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
        padding: 12px !important;
        border-radius: 15px !important;
    }

    .jccm-order-item-breakdown {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 7px;
        font-size: 12px;
    }

    .jccm-order-item-breakdown span {
        justify-content: space-between;
        border-radius: 10px;
        padding: 7px 9px;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr {
        padding: 7px 0 !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr th,
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr td,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr th,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr td {
        font-size: 13px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td {
        font-size: 15px !important;
    }
}

/* v1.1.1 Design 2 - Green premium compact checkout UI */
:root {
    --jccm-green: #16a34a;
    --jccm-green-dark: #15803d;
    --jccm-green-soft: rgba(22, 163, 74, .08);
    --jccm-green-border: rgba(22, 163, 74, .32);
    --jccm-orange: #ea580c;
}

.jccm-checkout-shortcode-wrap .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.jccm-checkout-shortcode-wrap .woocommerce-info,
.woocommerce-checkout .woocommerce-info {
    border-color: var(--jccm-green-border) !important;
    background: linear-gradient(135deg, rgba(22,163,74,.07), rgba(255,255,255,.96)) !important;
    color: #0f172a !important;
    border-radius: 12px !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-info::before,
.woocommerce-checkout .woocommerce-info::before {
    color: var(--jccm-green) !important;
}

.jccm-product-card {
    border-color: rgba(22,163,74,.14) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .055) !important;
    background: rgba(255,255,255,.98) !important;
}

.jccm-product-badge {
    background: rgba(22,163,74,.08) !important;
    color: var(--jccm-green-dark) !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap #order_review_heading,
body.jccm-bd-stock-advance.woocommerce-checkout #order_review_heading {
    margin-top: 18px !important;
    margin-bottom: 10px !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
    border: 1px solid var(--jccm-green-border) !important;
    background: #fff !important;
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 14px 36px rgba(22, 163, 74, .08) !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table::before,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table::before {
    content: "Your order";
    display: block;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(22,163,74,.22);
    background: linear-gradient(135deg, rgba(22,163,74,.10), rgba(255,255,255,.98));
    color: #0f172a;
    font-weight: 900;
    font-size: 18px;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tbody,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tbody {
    padding: 14px 16px 8px !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot {
    padding: 0 16px 16px !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tr.cart_item,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tr.cart_item {
    border-bottom: 1px dashed rgba(22,163,74,.22) !important;
    margin-bottom: 10px !important;
    padding-bottom: 12px !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table td.product-name,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td.product-name {
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 850 !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table .product-name .product-quantity,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table .product-name .product-quantity {
    float: right !important;
    background: transparent !important;
    color: #0f172a !important;
    font-weight: 900 !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 12px !important;
    font-size: 14px !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown span {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(22,163,74,.07), rgba(22,163,74,.025)) !important;
    color: #0f172a !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown span b {
    color: #0f172a !important;
    font-weight: 850 !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.cart-subtotal,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.cart-subtotal {
    display: none !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.fee,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.fee {
    border-top: 1px dashed rgba(22,163,74,.24) !important;
    padding: 12px 0 !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total {
    margin: 4px -16px -16px !important;
    padding: 15px 16px !important;
    background: linear-gradient(135deg, var(--jccm-green-dark), var(--jccm-green)) !important;
    color: #fff !important;
    border-top: 0 !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total .amount,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total .amount {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 950 !important;
}

.jccm-payment-summary.jccm-design2-summary,
body.jccm-bd-stock-advance .jccm-payment-summary {
    border: 1px solid rgba(22,163,74,.18) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(22,163,74,.055), rgba(255,255,255,.98)) !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.05) !important;
    padding: 14px 16px !important;
}

.jccm-payment-summary h3 {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 0 12px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}

.jccm-payment-summary h3 .jccm-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--jccm-green);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.jccm-payment-summary .jccm-pay-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(15,23,42,.07) !important;
    background: transparent !important;
}

.jccm-payment-summary .jccm-pay-row:last-of-type {
    border-bottom: 0 !important;
}

.jccm-payment-summary .jccm-pay-row span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.jccm-payment-summary .jccm-pay-row span i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 23px !important;
    height: 23px !important;
    border-radius: 7px !important;
    background: rgba(22,163,74,.10) !important;
    color: var(--jccm-green) !important;
    font-style: normal !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.jccm-payment-summary .jccm-pay-row strong {
    color: var(--jccm-green-dark) !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

.jccm-payment-summary .jccm-due-row strong,
.jccm-payment-summary .jccm-due-row span i {
    color: var(--jccm-orange) !important;
}

.jccm-payment-summary .jccm-due-row span i {
    background: rgba(234,88,12,.10) !important;
}

.jccm-payment-summary .jccm-pay-note {
    margin-top: 6px !important;
    padding: 8px 0 0 !important;
    color: rgba(15,23,42,.72) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.jccm-checkout-shortcode-wrap #payment,
.woocommerce-checkout .woocommerce-checkout-review-order #payment {
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(22,163,74,.055), rgba(255,255,255,.97)) !important;
    border: 1px solid rgba(22,163,74,.14) !important;
}

.jccm-checkout-shortcode-wrap #place_order,
.woocommerce-checkout #place_order,
.jccm-checkout-shortcode-wrap button#place_order {
    background: linear-gradient(135deg, var(--jccm-green-dark), var(--jccm-green)) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(22,163,74,.20) !important;
}

.jccm-checkout-shortcode-wrap #place_order:hover,
.woocommerce-checkout #place_order:hover {
    filter: brightness(.98) !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap #order_review_heading,
    body.jccm-bd-stock-advance.woocommerce-checkout #order_review_heading {
        font-size: 20px !important;
        margin-top: 14px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table::before,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table::before {
        padding: 13px 14px !important;
        font-size: 16px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tbody,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tbody {
        padding: 12px 12px 8px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot {
        padding: 0 12px 12px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table td.product-name,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td.product-name {
        font-size: 15px !important;
    }

    body.jccm-bd-stock-advance .jccm-order-item-breakdown {
        font-size: 13px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total {
        margin: 4px -12px -12px !important;
        padding: 13px 12px !important;
    }

    .jccm-payment-summary.jccm-design2-summary,
    body.jccm-bd-stock-advance .jccm-payment-summary {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .jccm-payment-summary h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .jccm-payment-summary .jccm-pay-row {
        padding: 10px 0 !important;
    }

    .jccm-payment-summary .jccm-pay-row span {
        font-size: 14px !important;
    }

    .jccm-payment-summary .jccm-pay-row strong {
        font-size: 15px !important;
    }
}

@media (max-width: 420px) {
    .jccm-product-card,
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table,
    .jccm-payment-summary.jccm-design2-summary,
    body.jccm-bd-stock-advance .jccm-payment-summary,
    .jccm-checkout-shortcode-wrap #payment,
    .woocommerce-checkout .woocommerce-checkout-review-order #payment {
        border-radius: 13px !important;
    }

    .jccm-fields-grid {
        gap: 10px !important;
    }

    .jccm-field input,
    .jccm-field select,
    .jccm-field textarea {
        min-height: 44px !important;
        font-size: 14px !important;
    }
}


/* v1.1.2 Design 2 clean polish: remove jumbled price chips and extra heading gap */
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap #order_review_heading,
body.jccm-bd-stock-advance.woocommerce-checkout #order_review_heading {
    display: none !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
    margin-top: 14px !important;
    overflow: hidden !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tbody,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tbody {
    display: block !important;
    padding: 14px 16px 10px !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tr.cart_item,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tr.cart_item {
    display: block !important;
    padding: 0 0 14px !important;
    margin: 0 !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table td.product-name,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td.product-name {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    word-break: normal !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 12px !important;
    width: 100% !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(22,163,74,.08), rgba(22,163,74,.025)) !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row em {
    font-style: normal !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row strong {
    display: inline-block !important;
    white-space: nowrap !important;
    text-align: right !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 950 !important;
    color: #0f172a !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row strong.jccm-due-text {
    color: var(--jccm-orange) !important;
}

/* Stop older broad rules from styling WooCommerce price spans inside our rows. */
body.jccm-bd-stock-advance .jccm-order-item-breakdown .amount,
body.jccm-bd-stock-advance .jccm-order-item-breakdown .amount bdi,
body.jccm-bd-stock-advance .jccm-order-item-breakdown .woocommerce-Price-currencySymbol {
    display: inline !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    white-space: nowrap !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot {
    display: block !important;
    padding: 0 16px 16px !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.fee,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.fee {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-top: 1px dashed rgba(22,163,74,.24) !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    margin: 4px -16px -16px !important;
    padding: 15px 16px !important;
}

body.jccm-bd-stock-advance .jccm-subtotal-due {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
}

body.jccm-bd-stock-advance .jccm-subtotal-due strong {
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table::before,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table::before {
        padding: 12px 14px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tbody,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tbody {
        padding: 12px 12px 8px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot {
        padding: 0 12px 12px !important;
    }

    body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row {
        padding: 10px 11px !important;
        gap: 8px !important;
    }

    body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row em,
    body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row strong {
        font-size: 13px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total {
        margin: 4px -12px -12px !important;
        padding: 13px 12px !important;
    }
}


/* v1.1.3 Right side overflow/clipping fix for Design 2 checkout summary */
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap *,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order * {
    box-sizing: border-box !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.fee,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.fee {
    grid-template-columns: minmax(0, 1fr) minmax(82px, max-content) !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.fee th,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.fee th {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.fee td,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.fee td {
    min-width: 82px !important;
    text-align: right !important;
    overflow: visible !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total {
    margin: 8px 0 0 !important;
    padding: 14px 14px !important;
    border-radius: 12px !important;
    grid-template-columns: minmax(0, 1fr) minmax(82px, max-content) !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td {
    min-width: 82px !important;
    text-align: right !important;
    overflow: visible !important;
}

body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot .amount,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot .amount,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot .amount bdi,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot .amount bdi,
body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot .woocommerce-Price-currencySymbol,
body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot .woocommerce-Price-currencySymbol {
    white-space: nowrap !important;
    display: inline !important;
    line-height: 1.2 !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row,
body.jccm-bd-stock-advance .jccm-payment-summary .jccm-pay-row {
    max-width: 100% !important;
    overflow: hidden !important;
}

body.jccm-bd-stock-advance .jccm-order-item-breakdown > .jccm-breakdown-row strong,
body.jccm-bd-stock-advance .jccm-payment-summary .jccm-pay-row strong {
    padding-right: 1px !important;
}

@media (max-width: 768px) {
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
        border-radius: 14px !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.fee,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.fee {
        grid-template-columns: minmax(0, 1fr) minmax(76px, max-content) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total {
        margin: 8px 0 0 !important;
        padding: 12px 12px !important;
        border-radius: 11px !important;
        grid-template-columns: minmax(0, 1fr) minmax(76px, max-content) !important;
    }

    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.fee td,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.fee td,
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td {
        min-width: 76px !important;
    }
}

@media (max-width: 420px) {
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.fee,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.fee,
    body.jccm-bd-stock-advance .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total,
    body.jccm-bd-stock-advance.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total {
        grid-template-columns: minmax(0, 1fr) minmax(70px, max-content) !important;
    }
}

/* v1.2.2 Smart address + clean payment summary fixes */
.jccm-field [data-jccm-role="upazila"]:disabled,
.jccm-field [data-jccm-role="post_office"]:disabled {
    opacity: .68 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
}

.jccm-cart-product-title {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    word-break: break-word !important;
}

.jccm-checkout-shortcode-wrap table.shop_table td.product-name img,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td.product-name img {
    display: none !important;
}

.jccm-order-item-breakdown {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 10px 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.jccm-order-item-breakdown > .jccm-breakdown-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(22,163,74,.08), rgba(22,163,74,.025)) !important;
    box-sizing: border-box !important;
}

.jccm-order-item-breakdown > .jccm-breakdown-row em {
    display: block !important;
    font-style: normal !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.jccm-order-item-breakdown > .jccm-breakdown-row strong {
    display: inline-block !important;
    white-space: nowrap !important;
    text-align: right !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 950 !important;
    color: #0f172a !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.jccm-order-item-breakdown > .jccm-breakdown-row strong.jccm-due-text {
    color: var(--jccm-orange, #ea580c) !important;
}

.jccm-order-item-breakdown .amount,
.jccm-order-item-breakdown .amount bdi,
.jccm-order-item-breakdown .woocommerce-Price-currencySymbol {
    display: inline !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    white-space: nowrap !important;
}

.jccm-payment-summary .jccm-pay-warning {
    padding: 10px 12px !important;
    border: 1px solid rgba(234, 88, 12, .22) !important;
    border-radius: 12px !important;
    background: rgba(234, 88, 12, .08) !important;
    color: #9a3412 !important;
}

@media (max-width: 768px) {
    .jccm-cart-product-title {
        font-size: 14px !important;
        margin-bottom: 7px !important;
    }

    .jccm-order-item-breakdown > .jccm-breakdown-row {
        padding: 9px 10px !important;
        gap: 8px !important;
    }

    .jccm-order-item-breakdown > .jccm-breakdown-row em,
    .jccm-order-item-breakdown > .jccm-breakdown-row strong {
        font-size: 13px !important;
    }
}

/* v1.2.3 Checkout order summary final clean-up: applies to all advance checkout modes */
body.jccm-advance-checkout .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table,
body.jccm-advance-checkout.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
    border: 1px solid rgba(22,163,74,.22) !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .055) !important;
    overflow: hidden !important;
}

body.jccm-advance-checkout .jccm-checkout-shortcode-wrap .woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name,
body.jccm-advance-checkout.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tr.cart_item td.product-name {
    text-align: left !important;
    vertical-align: top !important;
    color: #0f172a !important;
}

/* Hide broken/theme thumbnails and duplicate price fragments inside the product title column only. */
body.jccm-advance-checkout .woocommerce-checkout-review-order table.shop_table td.product-name img,
body.jccm-advance-checkout .woocommerce-checkout-review-order table.shop_table td.product-name .attachment-woocommerce_thumbnail,
body.jccm-advance-checkout .woocommerce-checkout-review-order table.shop_table td.product-name > .woocommerce-Price-amount,
body.jccm-advance-checkout .woocommerce-checkout-review-order table.shop_table td.product-name > .amount,
body.jccm-advance-checkout .jccm-checkout-shortcode-wrap table.shop_table td.product-name img,
body.jccm-advance-checkout .jccm-checkout-shortcode-wrap table.shop_table td.product-name > .woocommerce-Price-amount,
body.jccm-advance-checkout .jccm-checkout-shortcode-wrap table.shop_table td.product-name > .amount {
    display: none !important;
}

body.jccm-advance-checkout .jccm-cart-product-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    margin: 0 0 10px !important;
}

body.jccm-advance-checkout .jccm-cart-product-qty,
body.jccm-advance-checkout .woocommerce-checkout-review-order table.shop_table .product-name .product-quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: rgba(22,163,74,.10) !important;
    color: #15803d !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    float: none !important;
}

body.jccm-advance-checkout .jccm-order-item-breakdown {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 10px 0 0 !important;
    width: 100% !important;
}

body.jccm-advance-checkout .jccm-order-item-breakdown .jccm-breakdown-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 260px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(22,163,74,.07), rgba(22,163,74,.025)) !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
}

body.jccm-advance-checkout .jccm-order-item-breakdown .jccm-breakdown-row em {
    margin: 0 !important;
    font-style: normal !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body.jccm-advance-checkout .jccm-order-item-breakdown .jccm-breakdown-row strong {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

body.jccm-advance-checkout .jccm-order-item-breakdown .jccm-breakdown-row .jccm-due-text,
body.jccm-advance-checkout .jccm-payment-summary .jccm-due-row strong {
    color: var(--jccm-orange, #ea580c) !important;
}

body.jccm-advance-checkout .jccm-subtotal-due {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
    line-height: 1.15 !important;
}

body.jccm-advance-checkout .jccm-subtotal-due-label {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: rgba(15, 23, 42, .72) !important;
}

body.jccm-advance-checkout .jccm-subtotal-due strong {
    font-size: 15px !important;
    font-weight: 950 !important;
    color: #ea580c !important;
}

/* Keep table total clear: total means online payable amount. */
body.jccm-advance-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
body.jccm-advance-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td,
body.jccm-advance-checkout .woocommerce-checkout-review-order table.shop_table tfoot tr.order-total .amount {
    color: #ea580c !important;
    font-weight: 950 !important;
}

@media (max-width: 768px) {
    body.jccm-advance-checkout .jccm-cart-product-title {
        font-size: 14px !important;
    }
    body.jccm-advance-checkout .jccm-order-item-breakdown .jccm-breakdown-row {
        max-width: 100% !important;
        padding: 8px 10px !important;
    }
    body.jccm-advance-checkout .jccm-order-item-breakdown .jccm-breakdown-row em,
    body.jccm-advance-checkout .jccm-order-item-breakdown .jccm-breakdown-row strong {
        font-size: 12px !important;
    }
}

/* v1.2.3.1 Safe UI polish for current stable v1.2.3 branch */
body.single-product .single_add_to_cart_button,
body.single-product .add_to_cart_button,
body.single-product button[name="add-to-cart"],
body.single-product .jccm-buy-now-button,
body.single-product [class*="sticky"] .single_add_to_cart_button,
body.single-product [class*="sticky"] .add_to_cart_button,
body.single-product [class*="sticky"] button[name="add-to-cart"] {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
    line-height: 1.05 !important;
}

@media (max-width: 768px) {
    body.single-product .single_add_to_cart_button,
    body.single-product .add_to_cart_button,
    body.single-product button[name="add-to-cart"],
    body.single-product .jccm-buy-now-button,
    body.single-product [class*="sticky"] .single_add_to_cart_button,
    body.single-product [class*="sticky"] .add_to_cart_button,
    body.single-product [class*="sticky"] button[name="add-to-cart"] {
        font-size: 13px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        min-width: 0 !important;
        letter-spacing: .01em !important;
    }
}

@media (max-width: 380px) {
    body.single-product .single_add_to_cart_button,
    body.single-product .add_to_cart_button,
    body.single-product button[name="add-to-cart"],
    body.single-product .jccm-buy-now-button,
    body.single-product [class*="sticky"] .single_add_to_cart_button,
    body.single-product [class*="sticky"] .add_to_cart_button,
    body.single-product [class*="sticky"] button[name="add-to-cart"] {
        font-size: 12px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* Keep WooCommerce checkout area clean if a theme/payment addon prints a broken safe checkout icon box. */
body.jccm-advance-checkout .jccm-safe-checkout-broken,
body.woocommerce-checkout .jccm-safe-checkout-broken {
    display: none !important;
}

/* v1.2.3.2 - Fix: keep Place Order button in normal checkout position, not sticky while scrolling */
body.jccm-sticky-place-order .jccm-checkout-shortcode-wrap #payment .place-order,
body.jccm-sticky-place-order.woocommerce-checkout #payment .place-order,
.jccm-checkout-shortcode-wrap #payment .place-order,
.woocommerce-checkout #payment .place-order {
    position: static !important;
    bottom: auto !important;
    top: auto !important;
    z-index: auto !important;
    transform: none !important;
}


/* v1.2.3.3 - Permanent checkout payment area polish */
.jccm-checkout-shortcode-wrap #payment,
.woocommerce-checkout .woocommerce-checkout-review-order #payment,
.woocommerce-checkout #payment {
    margin-top: 12px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    background: #f8fffb !important;
    border: 1px solid #bbf7d0 !important;
    overflow: hidden !important;
}

.jccm-checkout-shortcode-wrap #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
    padding: 12px 14px !important;
    margin: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.jccm-checkout-shortcode-wrap #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.jccm-checkout-shortcode-wrap #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
    margin: 8px 0 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
}

.jccm-checkout-shortcode-wrap #payment .place-order,
.woocommerce-checkout #payment .place-order {
    padding: 10px 14px 12px !important;
    margin: 0 !important;
    position: static !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-privacy-policy-text {
    margin: 4px 0 10px !important;
}

.jccm-checkout-shortcode-wrap .woocommerce-privacy-policy-text p,
.woocommerce-checkout .woocommerce-privacy-policy-text p {
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
}

.jccm-checkout-shortcode-wrap #place_order,
.woocommerce-checkout #place_order {
    margin-top: 8px !important;
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    position: static !important;
}

/* Hide known broken trust badge wrappers immediately if a theme still prints them outside WooCommerce hooks. */
.woocommerce-checkout .safe-checkout,
.woocommerce-checkout .secure-checkout,
.woocommerce-checkout .guaranteed-safe-checkout,
.woocommerce-checkout .payment-icons,
.woocommerce-checkout .trust-badge,
.woocommerce-checkout [class*="safe-checkout"],
.woocommerce-checkout [class*="secure-checkout"],
.woocommerce-checkout [class*="trust-badge"] {
    display: none !important;
}

@media (max-width: 768px) {
    .jccm-checkout-shortcode-wrap #payment ul.payment_methods,
    .woocommerce-checkout #payment ul.payment_methods {
        padding: 10px 12px !important;
    }

    .jccm-checkout-shortcode-wrap #payment .place-order,
    .woocommerce-checkout #payment .place-order {
        padding: 8px 12px 10px !important;
    }

    .jccm-checkout-shortcode-wrap #payment div.payment_box,
    .woocommerce-checkout #payment div.payment_box {
        padding: 7px 9px !important;
        margin-top: 6px !important;
    }
}
