/*
Theme Name: NCD Wholesale
Theme URI: https://portal.ncdcanada.ca
Author: Lucas Simoes
Author URI: https://www.ncdcanada.ca
Description: NCD Canada Wholesale Portal theme, built by our IT team.
Version: 1.0
Text Domain: ncd-wholesale
*/

body {
    margin: 0;
    padding: 0;
}

.ncd-site-header {
    padding: 24px 0px;
    background-color: #ffffff;
    border-bottom: 1px solid #00000024;
    position: sticky;
    top: 0;
    margin-bottom: 30px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.product-table th, .product-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.checkout-section {
    text-align: right;
    display: grid;
    grid-template-columns: 120px 110px;
    align-items: baseline;
    column-gap: 12px;
    margin-left: 270px;
    position: relative;
    z-index: 5;
    margin-bottom: 10px;
    margin-top: 10px;
}
body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
  }

.product-table-item {
    border-bottom: 1px dotted #d2d2d2;
    display: grid;
    align-items: center;
    grid-template-columns: 110px 1fr 140px 110px 80px 160px 60px;
    padding: 8px 12px;
}

.product-table-item:hover {
    background-color: #effaf1;
}


.product-table-col.pt-sku {
    font-family: monospace;
    font-size: 13px;
}

.product-table-col.pt-stock {
    padding: 0 24px;
    text-align: left;
}

input.qty-input {
    width: 48px;
    height: 24px;
    margin: 0;
    padding: 0 0 0 4px;
}

.product-table-col.pt-name a {
    text-decoration: none;
    color: #294b38;
}

.product-table-item.header div.product-table-col {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p.cart-status-note {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 14px;
    color: #737373;
}
.cart-status-note a{
    text-decoration:none;
    color:#294b38;
    font-weight: 600;
}

span.eachprice {
    font-weight: 500;
    font-size: 14px;
    color: #737373;
    display: block;
    margin-top: 2px;
}

.ncd-container{
    max-width: 1300px;
    width:100%;
    margin: 0 auto;
    padding: 0 24px;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
}

.menu ul li a {
    padding: 8px 10px;
    display: inline-block;
    text-decoration: none;
    color: #505050;
    font-weight: 500;
    margin-right: 5px;
}
.menu ul li a:last-of-type{
    margin-right:0px;
}
.menu ul li a:hover {
    background-color: #14592a;
    color: #ffffff;
}
.w-nav-brand{color:#ffffff !important;}

img.woocommerce-placeholder.wp-post-image{
    height:auto;
}
img{height:auto;}

img.province-ico {
    height: 23px;
    position: absolute;
    margin-left: 5px;
    margin-top: -2px;
}
button#add-to-cart-button[disabled] {
    background-color: #cfdba7;
    box-shadow: inset 0 0 0 1px #bbd565;
    color: #133d2a59;
    text-decoration: line-through;
}


nav.woocommerce-pagination {
    margin-top: 24px;
    margin-bottom: 24px;
}

ul.page-numbers {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
    grid-auto-columns: 30px;
    grid-auto-flow: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

ul.page-numbers > li {
    list-style: none;
}

ul.page-numbers > li > a {
    text-decoration: none;
    color: #133d2a;
    display: block;
    padding: 5px 0;
    border-radius: 3px;
    box-shadow: 0px 0px 0px 1px #f0f0f0;
}

ul.page-numbers > li > a:hover {
    background-color: #133d2a;
    color: #bbd565;
    box-shadow: none;

}
ul.page-numbers > li > span.current {
    text-decoration: none;
    color: #133d2a;
    width: 100%;
    display: block;
    padding: 5px 0;
    border-radius: 3px;
    background-color: #bbd565;
}

form.archive-filters {
    display: grid;
    grid-auto-columns: max-content;
    grid-auto-flow: column;
    gap: 23px;
    align-content: center;
    align-items: center;
}

button.submit-filters {
    background-color: #bbd565;
    border-radius: 3px;
    width: 89px;
    height: 40px;
    vertical-align: middle;
    align-self: center;
}

.filter-form-block >label {
    margin-bottom: 0;
}

span.sm_packsize {
    display: block;
    font-size: 11px;
    width: auto;
    justify-self: baseline;
    margin-top: 3px;
    font-weight: 600;
    text-transform: uppercase;
    color: #626262;
    line-height: normal;
}

a.wc-block-components-product-name {
    color: #1e5337;
    text-decoration: none;
    font-weight: 600;
}

del.wc-block-components-product-price__regular {
    color: #a73131;
}

span.price.wc-block-components-product-price {
    font-weight: 500;
}
.product-image.thumbnail{
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

div.w-layout-grid.grid{
    grid-column-gap: 32px;
}

form#ncd-filter-form {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.container.ncd-filter-form-container {
    max-width: 100%;
    padding-top: 10px;
    align-self: start;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcdc;
}


.container.container-sm.tool-header {
    padding-top: 12px;
    padding-bottom: 12px;
}

h1.bulk-order-title{
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    font-size: 24px;
    color: #1d5236;
    line-height: 32px;
}
.container.container-sm {
    max-width: 100%;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.bulk-order-intructions {
    display: none; /* Initially hidden */
    margin-top: 10px;
}

#instructions-expand {
    cursor: pointer;
    align-items: center;
    width: auto;
    font-weight: 500;
}

#instructions-expand .arrow {
    margin-right: 5px;
    display: inline-flex;
    transition: transform 0.5s ease;
    
}

#instructions-expand.expanded .arrow {
    transform: rotate(180deg); /* Rotate arrow when expanded */
}
div#grid-table {
    padding: 0 6px;
}




