.prw-quick-order-btn.prw-loop {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    width: auto !important;
    justify-content: center;
    padding: 4px 10px !important;
    background: #e8eaf6 !important;
    color: #1a237e !important;
    border: none !important;
    border-left: 3px solid #1a237e !important;
    border-radius: 0 4px 4px 0 !important;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 11px !important;
    margin-top: 6px !important;
    position: relative;
    z-index: 10;
    box-shadow: none !important;
    transform: none !important;
}

.prw-quick-order-btn.prw-loop:hover {
    background: #c5cae9 !important;
    transform: none !important;
    box-shadow: none !important;
}

.prw-quick-order-btn.prw-loop svg {
    flex-shrink: 0;
    width: 11px !important;
    height: 11px !important;
}

.woocommerce ul.products li.product .prw-quick-order-btn.prw-loop {
    display: block !important;
    width: fit-content !important;
    margin: 6px auto 0 auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto;
}

.woocommerce ul.products li.product .prw-quick-order-btn.prw-loop:hover {
    transform: none !important;
    background: #c5cae9 !important;
}

/* Modal */
.prw-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.prw-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
}

/* Título del modal en blanco */
.prw-modal-header h3 {
    color: #ffffff !important;
}

.prw-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.prw-close:hover {
    transform: scale(1.2);
}

.prw-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Carrito vacío */
.prw-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.prw-cart-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.prw-cart-empty p {
    font-size: 16px;
    margin: 0;
}

/* Items del carrito */
.prw-cart-items {
    margin-bottom: 20px;
}

.prw-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.prw-cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #1a237e;
}

.prw-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.prw-item-details {
    flex: 1;
}

.prw-item-details h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #333;
}

.prw-item-price {
    margin: 0;
    color: #1a237e;
    font-weight: 600;
}

.prw-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 8px;
}

.prw-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.2s;
}

.prw-qty-btn:hover {
    background: #1a237e;
    color: white;
}

.prw-qty {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.prw-item-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s;
}

.prw-item-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Botón continuar comprando */
.prw-continue-shopping {
    margin-bottom: 20px;
}

.prw-continue-btn {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.prw-continue-btn:hover {
    background: #e8e8e8;
    border-color: #1a237e;
    color: #1a237e;
}

/* Total */
.prw-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Búsqueda de tiendas */
.prw-store-search-container {
    margin-bottom: 20px;
}

.prw-store-search-wrapper {
    position: relative;
}

#prw-store-search {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #1a237e;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

#prw-store-search:focus {
    outline: none;
    border-color: #0d47a1;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.prw-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a237e;
    pointer-events: none;
}

#prw-store-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: -8px;
}

.prw-store-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.prw-store-item:hover {
    background: #f5f7ff;
}

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

.prw-store-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #1a237e;
}

.prw-store-badge {
    background: #1a237e;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

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

.prw-no-results {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Tienda seleccionada */
#prw-store-selected-display {
    margin-bottom: 20px;
}

.prw-selected-store {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #1a237e;
}

.prw-selected-store-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a237e;
    margin-bottom: 8px;
}

.prw-selected-store-header svg {
    flex-shrink: 0;
}

.prw-selected-store-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a237e;
    margin-bottom: 4px;
}

.prw-selected-store-address {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.prw-change-store-btn {
    background: white;
    border: 1px solid #1a237e;
    color: #1a237e;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.prw-change-store-btn:hover {
    background: #1a237e;
    color: white;
}

/* Estado del stock */
#prw-stock-status {
    margin-bottom: 20px;
}

.prw-checking-stock {
    text-align: center;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

.prw-stock-available,
.prw-stock-pending {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
}

.prw-stock-available {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
}

.prw-stock-available svg {
    color: #4caf50;
    flex-shrink: 0;
}

.prw-stock-pending {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
}

.prw-stock-pending svg {
    color: #ff9800;
    flex-shrink: 0;
}

.prw-stock-available strong,
.prw-stock-pending strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.prw-stock-available p,
.prw-stock-pending p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.prw-out-of-stock-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.prw-out-of-stock-list small {
    color: #666;
    font-size: 12px;
}

.prw-stock-error {
    text-align: center;
    padding: 16px;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    color: #c62828;
    font-size: 14px;
}

/* Formulario */
.prw-form-group {
    margin-bottom: 16px;
}

.prw-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.prw-form-group input,
.prw-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.prw-form-group input:focus,
.prw-form-group textarea:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.prw-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.prw-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.5);
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

/* Toast de notificación */
.prw-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a237e;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transition: bottom 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.6);
}

.prw-toast.show {
    bottom: 30px;
}

.prw-toast svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .prw-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .prw-cart-item {
        flex-wrap: wrap;
    }
    
    .prw-item-quantity {
        order: 3;
        flex: 1;
    }
    
    .prw-item-remove {
        order: 4;
    }
}