/* ==========================================================================
   Nextebrand Checkout — frontend.css
   ========================================================================== */

/* Wrapper: two-column layout on desktop, stacked on mobile */
.nxc-wrapper *{
    box-sizing: border-box;
}
body .nxc-wrapper .nxc-top-shipping-ajax-wrapper .nxc-section-title,
body .nxc-wrapper .woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout{
    display: none!important;
}


.nxc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.nxc-product-column {
    flex: 0 0 340px;
    max-width: 340px;
}

.nxc-checkout-column {
    flex: 1 1 400px;
    min-width: 280px;
}

/* --------------------------------------------------------------------------
   Product items
   -------------------------------------------------------------------------- */

.nxc-products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nxc-product-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.nxc-product-item:has(.nxc-product-checkbox:checked),
.nxc-product-item:has(.nxc-product-checkbox:disabled) {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.nxc-product-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex-wrap: wrap;
}

.nxc-product-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2271b1;
}

.nxc-product-header img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.nxc-product-name strong{
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.nxc-product-price {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.nxc-product-price ins{
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Quantity controls
   -------------------------------------------------------------------------- */

.nxc-quantity-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.nxc-qty-label {
    font-size: 0.85rem;
    color: #555;
    min-width: 2rem;
}

.nxc-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.nxc-qty-btn:hover {
    background: #e8e8e8;
    border-color: #999;
}

.nxc-qty-btn:active {
    background: #ddd;
}

.nxc-qty-input {
    width: 52px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    -moz-appearance: textfield;
    padding: 0 4px;
}

.nxc-qty-input::-webkit-inner-spin-button,
.nxc-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* --------------------------------------------------------------------------
   Variation selects
   -------------------------------------------------------------------------- */

.nxc-variations-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.nxc-variation-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.nxc-variation-row label {
    font-size: 0.85rem;
    color: #555;
    min-width: 70px;
    flex-shrink: 0;
}

.nxc-variation-select {
    flex: 1;
    min-width: 120px;
    padding: 0.3rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
}

/*after code*/

body .nxc-has-shadow{
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.nxc-wrapper .nxc-product-column {
    flex: initial;
    max-width: 100%;
    width: 100%;
}

.nxc-wrapper .nxc-products-list,
.nxc-wrapper .nxc-form-inner{
    display: grid!important;
    flex-direction: initial;
    flex-wrap: wrap!important;
    gap: 30px;
     grid-template-columns: repeat(2, 1fr);
}

body .nxc-products-list > .nxc-product-item:only-child{
     grid-column: 1 / -1;
}
.woocommerce-billing-fields__field-wrapper .form-row label,
.woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper{
    display: block;
}
.woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper,
.woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper input{
    width: 100%;
}
.woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
}
.nxc-wrapper table.shop_table.woocommerce-checkout-review-order-table thead tr th {
    text-align: left;
    padding-top: 10px;
    padding-bottom: 10px;
}
.nxc-wrapper table.shop_table.woocommerce-checkout-review-order-table thead tr th.product-total{
    text-align: right;
}
.nxc-wrapper .checkout-product-info .product-info-crtl,
.nxc-wrapper .checkout-product-info .product-name{
    display: flex;
    align-items: center;
    gap: 20px;
}
.nxc-wrapper .checkout-product-info .product-image {
    width: 20%;
    line-height: .7;
    flex-shrink: 0;
}
.nxc-wrapper .checkout-product-info .product-image img{
    width: 100%;
    height: auto;
}
.nxc-wrapper table.woocommerce-checkout-review-order-table tfoot th{
    text-align: left;
}
.nxc-wrapper table.woocommerce-checkout-review-order-table tbody tr td.product-total,
.nxc-wrapper table.woocommerce-checkout-review-order-table tfoot tr td{
    text-align: right;
}
.nxc-wrapper table.woocommerce-checkout-review-order-table tfoot th,
.nxc-wrapper table.woocommerce-checkout-review-order-table tfoot td,
.nxc-wrapper tbody td{
     padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px dashed #ddd;
}

.nxc-wrapper table.woocommerce-checkout-review-order-table .cart-coupon .wc-coupon-form{
    display: flex;
    align-items: center;
    gap: 10px;
}
.nxc-wrapper table.woocommerce-checkout-review-order-table .cart-coupon .form-row.form-row-first{
    width: 100%;
}
.nxc-wrapper table.woocommerce-checkout-review-order-table .cart-coupon .form-row.form-row-first input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    height: 40px;
}
.nxc-wrapper table.woocommerce-checkout-review-order-table .cart-coupon button.button.tnr-btn {
    width: 120px;
    height: 40px;
    padding: 10px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.nxc-wrapper .nxc-top-shipping-ajax-wrapper{
    padding-top: 10px;
}
.nxc-top-shipping-selector ul.nxc-isolated-shipping-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5em 0;
    border: 1px solid #d6d7db;
    border-radius: 4px;
}
.nxc-top-shipping-selector ul.nxc-isolated-shipping-list li:not(:last-child) {
    border-bottom: 1px solid #d6d7db;
}
.nxc-top-shipping-selector ul.nxc-isolated-shipping-list li{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    margin: 0; 
}

.nxc-wrapper .woocommerce-checkout-review-order .form-row.place-order{
    padding: 20px!important;
}
.nxc-wrapper .form-row.place-order button {
    display: flex;
    align-items: center;
    gap: 3px 10px;
    padding: 13px 35px 13px;
    border-radius: 4px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nxc-wrapper .form-row.place-order button i{
    width: 30px;
}
.nxc-wrapper .form-row.place-order button i svg{
    width: 100%;
    height: auto;
}
.nxc-wrapper #custom_error_msg {
    margin-top: 10px;
    text-align: left;
    font-size: 16px;
    color: #ff0000;
}
.nxc-wrapper .woocommerce-invalid input, 
.nxc-wrapper .woocommerce-invalid select {
    border-color: #ff0000!important;
}

.nxc-wrapper .checkout-inline-error-message{
    margin-top: 5px;
    color: #ff0000;
    font-size: 14px;
}
.nxc-wrapper #nxc-phone-verified-badge{
    margin-top: 7px;
    font-size: 14px;
    text-align: right;
}

.nxc-wrapper .woocommerce-billing-fields .form-row.enable-phone-otp{
    margin-bottom: 0 !important;
}
.nxc-wrapper #nxc-otp-container{
    display: flex;
    flex-direction: column;
}
.nxc-wrapper #nxc-otp-container button#nxc-send-otp-btn {
    margin-left: auto;
    width: auto;
    cursor: pointer;
    border: none;
    padding: 10px;
    transition: all 0.5s;
    -ms-transition: all 0.5s;
    -webkit-transition: all 0.5s;
}
.nxc-wrapper .nxc-phone-inline-error{
    margin-bottom: 10px;
}
#nxc-otp-container button#nxc-send-otp-btn:hover,
.nxc-wrapper #nxc-otp-wrapper #nxc-verify-otp-btn:hover{
    color: #fff;
    background: #000;
}
.nxc-wrapper .nxc-otp-status{
    font-size: 14px;
}
.nxc-wrapper #nxc-otp-wrapper{
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.nxc-wrapper #nxc-otp-wrapper #nxc-verify-otp-btn{
    width: auto;
    max-width: 150px;
    padding: 10px;
    border: none;
    cursor: pointer;
	transition: all 0.5s;
