/* Smash Account — dashboard stats tiles and orders list. Brand defaults; Bricks controls override. */

.smash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.smash-stat {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
}
.smash-stat__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #57606a;
}
.smash-stat__value {
  margin-top: 6px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
  color: #16324f;
}
.smash-stat--savings .smash-stat__value { color: #e40017; }
.smash-stat__value .woocommerce-Price-currencySymbol { font-size: 0.8em; }

.smash-orders {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.smash-orders--empty { padding: 24px 20px; }
.smash-orders__empty { margin: 0; color: #57606a; font-size: 15px; }

.smash-order {
  display: grid;
  grid-template-columns: 40px minmax(110px, auto) 1fr auto auto auto;
  align-items: center;
  column-gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid #eef0f2;
}
.smash-order:last-child { border-bottom: none; }

.smash-order__thumb { width: 40px; height: 40px; }
.smash-order__thumb img,
.smash-order__thumb-empty {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f5f3;
}

.smash-order__number {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #16324f;
  text-decoration: none;
}
.smash-order__number:hover { color: #e40017; }
.smash-order__date { font-size: 13px; color: #57606a; margin-top: 2px; }

.smash-order__items {
  font-size: 13px;
  color: #57606a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smash-order__status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #eef2f7;
  color: #235789;
}
.smash-order__status.is-completed { background: #d1fae5; color: #065f46; }
.smash-order__status.is-processing,
.smash-order__status.is-on-hold,
.smash-order__status.is-pending { background: #fef3c7; color: #92400e; }
.smash-order__status.is-cancelled,
.smash-order__status.is-failed { background: #fee2e2; color: #991b1b; }
.smash-order__status.is-refunded { background: #e0e7ff; color: #3730a3; }

.smash-order__total {
  font-size: 15px;
  font-weight: 700;
  color: #12202b;
  white-space: nowrap;
  text-align: right;
}
.smash-order__total del { color: #8a93a0; font-weight: 500; }

.smash-order__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.smash-order__view {
  font-size: 13px;
  font-weight: 600;
  color: #235789;
  text-decoration: none;
}
.smash-order__view::after { content: " \2192"; }
.smash-order__view:hover { color: #e40017; }
.smash-order__reorder {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e40017;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.smash-order__reorder:hover { background: #b80012; color: #fff; }

/* ---- VIP join block + celebration ---- */
.smash-vip-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 14px;
  background: #16324f;
  color: #fff;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.smash-vip-join.is-leaving { opacity: 0; transform: translateY(-6px); }
.smash-vip-join__heading { font-size: 17px; font-weight: 700; }
.smash-vip-join__blurb { font-size: 13.5px; color: #c7d8e6; margin-top: 4px; line-height: 1.5; }
.smash-vip-join__button {
  flex: 0 0 auto;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: #e40017;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.smash-vip-join__button:hover { background: #b80012; transform: translateY(-1px); }
.smash-vip-join__button.is-busy { opacity: 0.7; cursor: progress; }
.smash-vip-join__error { flex-basis: 100%; font-size: 13px; color: #ffb3ba; }

.smash-vip-celebrate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 35, 58, 0.82);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.smash-vip-celebrate.is-visible { opacity: 1; }
.smash-vip-celebrate.is-leaving { opacity: 0; }
.smash-vip-celebrate__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.smash-vip-celebrate__card {
  position: relative;
  width: min(460px, 100%);
  padding: 40px 32px 34px;
  border-radius: 22px;
  background: #fff;
  color: #12202b;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.85);
  transition: transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.smash-vip-celebrate.is-visible .smash-vip-celebrate__card { transform: scale(1); }
.smash-vip-celebrate__badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e40017;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  animation: smash-vip-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s both;
}
.smash-vip-celebrate__title { margin-top: 16px; font-size: 28px; font-weight: 800; line-height: 1.15; color: #16324f; }
.smash-vip-celebrate__text { margin-top: 10px; font-size: 16px; color: #57606a; line-height: 1.5; }
.smash-vip-celebrate__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f4f5f3;
  color: #57606a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.smash-vip-celebrate__close:hover { background: #e8eaee; color: #12202b; }
@keyframes smash-vip-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .smash-vip-celebrate, .smash-vip-celebrate__card, .smash-vip-join, .smash-vip-join__button { transition: none; }
  .smash-vip-celebrate__badge { animation: none; }
}

@media (max-width: 767px) {
  .smash-vip-join { flex-direction: column; align-items: stretch; text-align: center; }
  .smash-vip-join__button { width: 100%; }
  .smash-orders { background: transparent; border-radius: 0; overflow: visible; }
  .smash-order {
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
      "thumb main   status"
      "items items  items"
      "total total  actions";
    row-gap: 10px;
    background: #fff;
    border-radius: 14px;
    border-bottom: none;
    margin-bottom: 12px;
    padding: 16px;
  }
  .smash-order__thumb { grid-area: thumb; }
  .smash-order__main { grid-area: main; }
  .smash-order__status { grid-area: status; justify-self: end; }
  .smash-order__items { grid-area: items; white-space: normal; }
  .smash-order__total { grid-area: total; text-align: left; }
  .smash-order__actions { grid-area: actions; justify-self: end; }
  .smash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .smash-stat { padding: 14px 16px; }
  .smash-stat__value { font-size: 22px; }
}
