:root {
  --ink: #1f2b24;
  --ink-2: #4e5b53;
  --muted: #7f8982;
  --line: #e5e5e0;
  --paper: #fffefa;
  --shell: #f4f4f1;
  --green: #2e4638;
  --green-soft: #edf2eb;
  --accent: #3e5d4c;
  --accent-deep: #2b4234;
  --accent-soft: #eef4ee;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 22px 65px rgba(32, 45, 36, 0.14);
  --ease: cubic-bezier(0.2, 0.72, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--shell);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.buyer-loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--paper);
}

.buyer-loading span {
  font-family: var(--serif);
  font-size: 43px;
  animation: buyer-pulse 1.4s ease-in-out infinite;
}

.buyer-loading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

@keyframes buyer-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.94);
  }
}

.buyer-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
}

.buyer-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--green);
  border: 1px solid #bdc8be;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
}

.buyer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.buyer-brand b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.buyer-brand small {
  color: #89918b;
  font-size: 7px;
  letter-spacing: 0.15em;
}

.buyer-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(480px, 0.97fr);
  min-height: 100dvh;
  background: var(--paper);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  color: #eff2e9;
  background:
    radial-gradient(circle at 25% 25%, rgba(157, 179, 153, 0.2), transparent 31%),
    var(--green);
}

.auth-visual::before {
  position: absolute;
  top: 13%;
  left: 16%;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.auth-visual::after {
  position: absolute;
  right: -12%;
  bottom: -26%;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.buyer-brand.light {
  position: absolute;
  z-index: 5;
  top: 34px;
  left: 40px;
  color: #eff2e9;
}

.buyer-brand.light .buyer-brand-mark {
  border-color: rgba(255, 255, 255, 0.3);
}

.buyer-brand.light small {
  color: rgba(239, 242, 233, 0.48);
}

.auth-quote {
  position: absolute;
  z-index: 4;
  top: 20%;
  left: 9%;
}

.auth-quote > span {
  display: flex;
  gap: 9px;
  align-items: center;
  color: rgba(239, 242, 233, 0.45);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.auth-quote > span::before {
  width: 27px;
  height: 1px;
  background: currentColor;
  content: "";
}

.auth-quote h1 {
  margin: 25px 0 17px;
  font-family: var(--serif);
  font-size: clamp(46px, 4.7vw, 68px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.auth-quote p {
  color: rgba(239, 242, 233, 0.5);
  font-family: var(--serif);
  font-size: 11px;
}

.auth-image {
  position: absolute;
  overflow: hidden;
  border-radius: 50% 50% 0 0;
  box-shadow: 0 24px 70px rgba(12, 22, 16, 0.24);
}

.auth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-image-main {
  right: 7%;
  bottom: -2%;
  width: 320px;
  height: 570px;
  transform: rotate(3deg);
}

.auth-image-small {
  right: 32%;
  bottom: -12%;
  width: 205px;
  height: 350px;
  opacity: 0.72;
  transform: rotate(-7deg);
}

.auth-copyright {
  position: absolute;
  z-index: 4;
  right: 35px;
  bottom: 20px;
  left: 35px;
  display: flex;
  justify-content: space-between;
  color: rgba(239, 242, 233, 0.28);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 8vw;
  justify-content: center;
  background:
    radial-gradient(circle at 95% 2%, rgba(222, 209, 192, 0.25), transparent 30%),
    var(--paper);
}

.auth-panel-head {
  position: absolute;
  top: 28px;
  right: 35px;
  left: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-panel-head > a:last-child {
  color: #7f8982;
  font-size: 8px;
}

.auth-box {
  width: min(410px, 100%);
  margin: auto;
}

.auth-tabs {
  display: flex;
  gap: 27px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  position: relative;
  padding: 10px 1px 13px;
  color: #7e8781;
  border: 0;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.auth-tabs button.active {
  color: var(--ink);
  font-weight: 500;
}

.auth-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.buyer-account-method {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 14px;
  padding: 3px;
  border: 1px solid #d9ded8;
  background: #f5f6f1;
}

.buyer-account-method button {
  min-width: 74px;
  padding: 7px 13px;
  color: #6f7a73;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 9px;
  cursor: pointer;
}

.buyer-account-method button.active {
  color: white;
  background: var(--green);
}

.buyer-phone-input {
  display: flex;
  gap: 8px;
}

.buyer-phone-input[hidden] {
  display: none;
}

.buyer-phone-input select {
  width: 145px;
  min-width: 0;
  height: 45px;
  padding: 0 9px;
  color: #435148;
  border: 1px solid #d9ded8;
  outline: none;
  background: white;
  font-family: inherit;
  font-size: 9px;
}

.buyer-phone-input select:focus {
  border-color: var(--green);
}

.buyer-phone-input input {
  min-width: 0;
  flex: 1;
}

.auth-eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: #909792;
  font-size: 7px;
  letter-spacing: 0.19em;
}

.auth-eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.buyer-form h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.auth-intro {
  margin: 9px 0 25px;
  color: var(--muted);
  font-size: 9px;
}

.buyer-form > label {
  display: block;
  margin: 13px 0 7px;
  color: #5a665e;
  font-size: 9px;
}

.buyer-form input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #dadcd7;
  outline: none;
  background: #fff;
  font-size: 11px;
  transition: 0.2s;
}

.buyer-form input:focus {
  border-color: var(--green);
}

.buyer-password {
  position: relative;
}

.buyer-password input {
  padding-right: 50px;
}

.buyer-password button {
  position: absolute;
  top: 0;
  right: 4px;
  height: 43px;
  padding: 0 8px;
  color: #8b928d;
  border: 0;
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.auth-error {
  display: none;
  margin: 8px 0 0;
  padding: 8px 10px;
  color: #9a453d;
  background: #f8e8e4;
  font-size: 8px;
}

.auth-error.show {
  display: block;
}

.buyer-primary-button {
  display: flex;
  width: 100%;
  height: 45px;
  margin-top: 17px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  color: white;
  border: 0;
  background: var(--accent);
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s;
}

.buyer-primary-button:hover {
  background: var(--accent-deep);
}

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

.buyer-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 11px 12px;
  color: #7c857f;
  background: #f1f1ec;
  font-size: 8px;
}

.buyer-demo div {
  display: flex;
  gap: 7px;
  align-items: center;
}

.buyer-demo code {
  color: var(--green);
  font-size: 8px;
}

.buyer-demo i {
  color: #b0b5b0;
  font-style: normal;
}

.auth-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  color: #8b928d;
  font-size: 8px;
}

.buyer-app {
  min-height: 100dvh;
}

.buyer-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.95);
  backdrop-filter: blur(14px);
}

.buyer-header-center {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #919893;
  font-size: 9px;
}

.buyer-header-center i {
  font-style: normal;
}

.buyer-header-center b {
  color: #59655d;
  font-weight: 400;
}

.buyer-header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  color: #6f7972;
  font-size: 9px;
}

.buyer-header-nav a:hover {
  color: var(--accent);
}

.buyer-header-nav button {
  display: none;
}

.buyer-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  width: min(1320px, calc(100% - 40px));
  margin: 18px auto 40px;
}

