/* fixed popup */
#nx-cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    display: flex;
}

#nx-cart-popup .nx-cart-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

#nx-cart-popup .nx-cart-popup-content .nx-cart-popup-close {
    position: absolute;
    top: -10px;
    border-radius: 50%;
    right: 10px;
    cursor: pointer;
    line-height: 1;
    color: #000;
    font-size: 12px;
    width: 15px;
    height: 15px;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
}

#nx-cart-popup .nx-cart-popup-content .nx-cart-popup-close:hover {
    color: #ff0000;
}

#nx-cart-popup .nx-cart-popup-content .nx-cart-popup-title {
    font-size: 20px;
    margin-bottom: 20px;
}

#nx-cart-popup .nx-cart-popup-content .nx-cart-popup-title span {
    font-size: 16px;
    color: #666;
}
/* popup button */
#nx-cart-popup .nx-cart-popup-content .nx-cart-popup-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

#nx-cart-popup .nx-cart-popup-content .nx-cart-popup-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    transition: 0.3s;
}
 
#nx-cart-popup button {
    background: none;
    border: 1px solid #000;
    color: #000;
    padding: 10px;
    line-height: 1;
    margin-top: 20px;
}
#nx-cart-popup-content button {
    margin-top: 10px;
}
@media (max-width: 768px) {
    #nx-cart-popup button {
        width: 100%;
    }
}

#nx-cart-popup #viewCartButton {
    margin-right: 10px;
    background: #292727;
    color: #fff;
}
#nx-cart-popup #viewCartButton:hover, #nx-cart-popup #continueShoppingButton:hover {
    opacity: .7;
}

/* fixed cart icon */
#nx-cart-icon {
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
#nx-cart-icon.fixed_c {
    position: fixed;
    top: 20%;
    right: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}


.main-nav #nx-cart-icon {
    position: static;
    padding: 0;
}

#nx-cart-icon:hover {
    opacity: .7;
}
/* fixed cart icon count */
#nx-cart-icon .nx-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #313131;
    color: #fff;
    padding: 5px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* fixed cart icon svg inline*/
#nx-cart-icon::before {
    position: relative;
    top: 3px;
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-shopping-bag"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path></svg>');
}
 
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;

}
 

@media (max-width: 768px) {
    .inside-article {
        padding: 0;
    }
}
.btns-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
.cart_item span {
    display: inline-block;
    padding: 10px;
}

#clear-cart-button, .remove-button {    
    background: #fff;
    color: #ff0000;
    border: 1px solid #ff0000;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}
#nx_post_add input[type="button"] {
    background:  #fff;
    color: #000;
    border: 1px solid #000;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}
#nx_post_add input[type="submit"] {
    background:  #fff;
    color: #000;
    border: 1px solid #000;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}


.inv-fields {
    display: none;
}
#nx-wpc-submit-order[disabled] {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
}
#cart-items .cart_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

 
.form-row.f-radio .nxc-payment-methods {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.form-row.f-radio input[type="radio"] {
    display: none;
}
.form-row.f-radio .nxc-payment-methods label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
    padding: 10px 15px;
    border: solid 1px #ccc;
    border-radius: 4px;
    width: 100%;
}
.form-row.f-radio label input[type="radio"] {
    display: none;
}

.form-row.f-radio label span {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}
.form-row.f-radio label span::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.5s ease;
}
.form-row.f-radio input[type="radio"]:checked + label span::before {
    opacity: 1;
}

.nx-acts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

/** cf **/
.nxc_custom_field {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
.gallery-preview .gallery-images {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gallery-preview .gallery-images li {
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
}
.gallery-preview .gallery-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
}
.gallery-preview .gallery-images .remove-image {
    position: absolute;
    top: 0;
    right: 0;
    background: #000;
    color: #fff;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
}
.gallery-preview .gallery-images .remove-image:hover {
    background: #ff0000;
}

.nxc_custom_field {
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
  
   .user-posts-table table.user-posts {
        width: 100%;
    }
    .user-posts-table table.user-posts thead {
        display: none;
    }
    .user-posts-table table.user-posts tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ccc;
    }
    .user-posts-table table.user-posts tbody tr td {
        display: block;
        text-align: center !important;
    }
    .user-posts-table table.user-posts tbody tr td:first-child {
        font-weight: bold;
    }
    .user-posts-table table.user-posts tbody tr td:last-child {
        text-align: right;
    }
    .user-posts-table table.user-posts tbody tr td:last-child a {
        display: inline-block;
        padding: 5px 10px;
        background: #000;
        color: #fff;
        border-radius: 5px;
        text-decoration: none;
    }
    .user-posts-table table.user-posts tbody tr td:last-child a:hover {
        background: #ff0000;
   }
 
    .user-posts-table table.user-posts tbody tr td::before {
          content: attr(data-label);
          font-weight: bold;
          display: block;
          margin-bottom: 5px;
          font-size: 12px;
     }

}
.nxl-logout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

}
.nx-login-f {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}
.nx-login-f summary {
    cursor: pointer;
    font-weight: bold;
}
.nx-member-login {
    margin-top: 15px;
    padding: 10px;
}