    /*
** Express COD Checkout v1.0.0
** [1] - Quantity input
** [2] - Buy button loading Animation
** [3] - Form wrapper
** [4] - Form inputs
** [5] - Form BUTTON
** [6] - Form alerts
** [7] - Form label
** [8] - customizer sidebar
*/
    
     :root {
        --expcod-main-color: #aa2e62;
    }
    
    @font-face {
        font-family: 'Droid Arabic Kufi';
        font-style: normal;
        font-weight: 400;
        src: url('droidarabickufi/DroidKufi-Regular.ttf') format('truetype');
    }
    /* 
** [1] - Quantity input
** Start quantity input
*/
    
    .expcod-quantity-input .quantity {
        width: 100;
        height: 100%;
        min-width: 100%;
        font-size: 13px;
    }
    
    .expcod-quantity-input .quantity i {
        font-size: 13px !important;
    }
    
    .quantity_increamenter {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%
    }
    
    .quantity_increamenter>div {
        border: 1px solid #00000021;
        background-color: #f0f0f0;
        width: 25%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 7px;
        cursor: pointer;
        height: 35px;
        padding: 20px;
    }
    
    .quantity_increamenter>input {
        width: 40%;
        text-align: center;
        border: none;
        outline: none;
    }
    
    input[type=text].FormCOD-quantity-input {
        display: block;
        border: none;
        outline: none;
        padding: 0;
        background-color: initial;
        box-shadow: unset;
    }
    
    @media (min-width: 767px) {
        [dir=ltr] .expcod-quantity-input {
            padding-right: 0;
        }
        [dir=rtl] .expcod-quantity-input {
            padding-left: 0;
        }
    }
    /* 
** [2] - Buy button loading Animation 
** Start Loading Animation 
*/
    
    .lds-spinner {
        color: official;
        display: inline-block;
        position: relative;
        width: 30px;
        height: 30px;
        transform: scale(.3);
        margin-top: -9px;
    }
    
    .lds-spinner div {
        transform-origin: 40px 40px;
        animation: lds-spinner 1.2s linear infinite;
    }
    
    .lds-spinner div:after {
        content: " ";
        display: block;
        position: absolute;
        top: 3px;
        left: 37px;
        width: 6px;
        height: 18px;
        border-radius: 20%;
        background: #fff;
    }
    
    .lds-spinner div:nth-child(1) {
        transform: rotate(0deg);
        animation-delay: -1.1s;
    }
    
    .lds-spinner div:nth-child(2) {
        transform: rotate(30deg);
        animation-delay: -1s;
    }
    
    .lds-spinner div:nth-child(3) {
        transform: rotate(60deg);
        animation-delay: -0.9s;
    }
    
    .lds-spinner div:nth-child(4) {
        transform: rotate(90deg);
        animation-delay: -0.8s;
    }
    
    .lds-spinner div:nth-child(5) {
        transform: rotate(120deg);
        animation-delay: -0.7s;
    }
    
    .lds-spinner div:nth-child(6) {
        transform: rotate(150deg);
        animation-delay: -0.6s;
    }
    
    .lds-spinner div:nth-child(7) {
        transform: rotate(180deg);
        animation-delay: -0.5s;
    }
    
    .lds-spinner div:nth-child(8) {
        transform: rotate(210deg);
        animation-delay: -0.4s;
    }
    
    .lds-spinner div:nth-child(9) {
        transform: rotate(240deg);
        animation-delay: -0.3s;
    }
    
    .lds-spinner div:nth-child(10) {
        transform: rotate(270deg);
        animation-delay: -0.2s;
    }
    
    .lds-spinner div:nth-child(11) {
        transform: rotate(300deg);
        animation-delay: -0.1s;
    }
    
    .lds-spinner div:nth-child(12) {
        transform: rotate(330deg);
        animation-delay: 0s;
    }
    
    @keyframes lds-spinner {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
    /*
** [3] - Form wrapper
** Start form wrapper
*/
    
    .express-cod-checkout-wrapper {
        /* display: none; */
        position: relative;
        width: 100%;
        max-width: none;
    }
    
    .entry-summary .express-cod-checkout-wrapper {
        display: block;
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form {
        margin-top: var(--expcod-form-marginTop);
        margin-bottom: var(--expcod-form-marginBottom);
        border-color: var(--expcod-form-borderColor);
        border-width: var(--expcod-form-borderWidth);
        border-radius: var(--expcod-form-borderRadius);
        padding: var(--expcod-form-padding);
        border-style: var(--expcod-form-borderType);
    }
    
    .express-cod-checkout-wrapper *,
    *::before,
    *::after {
        box-sizing: border-box;
    }
    /*
** [4] - Form input
** Start form inputs
*/
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .exp-cod-input-label {
        margin-bottom: 8px;
        display: var(--expcod-label-display);
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form select,
    .express-cod-checkout-wrapper .express-cod-checkout-form .variations select,
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=text],
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=email],
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=tel] {
        font-family: 'Droid Arabic Kufi', sans-serif;
        border-style: solid;
        transition: .3s ease-in-out;
        padding: 10px;
        width: 100%;
        display: block;
        outline: none;
         box-shadow: none; 
         border-width: var(--expcod-inp-border-width);
        border-color: var(--expcod-inp-border-color); 


        height: var(--expcod-inp-height);
        border-radius: var(--expcod-inp-border-radius);
        background-color: var(--expcod-inp-bg-color);
        color: var(--expcod-txt-color);
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .variations select:focus,
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=text]:focus,
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=email]:focus,
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=tel]:focus,
    .express-cod-checkout-wrapper .express-cod-checkout-form select.expcod-input:focus {
        box-shadow: 0 5px 20px 0 #0000000d;
        /* border-color: var(--expcod-inp-borderColor-onfocus);
        border-width: var(--expcod-inp-borderWidth-onfocus); */
        box-shadow: 0 0 0px  var(--expcod-inp-borderWidth-onfocus) var(--expcod-inp-borderColor-onfocus);

    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input::placeholder {
        font-size: var(--expcod-placeholder-fontSize);
        font-weight: normal;
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form {
        font-family: 'Droid Arabic Kufi', sans-serif;
    }
    
    .variations select {
        margin-bottom: 20px;
    }
    
    .reset_variations {
        display: none;
    }
    
    .woocommerce-variation-price {
        display: none;
    }
    /*
** [5] - Form button
** Start form button
*/
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-buyNow-text {
        color: var(--expcod-buyNow-txtColor);
        font-size: var(--expcod-buyNow-fontSize);
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-buy-now-btn {
        /* SVG background is now controlled by admin setting */
        width: auto !important;
        padding-left: var(--expcod-buyNow-paddingX, 100px) !important;
        padding-right: var(--expcod-buyNow-paddingX, 100px) !important;
        position: relative;
        border-style: solid;
        transition: .3s ease-in-out;
        font-family: 'Droid Arabic Kufi', sans-serif;
        background-color: var(--expcod-buyNow-bgColor);
        border-color: var(--expcod-buyNow-borderColor);
        border-width: var(--expcod-buyNow-borderWidth);
        height: var(--expcod-buyNow-height);
        cursor: pointer;
        border-radius: var(--expcod-inp-border-radius);
        font-weight: normal;
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-buy-now-btn:hover .expcod-buyNow-text {
        color: var(--expcod-buyNow-color-onhover)
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .disabled {
        opacity: .7;
        cursor: not-allowed;
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-buy-now-btn:hover {
        background-color: var(--expcod-buyNow-bgColor-onhover);
        text-decoration: none;
    }
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-button-loading {
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
    
    .expcod-brn-loader-animation {
        display: none;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 100%
    }
    /*
** [6] - Form alerts
** Start form alerts
*/
    
    .codexp-success-message {
        border: 1px solid green;
        padding: 5px;
        border-radius: 3px;
        color: green;
        background-color: #00968805;
        text-align: center;
        align-items: center;
        justify-content: center;
        display: none;
        opacity: 1;
    }
    
    .codexp-error-message {
        border: 1px solid red;
        padding: 23px;
        border-radius: 3px;
        color: red;
        background-color: #e91e6312;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        display: none;
        opacity: 1;
    }
    
    .codexp-show-message {
        display: block;
    }
    /*
** [7] - Form label
** Start form label
*/
    
    .express-cod-checkout-wrapper .express-cod-checkout-form .exp-cod-label {
        display: block;
        color: var(--expcod-label-color);
        font-size: var(--expcod-label-fontSize);
        margin-bottom: var(--expcod-label-marginBottom);
        margin-top: var(--expcod-label-marginTop);
        font-weight: var(--expcod-label-fontWeight);
    }
    /*
** [7] - place order form
** Start place order form
*/
    
    .codexpress-checkout-billing {
        background-color: #fcfcfc;
        border: 1px solid #e5e5e5;
        position: relative;
    }
    
    .codexpress-checkout-billing-body {
        padding: 10px;
    }
    
    .codexpress-checkout-billing .codexpress-checkout-card {
        background-color: white;
        width: 100%;
        border: 1px solid #e5e5e5;
        border-radius: 3px;
        margin-bottom: 10px;
    }
    
    .codexpress-checkout-billing .codexpress-checkout-card .codexpress-checkout-card-header {
        padding: 10px;
        border-bottom: 1px solid #e5e5e5;
        text-align: center;
    }
    
    .codexpress-checkout-billing .codexpress-checkout-card .codexpress-checkout-card-body {
        padding: 10px;
    }
    
    .codexpress-checkout-billing .codexpress-checkout-card .codexpress-checkout-card-body table {
        width: 100%;
        border-collapse: collapse;
        border: 1px solid #e5e5e5
    }
    
    .codexpress-checkout-card-body table td,
    .codexpress-checkout-card-body table th {
        padding: 5px;
        text-align: left;
        border: 1px solid #e5e5e5
    }
    
    .shipping-info {
        display: flex;
        justify-content: space-between;
    }
    
    .shipping-info h5 {
        margin: 0;
        display: inline-block
    }
    
    .shipping-info p {
        display: inline-block;
        margin-bottom: 5px;
    }
    
    .codexpress-checkout-card-footer {
        padding: 10px;
        border-top: 1px solid #e5e5e5;
    }
    
    .codexpress-checkout-card-footer a {
        text-decoration: underline;
        font-size: 13px;
        color: #03a9f4;
    }
    
    .codexpress-checkout-billing-footer {
        padding: 10px;
        background-color: white;
        border-top: 1px solid #e5e5e5;
        position: sticky;
        bottom: 0;
    }
    
    .codexpress-checkout-billing-footer button {
        width: 100%;
        padding: 15px;
        background-color: var(--expcod-buyNow-bgColor);
        color: white;
        border: none;
        outline: none;
        border-radius: 3px;
        background-color: var(--expcod-buyNow-bgColor);
        border-color: var(--expcod-buyNow-borderColor);
        border-width: var(--expcod-buyNow-borderWidth);
        height: var(--expcod-buyNow-height);
        border-radius: var(--expcod-inp-border-radius);
        min-height: 57px;
    }
    
    .codexpress-checkout-billing-footer button:hover {
        background-color: var(--expcod-buyNow-bgColor-onhover);
        color: var(--expcod-buyNow-color-onhover);
    }
    
    /* ====================================== */
    /* Order Summary Styling */
    /* ====================================== */

    /* Order Summary Container */
    .order-total-block-container {
        background: var(--expcod-order-summary-bg-color, #f8f9fa);
        border: var(--expcod-order-summary-border-width, 1px) solid var(--expcod-order-summary-border-color, #e0e0e0);
        border-radius: var(--expcod-order-summary-border-radius, 5px);
        padding: var(--expcod-order-summary-padding, 15px);
        margin-bottom: var(--expcod-order-summary-margin-bottom, 20px);
    }

    /* Order Summary Title */
    .order-total-block-container h3,
    .order-summary-title,
    .order-total-block-header span:first-child {
        color: var(--expcod-order-summary-title-color, #333333) !important;
        font-size: var(--expcod-order-summary-title-size, 18px) !important;
        font-weight: var(--expcod-order-summary-title-weight, bold) !important;
        margin-bottom: 15px !important;
    }

    /* Order Summary Details Container */
    .order-summary-detail {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    /* Order Summary Labels (Product, Shipping, etc.) */
    .order-summary-detail .order-summary-label,
    .order-summary-detail p:first-child {
        color: var(--expcod-order-summary-labels-color, #666666) !important;
        font-size: var(--expcod-order-summary-labels-size, 14px) !important;
        font-weight: var(--expcod-order-summary-labels-weight, normal) !important;
        margin-bottom: 0 !important;
    }

    /* Order Summary Values (Prices, Quantities) */
    .order-summary-detail .order-summary-value,
    .order-summary-detail p:last-child {
        color: var(--expcod-order-summary-values-color, #333333) !important;
        font-size: var(--expcod-order-summary-values-size, 14px) !important;
        font-weight: var(--expcod-order-summary-values-weight, normal) !important;
        margin-bottom: 0 !important;
    }

    /* Order Summary Total Row */
    .order-summary-detail.total-row,
    .order-summary-detail.total-box,
    .order-summary-detail:last-child {
        border-top: 1px solid var(--expcod-order-summary-border-color, #e0e0e0);
        padding-top: 10px;
        margin-top: 10px;
        font-weight: var(--expcod-order-summary-total-weight, bold) !important;
    }

    /* Total Label */
    .order-summary-detail.total-row .order-summary-label,
    .order-summary-detail.total-box p:first-child,
    .order-summary-detail:last-child p:first-child {
        color: var(--expcod-order-summary-total-label-color, #1e73be) !important;
        font-size: var(--expcod-order-summary-total-size, 16px) !important;
        font-weight: var(--expcod-order-summary-total-weight, bold) !important;
    }

    /* Total Value */
    .order-summary-detail.total-row .order-summary-value,
    .order-summary-detail.total-box p:last-child,
    .order-summary-detail:last-child p:last-child {
        color: var(--expcod-order-summary-total-value-color, #1e73be) !important;
        font-size: var(--expcod-order-summary-total-size, 16px) !important;
        font-weight: var(--expcod-order-summary-total-weight, bold) !important;
    }

    /* Legacy compatibility for existing order summary elements */
    .order-summary-detail p {
        margin-bottom: 5px;
    }
    
    .total-box {
        padding: 7px;
        border: 2px solid var(--expcod-buyNow-bgColor);
        border-radius: 3px;
        justify-content: center;
    }
    
    .total-box p {
        margin: 0 10px;
    }
    
    .expcod-loading-btn-animation {
        display: none;
    }
    
    #expcod-checkout {
        display: none;
    }
    /*
** [08] Start Cod express customize form in front end 
** Customizer sidebar 
**/
    
    .codexp-customizer {
        width: 300px;
        background-color: #fcfcfc;
        height: 100vh;
        /* border: 1px solid #e5e5e5; */
        box-shadow: 0 5px 20px 0 rgb(0 0 0 / 5%);
        position: fixed;
        z-index: 9999;
        top: 30px;
        font-family: 'Droid Arabic Kufi', sans-serif;
        font-size: 13px;
        transition: .5s ease-in-out;
        display: none;
    }
    
    .codexp-customizer>* {
        box-sizing: border-box;
    }
    
    .codexp-customizer .inner {
        padding: 20px;
        height: 100%;
        overflow: scroll;
        padding-bottom: 100px;
    }
    
    .codexp-customizer .inner::-webkit-scrollbar {
        width: 10px;
        border-radius: 5px;
    }
    
    .codexp-customizer .inner::-webkit-scrollbar-track {
        border-radius: 5px;
    }
    
    .codexp-customizer .inner::-webkit-scrollbar-thumb {
        background: #00000034;
        border-radius: 5px;
        position: absolute;
        left: 0;
    }
    
    .codexp-customizer-card {
        background: white;
        width: 100%;
        border: 1px solid #e5e5e5;
        margin-bottom: 20px;
    }
    
    .codexp-customizer-card-header {
        padding: 10px;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .codexp-customizer-card-body {
        padding: 20px;
    }
    
    .codexp-customizer-card-body ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .codexp-customizer-card-body ul li {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
    }
    
    .codexp-customizer-card-body ul li input[type=number] {
        padding: 5px;
        width: 58px;
    }
    
    .codexp-customizer-card-body ul li select {
        padding: 5px;
    }
    
    .codexp-customizer-card-body ul li div.value {
        text-align: center;
    }
    
    .codexp-customizer .customize-footer {
        width: 100%;
        background-color: white;
        padding: 10px;
        border: 1px solid #e5e5e5;
        position: sticky;
        bottom: 0;
    }
    
    .codexp-customizer .customize-header {
        width: 100%;
        background-color: var(--expcod-main-color, #5c4b77);
        padding: 10px;
        /* border: 1px solid #e5e5e5; */
        color: white
    }
    
    .codexp-customizer .customize-footer button {
        width: 100%;
        padding: 10px;
        background: var(--expcod-main-color, #5c4b77);
        color: white;
        border: none;
        outline: none;
        border-radius: 3px;
        font-size: 15px;
        text-decoration: none;
        cursor: pointer;
        text-transform: capitalize;
    }
    
    .codexp-color-picker input[type=color] {
        border: 1px solid gray;
        display: inline-block;
        padding: 3px;
        background: white;
        width: 58px;
    }
    
    #wp-admin-bar-codexpress-menu.codexpress-top-link {
        background-color: var(--expcod-main-color, #5c4b77);
        transform: .3s ease-in-out;
        color: white;
    }
    
    .customize-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cod-customizer-aside-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cod-customizer-aside-toggle div {
        border: 1px solid #ffffff42;
        margin: 0 5px;
        padding: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 3px;
        cursor: pointer;
        display: none;
        transition: .3s ease-in-out;
    }
    
    .cod-customizer-aside-toggle div:hover {
        background: white;
        color: var(--expcod-main-color, #5c4b77);
    }
    
    .cod-customizer-aside-toggle #cod-customizer-hide {
        display: flex;
    }
    
    .edit-codexpress-style {
        display: inline-block;
        padding: 10px;
        border: 1px solid var(--expcod-main-color, #5c4b77);
        color: var(--expcod-main-color, #5c4b77);
        font-style: 13px;
        position: absolute;
        top: 0;
        font-size: 13px;
        padding: 5px 10px;
        border-radius: 3px;
        right: 0;
    }
    
    [dir=rtl] .edit-codexpress-style {
        right: unset;
        left: 0;
    }
    
    .edit-codexpress-style:hover {
        background-color: var(--expcod-main-color, #5c4b77);
        color: white;
    }
    [dir=rtl] .expcod-input[type=tel]:placeholder-shown {
        text-align: right;
    }
    [dir=rtl] .expcod-input[type=tel] {
        text-align: right;
    }
    .codexp-customizer-footer-overlay {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background-color: #ffffffc9;
        display: flex;
        justify-content: center;
        align-items: center;
        display: none;
    }
    
    #quantitiy_input {
        width: 50%
    }
    
    @media (max-width: 767px) {
        .expcod-quantity-input {
            margin-bottom: 15px;
        }
    }
    /**  form label ***/
    
    #FormCOD_form {
        position: relative;
        max-width: min(var(--expcod-form-max-width, 500px), 100%);
        width: 100%;
        margin: 0 auto;
        background-color: var(--expcod-bg-color);
        box-sizing: border-box;
    }
    
    .exp-cod-label {
        width: fit-content;
        /* border: 1px solid black; */
        /* position: absolute;
        top: 0;
        transform: translate(-50%, -50%);
        left: 50%; */
    }
    
    .exp-cod-label {
        text-align: center;
        /* background: white; */
        margin: -53px auto;
        max-width: fit-content;
        padding: 0 20px;
        /* font-size: 18px; */
        /* white-space: nowrap; */
    }
    
    .exp-cod-label {
        text-align: center;
        /* background: white; */
        margin: -53px auto;
        max-width: fit-content;
        padding: 0 20px;
        font-size: 18px;
    }
    
    .order-total-block-body {
        display: none;
    }
    
    .bt-flesh {
        margin-bottom: -5px;
        display: inline-block;
    }
    
    .order-total-block-container {
        width: 100%;
        overflow: hidden;
        border-radius: 5px;
        border: 1px solid #d0d0d0;
        margin-top: 15px;
    }
    
    .order-total-block-header {
        /* background-image: url("../images/button-bg.svg"); */
        background-color: #eeeeee29;
        margin-top: -5px;
        padding: 10px;
        width: 100%;
        justify-content: space-between;
        display: flex;
        cursor: pointer;
    }
    
    .sum-champ {
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }
    
    .sum-champ:not(:last-child) {
        border-bottom: 1px dashed #00000012;
    }
    
    .cart-sum {
        margin: 0 10px;
    }
    
    .FormCOD_free_shipping {
        color: #ffffff;
        background: #00934b;
        font-size: 13px;
        padding: 0 5px;
        border-radius: 4px;
    }
    
    .FormCOD_quantity_label {
        background: #3f51b54a;
        padding: 0 5px;
        height: fit-content;
        border-radius: 6px;
        color: #3F51B5;
    }
    
    .expcod-quantity-input {
        display: var(--expcod-quantity-input);
    }
    
    .order-total-block-container {
        display: var(--expcod-order-summary);
    }
    
    .order-total-block-body {
        display: var(--expcod-order-default);
        background-color: white;
    }
    
    @keyframes shake-x {
        0% {
            left: 0
        }
        1% {
            left: -3px
        }
        2% {
            left: 5px
        }
        3% {
            left: -8px
        }
        4% {
            left: 8px
        }
        5% {
            left: -5px
        }
        6% {
            left: 3px
        }
        7% {
            left: 0
        }
    }
    
    .FormCOD-shaked {
        animation: shake-x 5s ease infinite !important;
    }
    
    .FormCOD-shaked:hover {
        animation: none;
    }
    /* start sticky button */
    
    .FormCOD-sicky-buy-btn {
        width: 100%;
        height: 70px;
        position: fixed;
        bottom: -100%;
        background-color: white;
        z-index: 9999;
        display: var(--expcod-sticky-button);
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: -100%;
        width: 100%;
        z-index: 10;
        background-color: #fff;
        padding: 10px 0;
        text-align: center;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0px 0px 14px 0px #00000021;
        transition: .5s ease-in-out;
    }
    
    .FormCOD-sticky {
        background-color: blue;
        color: white;
        text-decoration: none;
        width: auto;
        padding: 10px 100px;
        text-align: center;
        border-radius: 5px;
        position: relative;
        display: inline-block;
        padding: 0 100px;
        animation: shake-x 4s ease infinite;
        width: auto;
        height: 45px;
        font-size: 15px;
        line-height: 45px;
        color: #fff;
        background-color: #5b4ebb;
        border-radius: 4px;
        cursor: pointer;
    }
    
    @media (max-width: 767px) {
        .FormCOD-sticky {
            width: 90%
        }
    }
    
    @keyframes shake-x2 {
        0%,
        100% {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }
        10%,
        30%,
        50%,
        70%,
        90% {
            -webkit-transform: translate3d(-5px, 0, 0);
            transform: translate3d(-5px, 0, 0);
        }
        20%,
        40%,
        60%,
        80% {
            -webkit-transform: translate3d(5px, 0, 0);
            transform: translate3d(5px, 0, 0);
        }
    }
    
    .FormCOD-sticky-visible {
        bottom: 0;
    }
    
    .FormCOD-shaked-sticky {
        animation: shake-x2 5s ease infinite;
    }
    
    .FormCOD-shaked-sticky:hover {
        animation: none;
    }
    
    .FormCOD-sicky-buy-btn .FormCOD-sticky {
        /* SVG background is now controlled by admin setting */
        color: var(--expcod-buyNow-txtColor);
        font-size: var(--expcod-buyNow-fontSize);
        position: relative;
        border-style: solid;
        transition: .3s ease-in-out;
        font-family: 'Droid Arabic Kufi', sans-serif;
        background-color: var(--expcod-buyNow-bgColor);
        border-color: var(--expcod-buyNow-borderColor);
        border-width: var(--expcod-buyNow-borderWidth);
        height: var(--expcod-buyNow-height);
        border-radius: var(--expcod-inp-border-radius);
    }
    
    .FormCOD-sicky-buy-btn .FormCOD-sticky:hover {
        color: var(--expcod-buyNow-color-onhover);
        background-color: var(--expcod-buyNow-bgColor-onhover);
        text-decoration: none;
    }
    /** end sticky button */

    .promotion-label{
        padding: 10px 20px;
        border-radius: 5px;
        display: inline-block;
        width: 100%;
        margin-bottom: 20px;
        cursor: pointer;
       }
       .promotion-label span.checkbox-circle{
        width: 20px;
        height : 20px;
        border-radius : 50%;
        border : 1px solid black;
        display: inline-flex;
        vertical-align : middle;
        justify-content : center;
        align-items : center
    
       }
    
       input[type="radio"]:checked + label {
        border: 2px dashed #4b874b;
        border: 2px solid #494949;
        box-shadow: 0px 0px 5px 0px #72727214;
    }
       input[type="radio"]:checked + label span::before{
        content : '';
        width : 8px;
        height : 8px;
        background : black;
        border-radius : 50%;
        /* display: inline-block; */
    }
    
       .promotion-label{
        
       
       }
       @media (min-width: 1200px) {
        .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
            padding-right: 10px;
            padding-left: 10px;
        }
    }

/* ======================================
   Style 2 Product Cards CSS - Compact Design
   ====================================== */

.expcod-product-showcase {
    margin: 15px 0;
    padding: 0;
}

.expcod-variations-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    margin-bottom: 15px;
    width: 100% !important;
}

/* Force single column layout - override any grid settings */
.expcod-variations-grid {
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}

/* Extra specificity to ensure single column */
.expcod-product-showcase .expcod-variations-grid {
    display: flex !important;
    flex-direction: column !important;
}

/* Style 2 specific overrides */
.express-cod-checkout-form .expcod-variations-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Completely override any CSS variable-based grid layout */
.expcod-variations-grid[style*="grid"],
.expcod-variations-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    width: 100% !important;
}

/* Override CSS variables that might affect layout */
:root {
    --expcod-cards-per-row: 1 !important;
}

/* ULTIMATE OVERRIDE - Bootstrap Grid Killer for Style 2 */
.expcod-product-showcase .expcod-variations-grid,
.expcod-variations-grid,
div.expcod-variations-grid,
.expcod-variations-grid[class*="row"],
.expcod-variations-grid[class*="col"] {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;

    /* Kill any grid system */
    grid-template-columns: none !important;
    grid-auto-columns: unset !important;
    grid-column: unset !important;

    /* Kill any Bootstrap flex */
    justify-content: unset !important;
    align-items: stretch !important;

    /* Force dimensions */
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;

    /* Reset Bootstrap margins/padding */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ULTIMATE CARD OVERRIDE - Force Single Column */
.expcod-product-card.expcod-variable-product,
.expcod-product-card.expcod-simple-product,
.expcod-variations-grid > .expcod-product-card,
.expcod-product-card[class*="col"] {
    /* Force full width */
    width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    max-width: 100% !important;
    min-width: 100% !important;

    /* Kill Bootstrap margins */
    margin-left: 0 !important;
    margin-right: 0 !important;

    /* Kill any float */
    float: none !important;

    /* Force block display */
    display: flex !important;

    /* Reset grid positioning */
    grid-column: unset !important;
    grid-row: unset !important;
}

.expcod-product-card {
    background: var(--expcod-product-card-bg, #ffffff);
    border: var(--expcod-product-card-border-width, 1px) var(--expcod-product-card-border-type, solid) var(--expcod-product-card-border-color, #e0e0e0);
    border-radius: var(--expcod-product-card-border-radius, 6px);
    padding: var(--expcod-product-card-padding, 12px);
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    user-select: none;
}

/* Make sure cards stack vertically */
.expcod-product-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Card hover effects based on setting */
.expcod-product-card:hover {
    border-color: var(--expcod-product-card-border-color-hover, #1e73be);
}

/* Default hover effect - will be overridden by specific effects below */
.expcod-product-card:hover {
    transition: all 0.2s ease;
}

/* Fallback for shadow effect */
[style*="--expcod-card-hover: shadow"] .expcod-product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: none;
}

/* Scale effect */
[style*="--expcod-card-hover: scale"] .expcod-product-card:hover {
    transform: scale(1.02);
    box-shadow: none;
}

/* No effect */
[style*="--expcod-card-hover: none"] .expcod-product-card:hover {
    box-shadow: none;
    transform: none;
}

.expcod-product-image {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--expcod-product-image-border-radius, 3px);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.expcod-product-image img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--expcod-product-image-border-radius, 3px);
    transition: none;
}

.expcod-product-card:hover .expcod-product-image img {
    transform: none;
}

.expcod-product-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expcod-product-pricing {
    display: flex;
    flex-direction: column;
    align-items: var(--expcod-card-price-alignment, flex-end);
    text-align: right;
    gap: var(--expcod-card-spacing, 4px);
}

.expcod-product-name {
    color: var(--expcod-product-name-color, #333333);
    font-size: var(--expcod-product-name-size, 14px);
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

/* Ensure accessibility for div with heading role */
.expcod-product-name[role="heading"] {
    display: block;
    font-weight: 600;
}

.expcod-variation-attributes {
    margin: 2px 0 4px 0;
}

.expcod-attribute {
    display: inline-block;
    color: var(--expcod-card-attribute-color, #666);
    font-size: var(--expcod-card-attribute-size, 10px);
    margin: 1px 2px 1px 0;
    white-space: nowrap;

    /* Conditional styling based on display style */
    background: var(--expcod-attribute-bg-display, var(--expcod-attribute-bg, #f0f0f0));
    padding: var(--expcod-attribute-padding-display, 2px 6px);
    border: var(--expcod-attribute-border-display, var(--expcod-attribute-border-width, 1px) solid var(--expcod-attribute-border-color, #ddd));
    border-radius: var(--expcod-attribute-border-radius-display, var(--expcod-attribute-border-radius, 3px));
}

.expcod-product-price {
    color: var(--expcod-product-price-color, #1e73be);
    font-size: var(--expcod-product-price-size, 15px);
    font-weight: 600;
    margin: 0;
}

.expcod-old-price {
    color: var(--expcod-card-old-price-color, #999);
    font-size: var(--expcod-card-old-price-size, 12px);
    text-decoration: var(--expcod-card-old-price-decoration, line-through);
    font-weight: normal;
}

.expcod-save-badge {
    background: var(--expcod-card-save-badge-bg, #28a745);
    color: var(--expcod-card-save-badge-color, white);
    font-size: var(--expcod-card-save-badge-size, 10px);
    padding: 2px 6px;
    border-radius: var(--expcod-card-save-badge-radius, 3px);
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    width: fit-content;
}

.save-badge-under-attributes {
    margin-top: 4px;
    align-self: flex-start;
}

/* Removed overlay styles - entire card is now clickable */

.expcod-product-card.selected {
    border-color: var(--expcod-product-card-border-color-selected, #1e73be);
    border-width: var(--expcod-product-card-border-width-selected, 2px);
    box-shadow: none;
}

/* Single product card styling */
.expcod-simple-product {
    max-width: 300px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .expcod-variations-grid {
        gap: 6px;
    }

    .expcod-product-card {
        padding: var(--expcod-product-card-padding, 10px);
        gap: 10px;
    }

    .expcod-product-name {
        font-size: calc(var(--expcod-product-name-size, 14px) - 1px);
    }

    .expcod-product-price {
        font-size: calc(var(--expcod-product-price-size, 15px) - 1px);
    }

    .expcod-old-price {
        font-size: calc(var(--expcod-card-old-price-size, 12px) - 1px);
    }

    .expcod-save-badge {
        font-size: calc(var(--expcod-card-save-badge-size, 10px) - 1px);
        padding: 2px 4px;
    }

    .expcod-product-image {
        width: 50px;
        height: 50px;
    }

    .expcod-product-image img {
        max-width: 40px;
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .expcod-product-card {
        padding: var(--expcod-product-card-padding, 8px);
        gap: 8px;
    }

    .expcod-product-image {
        width: 45px;
        height: 45px;
    }

    .expcod-product-image img {
        max-width: 35px;
        max-height: 35px;
    }

    .expcod-product-name {
        font-size: 12px;
    }

    .expcod-product-price {
        font-size: 13px;
    }

    .expcod-old-price {
        font-size: calc(var(--expcod-card-old-price-size, 12px) - 2px);
    }

    .expcod-save-badge {
        font-size: calc(var(--expcod-card-save-badge-size, 10px) - 2px);
        padding: 1px 3px;
    }
}

/* ====================================== */
/* FINAL NUCLEAR OVERRIDE FOR STYLE 2 SINGLE COLUMN */
/* This MUST be at the end to override everything */
/* ====================================== */

body .expcod-product-showcase .expcod-variations-grid,
body .express-cod-checkout-form .expcod-variations-grid,
html body .expcod-variations-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

body .expcod-product-card.expcod-variable-product,
body .expcod-product-card.expcod-simple-product,
html body .expcod-variations-grid .expcod-product-card {
    width: 100% !important;
    flex: none !important;
    flex-basis: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
}

/* Bootstrap Override - Kill all Bootstrap Grid for Style 2 */
.expcod-variations-grid.row,
.expcod-variations-grid .col,
.expcod-variations-grid .col-1,
.expcod-variations-grid .col-2,
.expcod-variations-grid .col-3,
.expcod-variations-grid .col-4,
.expcod-variations-grid .col-5,
.expcod-variations-grid .col-6,
.expcod-variations-grid .col-md,
.expcod-variations-grid .col-md-1,
.expcod-variations-grid .col-md-2,
.expcod-variations-grid .col-md-3,
.expcod-variations-grid .col-md-4,
.expcod-variations-grid .col-md-5,
.expcod-variations-grid .col-md-6 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

/* ====================================== */

/* Animation for card selection */
@keyframes cardSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.expcod-product-card.selecting {
    animation: cardSelect 0.2s ease;
}

/* Hide default variation table when Style 2 is active */
.expcod-style2-hidden {
    display: none !important;
}

/* Improved attribute styling */
.expcod-attribute {
    display: inline-block;
    color: var(--expcod-card-attribute-color, #666);
    font-size: var(--expcod-card-attribute-size, 11px);
    margin: 2px 4px;
    font-weight: 500;
    white-space: nowrap;

    /* Conditional styling based on display style */
    background: var(--expcod-attribute-bg-display, var(--expcod-attribute-bg, #f0f0f0));
    padding: var(--expcod-attribute-padding-display, 4px 8px);
    border: var(--expcod-attribute-border-display, var(--expcod-attribute-border-width, 1px) solid var(--expcod-attribute-border-color, #ddd));
    border-radius: var(--expcod-attribute-border-radius-display, var(--expcod-attribute-border-radius, 3px));
}

/* Hide attribute names when setting is set to hide */
.expcod-attribute .attribute-name {
    display: var(--expcod-attribute-show-name-display, block);
}

/* Save badge positioning - now handled in PHP template, no CSS needed */

/* Better card layout - Subtle styling */
.expcod-product-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

/* Additional hover styling - will be overridden by specific effects above */
.expcod-product-card:hover {
    border-color: var(--expcod-product-card-border-color-hover, #1e73be);
}

/* ====================================== */
/* Custom WooCommerce Button Styling */
/* ====================================== */

.expcod-view-product-btn {
    background-color: var(--expcod-buyNow-bgColor, #28a745) !important;
    color: var(--expcod-buyNow-txtColor, #ffffff) !important;
    border: var(--expcod-buyNow-borderWidth, 1px) solid var(--expcod-buyNow-borderColor, #28a745) !important;
    border-radius: var(--expcod-form-borderRadius, 4px) !important;
    font-size: var(--expcod-buyNow-fontSize, 14px) !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    min-width: 120px !important;
}

.expcod-view-product-btn:hover {
    background-color: var(--expcod-buyNow-bgColor-onhover, #218838) !important;
    color: var(--expcod-buyNow-color-onhover, #ffffff) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.expcod-view-product-btn:focus,
.expcod-view-product-btn:active {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .expcod-view-product-btn {
        font-size: calc(var(--expcod-buyNow-fontSize, 14px) - 1px) !important;
        padding: 6px 12px !important;
        min-width: 100px !important;
    }
}

/* ====================================== */

/* ====================================== */
/* COMPREHENSIVE RTL SUPPORT */
/* ====================================== */

/* Form Container RTL */
[dir="rtl"] .express-cod-checkout-wrapper {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .express-cod-checkout-form {
    direction: rtl;
}

/* Input Fields RTL */
[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=text],
[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=email],
[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input[type=tel],
[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form select {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-input::placeholder {
    text-align: right;
    direction: rtl;
}

/* Labels RTL */
[dir="rtl"] .exp-cod-label {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

/* Button RTL */
[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-buy-now-btn {
    direction: rtl;
}

[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-buyNow-text {
    direction: rtl;
    text-align: center;
}

/* Button Loading Animation RTL */
[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form .expcod-button-loading {
    right: unset;
    left: 0;
}

[dir="rtl"] .expcod-brn-loader-animation {
    right: unset;
    left: 0;
}

/* Quantity Input RTL */
[dir="rtl"] .quantity_increamenter {
    flex-direction: row-reverse;
}

[dir="rtl"] .quantity_increamenter > div:first-child {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .quantity_increamenter > div:last-child {
    margin-right: 0;
    margin-left: 5px;
}

/* Style 2 Product Cards RTL */
[dir="rtl"] .expcod-product-card {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .expcod-product-info {
    text-align: right;
}

[dir="rtl"] .expcod-product-pricing {
    align-items: flex-start;
    text-align: left;
}

[dir="rtl"] .expcod-product-name {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .expcod-variation-attributes {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .expcod-attribute {
    margin: 1px 0 1px 2px;
    direction: rtl;
}

[dir="rtl"] .expcod-product-price {
    direction: rtl;
}

[dir="rtl"] .expcod-old-price {
    direction: rtl;
}

/* Order Summary RTL */
[dir="rtl"] .order-summary-detail {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .order-summary-detail .order-summary-label,
[dir="rtl"] .order-summary-detail p:first-child {
    text-align: right;
}

[dir="rtl"] .order-summary-detail .order-summary-value,
[dir="rtl"] .order-summary-detail p:last-child {
    text-align: left;
}

[dir="rtl"] .total-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .sum-champ {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .cart-sum {
    margin: 0 10px 0 0;
}

/* Checkout Billing RTL */
[dir="rtl"] .codexpress-checkout-billing .codexpress-checkout-card .codexpress-checkout-card-header {
    text-align: right;
}

[dir="rtl"] .codexpress-checkout-card-body table td,
[dir="rtl"] .codexpress-checkout-card-body table th {
    text-align: right;
}

[dir="rtl"] .shipping-info {
    flex-direction: row-reverse;
}

/* Customizer RTL */
[dir="rtl"] .codexp-customizer {
    right: 30px;
    left: unset;
}

[dir="rtl"] .codexp-customizer .inner {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .codexp-customizer-card-body ul li {
    flex-direction: row-reverse;
}

[dir="rtl"] .customize-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .cod-customizer-aside-toggle {
    flex-direction: row-reverse;
}

/* Sticky Button RTL */
[dir="rtl"] .FormCOD-sticky {
    direction: rtl;
}

/* Alerts RTL */
[dir="rtl"] .codexp-success-message,
[dir="rtl"] .codexp-error-message {
    text-align: center;
    direction: rtl;
}

/* Form Variations RTL */
[dir="rtl"] .variations select {
    text-align: right;
    direction: rtl;
}

/* Custom Select RTL */
[dir="rtl"] .express-cod-checkout-wrapper .express-cod-checkout-form select.expcod-input {
    text-align: right;
    direction: rtl;
}

/* Promotion Labels RTL */
[dir="rtl"] .promotion-label {
    text-align: right;
    direction: rtl;
    flex-direction: row-reverse;
}

[dir="rtl"] .promotion-label span.checkbox-circle {
    margin-left: 10px;
    margin-right: 0;
}

/* Save Badge RTL */
[dir="rtl"] .expcod-save-badge {
    direction: rtl;
}

/* View Product Button RTL */
[dir="rtl"] .expcod-view-product-btn {
    direction: rtl;
}

/* Order Total Block RTL */
[dir="rtl"] .order-total-block-header {
    flex-direction: row-reverse;
}

/* Quantity Label RTL */
[dir="rtl"] .FormCOD_quantity_label {
    direction: rtl;
}

/* Free Shipping RTL */
[dir="rtl"] .FormCOD_free_shipping {
    direction: rtl;
}

/* Brand Colors Maintained for RTL */
[dir="rtl"] :root {
    --expcod-brand-red: #f2001e;
    --expcod-brand-navy: #121d5e;
}

/* ====================================== */
/* UNIVERSAL THEME COMPATIBILITY FIX */
/* ====================================== */

/* High specificity selectors to override any theme constraints */
html body .woocommerce .express-cod-checkout-wrapper,
html body .single-product .express-cod-checkout-wrapper,
html body .entry-content .express-cod-checkout-wrapper,
html body [class*="product"] .express-cod-checkout-wrapper,
html body .product-summary .express-cod-checkout-wrapper {
    max-width: none !important;
    width: 100% !important;
    position: relative !important;
}

/* Target common theme add-to-cart container patterns */
html body .c-product__atc-wrap .express-cod-checkout-wrapper,
html body .cart .express-cod-checkout-wrapper,
html body [class*="atc"] .express-cod-checkout-wrapper,
html body [class*="add-to-cart"] .express-cod-checkout-wrapper,
html body [class*="single_add_to_cart"] .express-cod-checkout-wrapper {
    max-width: var(--expcod-form-max-width, 500px) !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* MODERNO THEME SPECIFIC FIX - Override CSS Variable Constraint */
html body .c-product__atc-wrap:has(.express-cod-checkout-wrapper) {
    --add-to-cart-block-max-width: none !important;
    max-width: none !important;
}

/* Fallback for older browsers that don't support :has() */
html body .c-product__atc-wrap .express-cod-checkout-wrapper {
    max-width: var(--expcod-form-max-width, 500px) !important;
    width: 100% !important;
    position: relative !important;
}

/* Force override Moderno's container with higher specificity */
html body .woocommerce .c-product__atc-wrap .express-cod-checkout-wrapper,
html body .single-product .c-product__atc-wrap .express-cod-checkout-wrapper {
    max-width: var(--expcod-form-max-width, 500px) !important;
    width: 100% !important;
}

/* Remove all child width constraints that themes might impose */
html body .express-cod-checkout-wrapper * {
    max-width: none !important;
}

/* Ensure form itself respects admin setting with theme compatibility */
html body #FormCOD_form {
    max-width: min(var(--expcod-form-max-width, 500px), 100%) !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Override specific theme patterns that commonly break form width */
html body .express-cod-checkout-wrapper .express-cod-checkout-form {
    max-width: none !important;
    width: 100% !important;
}

/* Fix for grid/flexbox theme layouts */
html body .express-cod-checkout-wrapper {
    flex: none !important;
    grid-column: unset !important;
    display: block !important;
}

/* Responsive safety - never exceed viewport on mobile */
@media (max-width: 768px) {
    html body #FormCOD_form {
        max-width: calc(100vw - 40px) !important;
        margin: 0 auto !important;
    }
}

/* ====================================== */
/* BUTTON AND QUANTITY LAYOUT FIX */
/* ====================================== */

/* Fix button and quantity layout in Moderno and other themes */
html body .express-cod-checkout-wrapper .FormCOD-form-elements {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

/* Fix quantity input positioning */
html body .express-cod-checkout-wrapper .quantity {
    flex: 0 0 auto !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 120px !important;
}

/* FIXED: Restore proper Bootstrap grid behavior */
html body .express-cod-checkout-wrapper .FormCOD-form-elements .col-12 {
    /* Only apply flex auto to standalone col-12 (mobile full width) */
    flex: 1 1 auto !important;
    padding: 0 !important;
}

/* Allow Bootstrap grid to work properly for responsive columns */
html body .express-cod-checkout-wrapper .FormCOD-form-elements .col-md-4,
html body .express-cod-checkout-wrapper .FormCOD-form-elements .col-md-8,
html body .express-cod-checkout-wrapper .FormCOD-form-elements .col-md-10 {
    /* Restore Bootstrap's natural behavior */
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

/* Clean simple fix */

/* 3. Fallback for browsers that don't support :has() */
html body .express-cod-checkout-wrapper .FormCOD-form-elements .col-md-8 .expcod-buy-now-btn,
html body .express-cod-checkout-wrapper .FormCOD-form-elements .col-12 .expcod-buy-now-btn,
html body .express-cod-checkout-wrapper .expcod-buy-now-btn.w-100,
html body .express-cod-checkout-wrapper .btn.expcod-buy-now-btn {
    /* Use padding instead of width for spacing like sticky button */
    width: auto !important;
    padding-left: var(--expcod-buyNow-paddingX, 100px) !important;
    padding-right: var(--expcod-buyNow-paddingX, 100px) !important;
}

/* REMOVED: This was overriding the 25% width setting above */

/* Override Moderno's button width constraint */
html body .c-product__atc-wrap .express-cod-checkout-wrapper .expcod-buy-now-btn,
html body .woocommerce .express-cod-checkout-wrapper .expcod-buy-now-btn {
    width: auto !important;
    padding-left: var(--expcod-buyNow-paddingX, 100px) !important;
    padding-right: var(--expcod-buyNow-paddingX, 100px) !important;
    max-width: none !important;
    display: block !important;
}

/* Debug styles - These will override inline styles if present */
.express-cod-checkout-wrapper .expcod-buy-now-btn[style*="width"] {
    width: auto !important;
    padding-left: var(--expcod-buyNow-paddingX, 100px) !important;
    padding-right: var(--expcod-buyNow-paddingX, 100px) !important;
}

/* High specificity override for all possible Bootstrap and theme conflicts */
html body .express-cod-checkout-wrapper .express-cod-checkout-form .col-12 .btn.expcod-buy-now-btn.w-100,
html body .express-cod-checkout-wrapper .express-cod-checkout-form .col-md-8 .btn.expcod-buy-now-btn.w-100 {
    width: auto !important;
    padding-left: var(--expcod-buyNow-paddingX, 100px) !important;
    padding-right: var(--expcod-buyNow-paddingX, 100px) !important;
    max-width: none !important;
}

/* Fix quantity input styling conflicts with Moderno */
html body .express-cod-checkout-wrapper .quantity input[type="number"] {
    width: auto !important;
    min-width: 60px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    text-align: center !important;
}

/* Ensure proper spacing between quantity and button */
html body .express-cod-checkout-wrapper .FormCOD-form-elements > * {
    margin-bottom: 0 !important;
}

/* Mobile responsive layout */
@media (max-width: 767px) {
    html body .express-cod-checkout-wrapper .FormCOD-form-elements {
        flex-direction: column !important;
        gap: 15px !important;
    }

    html body .express-cod-checkout-wrapper .quantity {
        width: 100% !important;
        text-align: center !important;
    }

    html body .express-cod-checkout-wrapper .FormCOD-form-elements .col-12,
    html body .express-cod-checkout-wrapper .FormCOD-form-elements .col-md-8 {
        width: 100% !important;
    }
}

/* ====================================== */