/* .woocommerce-page.single-product table.variations {
	display: none;
} */

.woocommerce-page.single-product .single_variation_wrap,
.woocommerce-page.single-product .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_size"],
.woocommerce-page.single-product table.variations tr:first-child,
#wc-stripe-express-checkout-element {
	display: none !important;
}


#order-table { clear: both; display: table; width: 100%; margin-top: 20px; border-collapse: collapse; }

/* Header Row - Sticky */
#order-table .order-table-header {
    display: table-row;
    background: #683254;
    color: #fff;
    font-weight: bold;
    position: sticky;
    z-index: 1;
    top: 72px;
}
#order-table .order-table-header .order-table-box {
    display: table-cell;
    padding: 10px 4px;
    text-align: center;
    vertical-align: middle;
}
#order-table .order-table-header .order-table-box .size {
    font-size: 14px;
    text-transform: uppercase;
}
#order-table .order-table-header .order-table-header-color {
    min-width: 120px;
    text-align: center;
}
#order-table .order-table-header .order-table-header-swatch {
    width: 50px;
}

#order-table .order-table-row {
    background: #f1f1f1 !important;
}

/* Data Rows */
#order-table .order-table-row { display: table-row; }
#order-table .order-table-row:nth-child(2n+1) { background: #DDDDFF; }
#order-table .order-table-row .order-table-box { display: table-cell; padding: 8px 4px; position: relative; text-align: center; vertical-align: middle; }
#order-table .order-table-row .order-table-box input { padding: 10px 4px; width: 108px; border-radius: 8px; }
#order-table .order-table-row .order-table-box.order-table-color-name { text-transform: capitalize; min-width: 120px; font-weight: 700; }
#order-table .order-table-row .order-table-box.order-table-color-name span { width: 90%; text-align: center; }
#order-table .order-table-row .order-table-box .cost { font-size: 14px; display: block;    font-weight: 500; margin-top: 2px; }
#order-table .order-table-row .order-table-box.order-table-color { vertical-align: middle; width: 50px; }
#order-table .order-table-row .order-table-box.order-table-color div { width: 50px; height: 50px; }
#order-table .order-table-row .order-table-box .size-unavailable { color: #e73939; font-size: 11px; }

/* Size labels - hidden on desktop, shown on mobile */
#order-table .order-table-row .order-table-box .size-label { display: none; }

@media( min-width: 850px ) {
    #order-table .order-table-row .order-table-box { display: table-cell !important; }
    #order-table .order-table-header .order-table-box { display: table-cell !important; }
}

@media( max-width: 979px ) {
    /* Hide header on mobile - show size labels inline */
    #order-table .order-table-header { display: none !important; }
    
    #order-table .order-table-row { width: 100%; display: block !important; position: relative; cursor: pointer; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #ddd; }
    #order-table .order-table-row:after { content: ''; display: table; clear: both; }
    #order-table .order-table-row .order-table-box.order-table-color { position: absolute; padding: 0; top: 0; right: 0; height: 80px; width: 80px; }
    #order-table .order-table-row .order-table-box.order-table-color div { height: 80px; width: 80px; }
    #order-table .order-table-row .order-table-box.order-table-color-name { display: block; width: calc(100% - 90px); height: 80px; padding: 0; }
    #order-table .order-table-row .order-table-box.order-table-color-name span { position: relative; transform: none; left: 10px; top: 0; line-height: 79px; padding-left: 0; font-size: 16px; }
    
    /* Size boxes on mobile */
    #order-table .order-table-row .order-table-box:not(.order-table-color-name):not(.order-table-color) { 
        float: left; 
        width: 48%; 
        margin: 1%; 
        padding: 10px; 
        background: #f5f5f5; 
        border-radius: 8px; 
        box-sizing: border-box;
    }
    #order-table .order-table-row .order-table-box .size-label { 
        display: block; 
        font-weight: bold; 
        font-size: 14px; 
        margin-bottom: 5px; 
        text-transform: uppercase;
    }
    #order-table .order-table-row .order-table-box input { width: 100%; }
    
    /* Hide unavailable sizes on mobile */
    #order-table .order-table-row .order-table-box:has(.size-unavailable) { display: none !important; }

    #variation-add-cart span.bulk-order-updated { display: none; }

    .m-wss-theme-variation-actions button.button.m-wss-theme-variation-actions__button,
    .m-wss-theme-variation-actions button.button.m-wss-theme-variation-actions__button:hover,
    .m-wss-theme-variation-actions a.button.m-wss-theme-variation-actions__button,
    .m-wss-theme-variation-actions a.button.m-wss-theme-variation-actions__button:hover {
        margin: 0 8px 0 0;
    }

    .m-wss-theme-variation-actions button.button.single_add_to_cart_button,
    .m-wss-theme-variation-actions button.button.single_add_to_cart_button:hover,
    .m-wss-theme-variation-actions button.button.m-wss-theme-variation-actions__continue-shopping-button,
    .m-wss-theme-variation-actions button.button.m-wss-theme-variation-actions__continue-shopping-button:hover {
        margin-right: 0;
    }
}

