:root {
  --brand: #7D0516;
  --brand-dark: #4f020c;
  --ink: #22191b;
  --muted: #766d70;
  --line: #eadfe1;
  --soft: #fff7f8;
  --white: #ffffff;
  --gold: #c79b35;
  --shadow: 0 18px 45px rgba(45, 12, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins";
  color: var(--ink);
  background: var(--white);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 8px clamp(16px, 4vw, 56px) 0;
  background: #ffffffcc;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.management-header-mode .search {
  display: none;
}

.management-header-mode .cart-button {
  display: none;
}

.management-header-mode .category-menu {
  display: none;
}

.member-header-mode .site-header {
  background: var(--brand);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.member-header-mode .brand,
.member-header-mode .category-menu-link {
  color: var(--white);
}

.member-header-mode .category-menu {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.member-header-mode .search {
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--brand-dark);
}

.member-header-mode .search input {
  background: var(--brand-dark);
  color: var(--white);
}

.member-header-mode .search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.member-header-mode .site-header .search button,
.member-header-mode .site-header .primary-button,
.member-header-mode .site-header .cart-button,
.member-header-mode .header-actions .ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: var(--white);
  color: var(--brand);
}

.member-header-mode .cart-button span {
  background: var(--brand);
  color: var(--white);
}

.search input {
  min-width: 0;
  border: 0;
  padding: 9px 16px;
  outline: 0;
}

.search button,
.primary-button,
.cart-button {
  border: 0;
  background: var(--brand);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.member-menu-wrap,
.member-message-wrap {
  position: relative;
}

.header-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: min(280px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(45, 12, 18, 0.18);
  padding: 8px;
}

.header-dropdown.open {
  display: grid;
  gap: 4px;
}

.header-dropdown button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
  padding: 9px 10px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.header-dropdown button:hover {
  background: var(--soft);
}

.header-dropdown .dropdown-logout-button {
  background: var(--brand);
  color: var(--white);
}

.header-dropdown .dropdown-logout-button:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.header-dropdown-title {
  padding: 6px 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-dropdown-empty {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.member-message-menu button {
  display: grid;
  gap: 8px;
  align-items: center;
}

.member-message-menu .enquiry-menu-case.open {
  background: #fff4f6;
}

.member-message-menu .enquiry-menu-case.closed {
  background: var(--white);
}

.member-message-menu .enquiry-menu-case.open:hover,
.member-message-menu .enquiry-menu-case.closed:hover {
  background: #ffe8ec;
}

.member-message-menu span,
.member-message-menu small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.member-enquiry-menu-id {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.icon-header-button {
  min-width: 42px;
}

.category-menu {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3.5vw, 58px);
  border-top: 1px solid rgba(234, 223, 225, 0.75);
  padding: 2px 0 4px;
  background: rgba(255, 255, 255, 0);
}

.category-menu-item {
  position: relative;
}

.category-menu-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 0;
  font-weight: 600;
}

.category-menu-item:hover .category-menu-link,
.category-menu-item:focus-within .category-menu-link {
  color: var(--brand);
  text-decoration: underline;
}

.member-header-mode .category-menu-item:hover .category-menu-link,
.member-header-mode .category-menu-item:focus-within .category-menu-link {
  color: var(--white);
}

.category-mega {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-menu-top, 106px);
  z-index: 49;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px clamp(18px, 7vw, 120px) 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 24px 48px rgba(45, 12, 18, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.category-menu-item:hover .category-mega,
.category-menu-item:focus-within .category-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.category-mega-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.category-mega-copy strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
}

.category-mega-copy button {
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  padding: 8px 13px;
  font-weight: 700;
}

.category-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 120px));
  gap: 14px;
  align-items: start;
  max-height: 142px;
  overflow: hidden;
}

.category-mega-card {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.84rem;
  text-align: center;
}

.category-mega-card img {
  aspect-ratio: 1 / 1;
  height: 92px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: #f8f8f8;
  object-fit: cover;
}

.ghost-button {
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  padding: 8px 14px;
  font-weight: 600;
}

.cart-button {
  border-radius: 999px;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
}

.page-section {
  padding: 15px clamp(16px, 4vw, 56px);
}

#categories {
  padding-right: clamp(32px, 7vw, 120px);
  padding-left: clamp(32px, 7vw, 120px);
  padding-top: 38px;
  padding-bottom: 42px;
}

#categories .section-heading {
  margin-bottom: 38px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 10px;
}

.section-heading h2,
.page-title h1,
.contact-card h2,
.faq h2 {
  margin: 0;
  color: var(--brand);
}

.section-heading p,
.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.home-feature-heading {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.home-feature-heading > div,
.home-feature-heading > h2 {
  grid-column: 2;
  text-align: center;
}

.home-feature-heading h2 {
  font-family: "Playfair Display", "Poppins";
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.home-feature-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.compact-admin-button {
  justify-self: end;
  width: fit-content;
  max-width: max-content;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-slider {
  position: relative;
  min-height: calc(100vh - 55px);
  overflow: hidden;
  background: var(--brand);
}

.hero-slide {
  position: relative;
  display: none;
  min-height: calc(100vh - 55px);
  padding: clamp(26px, 6vw, 76px);
  align-items: end;
  justify-content: center;
  color: var(--white);
  background-image: var(--desktop-bg);
  background-position: center;
  background-size: cover;
}

.hero-slide::before {
  content: none;
}

.hero-slide.active {
  display: flex;
}

.hero-content {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 2;
  padding-bottom: clamp(14px, 3vh, 34px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.slider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.slider-dots button.active {
  background: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}

.category-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(45, 12, 18, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover,
.product-card:hover {
  transform: scale(1.025);
  box-shadow: 0 16px 34px rgba(45, 12, 18, 0.12);
}

.category-card {
  position: relative;
  padding: 0;
  text-align: left;
}

.category-card img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
}

.category-card strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand);
  font-size: 0.9rem;
  z-index: 1;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tab-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  padding: 10px 16px;
  font-weight: 600;
}

.tab-button.active {
  background: var(--brand);
  color: var(--white);
}

.horizontal-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 290px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px 0 16px;
}

.product-card {
  position: relative;
  padding: 10px;
  text-align: left;
}

.product-card-love {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 600;
}

.product-card-love.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.product-card img {
  width: 100%;
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card-media img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.18s ease;
}

.product-hover-card-img {
  opacity: 0;
}

.product-card:hover .product-hover-card-img {
  opacity: 1;
}

.product-card:hover .product-main-card-img {
  opacity: 0;
}

.product-info {
  padding: 18px 18px 20px;
}

.product-info h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-card-sku {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.price {
  margin: 0;
  color: var(--brand);
  font-weight: 700;
}

.promo-banner {
  position: relative;
  width: 100%;
  min-height: clamp(180px, 28vw, 360px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 35%, rgba(255, 221, 128, 0.32), transparent 24%),
    radial-gradient(circle at 80% 45%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(135deg, #3b070a, #94091b 52%, #180607);
}
.promo-banner.has-images {
  background: var(--soft, #f6f1ec);
}
.promo-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 18px;
  animation: promo-scroll 32s linear infinite;
}
.promo-banner:hover .promo-marquee {
  animation-play-state: paused;
}
.promo-marquee img {
  height: clamp(150px, 24vw, 300px);
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
@keyframes promo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.promo-edit-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}
.promo-empty {
  margin: auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.faq {
  background: var(--soft);
}

.accordion {
  max-width: 920px;
  margin: 22px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  outline-color: var(--brand);
}

.contact-form select {
  background: var(--white);
}

.enquiry-phone-grid {
  grid-template-columns: 150px 1fr;
}

.enquiry-name-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
}

.enquiry-attachment-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.enquiry-attachment-field input {
  padding: 10px 12px;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: end;
  padding: clamp(24px, 5vw, 56px);
  color: var(--white);
  background-position: top center;
  background-size: cover;
  position: relative;
  cursor: default;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.admin-mode .page-hero.admin-editable {
  cursor: pointer;
}

.page-title {
  position: relative;
  z-index: 1;
}

.page-title h1,
.page-title p {
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 280px));
  gap: 18px;
}

.floating-catalogue {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.floating-admin-login {
  position: fixed;
  right: 22px;
  bottom: 103px;
  z-index: 40;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.reward-floating-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 65;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(125, 5, 22, 0.28);
  font-weight: 800;
}

.reward-floating-button .reward-close,
.reward-floating-button.open .reward-gift {
  display: none;
}

.reward-floating-button.open .reward-close {
  display: inline;
  font-size: 2rem;
  line-height: 1;
}

.reward-panel {
  position: fixed;
  right: 22px;
  bottom: 108px;
  z-index: 64;
  width: min(360px, calc(100vw - 32px));
  max-height: none;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 54px rgba(45, 12, 18, 0.24);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.reward-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.reward-panel-head {
  position: relative;
  padding: 20px 22px 38px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
}

.reward-panel-head button {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
}

.reward-panel-head p {
  margin: 0 0 6px;
  font-weight: 700;
}

.reward-panel-head h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.reward-panel-body {
  margin-top: -24px;
  padding: 0 12px 12px;
}

.reward-card {
  position: relative;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--white);
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(45, 12, 18, 0.08);
}

.reward-card h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.reward-card p {
  margin: 0 auto 12px;
  color: #6c7a89;
  font-size: 0.86rem;
  line-height: 1.42;
}

.reward-card .primary-button {
  min-width: 122px;
  background: var(--brand);
  padding: 11px 18px;
}

.reward-card small {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #4a4a4a;
}

.reward-card small button {
  border: 0;
  background: transparent;
  color: var(--brand);
  text-decoration: underline;
}

.reward-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  border: 0;
  border-top: 1px solid #edf0f4;
  background: transparent;
  color: #4a4a4a;
  padding: 10px 4px;
  font: inherit;
  text-align: left;
}

.reward-row:first-of-type {
  border-top: 0;
}

.reward-row span:nth-child(2) {
  flex: 1;
}

.reward-row b {
  color: #9aa5b1;
  font-size: 1.5rem;
  line-height: 1;
}

.reward-row-icon,
.reward-earn-icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid #3f454a;
  border-radius: 6px;
}

.reward-row-icon::after,
.reward-earn-icon::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.reward-row-icon.earn,
.reward-earn-icon.order {
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-12deg);
}

.reward-row-icon.redeem::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 8px;
  border-top: 2px solid var(--brand);
}

.reward-detail {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 25px 0 0;
}

.reward-back {
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 0;
}

.reward-detail h4 {
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.reward-earn-list {
  border-top: 1px solid #edf0f4;
}

.reward-earn-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  padding: 11px 0;
}

.reward-earn-item strong {
  display: block;
  margin-bottom: 4px;
  color: #3f454a;
  font-size: 0.86rem;
  font-weight: 500;
}

.reward-earn-item p {
  margin: 0;
  color: #607387;
  font-size: 0.82rem;
}

.reward-earn-icon.birthday {
  border-radius: 2px;
}

.reward-earn-icon.birthday::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 9px;
  border-top: 2px solid var(--brand);
}

