/* Cesta Presupuesto Styles */

/* Botón Añadir */
.bezares-add-to-cart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bezares-add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bezares-quantity-input {
    width: 60px;
    padding: 5px;
}
.bezares-product-unavailable-badge {
    display: inline-block;
    padding: 5px 10px;
    background: #ccc;
    color: #666;
    border-radius: 4px;
}
.bezares-message-container {
    font-size: 0.9em;
    margin-top: 5px;
}
.bezares-message-container.success { color: green; }
.bezares-message-container.error { color: red; }

/* Cesta Widget */
.bezares-cart-wrapper {
    position: relative;
}
.bezares-cart-toggle {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
}
.bezares-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Ensure visibility */
}
.bezares-cart-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 15px;
}
.bezares-cart-wrapper.open .bezares-cart-content,
.bezares-cart-detailed .bezares-cart-content {
    display: block;
}
.bezares-cart-detailed .bezares-cart-content {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
}
.bezares-cart-sticky {
    position: fixed;
    z-index: 1000;
}
.bezares-cart-top-right { top: 20px; right: 20px; }
.bezares-cart-top-left { top: 20px; left: 20px; }
.bezares-cart-bottom-right { bottom: 20px; right: 20px; }
.bezares-cart-bottom-left { bottom: 20px; left: 20px; }

/* Formulario Presupuesto */
.bezares-budget-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.bezares-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bezares-form-group input,
.bezares-form-group textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Lista Items Presupuesto (Widget) */
.bezares-budget-items-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}
.bezares-budget-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}
.bezares-budget-items-list li:last-child {
    border-bottom: none;
}
.bezares-budget-items-list .item-name {
    flex-grow: 1;
    font-weight: 500;
    margin-right: 10px;
}
.bezares-budget-items-list .item-qty {
    margin: 0 10px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.85em;
}
.bezares-budget-items-list .item-price {
    font-weight: bold;
    color: #333;
    min-width: 60px;
    text-align: right;
}

/* Lista Presupuestos */
.bezares-budget-table {
    width: 100%;
    border-collapse: collapse;
}
.bezares-budget-table th,
.bezares-budget-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.bezares-login-required {
    padding: 20px;
    background: #f9f9f9;
    text-align: center;
    border: 1px solid #eee;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}
