@import url('fonts.css');

/* ==================================================
   Abandoned Cart Stats Page
   File: /assets/css/abandoned-cart-stats.css
   Last Edited: 2026-04-21
   ================================================== */

#amai-cart-stats-root {
    font-family: 'DM Sans', sans-serif;
    color: #1C1917;
    max-width: 1200px;
    padding: 0 0 48px;
}

#wpbody,
#wpbody-content,
#wpcontent {
    background: #F9FAFB;
}

/* -- Header -- */
.acs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 0 20px;
}

.acs-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1C1917;
    margin: 6px 0 4px;
    -webkit-text-fill-color: #1C1917;
}

.acs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #78716C;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s;
}

.acs-back-link:hover {
    color: #D97757;
}

.acs-back-icon {
    width: 14px;
    height: 14px;
}

.acs-subtitle {
    font-size: 14px;
    color: #78716C;
    margin: 0;
}

/* -- Summary bar -- */
.acs-summary-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.acs-stat-card {
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    border-radius: 14px;
    padding: 18px 22px;
    flex: 1;
    min-width: 140px;
}

.acs-stat-card--accent {
    border-color: #D97757;
}

.acs-stat-card--revenue {
    background: #D977571a;
    border-color: #D97757;
}

.acs-stat-value {
    font-family: 'Nunito', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1C1917;
    line-height: 1;
    margin-bottom: 5px;
}

.acs-stat-card--accent .acs-stat-value,
.acs-stat-card--revenue .acs-stat-value {
    color: #D97757;
}

.acs-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #78716C;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.acs-stat-sub {
    font-size: 12px;
    color: #A8A29E;
    margin-top: 3px;
}

/* -- Filters -- */
.acs-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.acs-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.acs-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 2px;
}

.acs-filter-btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #57534E;
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}

.acs-filter-btn:hover {
    border-color: #D97757;
    color: #D97757;
}

.acs-filter-btn--active {
    background: #D97757;
    border-color: #D97757;
    color: #FFFFFF;
}

.acs-filter-btn--active:hover {
    color: #FFFFFF;
}

/* -- Table -- */
.acs-table-wrap {
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    overflow: hidden;
}

.acs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.acs-table thead tr {
    background: #F9FAFB;
    border-bottom: 1.5px solid #E7DDD5;
}

.acs-table thead th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #A8A29E;
    text-align: left;
    white-space: nowrap;
}

.acs-table tbody tr {
    border-bottom: 1px solid #F5F0EC;
    transition: background 0.1s;
}

.acs-table tbody tr:last-child {
    border-bottom: none;
}

.acs-table tbody tr:hover {
    background: #FDFAF8;
}

.acs-table td {
    padding: 13px 16px;
    vertical-align: middle;
    color: #1C1917;
}

.acs-col-name {
    font-weight: 600;
}

.acs-col-email {
    color: #57534E;
}

.acs-col-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.acs-col-date {
    color: #78716C;
    white-space: nowrap;
}

/* -- Status pills -- */
.acs-status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
}

.acs-status-pill--pending {
    background: #FEF9C3;
    color: #854D0E;
}

.acs-status-pill--sent {
    background: #DBEAFE;
    color: #1D4ED8;
}

.acs-status-pill--opened {
    background: #E0F2FE;
    color: #0369A1;
}

.acs-status-pill--recovered {
    background: #D1FAE5;
    color: #065F46;
}

.acs-status-pill--cancelled {
    background: #F3F4F6;
    color: #6B7280;
}

/* -- Check / dash -- */
.acs-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #D1FAE5;
    border-radius: 50%;
    color: #065F46;
}

.acs-check svg {
    width: 12px;
    height: 12px;
}

.acs-dash {
    color: #D1C9C2;
    font-size: 16px;
}

/* -- Empty state -- */
.acs-empty {
    padding: 56px 24px;
    text-align: center;
    color: #A8A29E;
}

.acs-empty-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    color: #D1C9C2;
    display: block;
}

.acs-empty p {
    font-size: 14px;
    margin: 0;
}

/* -- Pagination -- */
.acs-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1.5px solid #E7DDD5;
    background: #F9FAFB;
}

.acs-page-info {
    font-size: 13px;
    color: #78716C;
}

.acs-page-btns {
    display: flex;
    gap: 8px;
}

.acs-page-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #57534E;
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    text-decoration: none;
    transition: all 0.15s;
}

.acs-page-btn:hover {
    border-color: #D97757;
    color: #D97757;
}

/* -- View Stats link on module card -- */
.am-cart-stats-link {
    margin-top: 12px;
    text-align: center;
}

.am-btn-stats-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #D97757;
    text-decoration: none;
    transition: opacity 0.15s;
}

.am-btn-stats-link:hover {
    opacity: 0.75;
    color: #D97757;
}