.reward-earn-icon.redeem::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 9px;
  border-top: 2px solid var(--brand);
}

.reward-start-note {
  margin: 10px -4px 0;
  border-radius: 8px;
  background: #f2f5fb;
  color: var(--ink);
  padding: 12px;
  text-align: center;
  font-size: 0.84rem;
}

.reward-detail-actions {
  margin-top: auto;
  padding: 14px 20px 8px;
  text-align: center;
}

.reward-detail-actions .primary-button {
  width: 100%;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(125, 5, 22, 0.22);
}

.reward-detail-actions small {
  display: block;
  margin-top: 10px;
  color: #4a4a4a;
  font-size: 0.82rem;
}

.reward-detail-actions small button {
  border: 0;
  background: transparent;
  color: var(--brand);
  text-decoration: underline;
}

.reward-footer {
  border-radius: 0 0 8px 8px;
  background: #f7f7f7;
  color: #7a8794;
  padding: 14px;
  text-align: center;
  font-size: 0.85rem;
}

.modal-overlay,
.catalogue-popup,
.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.76);
  padding: 18px;
  overflow-x: hidden;
}

.modal-overlay.open,
.catalogue-popup.open,
.scrim.open {
  display: grid;
  place-items: center;
}

body.enquiry-modal-open {
  overflow: hidden;
}

body.enquiry-modal-open #adminModal.open {
  padding-block: 8px;
  overflow: hidden;
}

.quick-modal-overlay {
  z-index: 130;
  background: rgba(0, 0, 0, 0.42);
}

.modal,
.catalogue-panel {
  position: relative;
  width: min(920px, calc(100vw - 36px));
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-admin-modal {
  width: min(860px, calc(100vw - 52px));
  max-height: 84vh;
}

.quick-admin-modal.package-photo-modal {
  width: auto;
  max-width: min(760px, calc(100vw - 42px));
  max-height: min(82vh, 720px);
  overflow: hidden;
}

.package-photo-modal .modal-copy {
  padding: 12px;
}

.package-photo-modal #quickAdminModalTitle {
  display: none;
}

.product-modal {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) 1.05fr;
}

.product-gallery {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
}

.product-main-image {
  display: grid;
  place-items: center;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
}

