/* Container */
.iphs-quick-basket-container {
    max-width: 800px;
    margin: 2em auto;
    font-family: inherit;
}

/* Table */
.iphs-quick-basket-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.iphs-quick-basket-table thead th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.iphs-quick-basket-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.iphs-quick-basket-table tbody tr:hover {
    background: #fafafa;
}

/* Input fields */
.sku-input,
.quantity-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.sku-input {
    min-width: 200px;
}

.quantity-input {
    max-width: 100px;
}

.sku-input:focus,
.quantity-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Validation states */
.sku-input.valid,
.quantity-input.valid {
    border-color: #46b450;
}

.sku-input.error,
.quantity-input.error {
    border-color: #dc3232;
}

.error-message {
    display: block;
    color: #dc3232;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

/* Remove button */
.remove-row {
    background: transparent;
    border: 1px solid #ddd;
    color: #999;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.remove-row:hover {
    background: #dc3232;
    border-color: #dc3232;
    color: #fff;
}

/* Form actions */
.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#add-to-basket-btn {
    background: #0073aa;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#add-to-basket-btn:hover {
    background: #005a87;
}

#add-to-basket-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading-indicator {
    color: #666;
    font-style: italic;
}

/* Loading state */
.iphs-quick-basket-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Results */
.iphs-quick-basket-results {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.dismiss-results {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.dismiss-results:hover {
    color: #333;
}

.results-group {
    margin-bottom: 1.5em;
}

.results-group:last-child {
    margin-bottom: 0;
}

.results-group h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.results-group.success h3 {
    color: #46b450;
}

.results-group.warning h3 {
    color: #f0b849;
}

.results-group.error h3 {
    color: #dc3232;
}

.results-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.results-group li {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: #f9f9f9;
    border-left: 4px solid;
}

.results-group.success li {
    border-left-color: #46b450;
    background: #f0f9f0;
}

.results-group.warning li {
    border-left-color: #f0b849;
    background: #fffbf0;
}

.results-group.error li {
    border-left-color: #dc3232;
    background: #fef7f7;
}

.results-group .status {
    display: inline-block;
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media (max-width: 640px) {
    .iphs-quick-basket-table {
        font-size: 14px;
    }

    .iphs-quick-basket-table thead th,
    .iphs-quick-basket-table tbody td {
        padding: 8px;
    }

    .sku-input {
        min-width: 150px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
