/**
 * QuantWP Side Cart - Admin Styles
 * For settings page icon selector
 */

.side-cart-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    max-width: 550px;
    margin-top: 5px;
}

.side-cart-option {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    height: 40px;
    transition: all 0.2s ease;
}

.side-cart-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.side-cart-option.selected {
    border-color: #2271b1;
    background: #2271b1;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.side-cart-option svg {
    width: 24px;
    height: 24px;
}

.side-cart-option input {
    display: none;
}

/* ── Analytics Dashboard ─────────────────────────────────── */
#quantwp-analytics-wrap {
    margin-top: 20px;
}

/* Summary cards */
#quantwp-summary-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.quantwp-summary-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px 24px;
    min-width: 180px;
    flex: 1;
}

.quantwp-card-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.quantwp-card-value {
    font-size: 28px;
    font-weight: 700;
}

/* Table wrapper */
.quantwp-table-wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.quantwp-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantwp-table-header h3 {
    margin: 0;
    font-size: 15px;
}

#quantwp-reset-btn {
    background: #d63638;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

#quantwp-reset-btn:hover {
    background: #b32d2e;
}

.quantwp-table-scroll {
    overflow-x: auto;
}

#quantwp-analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#quantwp-analytics-table thead tr {
    background: #f6f7f7;
}

#quantwp-analytics-table th {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

#quantwp-analytics-table th:nth-child(2) {
    text-align: center;
}

#quantwp-analytics-table th:nth-child(3) {
    text-align: right;
}

.quantwp-table-state {
    padding: 32px;
    text-align: center;
    color: #888;
}

.quantwp-table-error {
    color: #d63638;
}

.quantwp-row-even {
    background: #fff;
}

.quantwp-row-odd {
    background: #fafafa;
}

.quantwp-td-product {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.quantwp-product-link {
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
}

.quantwp-product-link:hover {
    text-decoration: underline;
}

.quantwp-product-id {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.quantwp-td-adds {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: 700;
}

.quantwp-td-revenue {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    color: #198038;
}

.quantwp-table-note {
    padding: 10px 16px;
    margin: 0;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #f0f0f0;
}