/* ==========================================================================
   EcoPerks Rewards Portal — eco-shop.css
   Mobile-first responsive styles
   ========================================================================== */

/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --llv-navy:   #1B2A4A;
  --llv-gold:   #A3CF5E;
  --ep-warm:    #B8963E;
  --llv-white:  #FFFFFF;
  --llv-lgrey:  #F5F5F5;
  --llv-border: #E0E0E0;
  --llv-text:   #333333;
  --llv-muted:  #777777;
  --llv-green:  #A3CF5E;
  --llv-red:    #C0392B;
  --llv-radius: 8px;
  --llv-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ─── A-Z Directory ──────────────────────────────────────────────────────────── */
.llv-shop-directory {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* A-Z Nav */
.llv-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
  padding: 12px 0;
  border-bottom: 2px solid var(--llv-gold);
}

.llv-az-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--llv-border);
  border-radius: 4px;
  background: var(--llv-white);
  color: var(--llv-navy);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.llv-az-nav__btn:hover,
.llv-az-nav__btn--active {
  background: var(--llv-navy);
  color: var(--llv-white);
  border-color: var(--llv-navy);
  text-decoration: none;
}
.llv-az-nav__btn--disabled {
  color: #ccc;
  border-color: #eee;
  cursor: default;
  pointer-events: none;
}
.llv-az-nav__btn--all {
  width: auto;
  padding: 0 12px;
}

/* Merchant grid */
.llv-merchant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 600px) {
  .llv-merchant-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .llv-merchant-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .llv-merchant-grid { grid-template-columns: repeat(5, 1fr); }
}
/* Override for custom cols shortcode param */
.llv-merchant-grid[data-cols="4"] { --cols: 4; }
.llv-merchant-grid[data-cols="3"] { --cols: 3; }

/* Merchant tile */
.llv-merchant-tile {
  border: 1px solid var(--llv-border);
  border-radius: var(--llv-radius);
  background: var(--llv-white);
  padding: 16px 12px 12px;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.llv-merchant-tile:hover {
  box-shadow: var(--llv-shadow);
  transform: translateY(-2px);
}

.llv-merchant-tile__logo {
  width: 100%;
  max-height: 52px;
  object-fit: contain;
  margin-bottom: 10px;
}
.llv-merchant-tile__logo-placeholder {
  height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--llv-lgrey);
  border-radius: 4px;
  margin-bottom: 10px;
  color: var(--llv-muted);
  font-size: 12px;
}
.llv-merchant-tile__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--llv-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.llv-merchant-tile__rate {
  font-size: 14px;
  font-weight: 700;
  color: var(--llv-gold);
  margin-bottom: 4px;
}
.llv-merchant-tile__category {
  font-size: 11px;
  color: var(--llv-muted);
  margin-bottom: 10px;
}
.llv-merchant-tile__link {
  font-size: 12px;
  color: var(--llv-navy);
  text-decoration: underline;
  margin-top: auto;
}
.llv-merchant-tile__link:hover {
  color: var(--llv-gold);
}

/* Bonus promo badge */
.llv-promo-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--ep-warm);
  color: var(--llv-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Merchant Detail Page ───────────────────────────────────────────────────── */
.llv-merchant-detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.llv-merchant-detail__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--llv-border);
  border-radius: var(--llv-radius);
  margin-bottom: 24px;
  background: var(--llv-white);
  box-shadow: var(--llv-shadow);
}
.llv-merchant-detail__logo {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
}
.llv-merchant-detail__meta {
  flex: 1;
}
.llv-merchant-detail__category {
  font-size: 13px;
  color: var(--llv-muted);
}
.llv-merchant-detail__btn-wrap {
  margin-left: auto;
}

