/**
 * Quote Cart Styles
 */

/* Container */
.aw-quote-cart-container {
    margin: 2rem 0;
}

/* Loading State */
.aw-quote-cart-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.aw-quote-cart-loading p {
    margin: 0;
}

/* Empty State */
.aw-quote-cart-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9fafb;
    border-radius: 8px;
}

.aw-quote-cart-empty p {
    margin-bottom: 1rem;
    color: #6b7280;
}

.aw-quote-cart-empty .btn {
    margin-top: 0.5rem;
}

/* Submitted State */
.aw-quote-cart-submitted {
    text-align: center;
    padding: 3rem 2rem;
    background: #ecfdf5;
    border-radius: 8px;
    border: 1px solid #10b981;
}

.aw-quote-cart-submitted p {
    margin: 0;
    color: #065f46;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Table Wrapper */
.aw-quote-cart-table-wrapper {
    overflow-x: auto;
}

/* Table */
.aw-quote-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.aw-quote-cart-table th,
.aw-quote-cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.aw-quote-cart-table th {
    background: #f3f4f6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #374151;
}

.aw-quote-cart-table tbody tr:hover {
    background: #f9fafb;
}

/* Product Column */
.aw-cart-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aw-cart-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.aw-cart-product-title {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
}

.aw-cart-product-title:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* Price Column */
.aw-cart-col-price {
    font-weight: 600;
    color: #22c55e;
}

/* Product ID Column */
.aw-cart-col-id {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Quantity Column */
.aw-quote-cart-quantity {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.aw-quote-cart-quantity:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Remove Link */
.aw-quote-cart-remove {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
}

.aw-quote-cart-remove:hover {
    text-decoration: underline;
}

/* Summary */
.aw-quote-cart-summary {
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.aw-cart-item-count {
    margin: 0;
    font-size: 1rem;
}

.aw-cart-total-items {
    color: #6b7280;
    font-weight: normal;
}

/* Clear Cart Button */
.aw-quote-cart-clear {
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    margin-left: 1rem;
}

.aw-quote-cart-clear:hover {
    color: #ef4444;
}

/* Notification Toast */
.aw-quote-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aw-quote-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.aw-quote-notification-success {
    background: #22c55e;
}

.aw-quote-notification-error {
    background: #ef4444;
}

/* Cart Count Badge (optional header element) */
.aw-quote-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
}

.aw-quote-cart-count:not(.has-items) {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .aw-quote-cart-table thead {
        display: none;
    }

    .aw-quote-cart-table,
    .aw-quote-cart-table tbody,
    .aw-quote-cart-table tr,
    .aw-quote-cart-table td {
        display: block;
    }

    .aw-quote-cart-table tr {
        padding: 1rem 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .aw-quote-cart-table td {
        padding: 0.5rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .aw-quote-cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .aw-cart-col-product {
        flex-direction: column;
        align-items: flex-start;
    }

    .aw-cart-col-product::before {
        display: none;
    }

    .aw-cart-product-info {
        width: 100%;
    }

    .aw-cart-col-remove {
        justify-content: flex-end;
    }

    .aw-cart-col-remove::before {
        display: none;
    }
}

/* Loading State */
.aw-quote-cart-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Button States */
.miracle-btn-quote:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
