.np-orderform {

    max-width: 1400px; 

    margin: 40px auto;

}

.np-heading {

    margin: 0 0 25px;

    font-size: 28px;

}



.np-grid {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 15px 25px;

  margin-bottom: 18px;

}



.np-field label {

  display: block;

  font-weight: 600;

  margin-bottom: 6px;

}



.np-field input {

  width: 100%;

  padding: 10px;

  border: 1px solid #d0d0d0;

  border-radius: 6px;

  box-sizing: border-box;

}



.np-required {

  color: #d00;

  margin-left: 4px;

}



.np-products {

  margin-top: 50px;

}



.np-loading {

  padding: 12px;

  border: 1px solid #e6e6e6;

  border-radius: 8px;

}



.np-table {

  width: 100%;

  border-collapse: collapse;

}



.np-table th,

.np-table td {

  border: 1px solid #e6e6e6;

  padding: 10px;

  text-align: left;

  vertical-align: middle;

}



.np-table th {

  background: #fafafa;

}



.np-thumb {

  max-width: 100px;

  height: auto;

  display: block;

}



.np-muted {

  opacity: 0.6;

}



.np-qty {

  width: 90px;

  padding: 8px;

  border: 1px solid #d0d0d0;

  border-radius: 6px;

}



.np-pagination {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 14px;

}



.np-page-btn {

  padding: 8px 12px;

  border: 1px solid #d0d0d0;

  background: #fff;

  border-radius: 6px;

  color: #3F3F46;  

  cursor: pointer;

}



.np-page-btn.is-active {

  border-color: #111;

  background: #111;

  color: #fff;

}



.np-summary {

  margin-top: 18px;

  display: grid;

  gap: 12px;

}



.np-total {

  font-size: 16px;

  display: flex;

  align-items: baseline;

  gap: 10px;

}



.np-total-label {

  font-weight: 700;

}



.np-terms {

  display: flex;

  gap: 6px;

}



.np-btn {

    display: inline-block;

    padding: 12px 25px;

    border-radius: 8px;

    border: 1px solid #111;

    background: #fff;

    cursor: pointer;

    width: fit-content;

    font-weight: 600;

}



.np-btn-primary {

  background: #111;

  color: #fff;

}



.np-alert {

  padding: 10px 20px;

  border-radius: 10px;

  border: 1px solid #e6e6e6;

  margin-bottom: 14px;

}



.np-alert-success {

  border-color: #46b450;

  background: #ecf7ed;

}



.np-alert-error {

  border-color: #dc3232;

  background: #fdeaea;

}



.np-title {

  margin: 0 0 8px;

}



.np-products {

  position: relative;

}



.np-overlay-loading {

  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255,255,255,0.75);

  border-radius: 8px;

  font-weight: 600;

}



.np-thumb {

  width: 100px;

  height: 100px;

  object-fit: contain;

}



.np-alert-success a {

    color: #fff;

}

.np-btn-primary {

    background-color: var(--primary-color);

    border-color: var(--primary-color);

}



.np-btn-primary:hover {

    background-color: var(--secondary-color);

    color: var(--whitecolor);

    border-color:  var(--secondary-color);

}

td:has(input.np-qty) {

    width: 120px;

}



.np-field:has(input[type="radio"]) {

    grid-column: span 2;

}

.np-field:has(input[type="radio"]) > div:has(input[type="radio"]){

    display: flex;

    flex-wrap: wrap;

    gap: 20px;



}

.np-field:has(input[type="radio"]) label,.np-field:has(input[type="radio"]) input{

    width: fit-content;

}

 

 .np-terms:has(h5) {

    display: flex;

    flex-direction: column;

}

.np-terms:has(h5) h5{

    margin-bottom: 5px;

    text-decoration: underline;

}

.np-terms-marketing, .np-order_consent {

    margin-top: -15px;

} 

h3.np-products-section-title {

    font-size: 20px;

    margin-bottom: 10px;

}



.np-wholesaler-group {

    display: flex;

    flex-wrap: wrap;

    gap: 20px;

}



.np-wholesaler-group input {

    width: fit-content;

}



.combined_consent_sec {

    align-items: baseline;

    line-height: 1.4;

}