.product-thumbs button {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.product-thumbs button.active {
  border-color: var(--brand);
}

.product-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.modal-copy {
  display: grid;
  align-content: start;
  padding: 15px 15px 15px;
  position: relative;
  min-width: 0;
  overflow-x: hidden;
}

.modal-price {
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.product-price-stock {
  display: grid;
  gap: 4px;
}

.modal-stock {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-sku {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

#modalProductDescription {
  white-space: pre-line;
  line-height: 1.55;
  font-size: 0.94rem;
}

.product-action-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 26px -34px -112px;
  padding: 16px 34px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 3;
}

.product-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  background: var(--white);
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.icon-button.active {
  background: var(--brand);
  color: var(--white);
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.close-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 1.8rem;
  line-height: 1;
}

.modal .close-button {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(560px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer,
.catalogue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-items {
  overflow: auto;
  padding: 16px;
}

.cart-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row > img {
  width: 82px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.cart-row-copy {
  min-width: 0;
}

.cart-row h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  line-height: 1.35;
}

.cart-row p {
  margin: 0;
  color: var(--muted);
}

.cart-sku {
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-price-grid {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 7px 10px;
  align-items: center;
  margin-top: 8px;
  font-size: 0.9rem;
}

.cart-price-grid span {
  color: var(--muted);
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  width: max-content;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.qty-stepper button {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 6px 0;
  font-weight: 800;
}

.qty-stepper span {
  text-align: center;
  color: var(--ink);
  font-weight: 700;
}

.remove-button {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  padding: 8px 11px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.08rem;
}

.cart-success {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
}

.cart-success img {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.cart-success h3,
.checkout-row h3 {
  margin: 0 0 6px;
}

.cart-success .admin-row {
  grid-column: 1 / -1;
  justify-content: center;
}

.checkout-list {
  display: grid;
  gap: 12px;
}

.checkout-customer {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.checkout-customer h3 {
  margin: 0;
  color: var(--brand);
}

.checkout-customer label {
  display: grid;
  gap: 7px;
  color: var(--brand);
  font-weight: 700;
}

.checkout-customer input,
.checkout-customer select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  outline-color: var(--brand);
  font-weight: 400;
}

.checkout-customer input.checkout-invalid,
.checkout-customer select.checkout-invalid {
  border-color: #b42318;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.checkout-validation-alert {
  border: 1px solid #b42318;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #fff5f5;
  color: #8a0015;
  font-weight: 700;
}

.checkout-readonly-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.85fr) minmax(220px, 1.1fr);
}

.checkout-readonly-grid input[readonly] {
  background: var(--soft);
  color: var(--muted);
}

.checkout-address-line {
  display: grid;
}

.checkout-address-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.checkout-left,
.checkout-right {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 16px;
  min-width: 0;
}

.checkout-right {
  align-self: start;
  position: sticky;
  top: 0;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.checkout-step {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-step.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.checkout-info-grid {
  grid-template-columns: 1fr;
}

.checkout-fulfillment-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-fulfillment-toggle.single {
  grid-template-columns: 1fr;
}

.checkout-fulfillment-toggle label {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkout-branch-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  padding: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.checkout-item-list {
  display: grid;
  gap: 10px;
  max-height: 38vh;
  overflow-y: auto;
  padding-right: 2px;
}

.checkout-item-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.checkout-item-card img {
  width: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
}

.checkout-item-card span,
.checkout-item-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.checkout-item-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.checkout-item-card > div:last-child {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.checkout-voucher {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
}

.checkout-voucher div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.checkout-voucher input,
.checkout-voucher button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}

.checkout-voucher button {
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.checkout-detail-confirmation {
  display: grid;
  gap: 16px;
  padding-bottom: 22px;
}

.checkout-detail-confirmation section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 16px;
}

.checkout-detail-confirmation h3 {
  margin: 0 0 12px;
  color: var(--brand);
}

.checkout-confirm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkout-confirm-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  padding: 10px;
}

.checkout-confirm-grid span,
.checkout-confirm-items span,
.checkout-confirm-total span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.checkout-confirm-address {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.checkout-confirm-items {
  display: grid;
  gap: 8px;
}

.checkout-confirm-items div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 80px 110px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.checkout-confirm-items div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checkout-confirm-items b {
  justify-self: end;
}

.checkout-confirm-voucher {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
}

.checkout-confirm-total {
  justify-self: end;
  width: min(360px, 100%);
}

.checkout-confirm-total div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.checkout-confirm-total div:last-child {
  color: var(--brand);
  font-size: 1.08rem;
  font-weight: 900;
}

.checkout-confirm-actions {
  justify-content: flex-end;
  margin-top: 2px;
  padding-bottom: 8px;
}

.checkout-row {
  display: grid;
  grid-template-columns: minmax(48px, 0.55fr) minmax(150px, 1.65fr) minmax(96px, 0.7fr) minmax(76px, 0.7fr) minmax(86px, 0.8fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.checkout-row > * {
  min-width: 0;
}

.checkout-head {
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
}

.checkout-product-cell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.checkout-product-cell img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-product-cell strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkout-row p {
  margin: 0;
  color: var(--muted);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--brand);
  font-size: 1.15rem;
}

.checkout-summary {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.checkout-summary strong {
  white-space: nowrap;
}

.checkout-grand-total {
  color: var(--brand);
  font-size: 1.18rem;
  font-weight: 700;
}

.catalogue-panel {
  width: min(620px, 100%);
}

.catalogue-head h3 {
  margin: 0;
  color: var(--brand);
}

.catalogue-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.catalogue-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}

.catalogue-section + .catalogue-section {
  margin-top: 8px;
}

.catalogue-section h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.catalogue-links button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 13px;
  color: var(--brand);
  font-weight: 600;
  text-align: left;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.maintenance-page {
  min-height: calc(100vh - 55px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.admin-login-page {
  min-height: calc(100vh - 55px);
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--soft);
}

.admin-login-card {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-login-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-login-card h1 {
  margin: 0;
  color: var(--brand);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--brand);
  padding: 10px;
  font-weight: 700;
}

.auth-tabs button.active {
  background: var(--brand);
  color: var(--white);
}

.phone-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
}

.uppercase-input {
  text-transform: uppercase;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.password-field input {
  border: 0;
}

.password-field button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--white);
  color: var(--brand);
  padding: 0 12px;
  font-weight: 700;
}

.maintenance-page img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.maintenance-page h1,
.management-panel h1,
.setting-card h2 {
  margin: 0;
  color: var(--brand);
}

.management-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 55px);
  background: #faf7f8;
}

.member-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 55px);
  background: var(--brand);
}

.management-sidebar,
.member-sidebar {
  position: sticky;
  top: 55px;
  align-self: start;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: calc(100vh - 55px);
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.member-sidebar {
  border-right-color: rgba(255, 255, 255, 0.16);
  background: var(--brand);
}

.management-sidebar button,
.member-sidebar button {
  position: relative;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}

.member-sidebar button {
  color: var(--white);
}

.menu-alert-button.has-alert::after {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
  animation: paidOrderPulse 1.4s ease-in-out infinite;
  content: "";
}

.management-sidebar button.active,
.member-sidebar button.active {
  background: var(--brand);
  color: var(--white);
}

.member-sidebar button.active {
  background: var(--white);
  color: var(--brand);
}

.management-menu-group {
  display: grid;
  gap: 6px;
}

.management-sidebar .management-menu-parent {
  cursor: default;
}

.management-sidebar .management-menu-parent.active {
  background: #fff4f6;
  color: var(--brand);
}

.management-menu-group.open .management-menu-parent {
  background: #fff4f6;
  color: var(--brand);
}

.management-submenu {
  display: none;
  gap: 5px;
  padding-left: 10px;
}

.management-menu-group.open .management-submenu,
.management-menu-group.active .management-submenu {
  display: grid;
}

.management-sidebar .management-submenu button {
  border-left: 2px solid var(--line);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.management-sidebar .management-submenu button.active {
  border-left-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.management-panel,
.member-panel {
  padding: 32px clamp(18px, 4vw, 48px);
}

.member-panel {
  color: var(--white);
}

.member-panel .section-heading h2,
.member-panel .section-heading p {
  color: var(--white);
}

.member-panel .admin-order-list {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.member-orders {
  display: grid;
  gap: 18px;
}

.member-order-card-list {
  display: grid;
  gap: 10px;
}

.member-order-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.member-order-tools label {
  display: grid;
  gap: 6px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.member-order-tools input {
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 10px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  padding: 11px 12px;
}

.member-order-summary-card,
.member-panel-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 16px;
  box-shadow: 0 18px 42px rgba(45, 12, 18, 0.08);
}

.member-order-summary-card {
  width: 100%;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
}

.member-order-summary-top {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
}

.member-order-summary-top span,
.member-order-summary-grid span,
.member-readonly-grid span,
.member-commission-total span,
.member-commission-list span {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-order-summary-top strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 1.05rem;
}

.member-order-summary-top .status-pill {
  white-space: nowrap;
}

.member-order-summary-main {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 90px 100px 110px;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.member-order-summary-main > span,
.member-order-summary-main > strong {
  min-width: 0;
  font-weight: 800;
}

.member-order-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.member-order-product img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 34px;
}

.member-order-product b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-order-summary-grid,
.member-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-order-summary-grid div,
.member-readonly-grid div,
.member-commission-list div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff7f8;
  padding: 10px;
}

.member-order-summary-grid strong,
.member-readonly-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.member-order-summary-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-order-summary-items span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 5px 9px 5px 5px;
  color: var(--ink);
  font-size: 0.82rem;
}

.member-order-summary-items img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.member-empty-card {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 18px;
  font-weight: 800;
}

.member-payout-grid,
.member-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.member-setting-grid .member-panel-card:first-child {
  grid-column: 1 / -1;
}

.member-panel-card h3 {
  margin: 0;
  color: var(--brand);
}

.member-form-dark label {
  color: var(--brand);
}

.member-withdraw-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.member-commission-total {
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  padding: 15px;
}

.member-commission-total span {
  color: rgba(255,255,255,0.8);
}

.member-commission-total strong {
  display: block;
  margin-top: 6px;
  font-size: 1.8rem;
}

.member-commission-list {
  display: grid;
  gap: 10px;
}

.member-commission-list strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.member-commission-list small {
  color: var(--muted);
  font-weight: 700;
}

.member-commission-total small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}

.member-withdrawal-history-card {
  grid-column: 1 / -1;
}

.member-withdrawal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-withdrawal-head h3 {
  margin: 0;
}

.member-withdrawal-head > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.member-withdrawal-head input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  outline-color: var(--brand);
}

.statement-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-height: 50vh;
  overflow-y: auto;
}

.statement-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(140px, 1.1fr) minmax(90px, 0.7fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr) minmax(140px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.statement-row-4 {
  grid-template-columns: minmax(110px, 0.9fr) minmax(100px, 0.7fr) minmax(90px, 0.7fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr);
}

.statement-row:first-child {
  border-top: none;
}

.statement-head {
  background: #fff4f6;
  color: var(--brand);
  font-weight: 900;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.statement-row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.member-withdrawal-list {
  display: grid;
  gap: 8px;
}

.member-withdrawal-list div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.member-withdrawal-list span,
.member-withdrawal-list small {
  color: var(--muted);
  font-weight: 700;
}

.member-withdrawal-list strong {
  color: var(--brand);
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.member-notice-board,
.member-latest-order {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(153, 0, 20, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7f8 100%);
  padding: 18px;
  box-shadow: 0 18px 42px rgba(45, 12, 18, 0.07);
}

.member-notice-banner {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(153, 0, 20, 0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.82);
  padding: 12px 14px;
}

.member-notice-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-notice-board-head span,
.member-dashboard-card-head span {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-notice-board-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
}

.member-notice-board-head small {
  border: 1px solid rgba(153, 0, 20, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.78rem;
}

.member-notice-list {
  display: grid;
  gap: 10px;
}

.member-notice-list .member-notice-banner {
  margin-bottom: 0;
}

.member-notice-banner span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-notice-banner h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.member-notice-banner p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.member-dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-dashboard-card-head .ghost-button {
  padding: 7px 11px;
  font-size: 0.82rem;
}

.member-latest-order-card {
  display: grid;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.member-latest-order-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.member-latest-order-card strong {
  color: var(--brand);
}

.member-latest-order-card span,
.member-latest-order-card p,
.member-dashboard-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.notice-setting-card {
  margin-bottom: 18px;
}

.notice-list-head,
.notice-list-row {
  grid-template-columns: 128px minmax(150px, 0.85fr) minmax(420px, 2.2fr) 120px 116px;
}

.notice-list-row {
  min-height: 0;
  padding-block: 9px;
}

.notice-list-row > span:nth-child(3),
.notice-list-row > span:nth-child(4) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.notice-list-row > span:nth-child(3) {
  display: -webkit-box;
  max-height: 4.35em;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.notice-list-row .tgp-actions {
  gap: 5px;
  justify-content: flex-start;
}

.notice-list-row .ghost-button {
  padding: 6px 9px;
  font-size: 0.82rem;
}

.notice-table-attachment {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-attachment {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--brand);
  font-weight: 800;
}

.notice-attachment.image {
  display: block;
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.notice-attachment.image img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.notice-attachment.file {
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 0.82rem;
}

.admin-order-list {
  display: grid;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.order-data-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.order-data-cards .dashboard-data-card {
  min-height: 86px;
  gap: 4px;
  border-radius: 12px;
  padding: 14px 18px;
}

.order-data-cards .dashboard-data-card strong {
  font-size: 1.65rem;
}

.order-data-cards .dashboard-data-card small {
  font-size: 0.84rem;
}

.order-sales-filter-card {
  align-content: start;
}

.order-sales-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.order-sales-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.order-sales-controls select,
.order-sales-controls input {
  max-width: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 6px 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.order-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.awb-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.awb-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
}

.order-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.order-toolbar label {
  display: grid;
  gap: 6px;
  width: min(420px, 100%);
  color: var(--brand);
  font-weight: 800;
}

.order-toolbar input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline-color: var(--brand);
}

.admin-order-list-head,
.admin-order-list-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(190px, 1.1fr) minmax(130px, 0.75fr) minmax(105px, 0.6fr) minmax(105px, 0.62fr) minmax(96px, 0.5fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.admin-order-list-head {
  background: #fff4f6;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-order-list-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-order-list-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--brand);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-order-list-row:hover {
  background: #fff8f9;
}

.manage-member-head,
.manage-member-row {
  grid-template-columns: minmax(100px, 0.7fr) minmax(160px, 1fr) minmax(150px, 0.9fr) minmax(220px, 1.25fr) minmax(80px, 0.48fr) minmax(110px, 0.65fr) minmax(100px, 0.55fr);
}

.manage-member-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.manage-member-head span:nth-child(3),
.manage-member-head span:nth-child(4),
.manage-member-row span:nth-child(3),
.manage-member-row span:nth-child(4) {
  justify-self: stretch;
  text-align: center;
}

.manage-member-head .manage-member-orders-cell,
.manage-member-row .manage-member-orders-cell {
  display: flex;
  width: 100%;
  justify-self: stretch !important;
  justify-content: center;
  text-align: center;
}

.manage-member-head .manage-member-total-cell,
.manage-member-row .manage-member-total-cell {
  display: flex;
  width: 100%;
  justify-self: stretch !important;
  justify-content: flex-end;
  text-align: right;
}

.admin-member-detail {
  display: grid;
  gap: 16px;
}

.admin-member-profile,
.admin-member-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-member-profile > div,
.admin-member-tier-grid article,
.admin-member-bank,
.admin-member-history {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 12px;
}

.admin-member-profile span,
.admin-member-profile small,
.admin-member-tier-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-member-profile strong,
.admin-member-tier-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--brand);
}

.admin-member-tier-grid article {
  align-content: start;
}

.admin-member-tier-grid h3,
.admin-member-bank h3,
.admin-member-history h3 {
  margin: 0 0 10px;
  color: var(--brand);
}

.admin-member-mini-item {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 8px 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-member-mini-item:hover {
  color: var(--brand);
}

.admin-member-tier-grid article > div,
.admin-member-mini-item {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.admin-member-tier-grid article > div:first-of-type,
.admin-member-mini-item:first-of-type {
  border-top: 0;
}

.admin-member-order-head,
.admin-member-order-row {
  grid-template-columns: minmax(130px, 0.9fr) minmax(170px, 1fr) minmax(90px, 0.55fr) minmax(100px, 0.6fr) minmax(120px, 0.7fr) minmax(100px, 0.6fr);
}

.admin-payout-head,
.admin-payout-row {
  grid-template-columns: minmax(120px, 0.78fr) minmax(170px, 1fr) minmax(100px, 0.58fr) minmax(116px, 0.62fr) minmax(220px, 1.2fr) minmax(112px, 0.62fr) minmax(120px, 0.68fr);
}

.admin-payout-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-payout-row b {
  justify-self: end;
}

.payout-statement-actions {
  align-items: center;
  margin: 14px 0;
}

.payout-statement-actions input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline-color: var(--brand);
}

.payout-action-cell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payout-slip-input {
  width: 150px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 6px;
  font-size: 0.78rem;
}

.tiny-upload-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.tiny-upload-button input {
  display: none;
}

.admin-order-list-row.paid-attention > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-order-list-row.paid-attention > strong::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
  animation: paidOrderPulse 1.4s ease-in-out infinite;
  content: "";
}

.enquiry-list-head,
.enquiry-list-row {
  grid-template-columns: minmax(140px, 0.85fr) minmax(170px, 1fr) minmax(190px, 1.1fr) minmax(150px, 0.85fr) minmax(96px, 0.55fr);
}

.enquiry-list-row.enquiry-new strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.enquiry-list-row.enquiry-new strong::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
  animation: paidOrderPulse 1.4s ease-in-out infinite;
  content: "";
}

.enquiry-message-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  padding: 14px;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.enquiry-case-thread {
  display: grid;
  gap: 12px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff8f9;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

.enquiry-chat-popup {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 0;
  height: 100%;
}

.enquiry-chat-head {
  margin-bottom: 0;
}

.enquiry-chat-actions {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 -10px 24px rgba(45, 12, 18, 0.08);
}

.enquiry-case-message {
  width: min(86%, 980px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 11px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(45, 12, 18, 0.06);
}

.enquiry-case-message.customer {
  justify-self: start;
  border-bottom-left-radius: 4px;
}

.enquiry-case-message.admin {
  justify-self: end;
  border-color: rgba(125, 5, 22, 0.28);
  border-bottom-right-radius: 4px;
  background: #f8dfe4;
}

.enquiry-case-message strong,
.enquiry-case-message small {
  display: block;
}

.enquiry-case-message small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.enquiry-case-message p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.enquiry-case-photo {
  display: block;
  width: min(220px, 100%);
  max-height: 170px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.enquiry-case-file {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--brand);
  padding: 8px 10px;
  font-weight: 800;
  text-decoration: none;
}

.enquiry-product-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  max-width: 360px;
  margin-top: 10px;
  border: 1px solid rgba(125, 5, 22, 0.2);
  border-radius: 10px;
  background: var(--white);
  color: var(--brand);
  padding: 8px;
  text-decoration: none;
}

.enquiry-product-link img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.enquiry-product-link strong,
.enquiry-product-link small {
  display: block;
}

.enquiry-product-link small {
  margin-top: 4px;
  color: var(--muted);
}

.chat-seen-label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.admin-form.enquiry-reply-form {
  gap: 5px;
}

.admin-form.enquiry-reply-form .admin-field-grid {
  gap: 6px;
}

.admin-form.enquiry-reply-form label {
  gap: 4px;
  font-size: 0.9rem;
}

.admin-form.enquiry-reply-form textarea {
  min-height: 34px;
  padding: 8px 10px;
  resize: none;
}

.admin-form.enquiry-reply-form input,
.admin-form.enquiry-reply-form select {
  min-height: 38px;
  padding: 7px 10px;
}

.enquiry-chat-action-row {
  justify-content: flex-end;
  gap: 7px;
  margin-top: 0;
}

.enquiry-chat-action-row .primary-button,
.enquiry-chat-action-row .ghost-button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.enquiry-attachment {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.enquiry-attachment a {
  display: inline-grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.enquiry-attachment img {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

@keyframes paidOrderPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
  }

  50% {
    opacity: 0.72;
    box-shadow: 0 0 0 7px rgba(220, 38, 38, 0.08);
  }
}

.admin-order-list-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-order-list-head button:nth-child(5),
.admin-order-list-row span:nth-child(5) {
  justify-self: end;
}

.admin-order-list-head button:nth-child(6),
.admin-order-list-row b {
  justify-self: center;
}

.admin-order-list-head button:nth-child(5) {
  justify-content: flex-end;
  width: 100%;
}

.admin-order-list-head button:nth-child(6) {
  justify-content: center;
  width: 100%;
}

.admin-manage-order-head,
.admin-manage-order-row {
  grid-template-columns: 34px minmax(124px, 0.72fr) minmax(160px, 0.9fr) minmax(140px, 0.78fr) 98px minmax(105px, 0.58fr) minmax(112px, 0.6fr) minmax(184px, 0.85fr);
}

.admin-manage-order-head button:nth-child(5),
.admin-manage-order-row span:nth-child(5) {
  justify-self: center;
  text-align: center;
}

.admin-manage-order-head button:nth-child(5) {
  justify-content: center;
  width: 100%;
}

.admin-manage-order-head button:nth-child(6),
.admin-manage-order-row span:nth-child(6) {
  justify-self: end;
  text-align: right;
}

.admin-manage-order-head button:nth-child(7),
.admin-manage-order-row b {
  justify-self: center;
}

.awb-select-cell {
  display: grid;
  place-items: center;
}

.awb-list-cell {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.awb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.awb-actions strong {
  flex-basis: 100%;
  color: var(--brand);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.tiny-action-button {
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.tiny-action-button.ghost {
  background: var(--white);
  color: var(--brand);
}

.muted-text {
  color: var(--muted);
}

.order-awb-panel {
  margin: 14px 0;
}

.member-order-list-head,
.member-order-list-row {
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.15fr) minmax(90px, 0.5fr) minmax(115px, 0.62fr) minmax(115px, 0.62fr) minmax(120px, 0.62fr);
}

.member-order-list-head span:nth-child(5),
.member-order-list-row span:nth-child(5) {
  justify-self: end;
  text-align: right;
}

.member-order-list-head span:nth-child(6),
.member-order-list-row b {
  justify-self: center;
  text-align: center;
}

.status-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
}

.status-paid {
  background: #fff1f2;
  color: #9f1239;
}

.status-ready {
  background: #ecfdf5;
  color: #047857;
}

.status-processing {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-shipped {
  background: #fef3c7;
  color: #b45309;
}

.status-delivered,
.status-completed {
  background: #ecfdf3;
  color: #047857;
}

.status-pending-payment {
  background: #f3f4f6;
  color: #4b5563;
}

.status-new {
  background: #fff1f2;
  color: #9f1239;
}

.status-closed {
  background: #ecfdf3;
  color: #047857;
}

.status-void,
.status-void-refunded {
  background: #fee2e2;
  color: #b91c1c;
}

.member-order-card,
.referral-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.member-order-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--brand);
}

.receipt-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.receipt-logo-setting {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.receipt-logo-preview {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.receipt-logo-preview img {
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
}

.admin-order-card {
  display: grid;
  gap: 0;
}

.compact-order-card {
  overflow: hidden;
  padding: 0;
}

.admin-order-summary-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: var(--white);
  color: var(--brand);
  padding: 12px 14px;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.admin-order-summary-row:hover {
  background: #fff8f9;
}

.admin-order-summary-row span {
  justify-self: center;
}

.admin-order-summary-row b {
  justify-self: end;
}

.admin-order-summary-row b,
.compact-order-card .member-order-head b {
  border-radius: 999px;
  background: #fff4f6;
  padding: 4px 10px;
  font-size: 0.82rem;
}

.admin-order-details {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
}

.compact-order-card .checkout-list {
  gap: 4px;
}

.compact-order-card .checkout-row {
  grid-template-columns: minmax(44px, 0.5fr) minmax(180px, 1.8fr) minmax(48px, 0.45fr) minmax(76px, 0.65fr) minmax(86px, 0.7fr);
  gap: 6px;
  padding: 6px 9px;
  min-height: auto;
  font-size: 0.9rem;
}

.compact-order-card .checkout-product-cell {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}

.compact-order-card .checkout-product-cell img {
  border-radius: 6px;
}

.compact-order-card .checkout-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 7px;
  font-size: 0.9rem;
}

.compact-order-card .checkout-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 7px 9px;
}

.compact-order-card .checkout-grand-total {
  font-size: 1rem;
}

.compact-order-card .order-admin-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  padding-top: 8px;
}

.compact-order-card .order-admin-form label {
  gap: 5px;
  font-size: 0.9rem;
}

.compact-order-card .order-admin-form input {
  padding: 9px 11px;
}

.compact-order-card .admin-row {
  gap: 8px;
  justify-content: flex-end;
}

.compact-order-card .admin-row .primary-button,
.compact-order-card .admin-row .ghost-button {
  padding: 9px 13px;
  font-size: 0.86rem;
}

.order-customer-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.compact-order-card .order-customer-block {
  grid-template-columns: 1.1fr 0.8fr 1fr 1.5fr;
  gap: 6px 12px;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.order-customer-block span,
.order-customer-block strong {
  overflow-wrap: anywhere;
}

.order-meta {
  margin: 0;
  color: var(--muted);
}

.pickup-code-note {
  width: fit-content;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
  padding: 8px 12px;
  color: #047857;
  font-size: 1rem;
  font-weight: 800;
}

.order-admin-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.packing-preview {
  display: grid;
  gap: 14px;
}

.packing-order-list {
  display: grid;
  gap: 12px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 4px;
}

.packing-order-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--white);
  display: grid;
  gap: 10px;
}

.packing-order-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.packing-order-index {
  color: var(--muted);
  font-weight: 700;
}

.packing-order-head strong {
  flex: 1;
}

.packing-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.packing-order-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.packing-order-address {
  background: var(--soft);
  border-radius: 8px;
  padding: 8px 10px;
}

.packing-order-address span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.packing-order-address p {
  margin: 0;
  font-size: 0.9rem;
}

.packing-order-voucher {
  margin: 0;
  font-size: 0.85rem;
  color: var(--brand);
}

.packing-order-items {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.packing-order-item {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
}

.packing-order-item span:first-child {
  color: var(--muted);
  min-width: 70px;
}

.packing-order-item strong {
  flex: 1;
}

.packing-preview pre {
  max-height: 58vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
  white-space: pre-wrap;
  font-family: "Poppins";
  font-size: 0.9rem;
  line-height: 1.45;
}

.tier-heading {
  align-items: flex-end;
}

.tier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tier-actions button {
  min-height: 42px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: #1d1d1f;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.05);
}

.tier-actions button.dark {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #fff;
}

.tier-summary {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(120px, 0.5fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tier-summary article {
  min-height: 96px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.952);
  box-shadow: 0 18px 44px rgba(0,0,0,0.07);
  padding: 18px;
  backdrop-filter: blur(22px);
}

.tier-summary article strong {
  display: block;
  color: #1d1d1f;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 8px;
}

.tier-summary article span {
  color: #6e6e73;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tier-profile-card strong {
  font-size: 1.05rem !important;
  margin-bottom: 4px !important;
}

.tier-profile-card small {
  display: block;
  color: #6e6e73;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tier-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1d1d1f, #3a3a3c);
  color: #fff;
  font-weight: 900;
}

.success-note {
  color: #047857;
}

.family-tree {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0,122,255,0.10), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(52,199,89,0.10), transparent 32%),
    rgba(255, 255, 255, 0.952);
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow: 0 18px 44px rgba(0,0,0,0.07);
  backdrop-filter: blur(24px);
  overflow: visible;
}

.modern-ref-tree {
  width: 100%;
}

.ref-upline-wrap {
  display: grid;
  justify-items: center;
  width: 100%;
  margin-bottom: 14px;
  padding-bottom: 22px;
  position: relative;
}

.ref-upline-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 16px;
  background: rgba(60, 60, 67, 0.22);
}

.ref-upline-card {
  width: min(100%, 230px);
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  color: #1d1d1f;
  padding: 13px 14px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.ref-upline-card span {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,159,10,0.13);
  color: #b96f00;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.ref-upline-card strong,
.ref-upline-card small {
  display: block;
  overflow-wrap: anywhere;
}

.ref-upline-card small {
  color: #6e6e73;
  font-weight: 800;
  margin-top: 4px;
}

.ref-upline-card.muted {
  color: #6e6e73;
  background: rgba(255,255,255,0.58);
  border-style: dashed;
}

.ref-tree-branch {
  width: 100%;
  display: grid;
  justify-items: center;
  align-items: start;
  align-self: start;
  gap: 14px;
}

.ref-tree-children {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 210px));
  justify-content: center;
  align-items: start;
  gap: 12px;
  padding-top: 24px;
}

.ref-tree-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  background: rgba(60, 60, 67, 0.22);
}

.ref-tree-child {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  align-self: start;
  min-width: 0;
  gap: 12px;
}

.ref-tree-child::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 1px;
  height: 12px;
  background: rgba(60, 60, 67, 0.22);
}

.ref-tree-node {
  width: min(100%, 210px);
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.94);
  color: #1d1d1f;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
  transition: 0.16s ease;
}

.ref-tree-node:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 255, 0.34);
  box-shadow: 0 14px 34px rgba(0, 122, 255, 0.10);
}

.ref-tree-node.root {
  width: min(100%, 250px);
  color: #fff;
  background: linear-gradient(145deg, #1d1d1f, #3a3a3c);
  border-color: rgba(255,255,255,0.14);
  text-align: center;
}

.ref-tree-node.root.leaf {
  color: #fff;
  background: linear-gradient(145deg, #1d1d1f, #3a3a3c);
  border-color: rgba(255,255,255,0.14);
}

.ref-tree-node.open {
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow: 0 16px 34px rgba(0, 122, 255, 0.13);
}

.ref-tree-node.leaf {
  background: rgba(255,255,255,0.94);
}

.ref-tree-node.tier-1 {
  border-color: rgba(0,122,255,0.34);
  box-shadow: inset 0 4px 0 rgba(0,122,255,0.48), 0 12px 28px rgba(0,122,255,0.08);
}

.ref-tree-node.tier-2 {
  border-color: rgba(255,149,0,0.38);
  box-shadow: inset 0 4px 0 rgba(255,149,0,0.52), 0 12px 28px rgba(255,149,0,0.08);
}

.ref-tree-node.tier-3 {
  border-color: rgba(52,199,89,0.34);
  background: rgba(246,255,250,0.94);
  box-shadow: inset 0 4px 0 rgba(52,199,89,0.50), 0 12px 28px rgba(52,199,89,0.08);
}

.ref-tree-node.root.leaf {
  color: #fff;
  background: linear-gradient(145deg, #1d1d1f, #3a3a3c);
  border-color: rgba(255,255,255,0.14);
}

.ref-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ref-tier {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.10);
  color: #007aff;
  font-size: 0.72rem;
  font-weight: 900;
}

.ref-tree-node.root .ref-tier {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
}

.ref-tree-node.leaf .ref-tier {
  background: rgba(52,199,89,0.13);
  color: #34c759;
}

.ref-tree-node.tier-1 .ref-tier {
  background: rgba(0,122,255,0.11);
  color: #007aff;
}

.ref-tree-node.tier-2 .ref-tier {
  background: rgba(255,149,0,0.13);
  color: #c66f00;
}

.ref-tree-node.tier-3 .ref-tier {
  background: rgba(52,199,89,0.14);
  color: #248a4d;
}

.ref-tree-node.root .ref-tier {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
}

.ref-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(60, 60, 67, 0.08);
  color: #6e6e73;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.ref-tree-node.open .ref-toggle {
  background: rgba(0,122,255,0.12);
  color: #007aff;
}

.ref-tree-node.root .ref-toggle {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.ref-tree-node strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ref-tree-node.root strong {
  color: #fff;
}

.ref-tree-node small {
  display: block;
  color: #6e6e73;
  font-weight: 800;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.ref-tree-node.root small {
  color: rgba(255,255,255,0.64);
}

.ref-node-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(60,60,67,0.14);
  color: #6e6e73;
  font-size: 0.78rem;
  font-weight: 800;
}

.ref-tree-node.root .ref-node-meta {
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.72);
}

.ref-node-meta b {
  color: #ff9f0a;
}

.ref-more-card {
  width: min(100%, 210px);
  min-height: 132px;
  border: 1px dashed rgba(60,60,67,0.24);
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  color: #1d1d1f;
  padding: 14px;
  cursor: pointer;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.ref-more-card:hover {
  border-style: solid;
  transform: translateY(-2px);
}

.ref-more-card span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1d1d1f;
  color: #fff;
  font-weight: 900;
}

.ref-more-card strong {
  font-size: 0.94rem;
}

.ref-more-card small {
  color: #6e6e73;
  font-weight: 800;
}

.ref-more-card.tier-1 { border-color: rgba(0,122,255,0.34); }
.ref-more-card.tier-2 { border-color: rgba(255,149,0,0.38); }
.ref-more-card.tier-3 { border-color: rgba(52,199,89,0.34); }

.ref-more-modal {
  display: grid;
  gap: 14px;
}

.ref-more-modal p {
  margin: 0;
  color: var(--muted);
}

.ref-more-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
}

.ref-more-item {
  border: 1px solid rgba(60,60,67,0.14);
  border-radius: 18px;
  background: #fff;
  padding: 13px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
}

.ref-more-item span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.ref-more-item strong,
.ref-more-item small,
.ref-more-item b {
  overflow-wrap: anywhere;
}

.ref-more-item small {
  color: #6e6e73;
  font-weight: 800;
}

.ref-more-item b {
  color: #ff9f0a;
  font-size: 0.78rem;
}

.ref-more-item.tier-1 { border-color: rgba(0,122,255,0.34); }
.ref-more-item.tier-1 span { background: rgba(0,122,255,0.11); color: #007aff; }
.ref-more-item.tier-2 { border-color: rgba(255,149,0,0.38); }
.ref-more-item.tier-2 span { background: rgba(255,149,0,0.13); color: #c66f00; }
.ref-more-item.tier-3 { border-color: rgba(52,199,89,0.34); }
.ref-more-item.tier-3 span { background: rgba(52,199,89,0.14); color: #248a4d; }

@media (max-width: 820px) {
  .tier-heading {
    align-items: stretch;
  }

  .tier-actions {
    width: 100%;
    justify-content: stretch;
  }

  .tier-actions button {
    flex: 1;
  }

  .tier-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier-profile-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .tier-summary {
    grid-template-columns: 1fr;
  }

  .family-tree {
    padding: 12px;
    border-radius: 24px;
  }

  .ref-tree-children {
    grid-template-columns: 1fr;
  }

  .ref-tree-node,
  .ref-tree-node.root {
    width: 100%;
  }
}

.settings-grid {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.manager-editor,
.sub-category-editor {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.manager-two-column {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: start;
}

.manager-workspace,
.manager-sidebar-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.manager-sidebar-list {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.manager-sidebar-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.manager-add-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.manager-edit-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
}

.manager-category-photo-button {
  display: grid;
  justify-self: center;
  gap: 4px;
  width: min(100%, 120px);
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 0.72rem;
  text-align: center;
}

.manager-category-preview {
  width: 120px;
  max-height: 68px;
  justify-self: center;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.manager-list {
  max-height: 62vh;
  overflow: auto;
}

.manager-list-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
  color: var(--ink);
  text-align: left;
}

.manager-list-item.no-thumb {
  grid-template-columns: 1fr;
}

.manager-list-item.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(125, 5, 22, 0.08);
}

.manager-list-item img {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.manager-list-item strong,
.manager-list-item small {
  display: block;
}

.manager-list-item small {
  margin-top: 3px;
  color: var(--muted);
}

.sub-category-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
}

.sub-category-editor .admin-note {
  font-size: 0.84rem;
}

.sub-category-add,
.sub-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sub-category-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.sub-category-list {
  display: grid;
  gap: 8px;
}

.sub-category-photo-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 3px;
  cursor: pointer;
}

.sub-category-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sub-category-add input,
.sub-category-row input {
  padding: 9px 11px;
}

.sub-category-add .ghost-button,
.sub-category-row .ghost-button {
  padding: 8px 10px;
}

.icon-only-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  padding: 0 !important;
  font-size: 1.2rem;
  line-height: 1;
}

.management-product-tools {
  display: flex;
  margin-bottom: 16px;
}

.management-section > .management-product-tools {
  margin-bottom: 12px;
}

.management-search {
  width: min(520px, 100%);
}

.management-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  outline-color: var(--brand);
}

.management-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.package-grid .package-card {
  cursor: default;
}

.package-card .product-card-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.package-card .admin-row {
  margin-top: 10px;
  gap: 7px;
}

.stock-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(45, 12, 18, 0.06);
}

.stock-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.stock-table th,
.stock-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.stock-table th {
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
}

.stock-table th button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: inherit;
  font: inherit;
}

