/*************************************************************/

/* =========================
   PRODUCT ROW LAYOUT
========================= */

.wqv-wholesale-row {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.wqv-wholesale-left {
    flex: 0 0 180px;
}

.wqv-wholesale-left img {
    width: 100%;
    height: auto;
    display: block;
}

.wqv-wholesale-description {
    flex: 1;
    min-width: 0;
}

.wqv-wholesale-right {
    flex: 0 0 600px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =========================
   IMAGE
========================= */

.wqv-wholesale-image-wrap {
    height: 250px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.wqv-wholesale-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wqv-wholesale-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* =========================
   TABLE / GRID SYSTEM
========================= */

.wqv-wholesale-header-row,
.wqv-wholesale-variation-row,
.wqv-wholesale-product-total {
    display: grid;
    grid-template-columns: 1fr 100px 100px 100px 100px;
    gap: 10px;
    align-items: center;


}

/* HEADER */
.wqv-wholesale-header-row {
    font-weight: 600;
    margin-bottom: 8px;
    font-size:0.9em;
}

.wqv-wholesale-header:nth-child(2),
.wqv-wholesale-header:nth-child(3),
.wqv-wholesale-header:nth-child(4) {
    text-align: center;
}

.wqv-wholesale-header:nth-child(5) {
    text-align: right;
}

/* VARIATIONS */
.wqv-wholesale-variation-row input {
    height: 20px;
    width: 60px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    justify-self: center;
}

.wqv-wholesale-variation-price {
    text-align: center;
}

.wqv-wholesale-line-total {
    text-align: right;
}

/* =========================
   PRODUCT TOTAL
========================= */

.wqv-wholesale-product-total {
    margin-top: 10px;
    padding-top: 10px;
}

.wqv-wholesale-product-total-group {
    grid-column: 3 / 5;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #000;
    padding-top: 5px;
}

/* =========================
   FOOTER BUTTON
========================= */

.wqv-wholesale-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.wqv-wholesale-verify {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
}

.wqv-wholesale-complete {
    background: #fff;
    border:1px solid black !important;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    margin-left:33%;
}
/* =========================
   MATRIX (VERIFY VIEW)
========================= */

.wqv-wholesale-matrix {
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.wqv-wholesale-matrix {
    overflow-x: auto;
    width: 100%;
}

.wqv-matrix-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 140px;
    min-width: max-content;
    align-items: center;
    font-size:12px;
}

.wqv-matrix-header {
    font-weight: 600;
    background: #000000;
    color:white;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 140px;
    min-width: max-content;
}


.wqv-matrix-cell {
    padding: 10px;
    border-right: 1px solid #eee;
}

.wqv-matrix-product {
    width: 220px;
    min-width: 220px;
    font-weight: bold;
    word-break: break-word;
}



/* =========================
   VERIFY LAYOUT
========================= */

.wqv-wholesale-verify-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* =========================
   FORM (FLOAT FIELDS FIXED)
========================= */

.wqv-wholesale-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wqv-field-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.wqv-float-field {
    position: relative;
    margin-bottom: 18px;
}

/* THIS becomes the actual visible box */
.wqv-float-field input, .wqv-float-field select {
    width: 100%;
    padding: 16px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background: transparent;
}

.wqv-float-field label {
    position: absolute;
    left: 10px;
    top: 18px;
    font-size: 14px;
    color: #777;
    background: #fff;
    padding: 0 5px;
    transition: 0.2s ease;
    pointer-events: none;
}

.wqv-float-field input:focus + label,
.wqv-float-field input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #333;
}
.wqv-float-field select:focus + label,
.wqv-float-field select:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #333;
}


/* =========================
   MATRIX TABLE (FIXED)
========================= */

.wqv-wholesale-matrix {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
}

/* LOCKED TABLE STRUCTURE */
.wqv-matrix-row,
.wqv-matrix-header {
    display: grid;
    /*grid-template-columns: 220px repeat(auto-fit, minmax(120px, 1fr)) 120px;*/
    grid-template-columns: 220px 65px 60px 60px 70px 120px;
    width: max-content;
    align-items: center;
    font-size: 12px;
    text-align:center;
}

.wqv-wholesale-matrix {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}






/* HEADER */
.wqv-matrix-header {
    font-weight: 600;
    background: #000;
    color: #fff;
}

/* CELLS */
.wqv-matrix-cell {
    padding: 10px;
    border-right: 1px solid #eee;
    box-sizing: border-box;
}

/* PRODUCT COLUMN */
.wqv-matrix-product {
    padding: 10px;
    font-weight: bold;
    word-break: break-word;
    text-align:left;
}

/* TOTAL COLUMN */
.wqv-matrix-total {
    text-align: right;
    font-weight: 600;
}



.wqv-wholesale-matrix {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
}

/* let JS define structure completely */
.wqv-matrix-row,
.wqv-matrix-header {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(80px, 1fr);
    align-items: center;
}

/* product column override */
.wqv-matrix-product {
    width: 220px;
    min-width: 220px;
    flex: none;
}


.wqv-matrix-header .wqv-matrix-total {
 border:none;
}
/* total column */
.wqv-matrix-total {
    text-align: right;
    font-weight: 600;
}

.wqv-wholesale-matrix {
    border: none;
}

.wqv-matrix-row {
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

.wqv-matrix-row:not(.wqv-matrix-header):nth-child(even) {
    background: #FAFAFA;
}

.wqv-matrix-total-row {
    font-weight: 700;
    background-color: #cbcbcb;
    border-top: 2px solid #000;
}

.wqv-matrix-cell.wqv-matrix-total {
    text-align: center;
}


.wqv-matrix-total-row {
    font-weight: 700;
    background: #f3f3f3;
    border-top: 2px solid #000;
}

.wqv-matrix-total-row-total-price{
    border-top:none;
}



@media (max-width: 1200px) {
    .wqv-wholesale-description {
        display: none;
    }
}
@media (max-width: 800px) {

}












/*
* WHOLESALE LOGIN FORM
*/

.is_not_wholesaler {
  display: flex;
  width: 100%;
}

.is_not_wholesaler_left {
  flex: 1;
  padding: 10px;
}

.is_not_wholesaler_right {
  flex: 1;
  padding: 10px;
  text-align: right;
}

@media (max-width: 768px) {
  .is_not_wholesaler {
    flex-direction: column;
  }

  .is_not_wholesaler_left,
  .is_not_wholesaler_right {
    width: 100%;
    text-align: left;
  }
}




















































.wqv-container-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.wqv-container-item {
    display: flex;
    flex-direction: column;
}

.wqv-container-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.wqv-container-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wqv-container-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 6px;
}

.wqv-container-input {
    padding: 10px;
}
.wqv-container-input-title, .wqv-container-total-title{
    font-size: 16px;
    font-weight:600;
}
.wqv-container-input input {
    height: 20px;
    width: 60px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    justify-self: center;
}


.wqv-container-meta {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 16px;
    border-top: 1px solid #eee;
}

.wqv-container-price {
    font-weight: 600;
}

.wqv-container-total {
    
}







.verify-containers-table {
    grid-template-columns: 220px 80px 80px 120px;
}












button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



.wholesaler-signup-form-title, .wholesaler-signup-form-subtitle{
    grid-column: 1 / -1;
    
}
.wholesaler-signup-form-title{
    margin-bottom:0;
}
.wholesaler-signup-form-subtitle{
    margin-top:0;
}



/*Login Forms for Wholesale*/

#wholesaler-signup-form {
    max-width: 750px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Each field */
#wholesaler-signup-form > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Make address span both columns */
#wholesaler-signup-form > div:has(#address) {
    grid-column: 1 / -1;
}

