/**
 * WC Smart Bundles – Frontend styles.
 *
 * @package WCSmartBundles
 */

.wcsb-bundle-form {
    max-width: 100%;
}

.wcsb-bundle-items {
    margin-bottom: 24px;
}

.wcsb-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
    transition: background-color 0.2s ease;
}

.wcsb-item:last-child {
    border-bottom: none;
}

.wcsb-item:hover {
    background-color: #fafafa;
}

.wcsb-item-thumb {
    flex: 0 0 70px;
    width: 70px;
}

.wcsb-item-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.wcsb-item-details {
    flex: 1;
    min-width: 0;
}

.wcsb-item-title {
    margin: 0 0 8px;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
}

.wcsb-item-title label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wcsb-variations {
    margin: 8px 0;
}

.wcsb-variation-field {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcsb-variation-field label {
    font-size: 0.875em;
    font-weight: 600;
    min-width: 80px;
}

.wcsb-variation-field select {
    flex: 1;
    max-width: 200px;
}

.wcsb-qty-text {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-top: 4px;
}

.wcsb-not-available {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px 16px;
    border-radius: 6px;
    color: #856404;
}

.wcsb-child-indent {
    color: #999;
    font-size: 0.85em;
}

.wcsb-optional::before {
    content: '';
    display: block;
    width: 3px;
    border-radius: 2px;
    background: #ddd;
    align-self: stretch;
    margin-right: -8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .wcsb-item {
        gap: 10px;
    }

    .wcsb-item-thumb {
        flex: 0 0 50px;
        width: 50px;
    }
}