/* Bin Store Configurator Frontend Styles */

.bsc-configurator {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
}

.bsc-configurator-content {
    width: 1370px; 
    height: 550px;
    -webkit-transform-origin: top left;  /* Left alignment */
            transform-origin: top left;
    margin: 0;
    position: relative;
    /* Scale will be applied dynamically by JavaScript (width only) */
}


/* Large Desktop - Full height */
@media (min-width: 1400px) {
    .bsc-configurator-content {
        height: 550px;
        margin-bottom: -120px;
    }
}

/* Desktop */
@media (max-width: 1399px) and (min-width: 1200px) {
    .bsc-configurator-content {
        height: 590px;
        margin-bottom: -160px;
    }
}

/* Laptop */
@media (max-width: 1199px) and (min-width: 992px) {
    .bsc-configurator-content {
        height: 450px;
        margin-bottom: -50px;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) and (min-width: 768px) {
    .bsc-configurator-content {
        height: 390px;
        margin-bottom: -160px;
    }
}

/* Tablet Portrait */
@media (max-width: 767px) and (min-width: 576px) {
    .bsc-configurator-content {
        height: 380px;
        margin-bottom: -210px;
    }
}

/* Mobile Large */
@media (max-width: 575px) and (min-width: 480px) {
    .bsc-configurator-content {
        height: 420px;
        margin-bottom: -250px;
    }
}

/* Mobile Medium */
@media (max-width: 479px) and (min-width: 380px) {
    .bsc-configurator-content {
        height: 420px;
        margin-bottom: -250px;
    }
}

/* Mobile Small */
@media (max-width: 379px) {
    .bsc-configurator-content {
        height: 390px;
        margin-bottom: -280px;
    }
}

.bsc-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

.bsc-error {
    color: #d32f2f;
    background: #ffebee;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Bay Container */
.bsc-bay-container {
    position: relative;
    min-height: 300px;
    margin-bottom: 30px;
    padding: 20px 0;
    padding-left: 100px; /* Space for Y axis arrow + gap */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-transform-origin: left top;
            transform-origin: left top;
    width: 1200px; /* Fixed width - scaling handled by parent transform */
}

/* Dimension Axis Arrows */
.bsc-axis-wrapper {
    position: relative;
    width: 1200px; /* Fixed width - scaling handled by parent transform */
    min-height: 300px;
    margin-bottom: 30px;
}

.bsc-axis-arrow {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.bsc-axis-y {
    left: 10px; /* Small gap from left edge */
    top: 58px;
    bottom: 40px;
    width: 94px;
    background-position: center center;
    z-index: 150; /* Above bins */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.bsc-axis-z {
    /* Position will be set dynamically by JavaScript */
    top: 3px;
    width: 80px;
    height: 73px;
    background-position: center center;
    z-index: 1001; /* Above bins */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

/* Dimension labels for Y and Z axes */
.bsc-dimension-label {
    position: absolute;
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
}

.bsc-axis-y .bsc-dimension-label {
    left: 7%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%) rotate(-90deg);
            transform: translate(-50%, -50%) rotate(-90deg);
}

.bsc-axis-z .bsc-dimension-label {
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}

.bsc-axis-x-left {
    bottom: 5px;
    width: 40px;
    height: 40px;
    background-position: center center;
    z-index: 50;
}

.bsc-axis-x-right {
    bottom: 5px;
    width: 40px;
    height: 40px;
    background-position: center center;
    z-index: 50;
}

/* Add Bay Block */
.bsc-add-bay-block {
    position: absolute;
    left: 0;
    bottom: 46px;
    width: 200px;
    height: 250px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    opacity: 0;
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    -webkit-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: all;
}

.bsc-add-bay-block.bsc-visible {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
}

.bsc-add-bay-button {
    border: none;
    width: 80px;
    height: 80px;
    margin-left: 66px;
    margin-top: 55px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.bsc-add-bay-button:hover {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
}

.bsc-add-bay-button:active {
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
}

.bsc-add-bay-button.bsc-hover {
    -webkit-animation: bsc-pulse 0.6s ease-in-out infinite;
            animation: bsc-pulse 0.6s ease-in-out infinite;
}

@-webkit-keyframes bsc-pulse {
    0%, 100% {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.15);
                transform: scale(1.15);
    }
}

@keyframes bsc-pulse {
    0%, 100% {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.15);
                transform: scale(1.15);
    }
}

.bsc-add-bay-button img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.bsc-plus-icon {
    font-size: 48px;
    color: white;
    font-weight: 300;
    line-height: 1;
}

.bsc-button-text {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

/* Bay Styles */
.bsc-bay {
    position: absolute;
    bottom: 50px;
    height: 240px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch; /* Make all parts same height */
    -webkit-transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
}

.bsc-bay.bsc-animating {
    opacity: 1;
    -webkit-animation: bsc-bay-enter 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
            animation: bsc-bay-enter 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.bsc-bay.bsc-visible {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
}

.bsc-bay.bsc-removing {
    -webkit-animation: bsc-bay-remove 0.3s ease forwards;
            animation: bsc-bay-remove 0.3s ease forwards;
}

@-webkit-keyframes bsc-bay-enter {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.8);
                transform: scale(0.8);
    }
    100% {
        opacity: 1;
        -webkit-transform: scale(1);
                transform: scale(1);
    }
}

@keyframes bsc-bay-enter {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.8);
                transform: scale(0.8);
    }
    100% {
        opacity: 1;
        -webkit-transform: scale(1);
                transform: scale(1);
    }
}

@-webkit-keyframes bsc-bay-remove {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(0);
                transform: scale(0);
    }
}