/* Labels */
#wholesaler-signup-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Inputs and select */
#wholesaler-signup-form input,
#wholesaler-signup-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

/* Focus */
#wholesaler-signup-form input:focus,
#wholesaler-signup-form select:focus {
    background: #fff;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

/* Placeholder */
#wholesaler-signup-form input::placeholder {
    color: #999;
}

/* Submit button */
#wholesaler-signup-form button[type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
    padding: 13px 20px;
    margin-top: 5px;

    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #222;
    border: none;
    border-radius: 6px;
    cursor: pointer;

    transition: background 0.2s, transform 0.1s;
}

#wholesaler-signup-form button[type="submit"]:hover {
    background: #444;
}

#wholesaler-signup-form button[type="submit"]:active {
    transform: translateY(1px);
}

/* Mobile */
@media (max-width: 650px) {
    #wholesaler-signup-form {
        grid-template-columns: 1fr;
        padding: 25px;
        margin: 20px auto;
    }

    #wholesaler-signup-form > div:has(#address) {
        grid-column: auto;
    }

    #wholesaler-signup-form button[type="submit"] {
        grid-column: auto;
    }
}

/*
**
**      No idea how all this below is needed for just the side wordpress form but here we are
**
**
*/

.is_not_wholesaler_left {
    max-width: 750px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Remove WordPress paragraph spacing */
.is_not_wholesaler_left #loginform p {
    margin: 0;
}

