.wsb {
    display: block;
    width: 100%;
    margin: 0 0 24px;
}

.wsb-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    color: #9ca3af !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.wsb-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.wsb-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: visible;
    position: relative;
}

.wsb-item-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px 0;
}

.wsb-item-photo {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #f3f4f6;
    cursor: zoom-in;
    overflow: visible;
    margin-bottom: 10px;
}

.wsb-item-photo .wsb-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.wsb-photo-ph {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.wsb-photo-ph svg {
    width: 22px;
    height: 22px;
}

.wsb-tooltip {
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    background: #f3f4f6;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s, visibility .15s;
}

.wsb-tooltip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wsb-item-photo:hover .wsb-tooltip {
    opacity: 1;
    visibility: visible;
}

.wsb-item-meta {
    flex: 1;
    min-width: 0;
    padding-bottom: 10px;
}

.wsb-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 5px;
}

.wsb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 7px;
}

.wsb-attr-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wsb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
    flex-shrink: 0;
    display: inline-block;
}

.wsb-chip {
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1px 7px;
    line-height: 1.6;
    white-space: nowrap;
}

.wsb-item-pickers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wsb-picker-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wsb-picker-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    min-width: 36px;
}

.wsb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wsb-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-width: 30px;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
    transition: background .1s, border-color .1s, color .1s;
    -webkit-tap-highlight-color: transparent;
}

.wsb-pill:hover {
    border-color: #374151;
    color: #111827;
}

.wsb-pill.wsb-active {
    background: #2d5a27;
    border-color: #2d5a27;
    color: #fff;
}

.wsb-pill.wsb-off {
    opacity: .3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.wsb-color-pill {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: var(--wsb-swatch, #fff) !important;
    background-color: var(--wsb-swatch, #fff) !important;
    border: 2px solid #e5e7eb;
    box-shadow: inset 0 0 0 2px #fff;
    color: transparent;
    position: relative;
}

.wsb-color-pill:hover {
    border-color: #9ca3af;
    color: transparent;
}

.wsb-color-pill.wsb-active {
    background: var(--wsb-swatch, #fff) !important;
    background-color: var(--wsb-swatch, #fff) !important;
    border-color: #111827;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #111827;
    color: transparent;
}

.wsb-color-pill.wsb-off {
    opacity: .28;
    text-decoration: none;
}

.wsb-color-pill.wsb-off::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 50%;
    border-top: 1.5px solid #111827;
    transform: rotate(-35deg);
}

.wsb-avail {
    font-size: 11px;
    overflow: hidden;
    max-height: 0;
    transition: max-height .2s;
    margin-top: 0;
}

.wsb-avail:not(:empty) {
    max-height: 40px;
    margin-top: 5px;
}

.wsb-stock-yes { color: #2d5a27; }
.wsb-stock-no  { color: #dc2626; }

.wsb-notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 11px;
    margin: 0 0 12px;
    line-height: 1.5;
}

.wsb-notice svg {
    flex-shrink: 0;
    color: #9ca3af;
    margin-top: 1px;
}

.wsb-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    background: #f0f5ef;
    border: 1px solid #b8d4b4;
    border-left: 4px solid #2d5a27;
    border-radius: 8px;
    font-size: 13px;
    color: #1e3d1a;
    margin: 0 0 10px;
    line-height: 1.4;
}

.wsb-btn-off {
    opacity: .45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.wsb-child-qty {
    display: inline-block;
    padding: 1px 5px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 11px;
    color: #6b7280;
}

.wsb-bundle-contents {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wsb-bundle-child {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wsb-bundle-child::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9ca3af;
    flex-shrink: 0;
    margin-left: 2px;
}

.wsb-child-q {
    font-weight: 600;
    color: #374151;
}

.wsb-child-row {
    display: none !important;
}

.wsb-bundle-contents {
    list-style: none !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px !important;
}

.wsb-bundle-contents li.wsb-bundle-child {
    list-style: none !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    padding: 1px 0 1px 10px !important;
    margin: 0 !important;
    position: relative !important;
}

.wsb-bundle-contents li.wsb-bundle-child::before {
    content: '' !important;
    position: absolute !important;
    left: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 3px !important;
    border-radius: 50% !important;
    background: #9ca3af !important;
}

.wsb-child-row {
    display: none !important;
    visibility: hidden !important;
}