table.product-qo-grid td {
    padding: 8px 5px;
    border-bottom: 1px solid #e1e1e1;
}

table.product-qo-grid {
    width: 100%;
    margin-top: 50px;
}

table.product-qo-grid thead {
    font-weight: 600;
}


a.view-product {
    text-transform: uppercase;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .5px;
    font-weight: 500;
    color: #133d2a;
}

#grid-table button.gridjs-sort{
    height: 20px;
}

.woocommerce-breadcrumb{
    display: none;
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: 500;
}
.woocommerce-breadcrumb a {
    color: #979797;
    text-decoration: none;
    font-weight: 400;
}

.container.brand-header img {
    max-height: 100px;
    margin-bottom: 0;
    margin-left: auto;
}

.container.brand-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.brand-header h1 small {
    display: block;
    line-height: 21px;
    font-size: 18px;
    font-weight: 400;
}
.brand-header h1 {
    line-height: 41px;
}
.border-bottom-wrapper {
    border-bottom: 1px solid #dcdcdc;
}

.woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-auto-columns: max-content;
    grid-auto-flow: column;
    grid-gap: 16px;
    padding: 0;
}


.woocommerce-MyAccount-navigation ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    padding: 8px 16px;
    text-decoration: none;
    color: #133d2a;
    display: inline-block;
    border: 1px solid #dedede;
    border-radius: 3px;
}


.woocommerce-MyAccount-navigation ul li.is-active a {
    font-weight: 600;
    border: 1px solid #bbd565;
}

.woocommerce-MyAccount-navigation ul li.is-active a:hover {
    background-color: #f9f9f9;
    border: 1px solid #cfcfcf;
}
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #bbd565;
    border: 1px solid #133d2a;
}

.woocommerce-MyAccount-content h3, h3#order_review_heading {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 16px;
    padding-bottom: 6px;
    font-weight: 500;
    color: #133d2a;
    border-bottom: 2px solid #bbd565;
}

table.shop_table.woocommerce-checkout-review-order-table {
    text-align: left;
}

.featured-tag.craft {
    background-color: #3a6f3b;
    color: #ffffff;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained  {
    border-radius: 3px;
    text-decoration: none;
    color: #143d29;
    background-color: #bbd565;
    font-weight: 600;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover {
    color: #bbd565;
    background-color: #143d29;
}

button#place_order  {
    border-radius: 3px;
    padding: 10px 15px;
    text-decoration: none;
    color: #143d29;
    background-color: #bbd565;
    font-weight: 600;
}

button#place_order:hover{
    color: #bbd565;
    background-color: #143d29;
}

th.wc-block-cart-items__header-image {
    display: none;
}

td.wc-block-cart-item__image {
    display: none;
}

div.wc-block-components-quantity-selector {
    margin-bottom: 0 !important;
}

.wc-block-cart-item__quantity {
    display: flex;
    align-items: center;
    column-gap: 12px;
}

.wc-block-components-product-metadata__description {
    display: none;
}
dl.variation {
    display: flex;
    margin-bottom: 0;
    margin-top: 0;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
}