/* -----------------------------------------

   Responsive (Tablet + Mobile)

------------------------------------------ */

 @media (max-width: 1440px) {

    .np-orderform {

margin: 18px 12px;

}

.np-terms {

align-items: flex-start;

gap: 10px;

}

  .np-terms input[type="checkbox"] {

margin-top: 9px;

}

}

@media (min-width: 1024px) {

.np-total {

    justify-content: flex-end;

}	

}

/* Tablet */

@media (max-width: 768px) {

  .np-orderform {

    max-width: 100%;

    margin: 24px 16px;

  }



  .np-grid {

    grid-template-columns: 1fr;

  }



  .np-products {

    margin-top: 30px;

  }



  .np-pagination {

    gap: 6px;

  }



  .np-page-btn {

    padding: 8px 10px;

  }

  

   .np-table-title{

      width: 200px;

  }

  .np-table-qty, .np-table-img{

      width: 80px;

  }

}



/* Mobile */

@media (max-width: 768px) {

  .np-orderform {

    margin: 18px 12px;

  }



	.np-terms input[type="checkbox"] {

    margin-top: 5px;

}

  .np-heading {

    font-size: 22px;

    line-height: 1.2;

  }



  .np-field input {

    padding: 12px;

  }



  /* Make the product table scrollable on small screens */

  .np-products {

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

  }



  .np-table {

    min-width: 900px; /* keeps columns readable; user can scroll */

  }



  .np-thumb {

    width: 60px;

    height: 60px;

  }



  .np-qty {

    width: 80px;

  }



  .np-summary {

    gap: 14px;

  }



  .np-total {

    flex-direction: column;

    align-items: flex-start;

    gap: 6px;

  }



  .np-terms {

    align-items: flex-start;

    gap: 10px;

  }



  .np-btn {

    width: 100%;

    text-align: center;

  }



  .np-pagination {

    gap: 6px;

  }



  .np-page-btn {

    padding: 8px 10px;

    font-size: 14px;

  }

  .np-table-title{

      width: 160px;

  }

  .np-table-qty, .np-table-img{

      width: 80px;

  }

}



/* Small Mobile */

@media (max-width: 480px) {

  .np-orderform {

    margin: 14px 10px;

  }



  .np-heading {

    font-size: 20px;

  }



  .np-page-btn {

    padding: 7px 9px;

    font-size: 13px;

  }



  .np-alert {

    padding: 12px;

  }

 

  .np-table-title{

      width: 150px;

  }

	td:has(input.np-qty){

		width: unset !important;

	}

  .np-table-qty, .np-table-img, .np-table-same{

      width: 70px;

  }

}









.np-table th.np-table-title,td.np-col-title{

    max-width: 485px !important;

    width: 485px;

}



 .after_full_info {

    font-size: 18px;

    margin-top: 12px;

} 



@media(max-width : 1280px){

    .np-table th.np-table-title,td.np-col-title{

    max-width: 320px !important;

    width: 320px;

}



}





@media(max-width : 767.99px){

    .np-table th.np-table-title,td.np-col-title{

    max-width: 230px !important;

    width: 230px;

}



}





@media(max-width : 576px){

        .np-table th.np-table-title,td.np-col-title{

    max-width: 180px !important;

    width: 180px;

}

}

/* Form Category accordion only. Existing product table CSS remains unchanged. */
.np-category-toggle {
  cursor: pointer;
}

.np-category-toggle::after {
  content: " +";
}

.np-category-toggle[aria-expanded="true"]::after {
  content: " −";
}

.np-products-section + .np-products-section {
  margin-top: 14px;
}



.np-products-section-title.np-category-toggle {
    position: relative;
    margin: 0;
    padding: 16px 50px 16px 20px;
    background: #f7f7f7;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.np-products-section-title.np-category-toggle:hover {
    background: #f0f0f0;
    border-color: #d2d2d2;
}

.np-products-section-title.np-category-toggle::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.np-products-section-title.np-category-toggle[aria-expanded="true"]::after {
    content: "−";
}



.np-products-section {
    margin-bottom: 18px;
}

.np-products-section .np-table {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .np-products-section-title.np-category-toggle {
        padding: 14px 45px 14px 15px;
        font-size: 17px;
    }

    .np-products-section-title.np-category-toggle::after {
        right: 14px;
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
}