/* ==========================================================
   CUSTOMER-FACING KB PAGES — empty-state / card polish
   (Favourite Sellers, Customer "My Tickets")
   Added 2026-07-06. These module-controller pages keep the
   storefront chrome but got no design polish, so their empty
   states looked unfinished. Loaded via:
     - kbmarketplace layout.tpl  (favourite sellers)
     - theme override of kb_customer_ticket_container.tpl (tickets)
   Self-contained colours (no --vd vars) so it works on both.
   ========================================================== */

:root {
    --ckb-primary: #253237;
    --ckb-accent: #80b435;
    --ckb-accent-dark: #6f9e2d;
    --ckb-muted: #71808d;
    --ckb-card: #ffffff;
    --ckb-border: #e9edf2;
    --ckb-radius: 16px;
    --ckb-shadow: 0 6px 24px rgba(37, 50, 55, .07), 0 1px 3px rgba(37, 50, 55, .05);
}

/* ----------------------------------------------------------
   Shared empty-state block
   ---------------------------------------------------------- */
.ckb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 24px;
    gap: 6px;
}

.ckb-empty .ckb-empty-icon,
.ckb-empty::before {
    font-family: 'Material Icons';
    font-size: 46px;
    line-height: 1;
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128, 180, 53, .12);
    color: var(--ckb-accent-dark);
    margin-bottom: 14px;
}

.ckb-empty .ckb-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ckb-primary);
    margin: 0;
    text-transform: none;
}

.ckb-empty .ckb-empty-sub {
    color: var(--ckb-muted);
    font-size: .98rem;
    margin: 0;
}


/* ==========================================================
   1. FAVOURITE SELLERS  (CSS-only — content already carded by
      vendor-dashboard §99; only the empty <h1> needs polish)
      The empty-state h1 is the one with an inline style attr
      (populated heading has none), so [style] targets only it.
   ========================================================== */

body#module-kbmarketplace-favouritesellers .centerlftoffest h1.page-heading[style] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 52px 24px;
    margin: 0;
    border: 0 !important;
    font-weight: 700;
}

body#module-kbmarketplace-favouritesellers .centerlftoffest h1.page-heading[style]::before {
    content: '\e8d1'; /* Material Icons "storefront" codepoint (ligatures don't render in ::before) */
    font-family: 'Material Icons';
    font-size: 46px;
    line-height: 1;
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128, 180, 53, .12);
    color: var(--ckb-accent-dark);
    margin-bottom: 16px;
}

/* NB: the module markup has a typo (clas="cat-name") so target the span directly */
body#module-kbmarketplace-favouritesellers .centerlftoffest h1.page-heading[style] span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ckb-primary);
    text-transform: none;
    max-width: 440px;
    line-height: 1.5;
}


/* ==========================================================
   2. CUSTOMER "MY TICKETS"  (own template — wrapped in a card
      by the theme override + polished here)
   ========================================================== */

body#module-kbmarketplace-customertickets #wrapper {
    background-color: #f5f7fa !important;   /* the module template forced white; keep the soft canvas */
}

.ckb-page {
    max-width: 940px;
    margin: 24px auto 40px;
    background: var(--ckb-card);
    border-radius: var(--ckb-radius);
    box-shadow: var(--ckb-shadow);
    padding: 30px 34px;
}

.ckb-tickets #kb_customer_table > h1,
.ckb-tickets h1.small_heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ckb-primary);
    margin: 0 0 18px;
}

/* the "no tickets" alert → turn the bare alert into a clean empty state */
.ckb-tickets .alert,
.ckb-tickets p.alert {
    background: #f8fafb;
    border: 1px solid var(--ckb-border);
    border-radius: 12px;
    color: var(--ckb-muted);
    padding: 40px 24px;
    text-align: center;
    font-size: 1rem;
    margin: 8px 0 0;
}

.ckb-tickets .alert::before {
    content: '\e638'; /* Material Icons "confirmation_number" codepoint */
    display: block;
    font-family: 'Material Icons';
    font-size: 44px;
    color: var(--ckb-accent-dark);
    margin: 0 auto 12px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: rgba(128, 180, 53, .12);
}

/* ticket table (populated) — clean, borderless, uppercase head */
.ckb-tickets .kbmpss-table-list {
    width: 100%;
    border-collapse: collapse;
}

.ckb-tickets .kbmpss-table-list th {
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--ckb-muted);
    font-weight: 700;
    padding: 12px 10px;
    border-bottom: 2px solid var(--ckb-border);
    text-align: left;
}

.ckb-tickets .kbmpss-table-list td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--ckb-border);
    color: var(--ckb-primary);
}

@media (max-width: 767px) {
    .ckb-page {
        margin: 16px 12px 28px;
        padding: 22px 18px;
    }
}