/* Main body layout — two columns always, no media query breakpoint */
.llv-merchant-detail__body {
  display: grid !important;
  grid-template-columns: 220px 1fr !important;
  gap: 24px !important;
  align-items: start !important;
}
.llv-merchant-detail__sidebar {
  min-width: 0;
  position: sticky;
  top: 24px;
}
.llv-merchant-detail__content {
  min-width: 0;
}
.llv-merchant-detail__rate {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.llv-merchant-detail__rate span {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* Collapsible sections */
.llv-detail-panel {
  border: 1px solid var(--llv-border);
  border-radius: var(--llv-radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.llv-detail-panel__trigger {
  width: 100%;
  background: var(--llv-lgrey);
  border: none;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--llv-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.llv-detail-panel__trigger::after {
  content: '+';
  font-size: 18px;
  color: var(--llv-gold);
}
.llv-detail-panel__trigger[aria-expanded="true"]::after {
  content: '−';
}
/* Static (always-visible) panel heading — no toggle, no cursor, no icon */
.llv-detail-panel--static .llv-detail-panel__heading {
  width: 100%;
  background: var(--llv-lgrey);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--llv-navy);
}
.llv-detail-panel__body {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--llv-text);
  line-height: 1.6;
  display: none;
}
.llv-detail-panel__body.is-open {
  display: block;
}

/* Deal card */
.llv-deal-card {
  background: #F9F5EC;
  border: 1px solid #DDD0A8;
  border-radius: var(--llv-radius);
  padding: 20px;
}
.llv-deal-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--llv-navy);
  margin-bottom: 4px;
}
.llv-deal-card__dates {
  font-size: 12px;
  color: var(--llv-muted);
  margin-bottom: 16px;
}
.llv-deal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.llv-deal-card__share {
  display: flex;
  gap: 8px;
  align-items: center;
}
.llv-deal-card__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.15s;
}
.llv-deal-card__share-btn:hover { opacity: 0.8; }
.llv-deal-card__share-btn--fb    { background: #1877F2; color: #fff; }
.llv-deal-card__share-btn--email { background: #555; color: #fff; }

/* Geo restriction / availability box */
.llv-geo-warning {
  background: var(--llv-lgrey);
  border: 1px solid var(--llv-border);
  border-left: 4px solid var(--llv-green);
  border-radius: var(--llv-radius);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--llv-text);
}
.llv-geo-warning strong {
  display: block;
  margin-bottom: 4px;
  color: var(--llv-navy);
}

/* Section headers */
.llv-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--llv-navy);
  border-bottom: 2px solid var(--llv-gold);
  padding-bottom: 6px;
  margin: 24px 0 12px;
}

/* Description block */
.llv-merchant-description {
  background: var(--llv-lgrey);
  border-radius: var(--llv-radius);
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--llv-text);
}

/* Current promotion */
.llv-promo-panel {
  background: #EAF7EE;
  border: 1px solid #A8D5B5;
  border-left: 4px solid var(--llv-green);
  border-radius: var(--llv-radius);
  padding: 14px 16px;
  font-size: 14px;
  color: #1A4A2E;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.llv-shop-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}
.llv-shop-btn--shop {
  background: var(--llv-green);
  color: var(--llv-white);
}
.llv-shop-btn--shop:hover {
  background: #86C552;
  color: var(--llv-white);
  text-decoration: none;
}
.llv-shop-btn--login {
  background: var(--llv-green);
  color: var(--llv-white);
}
.llv-shop-btn--login:hover {
  background: #86C552;
  color: var(--llv-white);
  text-decoration: none;
}
.llv-shop-btn--membership {
  background: #888;
  color: var(--llv-white);
}
.llv-shop-btn--unavailable {
  background: #DDD;
  color: #999;
  cursor: not-allowed;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* Small variant — used inside merchant tiles and dashboard grids */
.llv-shop-btn--small {
  padding: 6px 14px;
  font-size: 12px;
}

/* Get this deal button (inside deal card) */
.llv-shop-btn--deal {
  background: var(--llv-navy);
  color: var(--llv-white);
  padding: 10px 20px;
  border-radius: 6px;
}
.llv-shop-btn--deal:hover {
  background: #2C4270;
  color: var(--llv-white);
  text-decoration: none;
}

/* ─── Preferred Partner / Save Button ───────────────────────────────────────── */
/* Markup order is icon-then-text; row-reverse puts the heart on the right
   without touching every template that renders this button. */
button.llv-save-btn,
a.llv-save-btn,
.llv-save-btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 42px;
  margin: 0;
  border: 1px solid var(--llv-border);
  border-radius: var(--llv-radius);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none;
  text-align: center;
  color: var(--llv-navy);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* Green fill slides in from left via background-position */
  background-image: linear-gradient(to right, var(--llv-green) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right center;
  background-color: transparent;
  box-shadow: none;
  transition: background-position 0.45s ease, border-color 0.45s ease, color 0.45s ease;
  z-index: 0;
}
/* Full-width variant for the merchant detail sidebar */
button.llv-save-btn--block,
a.llv-save-btn--block,
.llv-save-btn--block {
  display: flex;
  width: 100%;
}
button.llv-save-btn:hover,
a.llv-save-btn:hover,
.llv-save-btn:hover {
  border-color: var(--llv-green);
  color: var(--llv-green);
}
button.llv-save-btn.is-saved,
a.llv-save-btn.is-saved,
.llv-save-btn.is-saved {
  background-position: left center;
  background-color: transparent;
  border-color: var(--llv-green);
  color: var(--llv-white);
}
button.llv-save-btn.is-saved:hover,
a.llv-save-btn.is-saved:hover,
.llv-save-btn.is-saved:hover {
  color: var(--llv-white);
}
.llv-save-btn__text {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
}
.llv-save-btn__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}
.llv-save-btn__icon::before { content: '\2661'; }
.llv-save-btn.is-saved .llv-save-btn__icon::before { content: '\2665'; }

/* ─── Member Dashboard ───────────────────────────────────────────────────────── */
.llv-dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.llv-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 600px) {
  .llv-dashboard__stats { grid-template-columns: repeat(3, 1fr); }
}