.stock-table th.text-right button {
  justify-content: flex-end;
  width: 100%;
}

.text-right {
  text-align: right !important;
}

.stock-price-cell {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stock-balance-head,
.stock-balance-cell {
  text-align: right;
}

.stock-balance-head button {
  justify-content: flex-end;
  width: 100%;
}

.stock-active-toggle {
  display: inline-block;
}

.stock-active-toggle span {
  width: 46px;
  height: 26px;
}

.stock-active-toggle span::before {
  width: 20px;
  height: 20px;
}

.stock-active-toggle input:checked + span::before {
  transform: translateX(20px);
}

.sort-arrow {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 12px;
  opacity: 0.65;
}

.sort-arrow::before,
.sort-arrow::after {
  content: "";
  position: absolute;
  left: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.sort-arrow::before {
  top: 0;
  border-bottom: 5px solid currentColor;
}

.sort-arrow::after {
  bottom: 0;
  border-top: 5px solid currentColor;
}

.sort-arrow.asc::after,
.sort-arrow.desc::before {
  opacity: 0.25;
}

.stock-product-name {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0;
  text-align: left;
  font-weight: 800;
}

.stock-photo-button {
  display: grid;
  width: 58px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.stock-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-input {
  width: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}

.stock-view-cell,
.stock-edit-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.stock-view-cell strong {
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stock-view-cell .ghost-button,
.stock-save-button {
  padding: 7px 10px;
}

.stock-save-button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
}

.stock-image-modal {
  display: grid;
  place-items: center;
}

.stock-image-modal img {
  width: min(520px, 100%);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.stock-photo-preview {
  display: grid;
  width: 180px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.stock-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.management-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--brand);
  font-weight: 700;
}

.management-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.management-section + .management-section {
  margin-top: 38px;
}

.dashboard-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.dashboard-admin-grid-single {
  grid-template-columns: 1fr;
}

.dashboard-admin-grid .management-section {
  min-width: 0;
}

.dashboard-data-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.dashboard-data-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 15px 16px;
  box-shadow: 0 18px 38px rgba(45, 12, 18, 0.08);
}

.dashboard-data-card span {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.dashboard-data-card strong {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1;
}

.dashboard-data-card small,
.dashboard-data-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-top-products {
  grid-column: 1 / -1;
}

.dashboard-low-stock.has-alert strong {
  color: var(--brand);
}

.low-stock-list {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.low-stock-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: none;
  padding: 3px 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.low-stock-row b {
  color: var(--brand);
}

.low-stock-list small {
  color: var(--muted);
}

.activity-log-row {
  display: flex !important;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.activity-log-row span:first-child {
  color: var(--muted);
  min-width: 150px;
}

.activity-log-row > span:last-child {
  flex: 1;
  min-width: 200px;
}

.top-products-table {
  display: grid;
  gap: 0;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.top-products-head,
.top-products-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(140px, 1.4fr) minmax(76px, 0.5fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
}

.top-products-head {
  background: #fff4f6;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.top-products-row {
  border-top: 1px solid var(--line);
}

.dashboard-top-products .top-products-row b,
.dashboard-top-products .top-products-row strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.top-products-row small {
  color: var(--brand);
  font-size: 0.98rem;
  font-weight: 900;
}

.tgp-card {
  display: grid;
  max-width: 100%;
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  overflow: hidden;
  background: var(--brand-dark);
  box-shadow: 0 18px 38px rgba(45, 12, 18, 0.18);
}

.tgp-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.08fr) minmax(104px, 0.82fr) repeat(3, minmax(58px, 0.48fr)) minmax(112px, 0.72fr);
  min-width: 0;
  gap: 8px;
  align-items: center;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.tgp-row > * {
  min-width: 0;
}

.tgp-row:last-child {
  border-bottom: 0;
}

.tgp-head {
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
}

.tgp-row strong {
  color: var(--white);
}

.tgp-add-row {
  background: var(--white);
  color: var(--brand);
}

.tgp-add-row label {
  display: grid;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
}

.tgp-add-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 10px;
  outline-color: var(--brand);
}

.tgp-actions .ghost-button:not(.tgp-icon-button) {
  background: var(--white);
  padding: 7px 9px;
}

.tgp-form {
  max-width: 720px;
  margin-bottom: 16px;
  grid-template-columns: 1fr 180px auto;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.tgp-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tgp-icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 !important;
  background: var(--white);
}

.tgp-icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1400px) {
  .dashboard-admin-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-data-card strong {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
  }
}

@media (max-width: 900px) {
  .tgp-row {
    grid-template-columns: minmax(110px, 1fr) minmax(94px, 0.82fr) repeat(3, minmax(50px, 0.44fr)) minmax(86px, 0.68fr);
    gap: 6px;
    padding: 10px 9px;
    font-size: 0.9rem;
  }

  .tgp-add-row label span {
    font-size: 0.82rem;
  }

  .tgp-add-row input {
    padding: 8px;
  }

  .tgp-actions {
    gap: 5px;
  }

  .tgp-actions .ghost-button:not(.tgp-icon-button),
  .tgp-add-row .primary-button {
    padding: 7px 8px;
    font-size: 0.82rem;
  }
}

.setting-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
}

.setting-card:first-child {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.setting-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.shipping-setting-card {
  max-width: 860px;
}

.shipping-rate-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.shipping-rate-form label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.shipping-rate-form select,
.shipping-rate-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.shipping-rate-form input[type="text"],
.shipping-rate-form input[type="number"] {
  width: 110px;
}

.awb-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(20, 5, 8, 0.55);
}

.awb-loading-box {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 32px 40px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  max-width: 320px;
  text-align: center;
}

.awb-loading-box p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.awb-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: awb-spin 0.8s linear infinite;
}

@keyframes awb-spin {
  to { transform: rotate(360deg); }
}

.awb-print-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.awb-print-queue-list {
  display: grid;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 12px;
}

.awb-print-queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.awb-print-queue-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.awb-print-queue-info small {
  color: var(--muted);
}

.shipping-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  background: var(--brand-dark);
}