.buyer-sidebar {
  position: sticky;
  top: 94px;
  height: fit-content;
  padding: 17px 13px;
  background: var(--paper);
}

.buyer-profile {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 4px 7px 17px;
  border-bottom: 1px solid #ededE8;
}

.buyer-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4aca0, #98746b);
  font-family: var(--serif);
  font-size: 16px;
}

.buyer-profile div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.buyer-profile b {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-profile small {
  color: #8d958f;
  font-size: 8px;
}

.buyer-menu-label {
  margin: 19px 9px 8px;
  color: #a2a8a3;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.buyer-menu-label.second {
  margin-top: 25px;
}

.buyer-menu {
  display: grid;
  gap: 2px;
}

.buyer-menu button,
.buyer-menu a {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  gap: 8px;
  min-height: 39px;
  padding: 0 10px;
  align-items: center;
  color: #707a73;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}

.buyer-menu button:hover,
.buyer-menu button.active,
.buyer-menu a:hover {
  color: var(--green);
  background: #edf2eb;
}

.buyer-menu button > span,
.buyer-menu a > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--green);
  border-radius: 50%;
  background: #f0f3ee;
  font-size: 8px;
}

.buyer-menu button.active > span {
  color: white;
  background: var(--green);
}

.buyer-menu em {
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  color: var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 7px;
  font-style: normal;
}

.buyer-sidebar-bottom {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #ededE8;
}

.buyer-sidebar-bottom a,
.buyer-sidebar-bottom button {
  min-height: 34px;
  padding: 0 10px;
  color: #89918c;
  border: 0;
  background: transparent;
  font-size: 8px;
  text-align: left;
  cursor: pointer;
}

.buyer-main {
  min-width: 0;
}

.buyer-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 5px 0 15px;
}

