/* CPQM Styles */

/* Header Icon */
.cpqm-quote-icon a {
    display: flex;
    align-items: center;
    position: relative;
}

.cpqm-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: top;
}

/* Buttons */
.add_to_quote_button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}

.add_to_quote_button:hover {
    background-color: #2980b9;
    color: white;
}

/* Quote List Table */
.cpqm-quote-list table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cpqm-quote-list th,
.cpqm-quote-list td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.cpqm-quote-list th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.cpqm-remove-btn {
    color: #e74c3c;
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
    line-height: 1;
}

.cpqm-remove-btn:hover {
    color: #c0392b;
}

/* Toast Notification */
#cpqm-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

#cpqm-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Hide standard elements on quote-only pages as fallback */
.cpqm-quote-only form.cart,
.cpqm-quote-only .quantity,
.cpqm-quote-only .single_add_to_cart_button:not(.add_to_quote_button),
.cpqm-quote-only .price,
.cpqm-quote-only .amount {
    display: none !important;
}