.shipping-row {
  display: grid;
  grid-template-columns: 170px minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.shipping-row:last-child {
  border-bottom: 0;
}

.shipping-head {
  background: var(--brand);
  font-weight: 700;
}

.shipping-row label {
  color: var(--white);
}

.shipping-row label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.shipping-row input {
  background: var(--white);
}

.switch-control input {
  position: absolute;
  opacity: 0;
}

.switch-control span {
  display: block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
}

.switch-control span::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s ease;
}

.switch-control input:checked + span {
  background: var(--brand);
}

.switch-control input:checked + span::before {
  transform: translateX(24px);
}

.admin-toolbar {
  position: sticky;
  top: 75px;
  z-index: 45;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fff8df;
  border-bottom: 1px solid #ead08a;
  color: var(--brand-dark);
}

.admin-hint {
  color: var(--brand);
  font-weight: 700;
}

.admin-editable {
  outline: 2px dashed rgba(199, 155, 53, 0.9);
  outline-offset: 4px;
}

.admin-editable:hover {
  outline-color: var(--brand);
}

.admin-hero {
  cursor: pointer;
}

.category-card[draggable="true"] {
  cursor: grab;
}

.danger-button {
  border-color: #b42318;
  color: #b42318;
}

.danger-fill-button {
  border-color: #b42318;
  background: #b42318;
  color: var(--white);
}