.buyer-page-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.buyer-page-heading p {
  margin: 6px 0 0;
  color: #8c948e;
  font-size: 8px;
}

.buyer-page-heading .heading-action,
.buyer-page-heading a {
  padding: 8px 12px;
  color: var(--green);
  border: 1px solid #d6ddd7;
  background: var(--paper);
  font-size: 8px;
}

.buyer-welcome {
  position: relative;
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 25px 30px;
  overflow: hidden;
  color: #eff2e9;
  background:
    radial-gradient(circle at 80% 30%, rgba(166, 187, 164, 0.2), transparent 28%),
    var(--green);
}

.buyer-welcome::after {
  position: absolute;
  right: 7%;
  bottom: -100px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--serif);
  font-size: 250px;
  content: "花";
}

.buyer-welcome > div {
  position: relative;
  z-index: 2;
}

.buyer-welcome span {
  color: rgba(239, 242, 233, 0.5);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.buyer-welcome h2 {
  margin: 8px 0 7px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.buyer-welcome p {
  margin: 0;
  color: rgba(239, 242, 233, 0.55);
  font-size: 9px;
}

.buyer-welcome > a {
  position: relative;
  z-index: 2;
  padding: 9px 14px;
  color: var(--green);
  background: #f2f1e9;
  font-size: 8px;
}

.buyer-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.buyer-metric {
  padding: 17px 18px;
  background: var(--paper);
}

.buyer-metric span {
  color: #89918b;
  font-size: 8px;
}

.buyer-metric strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.buyer-metric small {
  display: block;
  margin-top: 4px;
  color: #a0a6a1;
  font-size: 7px;
}

.buyer-card {
  margin-bottom: 12px;
  padding: 18px;
  background: var(--paper);
}

.buyer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #ededE8;
}

.buyer-card-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.buyer-card-head a,
.buyer-card-head button {
  color: #8a928c;
  border: 0;
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.buyer-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 85px 90px 78px 80px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #efefEa;
}

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

.buyer-order-product {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.buyer-order-product img {
  width: 64px;
  height: 72px;
  object-fit: cover;
}

.buyer-order-product div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.buyer-order-product b {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-order-product span {
  color: #919893;
  font-size: 8px;
}

.buyer-order-number {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8b938d;
  font-size: 7px;
}

.buyer-order-number b {
  color: #657068;
  font-size: 8px;
  font-weight: 400;
}

.buyer-order-amount {
  font-family: var(--serif);
  font-size: 14px;
}

.buyer-order-action {
  padding: 7px 8px;
  color: var(--green);
  border: 1px solid #d6ddd7;
  background: #fafaf6;
  font-size: 8px;
  cursor: pointer;
}

.buyer-status {
  display: inline-flex;
  width: fit-content;
  gap: 5px;
  padding: 5px 8px;
  align-items: center;
  border-radius: 20px;
  font-size: 8px;
}

.buyer-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.buyer-status.status-pending {
  color: #a2732d;
  background: #f8efdF;
}

.buyer-status.status-packing {
  color: #54778d;
  background: #eaf1f5;
}

.buyer-status.status-shipped {
  color: #687488;
  background: #edf0f5;
}

.buyer-status.status-completed {
  color: #53735d;
  background: #e9f1e9;
}

.buyer-status.status-cancelled {
  color: #8d6c68;
  background: #f2eae8;
}

.buyer-empty {
  padding: 60px 20px;
  color: #888f8a;
  text-align: center;
}

.buyer-empty span {
  color: #b4bdb5;
  font-family: var(--serif);
  font-size: 39px;
}

.buyer-empty h3 {
  margin: 12px 0 7px;
  color: #657068;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.buyer-empty p {
  margin: 0 0 18px;
  font-size: 8px;
}

.buyer-empty a {
  display: inline-flex;
  padding: 9px 14px;
  color: white;
  background: var(--green);
  font-size: 8px;
}

.buyer-filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 7px;
  background: var(--paper);
}

.buyer-filter-tabs button {
  padding: 8px 14px;
  color: #79827b;
  border: 0;
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.buyer-filter-tabs button.active {
  color: white;
  background: var(--green);
}

.buyer-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.buyer-address-card {
  position: relative;
  padding: 17px;
  border: 1px solid #e6e6e1;
  background: #fcfbf7;
}

.buyer-address-card.default {
  border-color: #cbd5cc;
  background: #f4f7f2;
}

.buyer-address-card header {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 11px;
}

.buyer-address-card header b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.buyer-address-card header span {
  padding: 3px 6px;
  color: var(--green);
  border-radius: 2px;
  background: #dfe8de;
  font-size: 7px;
}

.buyer-address-card p {
  margin: 6px 0;
  color: #68736c;
  font-size: 9px;
  line-height: 1.7;
}

.buyer-address-card small {
  color: #8f9691;
  font-size: 8px;
}

.buyer-security-list {
  display: grid;
}

.buyer-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #efefEa;
}

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

.buyer-security-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.buyer-security-row b {
  font-size: 9px;
  font-weight: 500;
}

.buyer-security-row span {
  color: #8f9691;
  font-size: 8px;
}

.buyer-security-row em {
  color: #5f7461;
  font-size: 8px;
  font-style: normal;
}

.privacy-buyer-card {
  position: relative;
  overflow: hidden;
  padding: 27px;
  color: #edf1e9;
  background: var(--green);
}

.privacy-buyer-card::after {
  position: absolute;
  right: 5%;
  bottom: -100px;
  color: rgba(255, 255, 255, 0.04);
  font-family: var(--serif);
  font-size: 250px;
  content: "隐";
}

.privacy-buyer-card h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
}

.privacy-buyer-card > p {
  position: relative;
  z-index: 2;
  max-width: 690px;
  color: rgba(237, 241, 233, 0.58);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.9;
}

.privacy-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.privacy-split div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.privacy-split b {
  font-size: 9px;
  font-weight: 500;
}

.privacy-split p {
  margin: 6px 0 0;
  color: rgba(237, 241, 233, 0.5);
  font-size: 8px;
  line-height: 1.7;
}

.buyer-modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  visibility: hidden;
  padding: 24px;
  place-items: center;
  background: rgba(23, 34, 27, 0.46);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: 0.25s var(--ease);
}