.llv-stat-card {
  background: var(--llv-navy);
  color: var(--llv-white);
  border-radius: var(--llv-radius);
  padding: 20px 16px;
  text-align: center;
}
.llv-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ep-warm);
  display: block;
  margin-bottom: 4px;
}
.llv-stat-card__label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* Click history table */
.llv-clicks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.llv-clicks-table th {
  background: var(--llv-navy);
  color: var(--llv-white);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}
.llv-clicks-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--llv-border);
  vertical-align: middle;
}
.llv-clicks-table tr:nth-child(even) td { background: var(--llv-lgrey); }

.llv-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.llv-status-badge--pending   { background: #FFF3CD; color: #664D03; }
.llv-status-badge--credited  { background: #D1E7DD; color: #0A3622; }
.llv-status-badge--not_eligible { background: #F8D7DA; color: #58151C; }
.llv-status-badge--cancelled { background: #E9ECEF; color: #555; }

/* ─── Recommended widget ─────────────────────────────────────────────────────── */
.llv-recommended {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.llv-recommended__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@media (min-width: 900px) {
  .llv-recommended__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: unset;
  }
}
.llv-recommended__grid .llv-merchant-tile {
  min-width: 140px;
  flex-shrink: 0;
}

/* ─── Loading / Empty states ─────────────────────────────────────────────────── */
.llv-empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--llv-muted);
}
.llv-empty-state__icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.llv-loading {
  text-align: center;
  padding: 32px;
  color: var(--llv-muted);
  font-size: 14px;
}

/* ─── Admin styles (inline — eco-shop-admin.css is separate) ───────────────── */

/* ─── Category Navigation ────────────────────────────────────────────────────── */
.llv-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.llv-category-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--llv-border);
  background: var(--llv-white);
  color: var(--llv-navy);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.llv-category-pill:hover {
  background: var(--llv-navy);
  color: var(--llv-white);
  border-color: var(--llv-navy);
  text-decoration: none;
}
.llv-category-pill--active {
  background: var(--llv-navy);
  color: var(--llv-white);
  border-color: var(--llv-navy);
}

.llv-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 480px) {
  .llv-category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .llv-category-grid { grid-template-columns: repeat(6, 1fr); }
}

.llv-category-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px;
  border: 1px solid var(--llv-border);
  border-radius: var(--llv-radius);
  background: var(--llv-white);
  color: var(--llv-navy);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.llv-category-grid__item:hover,
.llv-category-grid__item--active {
  background: var(--llv-navy);
  color: var(--llv-white);
  border-color: var(--llv-navy);
  text-decoration: none;
}
.llv-category-grid__icon {
  font-size: 22px;
  line-height: 1;
}

/* ─── Promotions Strip ───────────────────────────────────────────────────────── */
.llv-promos-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Promo rate display on tile */
.llv-merchant-tile__rate--promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.llv-rate-promo {
  font-size: 15px;
  font-weight: 700;
  color: var(--llv-gold);
}
.llv-rate-base--struck {
  font-size: 11px;
  color: var(--llv-muted);
  text-decoration: line-through;
}
.llv-tile-promo-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--llv-green);
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.3;
}

/* Coming soon tile muted state */
.llv-merchant-tile--coming-soon {
  opacity: 0.6;
  pointer-events: none;
}
.llv-merchant-tile__logo--muted {
  filter: grayscale(100%);
  opacity: 0.5;
}

/* ─── Related Partners ───────────────────────────────────────────────────────── */
.llv-related-partners {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 32px 16px 0;
  border-top: 2px solid var(--llv-gold);
}
.llv-related-partners__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--llv-navy);
  margin: 0 0 20px;
}