.quick-login-button {
  justify-self: stretch;
  text-align: center;
}

.admin-modal {
  width: min(950px, calc(100vw - 36px));
  overflow-x: hidden;
}

.admin-modal.hero-editor-modal {
  width: min(1120px, calc(100vw - 36px));
}

.hero-editor-modal .modal-copy {
  padding: 24px 34px 28px;
}

.hero-editor-modal #adminModalTitle {
  margin-bottom: 12px;
}

.hero-editor-modal #adminModalBody {
  display: grid;
  gap: 10px;
}

.hero-editor-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.hero-editor-head .admin-note {
  max-width: 720px;
  font-size: 0.92rem;
}

.hero-editor-head .primary-button {
  flex: 0 0 auto;
  padding: 9px 14px;
}

.admin-modal.notice-modal {
  width: min(470px, calc(100vw - 36px));
  border: 1px solid rgba(234, 223, 225, 0.95);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.notice-modal #adminModalTitle,
.notice-modal #quickAdminModalTitle {
  display: none;
}

.confirm-box {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 10px 4px 4px;
  text-align: center;
}

.confirm-box h3,
.confirm-box p {
  margin: 0;
}

.confirm-box h3 {
  color: var(--brand);
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.confirm-actions .primary-button,
.confirm-actions .ghost-button {
  min-width: 126px;
}

.admin-modal.member-auth-modal {
  width: min(860px, 100%);
  max-height: calc(100vh - 24px);
}

.member-auth-modal .modal-copy {
  padding: 22px 34px 24px;
}

.member-auth-modal .modal-copy h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.member-auth-modal .auth-tabs {
  margin-bottom: 12px;
}

.member-auth-modal .admin-form {
  gap: 10px;
}

.member-auth-modal .admin-field-grid {
  gap: 10px;
}

.member-name-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.member-auth-modal .admin-form label {
  gap: 5px;
}

.member-auth-modal .admin-form input,
.member-auth-modal .admin-form select,
.member-auth-modal .admin-form textarea {
  padding: 10px 12px;
}

.member-auth-modal .password-field input {
  padding: 10px 12px;
}

.member-auth-modal .primary-button,
.member-auth-modal .ghost-button {
  padding: 10px 14px;
}

.member-auth-modal .admin-note {
  font-size: 0.9rem;
}

.signup-package-section {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.signup-package-section h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1rem;
}

.signup-package-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.signup-package-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 7px 9px;
}

.signup-package-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signup-package-summary strong {
  color: var(--brand);
}

.signup-package-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.signup-package-option {
  position: relative;
  display: grid !important;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px !important;
  align-items: center;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 7px 34px 7px 7px;
  color: var(--ink) !important;
  cursor: pointer;
}

.signup-package-option input {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 18px !important;
  height: 18px;
  margin: 0;
  transform: translateY(-50%);
  accent-color: var(--brand);
}

.signup-package-option:has(input:checked) {
  border-color: var(--brand);
  background: #fff5f7;
  box-shadow: 0 0 0 1px rgba(125, 5, 22, 0.12);
}

.signup-package-photo-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.signup-package-photo-button img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.signup-package-option strong,
.signup-package-option small {
  display: block;
}

.signup-package-option small {
  margin-top: 3px;
  color: var(--brand);
  font-weight: 900;
}

.signup-address-region-grid {
  grid-template-columns: 1fr 1fr;
}

.signup-address-local-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(130px, 0.6fr);
  gap: 10px;
}

.package-photo-preview {
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: calc(min(82vh, 720px) - 24px);
  overflow: hidden;
}

.package-photo-preview img {
  display: block;
  width: auto;
  max-width: min(720px, calc(100vw - 66px));
  max-height: calc(min(82vh, 720px) - 24px);
  border-radius: 10px;
  object-fit: contain;
}

.admin-modal.checkout-modal {
  width: min(1120px, 100%);
  max-height: 90vh;
  overflow: hidden;
}

.admin-modal.order-detail-modal {
  width: min(1180px, 100%);
  max-height: 90vh;
}

.admin-modal.order-detail-modal:has(.enquiry-chat-popup) {
  height: calc(100dvh - 34px);
  max-height: calc(100dvh - 34px);
  overflow: hidden;
}

.order-detail-modal .modal-copy {
  max-height: 94vh;
  overflow: auto;
}

.order-detail-modal .modal-copy:has(.enquiry-chat-popup) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  max-height: none;
  overflow: hidden;
  padding: 12px 15px;
}

.order-detail-modal .modal-copy:has(.enquiry-chat-popup) #adminModalTitle {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.order-detail-modal .modal-copy:has(.enquiry-chat-popup) #adminModalBody {
  min-height: 0;
  overflow: hidden;
}