-ms-transition: all 0.5s;
-webkit-transition: all 0.5s;
}
.nxc-top-shipping-selector ul li > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nxc-top-shipping-selector ul li label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 0 0 30px;
    background: transparent!important;
    font-size: 16px;
    cursor: pointer;
}
.nxc-top-shipping-selector ul li label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 15px;
    height: 15px;
    border: 1px solid #d6d7db;
    border-radius: 50%;
    transform: translateY(-50%);
}

.nxc-top-shipping-selector ul li.nxc-shipping-active label::before {
    border-color: #d6d7db;
    background: radial-gradient(
            circle,
            #b4b6bf 0 4px,
            #fff 5px
        );
}
.nxc-wrapper #payment .wc_payment_method {
    position: relative;
    margin: 0 0 12px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: all 0.25s ease;
}
.nxc-wrapper #payment .wc_payment_method > label {
    position: relative;
    min-height: initial;
    padding: 14px 20px 14px 52px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    background: #fff;
    word-break: break-word;
    flex-wrap: wrap;
    line-height: 1.3;
}
.nxc-wrapper #payment .wc_payment_method > label img{
    display: none;
}
.nxc-wrapper #payment ul.payment_methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.nxc-wrapper #payment .wc_payment_method > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nxc-wrapper #payment .wc_payment_method > label::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 19px;
    height: 19px;
    border: 1.5px solid #a8a8a8;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #fff;
    transition: all 0.2s ease;
}
.nxc-wrapper #payment .wc_payment_method > input[type="radio"]:checked + label::before {
    border-color: #d6d7db;
    background: radial-gradient(
            circle,
            #b4b6bf 0,
            #b4b6bf 6px,
            #fff 7px,
            #fff 100%
        );
}
.nxc-wrapper .woocommerce-privacy-policy-text{
    font-size: 16px;
}
.introTitle {
    font-size: 40px;
}

/*Thank you page*/
body .nxc-thankyou-status {
    max-width: 100%;
    margin-top: 60px!important;
}
body .nxc-thankyou-status .nxc-thankyou-global-logo {
    padding: 20px 20px!important;
    background-color: rgba(129, 110, 153, .14)!important;
}
body .nxc-thankyou-status h2 {
    margin-top: 30px!important;
    margin-bottom: 20px!important;
}
body .nxc-thankyou-status h2,
body .nxc-thankyou-status p {
    margin: 0 auto;
    max-width: var(--wp--style--global--content-size);
}
body .nxc-thankyou-status p {
    margin-top: 10px!important;
    margin-bottom: 30px!important;
}
.nxc-thankyou-status .wp-block-woocommerce-order-confirmation-summary {
    margin-top: 60px;
}
body .wc-block-order-confirmation-summary ul {
    padding: 32px;
    background: rgba(129, 110, 153, .14);
    border-radius: 5px;
}
body .wc-block-order-confirmation-summary ul li:after {
    content: '';
    width: 2px;
    height: 100%;
    display: inline-block;
    border-right: 2px dash #fff;
}