dl.variation dt {
    font-weight: 500;
}

dl.variation p {
    margin: 0;
}

table.shop_table.woocommerce-checkout-review-order-table thead {
    color: #8e8e8e;
}

table.shop_table.woocommerce-checkout-review-order-table thead th {
    font-weight: 600;
    padding-bottom: 15px;border-bottom: 1px dotted;
}

table.shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
}

table.shop_table.woocommerce-checkout-review-order-table tbody tr td {
    padding: 8px 0;
    border-bottom: 1px dotted #979797;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot tr td {
    padding-top: 15px;
    padding-bottom:15px;
}


.woocommerce-checkout-review-order-table tfoot tr {
    border-bottom: 1px solid #d6d6d6;
}

.woocommerce-checkout-review-order-table tfoot tr th {
    padding-top: 15px;
    padding-bottom: 15px;
}

tr.woocommerce-shipping-totals.shipping ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-shipping-totals.shipping ul#shipping_method li > * {
    display: inline-block;
}


.woocommerce-shipping-totals.shipping ul#shipping_method li > label {
    margin-left: 5px;
    vertical-align: middle;
}

ul.wc_payment_methods.payment_methods.methods {
    list-style: none;
    padding: 15px;
    border: 1px solid;
    margin: 15px 0;
}

.payment_box.payment_method_cod p {
    margin-bottom: 0;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle {
    display: none;
}
table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details {
    text-align: left;
    width: 100%;
}

table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tr {
    padding: 5px;
    border-bottom: 1px solid #d6d6d6;
}

table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details a {
    text-decoration: none;
    color: #000000;
}

table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td {
    padding: 10px 0;
}

table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details {
    text-align: left;
    width: 100%;
}

table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tr {
    padding: 5px;
    border-bottom: 1px solid #d6d6d6;
}

table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details a {
    text-decoration: none;
    color: #000000;
}

table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td {
    padding: 10px 0;
}

p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    padding: 25px;
    font-size: 1.3em;
    border: 1px solid #000000;
    margin-top: 25px;
}


ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
    list-style: none;
    font-weight: 600;
    padding: 0;
}

ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details strong {
    font-weight: 400;
}


.woocommerce-order-received h2 {font-size: 1.5em;border-bottom: 2px solid;font-weight: 500;}

#additional_information_field .optional {
    display: none;
}

input#additional_information {
    padding: 8px 7px;
}
p#additional_information_field label {
    display: none;
}

@media print {
    body.woocommerce-order-received .navbar.w-nav{
        background-color:#ffffff;
        background-color: #ffffff;
        background: #ffffff;
        background-image: none;
        position: static;
    }

    body.woocommerce-order-received a#w-node-_2ec09202-962b-1b94-1f90-b2917b3bfa4a-d39b4bd8{
        filter: invert(1);
    }

    body.woocommerce-order-received .navbar.w-nav nav, body.woocommerce-order-received .navbar.w-nav .menu-button.w-nav-button{
        display:none;
    }
    body.woocommerce-order-received > footer{
        display: none;
    }
    .print-order-button{
        display: none;
    }
}

.woocommerce-input-wrapper > label.checkbox {
    display: flex;
    align-content: center;
    column-gap: 5px;
    font-weight: 400;
}

#custom_additional_info_field {
    background-color: #f1f5d2;
    padding: 16px 16px 6px 16px;
    border-radius: 6px;
}

#custom_notify_items_out_of_stock_field {
    background-color: #f1f5d2;
    margin-top: 10px;
    padding: 16px 16px 6px 16px;
    border-radius: 6px;
}


textarea#additional_information {
    width: 100%;
    padding: 4px 6px;
    min-height: 80px;
    border-radius: 4px;
    border: 1px solid #143d29de;
}




