/**
 * Woo Yoo Expert Orders - frontend Styles
 * Version: 1.0.0
 */

.wooyoo-store-selector {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.wooyoo-store-selector h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.store-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.store-option {
    background: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.store-option:hover {
    border-color: #007cba;
    box-shadow: 0 2px 5px rgba(0,123,186,0.1);
}

.store-option.selected {
    border-color: #007cba;
    background: #f0f8ff;
}

.store-option input[type="radio"] {
    margin-right: 10px;
}

.store-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.store-address {
    font-size: 14px;
    color: #666;
}

.store-availability {
    margin-top: 10px;
    font-size: 13px;
}

.stock-available {
    color: #28a745;
}

.stock-limited {
    color: #ff9800;
}

.stock-unavailable {
    color: #dc3545;
}

/* Delivery Method Selection */
.wooyoo-delivery-method {
    margin: 20px 0;
}

.delivery-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.delivery-option {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.delivery-option:hover {
    border-color: #007cba;
}

.delivery-option.selected {
    border-color: #007cba;
    background: #f0f8ff;
}

.delivery-option i {
    font-size: 32px;
    color: #007cba;
    margin-bottom: 10px;
}

.delivery-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.delivery-description {
    font-size: 13px;
    color: #666;
}

/* Product Availability Display */
.wooyoo-product-availability {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.availability-header {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.store-stock-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-stock-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 14px;
}

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

.store-stock-name {
    color: #666;
}

.store-stock-qty {
    font-weight: 600;
}

.in-stock {
    color: #28a745;
}

.low-stock {
    color: #ff9800;
}

.out-of-stock {
    color: #dc3545;
}

/* Checkout Integration */
.wooyoo-checkout-store {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.selected-store-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-store-details h4 {
    margin: 0 0 5px;
    color: #333;
}

.selected-store-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.change-store-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.change-store-btn:hover {
    background: #005a87;
}

/* Loading States */
.wooyoo-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-options {
        grid-template-columns: 1fr;
    }
    
    .delivery-options {
        flex-direction: column;
    }
    
    .selected-store-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .change-store-btn {
        margin-top: 10px;
        width: 100%;
    }
}

/* Transfer Notice */
.transfer-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    color: #856404;
}

.transfer-notice i {
    margin-right: 8px;
    color: #ffc107;
}

/* Pickup Instructions */
.pickup-instructions {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.pickup-instructions h4 {
    margin-top: 0;
    color: #1976d2;
}

.pickup-instructions ul {
    margin: 10px 0;
    padding-left: 20px;
}

.pickup-instructions li {
    margin: 5px 0;
    color: #555;
}