@media( max-width: 767px ) {
    #order-table .order-table-row .order-table-box.order-table-color-name { height: 70px; }
    #order-table .order-table-row .order-table-box.order-table-color-name span { width: 100%; text-align: center; display: block; left: 0; transform: none; top: 20px; line-height: 50px; }
    #order-table .order-table-row .order-table-box.order-table-color { height: 20px; width: 100%; display: block; position: static; }
    #order-table .order-table-row .order-table-box.order-table-color div { width: 100% !important; height: 100% !important; }

    #variation-add-cart .container {
        flex-direction: column;
        justify-content: stretch;
    }

    #variation-add-cart button,
    .m-wss-theme-variation-actions button.button.m-wss-theme-variation-actions__button,
    .m-wss-theme-variation-actions button.button.m-wss-theme-variation-actions__button:hover,
    .m-wss-theme-variation-actions a.button.m-wss-theme-variation-actions__button,
    .m-wss-theme-variation-actions a.button.m-wss-theme-variation-actions__button:hover {
        float: none;
        margin: 8px 0 0;
        width: 100%;
    }

    #order-table .order-table-row .order-table-box:first-child{
        width: 100%;
    }
}

.scrubs-swatch {
    display: block;
    width: 80px !important;
    height: 80px !important;
    border: 1px solid #333;
}

.scrubs-swatch-multi {
    height: 40px !important;
}

#scrubs_go_to_cart,
#scrubs_guest_checkout,
#scrubs_go_homepage {
    display: none;
}

/* Hide variation add-cart until user scrolls to grid */
#variation-add-cart {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#variation-add-cart.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Size Toggle Buttons */
.wss-size-toggle-container {
    margin: 20px 0;
    text-align: center;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
}

.wss-size-toggle-btn {
    background: #f0f0f0;
    border: 2px solid #ddd;
    color: #333;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.wss-size-toggle-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.wss-size-toggle-btn.active {
    background: #e90a9b;
    border-color: #e90a9b;
    color: #fff;
}

/* Size visibility toggles */
/* Default: hide petite and tall sizes in both header and rows */
#order-table .order-table-header .wss-petite-size,
#order-table .order-table-header .wss-tall-size,
#order-table .order-table-row .wss-petite-size,
#order-table .order-table-row .wss-tall-size {
    display: none !important;
}

/* Show petite mode: hide regular sizes, show petite */
#order-table.show-petite .order-table-header .order-table-box:not(.wss-petite-size):not(.order-table-header-color):not(.order-table-header-swatch) {
    display: none !important;
}
#order-table.show-petite .order-table-header .wss-petite-size {
    display: table-cell !important;
}
#order-table.show-petite .order-table-row .order-table-box:not(.wss-petite-size):not(.order-table-color-name):not(.order-table-color) {
    display: none !important;
}
#order-table.show-petite .order-table-row .wss-petite-size {
    display: table-cell !important;
}

/* Show tall mode: hide regular sizes, show tall */
#order-table.show-tall .order-table-header .order-table-box:not(.wss-tall-size):not(.order-table-header-color):not(.order-table-header-swatch) {
    display: none !important;
}
#order-table.show-tall .order-table-header .wss-tall-size {
    display: table-cell !important;
}
#order-table.show-tall .order-table-row .order-table-box:not(.wss-tall-size):not(.order-table-color-name):not(.order-table-color) {
    display: none !important;
}
#order-table.show-tall .order-table-row .wss-tall-size {
    display: table-cell !important;
}

@media( max-width: 979px ) {
    #order-table.show-petite .order-table-row .order-table-box:not(.wss-petite-size):not(.order-table-color-name):not(.order-table-color) {
        display: none !important;
    }
    
    #order-table.show-petite .order-table-row .wss-petite-size {
        float: left;
        width: 48%;
        margin: 1%;
        padding: 10px;
        background: #f5f5f5;
        border-radius: 8px;
        box-sizing: border-box;
        display: none;
    }
    
    #order-table.show-tall .order-table-row .order-table-box:not(.wss-tall-size):not(.order-table-color-name):not(.order-table-color) {
        display: none !important;
    }
    
    #order-table.show-tall .order-table-row .wss-tall-size {
        float: left;
        width: 48%;
        margin: 1%;
        padding: 10px;
        background: #f5f5f5;
        border-radius: 8px;
        box-sizing: border-box;
        display: none;
    }

    .wss-size-toggle-container {
        margin: 15px 0;
    }
    
    .wss-size-toggle-btn {
        padding: 8px 15px;
        font-size: 13px;
        margin: 0 3px;
    }
}

#order-table .order-table-row .order-table-box:first-child {
    font-weight: 700;
    color: #000;
    min-width: 155px;
}


.m-wss-theme-variation-actions {
    background: #ddd;
    padding: 14px;
	position: fixed;
	text-align: right;
    z-index: 999;
    right: 0;
    bottom: 0;
    left: 0;
}

.m-wss-theme-variation-actions .totals_scrubs {
	font-weight: bold;
    margin-right: 8px;
}

.m-wss-theme-variation-actions .totals_scrubs span:first-child {
    margin-right: 16px;
}
.m-wss-theme-variation-actions .totals_scrubs span:last-child {
    margin-left: 16px;
}

.m-wss-theme-variation-actions__button {
    margin-bottom: 0;
}

.m-wss-theme-variation-actions a.button.m-wss-add-embrodery-button
 {
    background-color: #e90a9b !important;
    border-color: #e90a9b !important;
}
.m-wss-theme-variation-actions a.button.m-wss-add-embrodery-button:hover{
    background-color: #220618 !important;
    border-color: #220618 !important;

}