/* Quick Order V2 */
.quickorder-table {
    font-family: "IBM Plex Sans", sans-serif;
    width: 100%;
    border-collapse: collapse;
    font-size:13px;
  }
  
  /* base cell/header setup */
  .quickorder-table th,
  .quickorder-table td {
    position: relative;
    padding: 5px 5px;
    text-align: left;
  }
  .quickorder-table td.cart-input-cell{
    padding:0;
  }
  
  /* header row */
  .quickorder-table thead {
    background-color: #2a5732;
    position: sticky;
    top: 60px;
    width: 100%;
    z-index: 99;
  }
  .quickorder-table thead .quickorder-thead th {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: top;
  }
  
  /* zebra hover */
  .quickorder-table tbody tr:hover td,
  .quickorder-table tbody tr:hover input.in-cart-input {
    background-color: #f8f8f8;
  }
  
  /* row dividers */
  .quickorder-table tbody td {
    border-bottom: 1px solid rgba(0,0,0,0.12);
  }
  
  /* monospace cells */
  .quickorder-table td.mono {
    font-family: "IBM Plex Mono", monospace;
  }
  
  /* left borders */
  .quickorder-table .border-left {
    border-left: 1px solid #ededed;
  }
  .quickorder-table th.border-left{
    border-color:#57775d;
  }
  
  /* right-aligned headers */
  .quickorder-table th.right-align {
    text-align: right;
  }
  
  /* sortable headers */
  .quickorder-table[data-is-sortable="true"] th[data-sortable="true"] {
    cursor: pointer;
    padding-right: 20px;
  }
  
  /* sort icons */
  .quickorder-table th .col-title {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    color:#ffffff;
  }
  .quickorder-table th .col-sort-icon {
    display: inline-block;
    position: absolute;
    filter:invert(1);
    top: 0;
    right: 0;
    width: 21px;
    height: 100%;
    opacity: 0.25;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: center 8px;
    background-image: url('ncd-icons/ico-unsorted.svg');
    transition: opacity 0.2s;
  }
  .quickorder-table th:hover .col-sort-icon {
    opacity: 0.45;
  }
  .quickorder-table th.sorted-asc .col-sort-icon {
    opacity: 1;
    background-image: url('ncd-icons/ico-ascending.svg');
  }
  .quickorder-table th.sorted-desc .col-sort-icon {
    opacity: 1;
    background-image: url('ncd-icons/ico-descending.svg');
  }
  .quickorder-table .ordertable-itemname {
    color: #143e29;
    text-decoration: none;
  }
  /* filter row inputs
  .quickorder-table .filter-row th input,
  .quickorder-table .filter-row th select {
    width: 100%;
    box-sizing: border-box;
  }
  */
  .quickorder-table .filter-row th input,
  .quickorder-table .filter-row th select {
    width: 100%;
    box-sizing: border-box;
    background-color: #1E2727;
    border: none;
    font-weight: 400;
    color: #ffffff;
    padding: 5px;
  }

  .quickorder-table .filter-row th input:focus,
  .quickorder-table .filter-row th select:focus,
  .quickorder-table .filter-row th input:focus-visible,
  .quickorder-table .filter-row th select:focus-visible {
    background-color: #427740;
    outline: none;
  }
  
  /* “In Cart” input */
  .quickorder-table input.in-cart-input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px;
    border: none;
  }
  .quickorder-table input.in-cart-input:focus-visible {
    outline: none;
    border: 1px solid #7fbd61;
    margin: -1px 0  -1px -1px;
  }

  .quickorder-table .filter-row th {
    padding: 0;
  }
  .quickorder-table .filter-row th input::placeholder {
    color: #ffffff;
  }


  /* TEMP FIXES */
.quickorder-table th:nth-child(1),
.quickorder-table td:nth-child(1){
    max-width: 100px;
}

.quickorder-table th:nth-child(6),
.quickorder-table td:nth-child(6),
.quickorder-table th:nth-child(7),
.quickorder-table td:nth-child(7),
.quickorder-table th:nth-child(6),
.quickorder-table td:nth-child(6),
.quickorder-table th:nth-child(8),
.quickorder-table td:nth-child(8) {
    max-width: 100px;
    white-space: normal;
    line-break: anywhere;
}

.quickorder-table th:nth-child(9), .quickorder-table td:nth-child(9) {
    min-width: 95px;
}
.quickorder-table th:nth-child(10), .quickorder-table td:nth-child(10),
.quickorder-table th:nth-child(11), .quickorder-table td:nth-child(11) {
    min-width: 80px;
}

.quickorder-table th:nth-child(12), .quickorder-table td:nth-child(12) {
    max-width: 70px;
}

.quickorder-table th:nth-child(13), .quickorder-table td:nth-child(13) {
    max-width: 70px;
}
.container.page-title-container {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-bottom: 24px;
}
.quickorder-table th:nth-child(14), .quickorder-table td:nth-child(14) {
    max-width: 60px;
}