/* Base Sidebar Styles (defaults match user's original) */



body #wcpf-sidebar {
     background: var(--wfs-sidebar-bg, #fff) !important;
    border-radius: var(--wfs-sidebar-radius, 12px) !important;
    width: var(--wfs-sidebar-width, 400px) !important;
    color: var(--wfs-text, #000) !important;
    border: 1px solid var(--wfs-sidebar-border, #ddd) !important;
    position: fixed !important;
    top: 0 !important;
    right: -400px !important;
    width: var(--wfs-sidebar-width, 400px) !important;
    height: 100% !important;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2) !important;
    transition: transform 0.3s ease-in-out, right 0.3s ease-in-out, left 0.3s ease-in-out, bottom 0.3s ease-in-out !important;
    z-index: 99999 !important;
    padding: 20px !important;
    /*color: var(--wfs-text, #000) !important;*/
    transform: translateX(0);
}


/* Hidden states by position */
body #wcpf-sidebar.wfs-pos-right { right: 0 !important; transform: translateX(100%); }
body #wcpf-sidebar.wfs-pos-left  { left: 0 !important; transform: translateX(-100%); right: auto !important; }
body #wcpf-sidebar.wfs-pos-bottom{ left: 0 !important; right: 0 !important; width: 100% !important; height: 45% !important; top: auto !important; bottom: 0 !important; transform: translateY(100%); }

/* When open */
body #wcpf-sidebar.open.wfs-pos-right { transform: translateX(0); }
body #wcpf-sidebar.open.wfs-pos-left  { transform: translateX(0); }
body #wcpf-sidebar.open.wfs-pos-bottom{ transform: translateY(0); }

body #wcpf-sidebar .wcpf-sidebar-content {
    height: 100% !important;
    overflow-y: auto !important;
}

.wcpf-close {
    cursor: pointer;
    font-size: 18px;
    color: #444;
    margin-right: 10px;
    transition: color 0.2s ease;
}

.wcpf-close:hover {
    color: #000;
}

.wcpf-header .price {
    font-size: 16px;
    font-weight: 600;
}

.wcpf-header .delivery {
    font-size: 14px;
    color: #777;
}

#wcpf-product-name { margin-top: 0; }

/* Variation grid / boxes */
.wcpf-variation-grid { margin-bottom: 15px; }
.variation-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 56px;
    border: 1px solid var(--wfs-box-border, #ccc);
    border-radius: 6px;
    background: var(--wfs-box-bg, #fff);
    cursor: pointer;
    text-align: center;
    user-select: none;
}
.variation-box .label { font-size: 13px; }
.variation-box .stock-status { font-size: 11px; margin-top: 2px; color: var(--wfs-stock-in, green); }
.variation-box.selected {
    border-color: var(--wfs-box-selected-border, #007cba);
    background: var(--wfs-box-selected-bg, #e6f2ff);
}
.variation-box.out-of-stock {
    color: var(--wfs-stock-out, #999);
    border-color: #ccc;
    cursor: not-allowed;
}
.variation-box.out-of-stock .stock-status { color: var(--wfs-stock-out, #999); }

/* Confirm button */
#wcpf-add-to-cart.button {
    background: var(--wfs-btn-bg, #2271b1);
    color: var(--wfs-btn-text, #fff);
    border: none;
}
#wcpf-add-to-cart.button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    body #wcpf-sidebar {
        width: 100% !important;
        right: 0 !important;
        left: 0 !important;
    }
}