.nxc-cod-notice {
    margin-top: 32px!important;
    margin-bottom: 32px!important;
    padding: 10px 12px!important;
    background: #f8f9fa!important;
    border-radius: 6px;
    box-sizing: border-box;
}
body .wp-block-woocommerce-order-confirmation-totals-wrapper,
body .wc-block-order-confirmation-address-wrapper,
body .wp-block-woocommerce-order-confirmation-additional-information  {
    border: none;
    border-spacing: 0;
    width: 100%;
    background: rgba(129, 110, 153, .14);
    border-radius: 5px;
    padding: 30px 32px;
    box-sizing: border-box;
    margin-bottom: 32px!important;
}
body .wp-block-woocommerce-order-confirmation-additional-information  {
    margin-bottom: 70px!important;
}
body .wc-block-order-confirmation-totals table {
    border: none;
    border-spacing: 0;
    width: 100%;
    background: transparent;
    border-radius: 5px;
    padding: 0;
    margin: 0 -8px;
}
body .wc-block-order-confirmation-totals table td, 
body .wc-block-order-confirmation-totals table th {
    border-top: none;
    font-weight: inherit;
    margin: 0;
    padding: 12px 8px;
    text-align: left;
}
body .wc-block-order-confirmation-shipping-address,
body .wc-block-order-confirmation-billing-address {
    border: none;
    border-radius: 5px;
    padding: 0;
}
body .wp-block-woocommerce-order-confirmation-additional-information #nxc-otp-wrapper {
    background: transparent!important;
    border: none!important;
    padding: 0!important;
    border-radius: 0!important;
    margin-bottom: 0!important;
}
body .wp-block-woocommerce-order-confirmation-additional-information #nxc-otp-wrapper #nxc-btn-send-otp {
    padding: 18px 32px;
    font-size: 18px;
    border: none;
    background-color: #333;
    color: #fdfdfd;
    border-radius: 6px;
    line-height: 1.1;
}
body #nxc-otp-wrapper #nxc-otp-step-verify input {
    border: 0!important;
    background-color: #fff!important;
    height: 50px!important;
    box-sizing: border-box;
    border-radius: 6px!important;
}
body #nxc-otp-wrapper #nxc-otp-step-verify button {
    border: 0!important;
    padding: 8px 32px 7px;
    font-size: 18px;
    background-color: #333;
    color: #fdfdfd;
    height: 50px!important;
    box-sizing: border-box;
    border-radius: 6px!important;
}
body #nxc-otp-wrapper #nxc-otp-step-verify p {
    font-size: 16px!important;
    margin-top: 8px!important;
}
body #nxc-otp-message {
    border: none!important;
    box-sizing: border-box;
    padding: 15px 20px 13px!important;
    border-radius: 6px!important;
    background-color: #333!important;
    color: #fdfdfd!important;
    margin-bottom: 20px!important;
}




/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media ( max-width: 680px ) {
    .nxc-product-column,
    .nxc-checkout-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Hide billing/shipping fields that are kept in the DOM for validation
   compatibility but should not be shown on funnel pages. */
.nxc-hidden-field {
    display: none !important;
}

/* Loading state — applied while cart AJAX is in flight */
.nxc-wrapper.nxc-loading .nxc-checkout-column {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nxc-wrapper.nxc-loading .nxc-product-column {
    pointer-events: none;
}

#order_review .woocommerce-shipping-totals.shipping,
.nxc-wrapper .checkout-form-top {
  display: none;
}
.woocommerce-billing-fields .form-row.nxc-save-address-wrapper label {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    color: var(--nxb-accent-color) !important;
    display: block;
    line-height: 20px;
}
.woocommerce-billing-fields .form-row.nxc-save-address-wrapper label > input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: -2px 0 0 !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: transparent!important;
    border: 2px solid var(--nxb-primary-color) !important;
    border-radius: 4px !important;
    display: inline-grid !important;
    place-content: center !important;
    cursor: pointer !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.woocommerce-billing-fields .form-row.nxc-save-address-wrapper label > input[type="checkbox"]:checked {
    background-color: var(--nxb-primary-color) !important;
}
.woocommerce-billing-fields .form-row.nxc-save-address-wrapper label > input[type="checkbox"]::before {
    content: "" !important;
    width: 11px !important;
    height: 6px !important;
    border-left: 2px solid #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    transform: rotate(-45deg) translate(1px, -1px) !important;
    display: none !important;
}
.woocommerce-billing-fields .form-row.nxc-save-address-wrapper label > input[type="checkbox"]:checked::before {
    display: block !important;
}

@media(max-width: 1199px){
    .introTitle{
        font-size: 36px;
    }
}
@media(max-width: 991px){
    .introTitle{
        font-size: 32px;
    }
}
@media(max-width: 767px){
    .introTitle{
        font-size: 28px;
    }
}
@media(max-width: 479px){
    .introTitle{
        font-size: 24px;
    }
}