.admin-order-popup {
  display: grid;
  gap: 10px;
}

.admin-order-popup.enquiry-chat-popup {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 0;
  height: 100%;
}

.admin-order-popup .member-order-head {
  margin-bottom: 0;
}

.admin-order-popup .checkout-list {
  gap: 4px;
}

.admin-order-popup .checkout-row {
  padding: 7px 9px;
  min-height: auto;
}

.admin-order-popup .checkout-product-cell {
  grid-template-columns: 36px minmax(0, 1fr);
}

.admin-order-popup .checkout-product-cell img {
  border-radius: 6px;
}

.admin-order-popup .checkout-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.admin-order-popup .checkout-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 8px 10px;
}

.admin-order-popup .order-admin-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-order-popup .order-action-panel {
  border-radius: 12px;
  background: var(--brand);
  padding: 16px;
}

.admin-order-popup .order-action-panel label,
.admin-order-popup .order-action-panel .admin-note {
  color: var(--white);
}

.admin-order-popup .order-action-panel input {
  border-color: rgba(255, 255, 255, 0.44);
  background: var(--white);
}

.admin-order-popup .order-action-panel .primary-button {
  background: var(--white);
  color: var(--brand);
}

.admin-order-popup .order-action-panel .ghost-button {
  border-color: rgba(255, 255, 255, 0.78);
  background: transparent;
  color: var(--white);
}

.admin-order-popup .order-action-panel .danger-button {
  color: var(--white);
}

.receipt-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.receipt-preview {
  display: grid;
  gap: 26px;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background: var(--white);
  padding: 36px;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.receipt-preview-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  border-bottom: 2px solid #2f2f2f;
  padding-bottom: 22px;
}

.receipt-company-block img {
  width: 62px;
  max-height: 62px;
  margin-bottom: 22px;
  object-fit: contain;
}

.receipt-logo-fallback {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border: 3px solid #0b7a20;
  border-radius: 6px;
  color: #0b7a20;
  font-size: 1.8rem;
  font-weight: 900;
}

.receipt-preview h1,
.receipt-preview h2,
.receipt-preview p,
.receipt-preview footer {
  margin: 0;
}

.receipt-company-block h2 {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.1;
}

.receipt-company-block p {
  color: #52606d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.receipt-title-block {
  text-align: right;
}

.receipt-title-block h1 {
  color: #0b7a20;
  font-size: 1.6rem;
  line-height: 1;
}

.receipt-title-block strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

.receipt-title-block span {
  display: block;
  color: #9aa5b1;
  font-size: 0.86rem;
}

.receipt-info-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.receipt-info-band > div:last-child {
  text-align: right;
}

.receipt-info-band span {
  color: #7b8794;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.receipt-info-band strong {
  display: block;
  margin: 3px 0;
}

.receipt-info-band p {
  color: #334e68;
  font-size: 0.84rem;
  line-height: 1.55;
}

.receipt-total {
  display: grid;
  width: min(320px, 100%);
  justify-self: end;
  gap: 0;
}

.receipt-total div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e5e7eb;
  padding: 9px 0;
  color: var(--ink);
}

.receipt-preview table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
}

.receipt-preview th,
.receipt-preview td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
}

.receipt-preview th {
  background: #f1f1f1;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.receipt-preview th:nth-child(n+2),
.receipt-preview td:nth-child(n+2) {
  text-align: right;
}

.receipt-voucher-line {
  color: #0b7a20 !important;
}

.receipt-grand-total {
  margin-top: 12px;
  border-top: 2px solid #222;
  border-bottom: 3px double #222 !important;
  color: #000 !important;
  font-size: 1.08rem;
  font-weight: 900;
}

.receipt-preview footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  text-align: center;
  color: #9aa5b1;
  font-size: 0.74rem;
}

.receipt-preview footer small {
  display: block;
}

.receipt-print-body {
  margin: 0;
  padding: 28px;
  background: var(--white);
}

.checkout-modal .modal-copy {
  max-height: 90vh;
  padding: 28px 34px 0;
  overflow: hidden;
}

.checkout-modal #adminModalBody {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(90vh - 96px);
}

/* The signup AND cart-checkout confirmation screens reuse .checkout-modal but
   render a plain .checkout-detail-confirmation (no sticky scroll-area structure),
   so let the modal body scroll as a normal block instead of being clipped. */
.checkout-modal #adminModalBody:has(.checkout-detail-confirmation) {
  display: block;
  overflow-y: auto;
}

/* EasyParcel 出单时的快递选择列表 */
.awb-courier-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  max-height: 46vh;
  overflow-y: auto;
}
.awb-courier-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.awb-courier-option:has(input:checked) {
  border-color: var(--brand);
  background: #faf5f6;
}
.awb-courier-info {
  display: grid;
  flex: 1;
  min-width: 0;
}
.awb-courier-info small {
  color: var(--muted);
  font-size: 0.8rem;
}
.awb-courier-price {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

/* 会员订单详情里的快递追踪区块 */
.order-tracking-box {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf5f6;
}
.order-tracking-box > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}
.order-tracking-box > div span {
  color: var(--muted);
}
.order-tracking-box button {
  justify-self: start;
  margin-top: 4px;
}
.order-shipping-pending {
  background: #faf5f6;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
}

/* 结账优惠券提示 */
.voucher-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  min-height: 1em;
}
.voucher-note.valid { color: #1b7a3d; }
.voucher-note.invalid { color: var(--brand); }
.voucher-row-actions { display: flex; gap: 8px; }

.checkout-scroll-area {
  width: 100%;
  margin: 0 auto;
  overflow: auto;
  padding-right: 2px;
}

.checkout-sticky-summary {
  width: 100%;
  margin: 0 auto;
  padding: 12px 0 22px;
  background: var(--white);
  box-shadow: 0 -12px 24px rgba(255, 255, 255, 0.94);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.branch-availability-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 18px 38px rgba(45, 12, 18, 0.08);
}

.branch-availability-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #ecfdf3;
  color: #047857;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.branch-availability-card span.disabled {
  background: #f3f4f6;
  color: var(--muted);
}

.branch-availability-card h2,
.branch-availability-card p {
  margin: 0;
}

.branch-availability-card p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
}

.switch-control {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.switch-control i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease;
}

.switch-control i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease;
  content: "";
}

.switch-control input:checked + i {
  background: var(--brand);
}

.switch-control input:checked + i::after {
  transform: translateX(24px);
}

.branch-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 16px;
}

.branch-card.inactive {
  opacity: 0.62;
  background: var(--soft);
}

.branch-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #ecfdf3;
  color: #047857;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.branch-card.inactive span {
  background: #f3f4f6;
  color: var(--muted);
}

.branch-card h3,
.branch-card p {
  margin: 0;
}

.branch-card p,
.branch-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-line input {
  width: auto !important;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--brand);
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  outline-color: var(--brand);
  font-weight: 400;
}

.admin-note {
  margin: 0;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  cursor: grab;
}

.hero-editor-modal .admin-list {
  gap: 8px;
}

.hero-editor-modal .admin-item {
  grid-template-columns: 54px minmax(190px, 0.45fr) minmax(360px, 1fr);
  gap: 10px;
  padding: 8px 10px;
}

.hero-order-controls {
  display: grid;
  gap: 5px;
  align-content: center;
  justify-items: center;
  min-height: 100%;
  border-right: 1px solid var(--line);
  padding-right: 8px;
}

.hero-order-controls span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-weight: 800;
}

.hero-order-button {
  width: 42px;
  padding: 5px 0 !important;
  font-size: 0.74rem;
}

.hero-order-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero-delete-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0 !important;
  border-color: rgba(179, 0, 26, 0.45);
  color: #b3001a;
}

.hero-delete-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-delete-button:hover {
  background: #b3001a;
  color: var(--white);
}

.hero-editor-modal .admin-preview-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-editor-modal .admin-preview-stack span {
  margin-bottom: 3px;
  font-size: 0.72rem;
}

.hero-editor-modal .admin-thumb {
  min-height: 72px;
}

.hero-editor-modal .compact-form {
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: end;
}

.hero-editor-modal .compact-form strong {
  align-self: center;
  color: var(--ink);
}

.hero-editor-modal .compact-form label {
  gap: 4px;
  font-size: 0.9rem;
}

.hero-editor-modal .compact-form input {
  padding: 8px 10px;
  font-size: 0.9rem;
}

.hero-editor-modal .compact-form .admin-note {
  grid-column: 1 / -1;
  min-height: 1em;
  font-size: 0.82rem;
}

.hero-editor-modal .danger-button {
  padding: 8px 12px;
}

.admin-preview-stack {
  display: grid;
  gap: 10px;
}

.admin-preview-stack span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-thumb,
.admin-preview {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-position: center;
  background-size: cover;
}

.admin-thumb {
  min-height: 92px;
}

.admin-preview {
  aspect-ratio: 1 / 1;
  max-height: 360px;
  object-fit: cover;
}

.compact-form {
  gap: 10px;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.success-panel {
  display: grid;
  gap: 14px;
  place-items: center;
  padding: 18px 10px 8px;
  text-align: center;
}

.success-panel::before,
.notice-panel.success::before {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  content: "";
  animation: successPop 0.34s ease both;
}

.success-panel,
.notice-panel.success {
  position: relative;
}

.success-panel::after,
.notice-panel.success::after {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 18px;
  height: 9px;
  border-bottom: 3px solid var(--white);
  border-left: 3px solid var(--white);
  content: "";
  transform: translateX(-50%) rotate(-45deg);
  animation: checkDraw 0.24s ease 0.16s both;
}

.success-panel h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1.15rem;
}

.notice-panel {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 14px 10px 8px;
  text-align: center;
}

.notice-panel h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1.08rem;
}

.notice-panel p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.notice-panel.warning {
  border-top: 0;
}

.notice-panel.success {
  border-top: 0;
}

.notice-modal .modal-copy {
  padding: 30px 32px 28px;
}

.notice-modal .close-button {
  top: 14px;
  right: 14px;
}

.notice-modal .primary-button,
.notice-modal .ghost-button {
  min-width: 128px;
  border-radius: 8px;
}

.notice-modal .admin-row {
  justify-content: center;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes checkDraw {
  from {
    opacity: 0;
    transform: translateX(-50%) rotate(-45deg) scale(0.6);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) rotate(-45deg) scale(1);
  }
}

.danger-primary {
  background: #b42318;
}