/* ─── Homepage Widget [ep_shop_homepage] ─────────────────────────────────── */
.ep-homepage-widget {
    margin: 2em 0;
}
.ep-homepage-widget__heading {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 1em;
    color: var(--ep-primary, #2e7d32);
}
.ep-homepage-widget__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2em;
}
.ep-homepage-widget__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2em 0.8em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ep-homepage-widget__tile:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    text-decoration: none;
}
.ep-homepage-widget__logo {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 0.6em;
}
.ep-homepage-widget__logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ep-primary, #2e7d32);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 0.6em;
}
.ep-homepage-widget__name {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 0.3em;
    color: #222;
}
.ep-homepage-widget__rate {
    font-size: 0.78em;
    color: #555;
    margin-bottom: 0.5em;
}
.ep-homepage-widget__rate--promo {
    color: var(--llv-green);
    font-weight: 600;
}
.ep-homepage-widget__bonus {
    display: inline-block;
    background: var(--ep-warm);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ep-homepage-widget__cta {
    font-size: 0.78em;
    font-weight: 600;
    color: var(--ep-primary, #2e7d32);
    margin-top: auto;
}

/* ─── Favourites [ep_shop_favourites] ──────────────────────────────────────── */
.ep-favourites { margin: 2em 0; }
.ep-favourite-tile { position: relative; }
.ep-favourites__view-all { text-align: center; margin-top: 1em; }
.ep-favourites__view-all a { color: var(--ep-primary, #2e7d32); font-weight: 600; }

/* ─── Categories Widget [ep_shop_categories] ────────────────────────────────── */
.ep-categories-widget { margin: 2em 0; }
.ep-category-section { margin-bottom: 2.5em; }
.ep-category-section__title {
    font-size: 1.2em;
    font-weight: 700;
    border-bottom: 2px solid var(--ep-primary, #2e7d32);
    padding-bottom: 0.4em;
    margin-bottom: 1em;
    color: var(--ep-primary, #2e7d32);
}
.ep-category-section__empty { color: #888; font-style: italic; font-size: 0.9em; }
.ep-category-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1em;
}
.ep-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1em 0.6em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ep-cat-tile:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.10); transform: translateY(-2px); text-decoration: none; }
.ep-cat-tile--promo { border-color: var(--ep-primary, #2e7d32); }
.ep-cat-tile__logo { max-width: 90px; max-height: 55px; object-fit: contain; margin-bottom: 0.5em; }
.ep-cat-tile__logo-placeholder {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--ep-primary, #2e7d32); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4em; font-weight: 700; margin-bottom: 0.5em;
}
.ep-cat-tile__name { font-weight: 600; font-size: 0.85em; margin-bottom: 0.25em; color: #222; }
.ep-cat-tile__rate { font-size: 0.75em; color: #555; }

/* ─── Points Shortcodes ──────────────────────────────────────────────────────*/

/* Stat cards (member + agent) */
.ep-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--llv-navy, #1B2A4A);
    color: #fff;
    border-radius: 10px;
    padding: 18px 28px;
    min-width: 160px;
    text-align: center;
    gap: 4px;
}
.ep-stat--agent { background: #2a4a1b; }
.ep-stat__label { font-size: 12px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }
.ep-stat__value { font-size: 32px; font-weight: 700; line-height: 1.1; }
.ep-stat__unit  { font-size: 12px; opacity: 0.7; }

/* Points summary grid */
.ep-points-summary { margin: 1.5em 0; }
.ep-points-summary__title { margin-bottom: 0.75em; }
.ep-points-summary__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.ep-points-summary__cell {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--llv-navy, #1B2A4A);
    color: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    gap: 4px;
}
.ep-points-summary__cell-label { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.ep-points-summary__cell-value { font-size: 26px; font-weight: 700; }
.ep-points-summary__cell-unit  { font-size: 11px; opacity: 0.65; }

/* Greeting */
.ep-points-greeting strong { font-weight: 700; }

/* Transaction history table */
.ep-txn-history { margin: 1.5em 0; }
.ep-txn-history__title { margin-bottom: 0.75em; }
.ep-txn-history__wrap { overflow-x: auto; }
.ep-txn-history__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ep-txn-history__table thead { background: var(--llv-navy, #1B2A4A); color: #fff; }
.ep-txn-history__table th { padding: 10px 12px; text-align: left; font-weight: 600; white-space: nowrap; }
.ep-txn-history__table td { padding: 9px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
.ep-txn-history__table tbody tr:hover { background: #f7f9fc; }
.ep-txn--credit .ep-txn__pts { color: #2e7d32; font-weight: 600; }
.ep-txn--debit  .ep-txn__pts { color: #c62828; font-weight: 600; }
.ep-txn__bal { color: #555; font-size: 13px; }

/* Transaction status badges */
.ep-txn-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ep-txn-status--active    { background: #e8f5e9; color: #2e7d32; }
.ep-txn-status--pending   { background: #fff8e1; color: #f57f17; }
.ep-txn-status--redeemed  { background: #e3f2fd; color: #1565c0; }
.ep-txn-status--expired   { background: #f3e5f5; color: #6a1b9a; }
.ep-txn-status--cancelled { background: #fce4ec; color: #b71c1c; }

/* Pagination */
.ep-txn-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ep-txn-pager__btn {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: var(--llv-navy, #1B2A4A);
    text-decoration: none;
    background: #fff;
    transition: background 0.15s;
}
.ep-txn-pager__btn:hover,
.ep-txn-pager__btn--active {
    background: var(--llv-navy, #1B2A4A);
    color: #fff;
    border-color: var(--llv-navy, #1B2A4A);
    text-decoration: none;
}

/* Agent tables */
.ep-agent-table-wrap { margin: 1.5em 0; }
.ep-agent-table__title { margin-bottom: 0.75em; }
.ep-agent-search { display: flex; gap: 8px; margin-bottom: 14px; }
.ep-agent-search__input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.ep-agent-search__btn {
    padding: 8px 18px;
    background: var(--llv-navy, #1B2A4A);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.ep-agent-table__scroll { overflow-x: auto; }
.ep-agent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ep-agent-table thead { background: #2a4a1b; color: #fff; }
.ep-agent-table th { padding: 10px 12px; text-align: left; font-weight: 600; white-space: nowrap; }
.ep-agent-table td { padding: 9px 12px; border-bottom: 1px solid #eee; }
.ep-agent-table tbody tr:hover { background: #f0f4f0; }
.ep-agent-empty { color: #888; font-style: italic; }

/* Login notice */
.ep-notice--login { color: #555; font-style: italic; }
.ep-notice--login a { color: var(--llv-navy, #1B2A4A); }

/* ─── [ep_shop_homepage] — Improved homepage widget (from LLV v2.1.6) ────── */
.llv-home-widget { max-width: 1100px; margin: 0 auto; padding: 0 16px; font-family: inherit; }
.llv-home-widget__title {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    color: var(--llv-navy, #1B2A4A);
    text-align: center;
    margin: 0 0 20px;
}
.llv-home-widget__az {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 28px;
}
.llv-home-az__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--llv-border, #dde3ec);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: var(--llv-navy, #1B2A4A);
    text-decoration: none;
    transition: all 0.15s;
}
.llv-home-az__btn:hover,
.llv-home-az--active { background: var(--llv-navy, #1B2A4A) !important; color: #fff !important; border-color: var(--llv-navy, #1B2A4A) !important; }
.llv-home-az--disabled { opacity: 0.35; pointer-events: none; }
.llv-home-widget__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 480px) { .llv-home-widget__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .llv-home-widget__grid { grid-template-columns: repeat(5, 1fr); } }
.llv-home-tile__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 1px solid var(--llv-border, #dde3ec);
    border-radius: var(--llv-radius, 8px);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.llv-home-tile__inner:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--ep-warm); }
.llv-home-tile__logo { max-height: 55px; max-width: 120px; object-fit: contain; margin-bottom: 10px; }
.llv-home-tile__initials {
    width: 56px; height: 56px;
    background: var(--llv-navy, #1B2A4A);
    color: #fff;
    border-radius: var(--llv-radius, 8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    margin-bottom: 10px;
}
.llv-home-tile__name { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.llv-home-tile__rate { font-size: 12px; color: var(--llv-green, #2e7d32); margin-top: auto; padding-top: 6px; }

/* ─── Merchant logo attachment (WP Media Library) ───────────────────────── */
/* When logo_img_tag() returns a wp_get_attachment_image, it renders at the  */
/* registered 'merchant-logo' size (160×60). These rules constrain it.       */
.llv-merchant-tile__logo { max-height: 60px; max-width: 140px; object-fit: contain; display: block; margin: 0 auto; }
.llv-merchant-detail__logo { max-height: 80px; max-width: 220px; object-fit: contain; display: block; }