/* Space between fields */
.is_not_wholesaler_left #loginform .login-username,
.is_not_wholesaler_left #loginform .login-password {
    margin-bottom: 20px;
}

/* Labels */
.is_not_wholesaler_left #loginform label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Inputs */
.is_not_wholesaler_left #loginform input[type="text"],
.is_not_wholesaler_left #loginform input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.is_not_wholesaler_left #loginform input[type="text"]:focus,
.is_not_wholesaler_left #loginform input[type="password"]:focus {
    background: #fff;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

/* Remember me */
.is_not_wholesaler_left #loginform .login-remember {
    margin-bottom: 20px;
}

.is_not_wholesaler_left #loginform .login-remember label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.is_not_wholesaler_left #loginform #rememberme {
    margin: 0;
}

/* Login button */
.is_not_wholesaler_left #loginform .login-submit {
    margin-top: 5px;
}

.is_not_wholesaler_left #loginform #wp-submit {
    width: 100%;
    padding: 13px 20px;

    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #222;
    border: none;
    border-radius: 6px;
    cursor: pointer;

    transition: background 0.2s, transform 0.1s;
}

.is_not_wholesaler_left #loginform #wp-submit:hover {
    background: #444;
}

.is_not_wholesaler_left #loginform #wp-submit:active {
    transform: translateY(1px);
}

/*
    End of that mess
*/

.wholesale-simple-button{
    display:block;
    width:fit-content;
    margin:80 auto;
    padding:10px 20px;
    background:#333333;
    color:#fff;
    text-decoration:none;
    border-radius:4px;
    border:none;
    cursor:pointer;
}

.wholesale-simple-button:hover{
    background:#616161;
}


/* 2026-09-22 Wholesale orders list */
.wholesale_orders_list_item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 90%;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    user-select: none;
}

.wholesale_orders_list_item:hover {
    background: #333;
    color:white;
}

.wholesale_orders_list_item:active {
    background: #000;
    transform: scale(0.98);
}

/* Optional: selected state if you add a class later */
.wholesale_orders_list_item.is-active {
    background: #fff;
    color: #111;
    border: 2px solid #111;
}

.wholesale_status_requested {
    background: #c8d1e1;
    color: black;
}

.wholesale_status_confirmed {
    background: #8798ba;
    color: #FFFFFF;
}

.wholesale_status_ready_to_ship {
    background: #486290;
    color: #FFFFFF;
}

.wholesale_status_shipped {
    background: #0f2c5c;
    color: #FFFFFF;
}

.wholesale_order_icon {
    margin-left: auto;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}






























/*
 Just the confirmation after a wholesaler is ready to submit the order
*/
.wqv-verify-order-total{
    margin-top:20px;
}











