.buyer-modal-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.buyer-order-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 25px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.buyer-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 20px;
  cursor: pointer;
}

.order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 17px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.order-detail-head h2 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.order-detail-head p {
  margin: 0;
  color: #8c948e;
  font-size: 8px;
}

.shipping-card {
  margin-bottom: 14px;
  padding: 13px;
  color: #657069;
  background: #eef2ec;
  font-size: 9px;
  line-height: 1.8;
}

.shipping-card b {
  color: #425047;
}

.buyer-order-items {
  border-top: 1px solid var(--line);
}

.buyer-order-item {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #efefEa;
}

.buyer-order-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.buyer-order-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.buyer-order-item b {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
}

.buyer-order-item span {
  color: #8f9691;
  font-size: 8px;
}

.buyer-order-item strong {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
}

.order-detail-total {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: baseline;
  padding-top: 14px;
  font-size: 9px;
}

.order-detail-total strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.buyer-toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  max-width: 320px;
  padding: 12px 15px;
  visibility: hidden;
  color: white;
  background: rgba(37, 55, 44, 0.96);
  box-shadow: 0 10px 30px rgba(20, 30, 24, 0.18);
  font-size: 9px;
  opacity: 0;
  transform: translateY(7px);
  transition: 0.25s;
}

.buyer-toast.show {
  visibility: visible;
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .buyer-auth {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .auth-image-large {
    display: none;
  }

  .buyer-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    width: calc(100% - 28px);
  }

  .buyer-order-row {
    grid-template-columns: minmax(0, 1fr) 82px 76px 74px;
  }

  .buyer-order-number {
    display: none;
  }
}