.product-editor-form {
  gap: 10px;
  padding-bottom: 0;
  font-size: 0.88rem;
}

.product-editor-form label {
  gap: 5px;
}

.product-editor-form input,
.product-editor-form select,
.product-editor-form textarea {
  padding: 9px 11px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-copy-grid {
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr);
}

.pricing-grid {
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(110px, 0.8fr));
  gap: 8px;
}

.product-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 96px));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--soft);
  min-height: 88px;
}

.product-photo-item {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.product-photo-item.active {
  border-color: var(--brand);
}

.product-photo-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-photo-actions {
  display: grid;
  gap: 4px;
  padding: 5px;
}

.product-photo-actions .ghost-button {
  width: 100%;
  padding: 5px 6px;
  font-size: 0.72rem;
}

.product-editor-form .compact-label {
  margin-bottom: -4px;
}

.field-title-with-action {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--brand);
  font-weight: 700;
}

.mini-add-button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
  background: var(--white);
  color: var(--brand);
  padding: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.product-editor-form .compact-checks {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 8px;
}

.product-editor-form .admin-check {
  padding: 6px 8px;
  font-size: 0.82rem;
}

.product-editor-sticky {
  position: sticky;
  bottom: -1px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 0 0;
  backdrop-filter: blur(8px);
}

.product-editor-actions {
  align-self: end;
  justify-content: flex-end;
  margin-bottom: 0;
  white-space: nowrap;
}

.product-editor-actions .primary-button,
.product-editor-actions .ghost-button {
  padding: 9px 13px;
  font-size: 0.84rem;
}

.product-summary-confirm {
  display: grid;
  gap: 16px;
}

.product-summary-confirm h3 {
  margin: 0;
  color: var(--brand);
}

.product-summary-confirm dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.product-summary-confirm dl div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 9px 10px;
}

.product-summary-confirm dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.product-summary-confirm dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-products {
  display: grid;
  gap: 14px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.compact-checks {
  max-height: 180px;
}

.admin-product-group {
  display: grid;
  gap: 9px;
}

.admin-product-group + .admin-product-group {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-product-group h3 {
  margin: 0;
  color: var(--brand);
  font-size: 0.95rem;
}

.admin-product-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.admin-check {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 9px !important;
  align-items: center;
  color: var(--ink) !important;
  font-weight: 500 !important;
}

.admin-check input {
  width: auto;
}

@media (max-width: 900px) {
  .hero-editor-modal .modal-copy {
    padding: 22px 18px 26px;
  }

  .hero-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-editor-modal .admin-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .hero-editor-modal .admin-preview-stack,
  .hero-editor-modal .compact-form {
    grid-column: 2;
  }

  .hero-editor-modal .compact-form {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

  .category-menu {
    order: 4;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 9px 0 10px;
  }

  .category-menu-link {
    white-space: nowrap;
    font-size: 0.92rem;
  }

  .category-mega {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .category-mega-grid {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    gap: 10px;
    max-height: 118px;
  }

  .category-mega-card img {
    height: 72px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .management-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout,
  .product-modal {
    grid-template-columns: 1fr;
  }

  .product-main-image img {
    min-height: auto;
    max-height: 360px;
  }

  .admin-products {
    grid-template-columns: 1fr;
  }

  .dashboard-admin-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-data-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-data-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .member-payout-grid,
  .member-setting-grid,
  .member-readonly-grid,
  .member-order-summary-grid,
  .member-order-tools,
  .member-order-summary-card,
  .member-order-summary-main {
    grid-template-columns: 1fr;
  }

  .checkout-readonly-grid,
  .checkout-address-grid,
  .checkout-layout,
  .checkout-fulfillment-toggle,
  .shipping-row {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-right {
    position: static;
  }

  .shipping-row strong,
  .shipping-head span:first-child {
    grid-column: 1 / -1;
  }

  .management-shell {
    grid-template-columns: 1fr;
  }

  .member-shell {
    grid-template-columns: 1fr;
  }

  .management-sidebar,
  .member-sidebar {
    position: static;
    min-height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .management-menu-group {
    grid-column: span 3;
  }

  .management-submenu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-left: 0;
  }

  .management-sidebar .management-submenu button {
    border-left: 0;
    border-radius: 8px;
    text-align: center;
  }

  .order-customer-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-order-list-head,
  .admin-order-list-row {
    grid-template-columns: minmax(120px, 0.75fr) minmax(130px, 0.9fr) minmax(110px, 0.75fr) minmax(92px, 0.62fr) minmax(82px, 0.58fr) minmax(78px, 0.48fr);
  }

  .admin-manage-order-head,
  .admin-manage-order-row {
    grid-template-columns: 30px minmax(112px, 0.72fr) minmax(132px, 0.9fr) minmax(112px, 0.78fr) 86px minmax(86px, 0.58fr) minmax(96px, 0.6fr) minmax(150px, 0.85fr);
  }

  .manage-member-head,
  .admin-member-order-head {
    display: none;
  }

  .manage-member-row,
  .admin-member-order-row {
    grid-template-columns: 1fr 1fr;
  }

  .manage-member-row strong,
  .admin-member-order-row strong:first-child {
    grid-column: 1 / -1;
  }

  .manage-member-head .manage-member-orders-cell,
  .manage-member-row .manage-member-orders-cell {
    justify-content: center;
  }

  .manage-member-head .manage-member-total-cell,
  .manage-member-row .manage-member-total-cell {
    justify-content: flex-end;
  }

  .admin-member-profile,
  .admin-member-tier-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-payout-head {
    display: none;
  }

  .admin-payout-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-payout-row strong,
  .admin-payout-row .payout-action-cell {
    grid-column: 1 / -1;
  }

  .admin-payout-row b {
    justify-self: start;
  }

  .admin-order-summary-row {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .admin-order-summary-row span {
    grid-column: 1;
    justify-self: start;
  }

  .admin-order-summary-row b {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .compact-order-card .order-admin-form {
    grid-template-columns: 1fr;
  }

  .compact-order-card .admin-row {
    justify-content: flex-start;
  }

  .admin-order-popup .order-admin-form {
    grid-template-columns: 1fr;
  }

  .receipt-info-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-feature-heading {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .home-feature-heading > div,
  .home-feature-heading > h2,
  .home-feature-actions {
    grid-column: 1;
    justify-self: center;
  }

  .home-feature-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-feature-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .checkout-layout,
  .checkout-address-grid,
  .signup-address-region-grid,
  .signup-address-local-grid,
  .checkout-fulfillment-toggle,
  .checkout-item-card,
  .checkout-confirm-grid,
  .checkout-confirm-items div,
  .admin-member-profile,
  .admin-member-tier-grid,
  .signup-package-summary,
  .member-withdrawal-list div {
    grid-template-columns: 1fr;
  }

  .member-withdrawal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-withdrawal-head > div {
    justify-content: flex-start;
  }

  .enquiry-case-thread {
    padding: 10px;
  }

  .enquiry-case-message {
    width: min(96%, 100%);
  }

  .enquiry-chat-popup {
    height: 100%;
  }

  .checkout-confirm-items b {
    justify-self: start;
  }

  .checkout-item-card > div:last-child {
    justify-items: stretch;
  }

  .site-header {
    gap: 12px;
    padding-bottom: 0;
  }

  .brand {
    font-size: 0.88rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .header-actions {
    gap: 6px;
  }

  .category-menu {
    gap: 18px;
  }

  .category-mega {
    display: none;
  }

  .manager-two-column {
    grid-template-columns: 1fr;
  }

  .manager-sidebar-list {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    padding-left: 0;
  }

  .sub-category-add,
  .sub-category-row {
    grid-template-columns: 1fr;
  }

  .ghost-button,
  .cart-button {
    padding: 9px 11px;
    font-size: 0.88rem;
  }

  .search button {
    padding: 10px 12px;
  }

  .hero-slider,
  .hero-slide {
    min-height: calc(100vh - 105px);
  }

  .hero-slide {
    background-image: var(--mobile-bg);
  }

  .page-section {
    padding: 42px 14px;
  }

  #categories {
    padding-right: 20px;
    padding-left: 20px;
  }

  .reward-floating-button {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    font-size: 0.78rem;
  }

  .reward-panel {
    right: 16px;
    bottom: 88px;
    width: calc(100vw - 32px);
    max-height: none;
  }

  .product-grid {
    gap: 10px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .management-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card strong,
  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 0.88rem;
  }

  .catalogue-links {
    grid-template-columns: 1fr;
  }

  .catalogue-section {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    top: 105px;
    display: grid;
    text-align: center;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .management-sidebar,
  .member-sidebar {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .management-menu-group {
    grid-column: auto;
  }

  .management-submenu,
  .dashboard-data-panel,
  .order-data-cards {
    grid-template-columns: 1fr;
  }

  .top-products-head,
  .top-products-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .branch-availability-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-customer-block {
    grid-template-columns: 1fr;
  }

  .admin-order-list-head {
    display: none;
  }

  .admin-order-list-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-order-list-row span,
  .admin-order-list-row b {
    justify-self: start;
  }

  .notice-list-head,
  .notice-list-row {
    grid-template-columns: 1fr;
  }

  .admin-order-list-head button:nth-child(5),
  .admin-order-list-row span:nth-child(5) {
    justify-self: start;
  }

  .receipt-logo-setting,
  .receipt-preview-header,
  .receipt-info-band,
  .receipt-total {
    grid-template-columns: 1fr;
  }

  .receipt-info-band > div:last-child,
  .receipt-title-block {
    text-align: left;
  }

  .admin-order-popup .checkout-summary {
    grid-template-columns: 1fr;
  }

  .admin-order-summary-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-order-summary-row span,
  .admin-order-summary-row b {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .compact-order-card .checkout-summary {
    grid-template-columns: 1fr;
  }

  .setting-card:first-child {
    grid-template-columns: 1fr;
  }

  .tgp-row,
  .tgp-form,
  .shipping-row,
  .member-name-grid,
  .admin-field-grid,
  .pricing-grid,
  .product-meta-grid,
  .product-copy-grid {
    grid-template-columns: 1fr;
  }

  .tgp-row {
    min-width: 0;
  }

  .product-editor-sticky {
    grid-template-columns: 1fr;
  }

  .product-editor-actions {
    justify-content: flex-start;
  }

  .tgp-actions {
    justify-content: flex-start;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .checkout-row {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-row .remove-button {
    grid-column: 2;
    justify-self: start;
  }

  .checkout-head {
    display: none;
  }
}