@keyframes bsc-bay-remove {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(0);
                transform: scale(0);
    }
}

/* Bay Parts - Three part structure */
.bsc-bay-part {
    height: 100%;
    background-size: 100% 100%; /* Stretch to fill completely */
    background-repeat: no-repeat;
    background-position: center center;
    -ms-flex-item-align: stretch;
        align-self: stretch; /* Ensure full height */
}

.bsc-bay-left {
    width: 15%;
    min-width: 80px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.bsc-bay-middle {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    margin-left: -1px; /* Overlap left edge by 1px */
    margin-right: -1px; /* Overlap right edge by 1px */
    position: relative;
    z-index: 1; /* Ensure middle sits above left and right */
}

.bsc-bay-right {
    width: 15%;
    min-width: 69px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

/* Bay Selector */
.bsc-bay-selector {
    position: absolute;
    top: 290px; 
    left: 125px;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    z-index: 100;
    width: auto;
    min-width: 120px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;  /* Align items to top */
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;  /* Keep dropdowns aligned at top */
    gap: 6px;
}

.bsc-bay-size-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 100px;
    width: 96%;
    margin-left: 3px;
    height: 38px;  /* Fixed height for consistent alignment */
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.bsc-bay-size-select:focus {
    outline: none;
    border-color: #4CAF50;
    -webkit-box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Shelf Option Styling */
.bsc-shelf-option {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px; 
    font-weight: 500;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-left: 3px;
    width: 96%;
}

.bsc-shelf-option:hover {
    border-color: #4CAF50;
    background: #f9f9f9;
}

.bsc-shelf-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.bsc-shelf-option label {
    cursor: pointer;
    margin: 0;
    color: #333;
    font-size: 12px;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

/* Remove Bay Button */
.bsc-remove-bay {
    position: absolute;
    top: 15px;
    right: 80px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f44336;
    color: white;
    border: 2px solid white;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 200;
}

.bsc-bay:hover .bsc-remove-bay {
    opacity: 1;
}

.bsc-remove-bay:hover {
    background: #d32f2f;
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
}

.bsc-remove-bay:active {
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
}

/* Hide remove button on mobile */
@media (max-width: 991px) {
    .bsc-remove-bay {
        display: none !important;
    }
}

/* Dimensions */
.bsc-dimensions {
    padding: 0px;
    background: #f5f5f5;
    border-radius: 8px;
    /* Width and position controlled by JavaScript */
}

.bsc-dimension-x {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.bsc-dimension-value {
    margin-top: -110px;
    padding: 10px 20px;
    color: #6c757d;
}

/* Product Options */
.bsc-product-options {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.bsc-product-form {
    max-width: 600px;
}

.bsc-attribute-group{
    margin-top: 20px;
}
/* Quantity and Add to Cart Container */
.bsc-cart-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    margin-top: 20px;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
}

.bsc-quantity-group {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 80px;
            flex: 0 0 80px;
}

.bsc-quantity-group .bsc-quantity {
    width: 100%;
    height: 52px;
    padding: 0 8px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bsc-attribute-group label,
.bsc-quantity-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

/* Variation Image Thumbnails */
.bsc-variation-images {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
    margin: 0px !important;
}

.bsc-variation-image-item {
    list-style: none;
    margin: 0;
    outline: none;
    padding: 0;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
        align-items: center;
    background-color: #fff;
    -webkit-box-shadow: 0 0 0 1px #a8a8a8;
            box-shadow: 0 0 0 1px #a8a8a8;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 60px;
    -ms-flex-pack: center;
        justify-content: center;
    margin: 4px;
    padding: 2px;
    position: relative;
    width: 60px;
    border-radius: 50%;
}

.bsc-variation-image-item:hover {
    -webkit-box-shadow: 0 0 0 2px #666;
            box-shadow: 0 0 0 2px #666;
}

.bsc-variation-image-item.selected {
    -webkit-box-shadow: 0 0 0 2px #4CAF50;
            box-shadow: 0 0 0 2px #4CAF50;
}

.bsc-variation-image-item.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.bsc-variation-image-item.disabled img {
    opacity: 0.3;
}

.bsc-variation-image-item.disabled .bsc-variation-item-contents:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 3;
}

.bsc-variation-image-item.disabled .bsc-variation-item-contents:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 70%;
    content: " ";
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    background-color: transparent;
    border-radius: 50%;
    z-index: 4;
}

.bsc-variation-image-item .bsc-variation-item-contents {
    position: relative;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.bsc-variation-image-item.selected:not(.disabled) .bsc-variation-item-contents:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 60%;
    content: " ";
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    background-color: rgba(76, 175, 80, 0.7);
    border-radius: 50%;
    z-index: 2;
}

.bsc-variation-image-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 50%;
}

.bsc-variation-image-item .bsc-variation-text {
    font-size: 12px;
    text-align: center;
    word-break: break-word;
}

/* Unavailable variation styles */
.bsc-variation-image-item.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.bsc-variation-image-item.unavailable:hover {
    -webkit-transform: none;
            transform: none;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bsc-variation-image-item.unavailable .bsc-variation-item-contents:after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    color: #d32f2f;
    z-index: 3;
    text-shadow: 0 0 3px white, 0 0 3px white, 0 0 3px white;
}

/* Disabled dropdown options */
select.bsc-variation-select option:disabled {
    color: #999;
    background-color: #f5f5f5;
}

/* Tooltip styles */
.bsc-variation-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    padding: 6px 12px;
    background-color: #333;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
    z-index: 10000;
}

.bsc-variation-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.bsc-variation-image-item:hover .bsc-variation-tooltip {
    opacity: 1;
}

/* Fallback for attributes without images */
.bsc-variation-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.bsc-variation-select:focus,
.bsc-quantity:focus {
    outline: none;
    border-color: #4CAF50;
    -webkit-box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.bsc-quantity {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Price Display */
.bsc-price-group {
    margin: 25px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.bsc-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.bsc-price-label {
    font-weight: 400;
    font-size: 16px;
}

.bsc-price-value {
    color: #4CAF50;
}

.bsc-price-breakdown {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.bsc-breakdown-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 2px 0;
}

.bsc-base-price,
.bsc-bay-cost,
.bsc-shelf-cost {
    margin: 0;
}

.bsc-base-price {
    font-weight: 600;
    color: #333;
}

.bsc-bay-cost {
    color: #666;
}

.bsc-shelf-cost {
    color: #4CAF50;
}

/* Add to Cart Button */
.bsc-add-to-cart {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 15px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    height: auto;
    min-height: 52px;
}

.bsc-add-to-cart:hover {
    background: #45a049;
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.bsc-add-to-cart:active {
    -webkit-transform: translateY(0);
            transform: translateY(0);
}

.bsc-add-to-cart:disabled,
.bsc-add-to-cart.disabled {
    background: #ccc;
    cursor: not-allowed;
    -webkit-transform: none;
            transform: none;
    opacity: 0.6;
}

.bsc-add-to-cart.disabled:hover {
    background: #ccc;
    -webkit-transform: none;
            transform: none;
    -webkit-box-shadow: none;
            box-shadow: none;
}

/* Mobile Bay Overlays - Hide dropdowns and show text on bins */
@media (max-width: 991px) {
    /* Hide bay dropdowns on mobile */
    .bsc-bay-item .bsc-bay-controls {
        display: none !important;
    }
    
    /* Bay text overlay */
    .bsc-bay-text-overlay {
        position: absolute;
        top: 59%;
        left: 65%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        padding: 4px 6px;
        z-index: 200;
        pointer-events: none;
        text-align: center;
        max-width: 90%;
    }
    
    .bsc-bay-text-overlay-size {
        font-size: 35px;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
        word-wrap: break-word;
        text-shadow: 4px 3px 0px #414141;
    }
    
    .bsc-bay-text-overlay-shelf {
        font-size: 25px;
        line-height: 1.1em;
        font-weight: 600;
        color: #fff;
        margin-top: 4px;
        text-shadow: 4px 3px 0px #414141;
    }
    
    /* Edit icon above bay */
    .bsc-bay-edit-icon {
        position: absolute;
        top: 15px;
        left: 55%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        width: 34px;
        height: 34px;
        z-index: 201;
        cursor: pointer;
        opacity: 0.7;
        -webkit-transition: opacity 0.3s ease;
        transition: opacity 0.3s ease;
    }
    
    .bsc-bay-edit-icon:hover {
        opacity: 1;
    }
    
    .bsc-bay-edit-icon img {
        width: 100%;
        height: 100%;
    }
}

/* Mobile dimensions display below configurator */
@media (max-width: 991px) {
    .bsc-axis-z{
        display: none !important;
    }
    .bsc-mobile-dimensions {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-pack: distribute;
            justify-content: space-around;
        padding: 15px 10px;
        background: #f5f5f5;
        border-radius: 8px;
        margin-top: 20px;
    }
    
    .bsc-mobile-dimension-item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 5px;
    }
    
    .bsc-mobile-dimension-icon {
        display: none;
        width: 24px;
        height: 24px;
        opacity: 0.7;
    }
    
    .bsc-mobile-dimension-icon img {
        width: 100%;
        height: 100%;
        -o-object-fit: contain;
           object-fit: contain;
    }
    
    .bsc-mobile-dimension-label {
        font-size: 12px;
        color: #666;
        font-weight: 600;
    }
    
    .bsc-mobile-dimension-value {
        font-size: 16px;
        color: #333;
        font-weight: 700;
    }
}

/* Hide on desktop */
@media (min-width: 992px) {
    .bsc-mobile-dimensions {
        display: none;
    }
}

/* Mobile popup menu */
.bsc-bay-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 90%;
    width: 300px;
    display: none;
    pointer-events: auto;
}

.bsc-bay-popup.active {
    display: block;
}

.bsc-bay-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    pointer-events: auto;
}

.bsc-bay-popup-overlay.active {
    display: block;
}

.bsc-bay-popup-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.bsc-bay-popup-content {
    padding: 10px 0;
}

.bsc-bay-popup-option {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.bsc-bay-popup-option:hover {
    background: #f8f8f8;
}

.bsc-bay-popup-option:last-child {
    border-bottom: none;
}

.bsc-bay-popup-check {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.bsc-bay-popup-check img {
    width: 100%;
    height: 100%;
}

.bsc-bay-popup-label {
    font-size: 16px;
    color: #333;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
}

.bsc-bay-popup-separator {
    height: 8px;
    background: #f0f0f0;
    margin: 10px 0;
}

.bsc-bay-popup-footer {
    padding: 15px 20px;
}

.bsc-bay-popup-ok {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: background 0.3s ease;
    transition: background 0.3s ease;
}

.bsc-bay-popup-ok:hover {
    background: #45a049;
}

.bsc-bay-popup-ok:active {
    transform: scale(0.98);
    -webkit-transform: scale(0.98);
}

/* Tutorial hand animation */
.bsc-tutorial-hand {
    position: absolute;
    left: 100px;
    width: 120px;
    height: 120px;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
}

.bsc-tutorial-hand.active {
    opacity: 1;
    -webkit-animation: bsc-hand-float 1s ease-in-out forwards;
            animation: bsc-hand-float 1s ease-in-out forwards;
}

.bsc-tutorial-hand img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

@keyframes bsc-hand-float {
    0% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        -webkit-transform: translateY(-40px);
                transform: translateY(-40px);
    }
    60% {
        -webkit-transform: translateY(-35px) scale(0.95);
                transform: translateY(-35px) scale(0.95);
    }
    70% {
        -webkit-transform: translateY(-40px) scale(1);
                transform: translateY(-40px) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateY(-40px);
                transform: translateY(-40px);
        opacity: 0;
    }
}

@-webkit-keyframes bsc-hand-float {
    0% {
        -webkit-transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        -webkit-transform: translateY(-40px);
    }
    60% {
        -webkit-transform: translateY(-35px) scale(0.95);
    }
    70% {
        -webkit-transform: translateY(-40px) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateY(-40px);
        opacity: 0;
    }
}

/* Loading Animation */
@-webkit-keyframes bsc-spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes bsc-spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.bsc-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    -webkit-animation: bsc-spin 1s linear infinite;
            animation: bsc-spin 1s linear infinite;
    margin-left: 10px;
}

/* Example Image Container */
.bsc-example-image-container {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.bsc-example-image-heading {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding: 0;
}

.bsc-example-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* From Price Label */
.bsc-price-from {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    font-style: italic;
}

.bsc-price-from + .bsc-price-value {
    /* Slightly smaller when showing "From" */
}

/* Mobile adjustments for example image */
@media (max-width: 767px) {
    .bsc-example-image-container {
        margin: 15px 0;
        padding: 12px;
    }

    .bsc-example-image-heading {
        font-size: 14px;
        margin-bottom: 10px;
    }
}