@media (max-width: 740px) {
  .buyer-auth {
    display: block;
    min-height: 100dvh;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100dvh;
    padding: 80px 23px 30px;
  }

  .auth-panel-head {
    top: 22px;
    right: 22px;
    left: 22px;
  }

  .auth-panel-head > a:last-child {
    display: none;
  }

  .auth-box {
    margin-top: 15px;
  }

  .buyer-header {
    height: 64px;
    padding: 0 15px;
  }

  .buyer-brand-mark {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .buyer-brand b {
    font-size: 15px;
  }

  .buyer-brand small,
  .buyer-header-center,
  .buyer-header-nav a {
    display: none;
  }

  .buyer-header-nav button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    background: white;
    font-size: 16px;
  }

  .buyer-layout {
    display: block;
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .buyer-sidebar {
    position: fixed;
    z-index: 90;
    top: 0;
    bottom: 0;
    left: 0;
    width: 245px;
    padding-top: 25px;
    box-shadow: 12px 0 35px rgba(21, 31, 25, 0.15);
    transform: translateX(-100%);
    transition: 0.28s var(--ease);
  }

  .buyer-sidebar.open {
    transform: none;
  }

  .buyer-page-heading {
    margin-top: 2px;
  }

  .buyer-page-heading h1 {
    font-size: 24px;
  }

  .buyer-welcome {
    min-height: 120px;
    padding: 21px;
  }

  .buyer-welcome h2 {
    font-size: 22px;
  }

  .buyer-welcome > a {
    display: none;
  }

  .buyer-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .buyer-metric {
    padding: 14px;
  }

  .buyer-card {
    padding: 13px;
  }

  .buyer-order-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }

  .buyer-order-product {
    width: calc(100% - 70px);
  }

  .buyer-order-amount {
    order: 3;
  }

  .buyer-order-row > .buyer-status {
    order: 2;
    margin-left: auto;
  }

  .buyer-order-action {
    order: 4;
    margin-left: auto;
  }

  .buyer-address-grid {
    grid-template-columns: 1fr;
  }

  .privacy-split {
    grid-template-columns: 1fr;
  }

  .buyer-modal-backdrop {
    padding: 0;
  }

  .buyer-order-modal {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 25px 16px;
  }

  .buyer-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .auth-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .buyer-form h2 {
    font-size: 32px;
  }

  .buyer-demo {
    display: block;
  }

  .buyer-demo div {
    margin-top: 5px;
  }

  .buyer-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.buyer-suborder-list {
  display: grid;
  gap: 14px;
}

.buyer-suborder {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.buyer-suborder > header,
.buyer-suborder > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.buyer-suborder > header {
  background: #eef2ec;
}

.buyer-suborder > header div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.buyer-suborder > header b {
  color: #35473b;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
}

.buyer-suborder > header span,
.buyer-suborder > footer span {
  color: #8d958f;
  font-size: 8px;
}

.buyer-suborder .buyer-order-items {
  padding: 0 14px;
}

.buyer-suborder > footer {
  border-top: 1px solid var(--line);
}

.buyer-suborder > footer b {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.reviewable-item {
  align-items: start;
}

.reviewable-item > .buyer-review-button,
.reviewable-item > .buyer-review-locked {
  grid-row: 2;
  grid-column: 3;
  justify-self: end;
}

.buyer-review-button {
  padding: 7px 11px;
  color: #53695b;
  border: 1px solid rgba(63, 91, 72, 0.28);
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.buyer-review-locked {
  color: #a3a9a5;
  font-size: 8px;
}

.buyer-my-review {
  display: block !important;
  grid-column: 1 / -1;
  margin-top: 7px;
  padding: 11px 12px;
  background: #f7f6f0;
}

.buyer-my-review > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.buyer-my-review > div span {
  color: #a4763a;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.buyer-my-review p {
  margin: 7px 0;
  color: #4f5b53;
  font-size: 9px;
  line-height: 1.7;
}

.buyer-my-review blockquote {
  margin: 8px 0;
  padding: 8px 10px;
  color: #667269;
  border-left: 2px solid #6c8474;
  background: rgba(63, 91, 72, 0.05);
  font-size: 8px;
  line-height: 1.65;
}

.buyer-my-review blockquote b {
  display: block;
  margin-bottom: 3px;
  color: #3f5b48;
  font-family: inherit;
  font-size: 8px;
}

.buyer-my-review > button {
  padding: 0;
  color: #61786a;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.buyer-review-modal {
  width: min(560px, 100%);
}

.review-form-head span {
  color: #8b948e;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.review-form-head h2 {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.review-form-head p {
  margin: 0 0 22px;
  color: #879089;
  font-size: 9px;
}

.buyer-review-form {
  display: grid;
  gap: 8px;
}

.buyer-review-form > label {
  margin-top: 6px;
  color: #55635a;
  font-size: 9px;
}

.buyer-rating-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.buyer-rating-picker label {
  cursor: pointer;
}

.buyer-rating-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.buyer-rating-picker span {
  display: block;
  padding: 8px 10px;
  color: #b2b4ae;
  border: 1px solid var(--line);
  background: white;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.buyer-rating-picker input:checked + span {
  color: #9b6d31;
  border-color: rgba(155, 109, 49, 0.4);
  background: #fbf6ea;
}

.buyer-review-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 13px;
  color: #35433a;
  border: 1px solid var(--line);
  outline: none;
  background: white;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.7;
  resize: vertical;
}

.buyer-review-form textarea:focus {
  border-color: #657c6c;
}

.buyer-review-note {
  margin: 5px 0 11px;
  color: #8c948e;
  font-size: 8px;
  line-height: 1.7;
}
