/* Chợ Mới working surfaces.
   Scroll Craft: clear hierarchy, meaningful grouping and calm transaction tools. */

.page-heading {
  padding: 48px 0 32px;
}

.page-heading h1 {
  margin-top: 10px;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.045em;
}

.page-heading p {
  max-width: 64ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.heading-with-action {
  gap: 24px;
  align-items: center;
}

.heading-with-action > div {
  min-width: 0;
}

.heading-with-action > .button {
  flex-shrink: 0;
  font-size: 14px;
  min-height: 46px;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.field {
  display: block;
  min-width: 0;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid #829a89;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  caret-color: var(--green);
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.field select {
  padding-right: 28px;
}

.field textarea {
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6d7d74;
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: 2px solid var(--green);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #edf3ee;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: #f0f4f1;
  color: #596d62;
  cursor: not-allowed;
}

.field-row,
.digital-fields .field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  margin-top: 8px;
}

.required {
  color: #9c492f;
  font-size: 14px;
}

.form-error {
  border-color: #e0b5a6;
  background: #fff2ee;
  color: #893926;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.form-bottom {
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.form-bottom > p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.form-bottom > .button {
  min-height: 50px;
  flex-shrink: 0;
  font-size: 14px;
}

.text-button {
  color: var(--green);
  font-size: 13px;
  line-height: 1.7;
  text-decoration-color: #a8beb0;
  text-underline-offset: 4px;
  padding: 10px 0;
}

.text-button:hover {
  text-decoration-color: currentColor;
}

.breadcrumbs {
  gap: 12px;
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumbs a {
  flex-shrink: 0;
}

.breadcrumbs a:hover {
  color: var(--green);
  text-decoration: underline;
}

.breadcrumbs svg {
  width: 13px;
  height: 13px;
}

.loading-text {
  color: var(--muted);
  font-size: 14px;
}

.account-tabs,
.admin-tabs {
  gap: 30px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}

.account-tabs > a,
.admin-tabs > button {
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.account-tabs > .selected,
.admin-tabs > .selected {
  color: var(--green);
  font-weight: 700;
}

/* Product: the image, the offer and its seller have distinct visual weight. */
.detail-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: 64px;
}

.detail-left,
.detail-sidebar {
  min-width: 0;
}

.detail-main-image {
  aspect-ratio: 1.14;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #eef3ed;
}

.detail-main-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-main-image .condition-badge {
  top: 20px;
  left: 20px;
  padding: 7px 12px;
  color: var(--green);
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
}

.detail-main-image .favorite-button {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
}

.detail-main-image .favorite-button svg {
  width: 22px;
  height: 22px;
}

.gallery-thumbs {
  gap: 12px;
  margin-top: 16px;
}

.gallery-thumb {
  width: 88px;
  height: 76px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #eef3ed;
}

.gallery-thumb.selected {
  border-color: var(--green);
}

.gallery-thumb img {
  border-radius: 8px;
}

.detail-sidebar {
  padding-top: 12px;
}

.detail-sidebar > .eyebrow,
.detail-description > .eyebrow {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .09em;
}

.detail-sidebar > h1 {
  margin-top: 14px;
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.detail-price {
  margin-top: 18px;
  color: var(--green);
  font-size: 34px;
  line-height: 1.4;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.detail-location {
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.detail-location svg {
  width: 18px;
  height: 18px;
}

.seller-panel {
  padding: 28px 0;
  margin-top: 28px;
}

.seller-link {
  gap: 14px;
  margin-bottom: 24px;
}

.avatar-large {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.seller-link strong {
  font-size: 16px;
  font-weight: 600;
}

.seller-link small {
  color: var(--muted);
  font-size: 13px;
}

.seller-panel > .button {
  min-height: 50px;
  margin-top: 12px;
  font-size: 15px;
}

.contact-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}

.safety-note {
  gap: 14px;
  padding: 20px;
  border-color: var(--line);
  border-radius: 16px;
  background: #eef5ef;
}

.safety-note > svg {
  width: 23px;
  height: 23px;
  color: var(--green);
}

.safety-note strong {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.safety-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 8px;
}

.report-button,
.seller-payment-link {
  margin-top: 16px;
  font-size: 13px;
}

.detail-description {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.detail-description h2 {
  margin-top: 8px;
  font-size: 28px;
}

.spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 12px 24px;
  margin-top: 24px;
  border-radius: 16px;
  background: #eef4ee;
}

.spec-grid > div {
  min-width: 0;
  padding: 13px 0;
  gap: 16px;
  font-size: 13px;
  line-height: 1.8;
  align-items: start;
}

.spec-grid > div > span {
  color: var(--muted);
}

.spec-grid strong {
  color: var(--ink);
  font-weight: 500;
}

.user-description {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.95;
  margin-top: 28px;
}

.digital-summary {
  padding: 22px;
  gap: 20px;
  background: #edf5ef;
  border-color: var(--line);
  border-radius: 16px;
}

.digital-summary svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.digital-summary span {
  color: var(--muted);
  font-size: 13px;
}

.digital-summary strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 600;
}

.digital-requirements h3 {
  font-size: 19px;
}

.related-listings {
  padding-bottom: 64px;
}

/* Posting: a generous form and a quiet, useful guidance rail. */
.post-page,
.payment-page,
.checkout-page,
.orders-page,
.order-detail-page,
.collection-page,
.admin-page {
  padding-bottom: 72px;
}

.post-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
}

.post-form,
.payment-form,
.checkout-form {
  padding: 36px;
  min-width: 0;
}

.form-section {
  margin-bottom: 36px;
}

.form-section + .form-section {
  padding-top: 36px;
}

.form-section-heading {
  gap: 16px;
  margin-bottom: 28px;
}

.form-section-heading > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 36px;
  height: 36px;
  border: 1px solid #cbdccf;
  border-radius: 10px;
  background: #edf4ed;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.form-section-heading h2 {
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.form-section-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 6px;
}

.listing-kind-note {
  margin-top: -4px;
  padding: 14px 16px;
  color: var(--green);
  background: #edf5ee;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.8;
}

.upload-zone {
  min-height: 240px;
  gap: 6px;
  padding: 24px;
  border: 1px dashed #799181;
  border-radius: 16px;
  background: #f4f8f3;
  text-align: center;
}

.upload-zone > svg {
  width: 36px;
  height: 36px;
  color: var(--green);
}

.upload-zone > strong {
  font-size: 16px;
  font-weight: 600;
}

.upload-zone > span:not(.button) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.upload-zone > .button {
  font-size: 13px;
  min-height: 42px;
  margin-top: 16px;
}

.upload-zone:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.photo-preview {
  width: 116px;
  height: 108px;
  border-radius: 12px;
}

.photo-preview > span {
  color: var(--green);
  font-size: 11px;
  padding: 3px;
}

.remove-photo {
  width: 30px;
  height: 30px;
  font-size: 22px;
}

.digital-fields {
  border: 1px solid #cbdccf;
  border-radius: 16px;
  background: #f8fbf7;
  padding: 24px 22px 0;
  margin-top: 12px;
}

.digital-fields legend {
  color: var(--green);
  font-size: 14px;
  padding-inline: 8px;
}

.post-tips {
  top: calc(var(--site-header-height, 80px) + 24px);
  padding: 28px;
  background: #eaf3e8;
  border: 1px solid #d8e5d7;
  border-radius: 20px;
}

.tip-illustration {
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  background: var(--lime);
  border-radius: 18px;
  transform: none;
}

.tip-illustration svg {
  color: var(--green);
}

.post-tips > .eyebrow,
.payment-settings-note .eyebrow {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.post-tips h2 {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.4;
}

.post-tips ul {
  margin: 30px 0 22px;
}

.post-tips li {
  gap: 12px;
  margin-bottom: 24px;
}

.post-tips li > span {
  color: var(--green);
  font-size: 12px;
}

.post-tips li strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}

.post-tips li p,
.tip-bottom {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tip-bottom {
  align-items: start;
  gap: 10px;
  padding-top: 22px;
  border-color: #cbdcc9;
}

.tip-bottom svg {
  margin-top: 3px;
}

/* Authentication: a brand moment beside a straightforward form. */
.auth-page {
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: 56px 72px;
}

.auth-story {
  min-height: 600px;
  padding: 36px;
  border: 1px solid #d8e6d8;
  border-radius: 24px;
  background: #e8f2e5;
}

.auth-story .eyebrow {
  max-width: 300px;
  color: var(--green);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .07em;
}

.auth-story h1 {
  font-size: clamp(30px, 3.1vw, 41px);
  font-weight: 600;
  line-height: 1.32;
  margin-top: 24px;
}

.auth-story h1 em {
  color: #35664c;
}

.auth-story p {
  margin-top: 22px;
  color: #466450;
  font-size: 14px;
  line-height: 1.85;
}

.auth-story > img {
  width: 270px;
  height: 250px;
  border-radius: 140px 0 0 0;
  right: -8px;
  bottom: -8px;
}

.auth-sticker {
  width: 112px;
  height: 112px;
  bottom: 38px;
  left: 30px;
  background: var(--lime);
  outline-color: var(--lime);
  border-color: #82964c;
  color: var(--green);
  font-size: 19px;
}

.auth-sticker strong {
  font-size: 30px;
}

.auth-form-wrap {
  padding-block: 20px;
  border: 0;
  background: transparent;
}

.auth-form-wrap > .eyebrow {
  color: var(--muted);
  font-size: 11px;
}

.auth-form-wrap h2 {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 12px;
}

.auth-form-wrap > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0 30px;
}

.auth-form-wrap .field {
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-form-wrap .field input {
  padding: 13px 14px;
  font-size: 16px;
}

.auth-form-wrap .button {
  min-height: 50px;
  font-size: 15px;
}

.password-field input,
.auth-form-wrap .password-field input {
  padding-right: 56px;
}

.password-field > .icon-button {
  top: 7px;
  right: 7px;
  width: 38px;
  height: 38px;
  color: var(--green);
}

.password-field > .icon-button svg {
  width: 20px;
  height: 20px;
}

.auth-switch {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 24px;
  padding-bottom: 24px;
}

.auth-security {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  padding-top: 20px;
}

.auth-security svg {
  width: 18px;
  height: 18px;
}

.demo-accounts {
  padding: 14px 16px;
  border-color: #bbcdbd;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.demo-accounts summary {
  color: var(--green);
  line-height: 1.8;
}

.demo-accounts p {
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

/* Personal listings and public seller profile. */
.my-listings {
  gap: 16px;
}

.my-listing {
  gap: 28px;
  padding: 24px;
  background: #fff;
  border-radius: 20px;
}

.my-listing-photo {
  width: 168px;
  height: 144px;
  border-radius: 14px;
  background: #edf3ed;
}

.my-listing h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.my-listing .listing-price {
  font-size: 20px;
  margin-top: 10px;
}

.my-meta,
.rejection-reason {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 10px;
}

.rejection-reason {
  color: #93462e;
}

.status-badge {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 7px;
  font-weight: 500;
  color: #52634c;
}

.status-pending {
  background: #faf1db;
  color: #765d1d;
  border-color: #e7d6a2;
}

.status-approved {
  background: #e7f2e5;
  color: #315f30;
  border-color: #c9dec5;
}

.status-rejected,
.status-removed {
  background: #fcf0ec;
  color: #8c432e;
  border-color: #e5c0b2;
}

.status-sold,
.status-hidden {
  background: #edf1ed;
  color: #52665b;
  border-color: #cfdbd1;
}

.my-listing-actions {
  min-width: 140px;
  gap: 10px;
}

.my-listing-actions .button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13px;
}

.my-listing-actions .text-button {
  font-size: 13px;
}

.seller-profile {
  gap: 24px;
  padding: 42px 0;
  margin-bottom: 36px;
}

.avatar-profile {
  width: 88px;
  height: 88px;
  font-size: 30px;
}

.seller-profile .eyebrow {
  color: var(--muted);
  font-size: 11px;
}

.seller-profile h1 {
  font-size: 38px;
  line-height: 1.3;
}

.seller-profile p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.seller-profile .button {
  font-size: 13px;
  min-height: 44px;
}

/* Seller QR settings. The image remains whole and static. */
.payment-settings-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
}

.payment-enable {
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 30px;
}

.payment-enable strong {
  font-size: 19px;
  line-height: 1.5;
}

.payment-enable small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 7px;
}

.payment-enable input {
  width: 48px;
  height: 28px;
  background: #829a89;
  transition: none;
}

.payment-enable input:before {
  width: 22px;
  height: 22px;
  transition: none;
}

.payment-enable input:checked:before {
  transform: translateX(20px);
}

.payment-enable input:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.qr-upload-layout {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  margin: 8px 0 30px;
  border-color: #d2e0d3;
  border-radius: 16px;
  background: #f0f6ef;
}

.qr-upload-preview {
  width: 100%;
  min-width: 0;
  border-color: #c8d7cb;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.qr-upload-preview > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-upload-preview > div {
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.qr-upload-layout h2 {
  font-size: 21px;
  line-height: 1.4;
}

.qr-upload-layout p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  margin-top: 12px;
}

.qr-file-button {
  min-height: 44px;
  font-size: 13px;
  margin-top: 18px;
}

.qr-upload-layout .text-button {
  font-size: 13px;
  margin-left: 12px;
}

.payment-settings-note {
  padding: 28px 4px 20px;
}

.payment-settings-note > .empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 30px;
  background: #e8f2e5;
  color: var(--green);
}

.payment-settings-note h2 {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
}

.payment-settings-note > p,
.payment-settings-note ol {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 24px;
}

.payment-settings-note ol {
  padding-left: 22px;
}

.payment-settings-note li + li {
  margin-top: 12px;
}

/* Checkout and transactions: information before action. */
.checkout-page > .page-heading,
.order-detail-page > .page-heading {
  padding-top: 10px;
}

.checkout-layout,
.order-detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.checkout-form .field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-form .form-bottom {
  flex-wrap: wrap;
  align-items: start;
  margin-top: 30px;
}

.checkout-explanation {
  gap: 16px;
  padding: 22px;
  border-radius: 16px;
  background: #eef5ec;
  margin: 28px 0;
}

.checkout-explanation > svg {
  color: var(--green);
  width: 24px;
  height: 24px;
}

.checkout-explanation strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.checkout-explanation p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin-top: 10px;
}

.checkout-summary {
  padding: 28px;
  position: sticky;
  top: calc(var(--site-header-height, 80px) + 24px);
}

.checkout-summary > .eyebrow {
  font-size: 11px;
  color: var(--muted);
}

.checkout-summary > a > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.2;
  border-radius: 14px;
  background: #eef3ed;
  margin: 20px 0;
}

.checkout-summary h2 {
  font-size: 22px;
  line-height: 1.5;
}

.checkout-summary .listing-category {
  font-size: 11px;
  color: var(--muted);
}

.checkout-seller,
.checkout-digital {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
}

.checkout-seller strong {
  color: var(--ink);
  font-weight: 600;
}

.checkout-total {
  padding-top: 24px;
  margin-top: 26px;
  font-size: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.checkout-total strong {
  color: var(--green);
  font-size: 25px;
  line-height: 1.4;
}

.checkout-summary > .text-button {
  margin-top: 20px;
  font-size: 13px;
  white-space: normal;
}

.checkout-unavailable {
  padding: 48px 32px;
}

.checkout-unavailable h2 {
  font-size: 28px;
  line-height: 1.4;
}

.checkout-unavailable > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 20px auto 28px;
}

.checkout-unavailable > .text-button {
  font-size: 13px;
}

.orders-toolbar {
  gap: 16px;
  margin: 0 0 24px;
}

.orders-toolbar > p {
  color: var(--muted);
  font-size: 14px;
}

.orders-toolbar .button {
  min-height: 42px;
  font-size: 13px;
}

.order-list-card {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  padding: 24px;
  gap: 28px;
  margin-bottom: 16px;
}

.order-list-photo {
  width: 120px;
  border-radius: 14px;
  background: #edf3ed;
}

.order-list-top {
  gap: 12px;
}

.order-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.order-status {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: #4d6254;
}

.order-status-awaiting_payment {
  background: #faf0d8;
  color: #795b17;
}

.order-status-payment_reported {
  background: #e8eff8;
  color: #355d83;
}

.order-status-paid {
  background: #e6f0df;
  color: #41682e;
}

.order-status-fulfilled {
  background: #e5efea;
  color: #315e4b;
}

.order-status-completed {
  background: #deeedf;
  color: #2d6036;
}

.order-status-cancelled {
  background: #f7eae5;
  color: #8b4835;
}

.order-list-title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 12px;
}

.order-list-counterparty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 10px;
}

.order-list-date {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.order-list-end {
  gap: 20px;
}

.order-list-end .listing-price {
  font-size: 23px;
}

.order-list-end .button {
  font-size: 13px;
  min-height: 42px;
}

.orders-empty-link {
  font-size: 14px;
  margin-bottom: 48px;
}

.order-detail-page .page-heading h1 {
  font-size: clamp(28px, 3vw, 40px);
}

.order-main,
.order-aside {
  gap: 24px;
}

.order-main > .surface,
.order-aside > .surface {
  padding: 28px;
}

.order-state-panel {
  background: #edf5ed;
  border-color: #cbdcca;
}

.order-state-panel h2 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  margin-top: 20px;
}

.order-state-panel > p:not(.form-error) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin-top: 14px;
}

.order-actions {
  gap: 12px;
  margin-top: 24px;
}

.order-actions .button {
  font-size: 14px;
  min-height: 46px;
}

.panel-heading {
  gap: 16px;
  margin-bottom: 28px;
}

.panel-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--green);
  background: #edf4e9;
}

.panel-icon > svg {
  width: 23px;
  height: 23px;
}

.panel-heading .eyebrow,
.order-product-panel > .eyebrow,
.order-delivery-panel > .eyebrow,
.order-people-panel > .eyebrow {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .06em;
}

.panel-heading h2 {
  font-size: 24px;
  line-height: 1.4;
  margin-top: 6px;
}

.order-payment-body {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
}

.order-qr img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  background: #fff;
  border-color: #c5d5c9;
  padding: 10px;
  border-radius: 12px;
}

.order-qr > a {
  color: var(--green);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  padding-block: 4px;
}

.order-bank-info {
  gap: 20px;
}

.order-fact {
  font-size: 13px;
  line-height: 1.8;
  gap: 16px;
}

.order-fact > span {
  color: var(--muted);
}

.order-fact > strong {
  color: var(--ink);
  font-weight: 600;
}

.order-bank-info .order-fact > span {
  font-size: 12px;
}

.order-bank-info .order-fact > strong {
  font-size: 16px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}

.order-copy {
  width: 38px;
  height: 38px;
  color: var(--green);
}

.order-copy svg {
  width: 19px;
  height: 19px;
}

.order-payment-instructions {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f0f5ee;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
}

.manual-payment-note {
  gap: 12px;
  padding-top: 24px;
  margin-top: 28px;
}

.manual-payment-note svg {
  color: var(--green);
  width: 20px;
  height: 20px;
}

.manual-payment-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.order-timeline {
  padding: 0;
  margin: 0;
}

.order-event {
  gap: 18px;
  padding-bottom: 30px;
}

.order-event-marker {
  width: 28px;
  height: 28px;
  background: #e9f2e6;
  color: var(--green);
}

.order-event-marker svg {
  width: 15px;
  height: 15px;
}

.order-event:not(:last-child):before {
  left: 13px;
  top: 31px;
  background: #c9d9cb;
}

.order-event h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.order-event-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 5px;
}

.order-event-note {
  margin-top: 12px;
  padding: 14px 16px;
  color: var(--ink);
  background: #f0f5ee;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.9;
}

.order-product-image {
  margin-top: 20px;
  border-radius: 12px;
  background: #edf3ed;
}

.order-product-panel > h2 {
  font-size: 22px;
  line-height: 1.5;
  margin-top: 20px;
}

.order-product-panel > .listing-price {
  font-size: 26px;
  line-height: 1.4;
  margin: 12px 0 22px;
}

.order-product-panel > .order-fact {
  font-size: 13px;
  padding-top: 14px;
}

.order-product-panel > .field-help {
  font-size: 12px;
  line-height: 1.85;
  margin-top: 24px;
}

.order-delivery-panel h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 12px 0 24px;
}

.order-delivery-panel .order-fact {
  font-size: 13px;
  gap: 5px;
  margin-top: 18px;
}

.order-delivery-panel .order-fact > strong {
  font-size: 15px;
  line-height: 1.8;
}

.order-delivery-panel h3 {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 28px;
  padding-top: 24px;
}

.order-delivery-panel .user-description {
  font-size: 14px;
  line-height: 1.9;
  margin-top: 12px;
}

.order-people-panel .order-fact {
  margin-top: 20px;
  font-size: 13px;
}

.order-people-panel .button {
  min-height: 46px;
  padding-inline: 12px;
  font-size: 13px;
  gap: 8px;
  margin-top: 28px;
}

.order-people-panel > .text-button {
  margin-top: 14px;
  font-size: 13px;
}

/* Chat: fixed reading rhythm and a composer that clears mobile navigation. */
.chat-page {
  padding-bottom: 64px;
}

.chat-shell {
  grid-template-columns: 340px minmax(0, 1fr);
  border-radius: 22px;
  min-height: 680px;
  box-shadow: 0 12px 36px #24483208;
}

.conversation-sidebar {
  min-width: 0;
  background: #f7faf5;
}

.conversation-heading {
  padding: 22px;
  gap: 12px;
}

.conversation-heading h2 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.conversation-heading .icon-button {
  width: 38px;
  height: 38px;
}

.conversation-heading svg {
  width: 20px;
  height: 20px;
}

.conversation-item {
  gap: 14px;
  padding: 22px 20px;
  border-color: var(--line);
}

.conversation-item.selected {
  background: #e8f2e5;
  box-shadow: inset 2px 0 0 var(--green);
}

.conversation-item > img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.conversation-top {
  gap: 8px;
}

.conversation-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.conversation-top time {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.conversation-title {
  color: #466451;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 4px;
}

.conversation-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 5px;
}

.unread-dot {
  font-size: 11px;
  min-width: 22px;
  height: 22px;
  right: 18px;
  bottom: 20px;
}

.chat-empty {
  min-height: 680px;
  padding: 40px;
  background: #fff;
}

.chat-empty h2 {
  max-width: 24ch;
  color: var(--green);
  font-size: 29px;
  line-height: 1.4;
  font-weight: 600;
}

.chat-empty p {
  max-width: 44ch;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

#chat-active {
  height: 720px;
  max-height: 84dvh;
  min-height: 520px;
}

.chat-person {
  padding: 18px 24px;
  gap: 14px;
  background: #fff;
  flex: none;
}

.chat-person h2 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.connection-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.chat-listing {
  padding: 16px 24px;
  gap: 14px;
  background: #f1f6ee;
  flex: none;
}

.chat-listing > img {
  width: 52px;
  height: 48px;
  border-radius: 10px;
}

.chat-listing strong {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.chat-listing small {
  color: var(--green);
  font-size: 13px;
  line-height: 1.6;
}

.chat-order-links {
  padding: 12px 24px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.7;
  flex: none;
}

.chat-order-links svg {
  width: 17px;
  height: 17px;
}

.chat-safety {
  gap: 8px;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  flex: none;
}

.chat-safety svg {
  width: 16px;
  height: 16px;
}

.messages {
  min-height: 0;
  padding: 20px 28px 28px;
  gap: 20px;
  background: #fff;
  overscroll-behavior: contain;
}

.message {
  max-width: 80%;
}

.message-body {
  padding: 13px 17px;
  border-radius: 4px 16px 16px;
  background: #edf3e9;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}

.message.own .message-body {
  border-radius: 16px 4px 16px 16px;
}

.message time {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.message-form {
  padding: 18px 24px;
  gap: 12px;
  background: #fff;
  flex: none;
}

.message-form textarea {
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #799181;
  border-radius: 12px;
  background: #f8fbf6;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.message-form textarea::placeholder {
  color: var(--muted);
}

.message-form .button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 12px;
}

.message-form .button svg {
  width: 22px;
  height: 22px;
}

/* Moderation: real state, actions and readable long descriptions. */
.admin-stats {
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  padding: 26px;
  border: 1px solid #d5e3d3;
  border-radius: 18px;
  background: #edf5e9;
}

.stat-card > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.stat-card > strong {
  margin-top: 16px;
  color: var(--green);
  font-size: 40px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-tabs > button > span {
  color: var(--green);
  background: #e5efdf;
  font-size: 12px;
  padding: 3px 8px;
}

.admin-review {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  margin-bottom: 20px;
}

.admin-review > img {
  width: 180px;
  height: 160px;
  border-radius: 14px;
  background: #edf3ed;
}

.admin-review h3,
.admin-report h3 {
  font-size: 22px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-review .listing-price {
  font-size: 21px;
  margin-top: 12px;
}

.admin-review .admin-meta,
.admin-report .admin-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}

.admin-review .admin-description {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 16px;
}

.admin-review-actions {
  gap: 12px;
  margin-top: 22px;
}

.admin-review-actions .button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
}

.admin-report {
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
}

.admin-report .report-reason {
  padding: 18px 20px;
  border-radius: 12px;
  background: #f1f5ef;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 20px;
}

.admin-user-form {
  padding: 32px;
  max-width: 720px;
}

.admin-user-form h2 {
  font-size: 27px;
}

.admin-user-form > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 16px 0 28px;
}

.admin-user-form .button {
  min-height: 48px;
  font-size: 14px;
}

.danger-button {
  background: #95442f;
}

/* Shared confirm dialog. */
.action-dialog {
  width: min(92vw, 500px);
  max-height: calc(100dvh - 40px);
  padding: 32px;
  border: 1px solid #c8d7cb;
  border-radius: 20px;
  box-shadow: 0 24px 80px #183b3130;
}

.dialog-top h2 {
  font-size: 27px;
  line-height: 1.4;
}

.dialog-top .icon-button {
  width: 38px;
  height: 38px;
}

#dialog-description {
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.dialog-actions {
  gap: 12px;
  margin-top: 24px;
}

.dialog-actions .button {
  min-height: 46px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .post-layout,
  .payment-settings-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .post-form,
  .payment-form,
  .checkout-form {
    padding: 28px;
  }

  .post-tips {
    padding: 24px;
  }

  .post-tips h2 {
    font-size: 26px;
  }

  .qr-upload-layout {
    grid-template-columns: 140px minmax(0, 1fr);
    padding: 20px;
    gap: 20px;
  }

  .checkout-layout,
  .order-detail-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  .checkout-summary,
  .order-main > .surface,
  .order-aside > .surface {
    padding: 24px;
  }

  .order-payment-body {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
  }

  .chat-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .conversation-top time {
    display: none;
  }
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px;
  }

  .detail-sidebar > h1 {
    font-size: 28px;
  }

  .detail-price {
    font-size: 30px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .post-layout,
  .payment-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-tips,
  .payment-settings-note {
    display: none;
  }

  .qr-upload-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 24px;
    gap: 28px;
  }

  .checkout-layout,
  .order-detail-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
  }

  .checkout-form .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-form .form-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-summary {
    padding: 22px;
  }

  .checkout-summary h2 {
    font-size: 20px;
  }

  .order-payment-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-qr {
    width: min(100%, 240px);
    max-width: none;
    margin-inline: auto;
  }

  .order-bank-info {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 4px;
  }

  .panel-heading {
    align-items: start;
    gap: 12px;
  }

  .panel-heading h2 {
    font-size: 22px;
  }

  .order-list-card {
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 22px;
  }

  .order-list-photo {
    width: 100px;
  }

  .order-list-title {
    font-size: 18px;
  }

  .auth-page {
    gap: 32px;
  }

  .auth-story {
    padding: 28px;
    min-height: 600px;
  }

  .auth-story h1 {
    font-size: 32px;
  }

  .auth-story > img {
    width: 240px;
    height: 230px;
  }

  .auth-form-wrap h2 {
    font-size: 29px;
  }

  .chat-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .conversation-item {
    padding: 20px 16px;
    gap: 12px;
  }

  .conversation-item > img {
    width: 48px;
    height: 48px;
  }

  .chat-empty {
    padding: 28px;
  }

  .chat-empty h2 {
    font-size: 25px;
  }

  .chat-empty p > br {
    display: none;
  }

  .my-listing {
    gap: 22px;
  }

  .my-listing-photo {
    width: 136px;
    height: 128px;
  }

  .my-listing h2 {
    font-size: 18px;
  }

  .admin-review {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
  }

  .admin-review > img {
    width: 140px;
    height: 130px;
  }
}

@media (max-width: 700px) {
  .page-heading {
    padding: 32px 0 26px;
  }

  .page-heading .eyebrow {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: .07em;
  }

  .page-heading h1 {
    margin-top: 10px;
    font-size: 32px;
  }

  .page-heading p {
    margin-top: 14px;
    font-size: 14px;
  }

  .heading-with-action {
    flex-wrap: wrap;
    align-items: start;
    gap: 20px;
  }

  .heading-with-action > .button {
    min-height: 44px;
    font-size: 13px;
    padding: 11px 16px;
  }

  .field input,
  .field select,
  .field textarea,
  .field-row .field input,
  .field-row .field select,
  .auth-form-wrap .field input {
    font-size: 16px;
    padding: 12px 13px;
  }

  .field,
  .auth-form-wrap .field {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .field-help {
    font-size: 13px;
  }

  .field-row,
  .digital-fields .field-row {
    gap: 16px;
  }

  .form-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: 24px;
  }

  .form-bottom > p {
    font-size: 13px;
  }

  .form-bottom > .button {
    min-height: 50px;
    font-size: 14px;
  }

  .account-tabs {
    gap: 26px;
    margin-bottom: 24px;
  }

  .account-tabs > a,
  .admin-tabs > button {
    font-size: 13px;
    padding-bottom: 16px;
  }

  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
  }

  .detail-left {
    display: contents;
  }

  .detail-main-image {
    aspect-ratio: 1.1;
    width: 100%;
    border-radius: 20px;
    order: 0;
  }

  .gallery-thumbs {
    order: 1;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
  }

  .gallery-thumb {
    width: 76px;
    height: 68px;
  }

  .detail-sidebar {
    order: 2;
    width: 100%;
    padding-top: 28px;
  }

  .detail-sidebar > .eyebrow,
  .detail-description > .eyebrow {
    font-size: 10px;
    line-height: 1.8;
  }

  .detail-sidebar > h1 {
    margin-top: 12px;
    font-size: 32px;
    line-height: 1.3;
  }

  .detail-price {
    margin-top: 16px;
    font-size: 32px;
  }

  .detail-location {
    font-size: 14px;
    align-items: center;
  }

  .seller-link strong {
    font-size: 16px;
  }

  .seller-link small {
    font-size: 13px;
  }

  .seller-panel > .button {
    min-height: 50px;
    font-size: 15px;
  }

  .contact-note {
    font-size: 13px;
  }

  .safety-note {
    padding: 20px;
    gap: 14px;
  }

  .safety-note strong {
    font-size: 14px;
  }

  .safety-note p {
    font-size: 13px;
    line-height: 1.85;
  }

  .detail-description {
    order: 3;
    width: 100%;
    margin-top: 28px;
    padding-top: 28px;
  }

  .detail-description h2 {
    font-size: 26px;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    padding: 12px 20px;
  }

  .spec-grid > div {
    flex-direction: column;
    align-items: start;
    gap: 5px;
    padding: 14px 0;
    font-size: 13px;
  }

  .spec-grid strong {
    text-align: left;
  }

  .user-description {
    font-size: 15px;
    line-height: 1.95;
  }

  .breadcrumbs {
    padding: 22px 0;
    gap: 9px;
    font-size: 12px;
  }

  .post-form,
  .payment-form,
  .checkout-form {
    padding: 26px;
  }

  .form-section-heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  .form-section-heading > span {
    min-width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .form-section-heading h2 {
    font-size: 21px;
    line-height: 1.45;
  }

  .form-section-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
  }

  .upload-zone {
    min-height: 224px;
    padding: 24px 18px;
  }

  .upload-zone > strong {
    font-size: 16px;
  }

  .upload-zone > span:not(.button) {
    font-size: 13px;
  }

  .upload-zone > .button {
    font-size: 13px;
  }

  .auth-page {
    display: block;
    padding-block: 40px 56px;
  }

  .auth-story {
    display: none;
  }

  .auth-form-wrap {
    max-width: 440px;
    margin-inline: auto;
    padding: 12px 0 0;
  }

  .auth-form-wrap > .eyebrow {
    font-size: 11px;
  }

  .auth-form-wrap h2 {
    font-size: 34px;
  }

  .auth-form-wrap > p {
    font-size: 14px;
    margin: 16px 0 32px;
  }

  .auth-form-wrap .button {
    min-height: 52px;
    font-size: 15px;
  }

  .auth-switch {
    font-size: 14px;
    margin-top: 26px;
  }

  .auth-security {
    font-size: 12px;
  }

  .demo-accounts,
  .demo-accounts p {
    font-size: 13px;
  }

  .password-field input,
  .auth-form-wrap .password-field input {
    padding-right: 56px;
  }

  .my-listing {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px 20px;
    padding: 20px;
    border-radius: 18px;
    align-items: start;
  }

  .my-listing-photo {
    width: 104px;
    height: 112px;
    border-radius: 12px;
  }

  .my-listing h2 {
    font-size: 17px;
    line-height: 1.55;
    margin-top: 10px;
  }

  .my-listing .listing-price {
    font-size: 19px;
    margin-top: 8px;
  }

  .status-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .my-meta,
  .rejection-reason {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 8px;
  }

  .my-listing-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    min-width: 0;
    width: 100%;
    gap: 10px;
    padding-left: 0;
    margin-top: 2px;
    flex-wrap: wrap;
    align-items: center;
  }

  .my-listing-actions .button {
    font-size: 13px;
    min-height: 42px;
    padding: 10px 14px;
    gap: 7px;
  }

  .my-listing-actions .button svg {
    width: 16px;
    height: 16px;
  }

  .my-listing-actions .text-button {
    font-size: 13px;
  }

  .seller-profile {
    gap: 18px;
    padding: 32px 0;
    flex-wrap: wrap;
  }

  .avatar-profile {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }

  .seller-profile h1 {
    font-size: 30px;
  }

  .seller-profile .eyebrow {
    font-size: 10px;
  }

  .seller-profile p {
    font-size: 13px;
    display: block;
  }

  .seller-profile .button {
    margin: 0 0 0 86px;
    min-height: 42px;
    font-size: 13px;
  }

  .checkout-layout,
  .order-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .checkout-summary {
    order: -1;
    position: static;
    padding: 24px;
  }

  .checkout-summary > a {
    float: left;
    width: 100px;
    margin-right: 20px;
  }

  .checkout-summary > a > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 18px 0;
    border-radius: 12px;
  }

  .checkout-summary > .eyebrow {
    display: block;
    font-size: 11px;
  }

  .checkout-summary .listing-category {
    display: none;
  }

  .checkout-summary h2 {
    padding-top: 18px;
    font-size: 21px;
    line-height: 1.5;
  }

  .checkout-seller,
  .checkout-summary > .checkout-seller {
    margin-top: 10px;
    font-size: 13px;
  }

  .checkout-digital {
    clear: both;
    font-size: 13px;
    margin-top: 16px;
  }

  .checkout-total {
    clear: both;
    margin-top: 22px;
    padding-top: 22px;
    font-size: 14px;
  }

  .checkout-total strong {
    font-size: 25px;
  }

  .checkout-summary > .text-button {
    float: none;
    width: auto;
    margin: 18px 0 0;
    font-size: 13px;
  }

  .checkout-explanation {
    padding: 20px;
    gap: 14px;
  }

  .checkout-explanation strong {
    font-size: 15px;
  }

  .checkout-explanation p {
    font-size: 14px;
    line-height: 1.85;
  }

  .checkout-unavailable {
    padding: 36px 24px;
  }

  .checkout-unavailable h2 {
    font-size: 25px;
  }

  .checkout-unavailable > p {
    font-size: 14px;
  }

  .checkout-unavailable > .button {
    min-height: 46px;
    font-size: 14px;
  }

  .order-list-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px 20px;
    padding: 20px;
    border-radius: 18px;
  }

  .order-list-photo {
    width: 88px;
    border-radius: 12px;
    align-self: start;
  }

  .order-list-top {
    gap: 8px;
  }

  .order-code {
    font-size: 11px;
  }

  .order-status {
    font-size: 11px;
    padding: 5px 9px;
  }

  .order-list-title {
    font-size: 17px;
    line-height: 1.6;
    margin-top: 10px;
  }

  .order-list-counterparty {
    font-size: 13px;
    line-height: 1.8;
  }

  .order-list-date {
    font-size: 12px;
    margin-top: 8px;
  }

  .order-list-end {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .order-list-end .listing-price {
    font-size: 21px;
    margin: 0;
  }

  .order-list-end .button {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .order-main,
  .order-aside {
    gap: 20px;
  }

  .order-main > .surface,
  .order-aside > .surface {
    padding: 24px;
  }

  .order-state-panel h2 {
    font-size: 26px;
  }

  .order-state-panel > p:not(.form-error) {
    font-size: 14px;
  }

  .order-actions .button {
    font-size: 14px;
    min-height: 46px;
    padding: 11px 16px;
  }

  .panel-heading .eyebrow,
  .order-product-panel > .eyebrow,
  .order-delivery-panel > .eyebrow,
  .order-people-panel > .eyebrow {
    font-size: 10px;
    line-height: 1.8;
  }

  .panel-heading h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .order-payment-body {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }

  .order-bank-info {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
  }

  .order-bank-info .order-fact:last-child {
    grid-column: auto;
  }

  .order-qr {
    width: 100%;
    margin: 0;
  }

  .order-bank-info .order-fact > span {
    font-size: 12px;
  }

  .order-bank-info .order-fact > strong {
    font-size: 16px;
  }

  .order-payment-instructions {
    padding: 16px;
    font-size: 14px;
  }

  .manual-payment-note p {
    font-size: 13px;
  }

  .order-event h3 {
    font-size: 15px;
  }

  .order-event-meta {
    font-size: 12px;
  }

  .order-event-note {
    padding: 14px;
    font-size: 14px;
  }

  .order-product-image {
    float: none;
    width: 100%;
    margin: 20px 0 0;
  }

  .order-product-image img {
    aspect-ratio: 1.8;
  }

  .order-product-panel > h2 {
    margin-top: 20px;
    font-size: 22px;
  }

  .order-product-panel > .listing-price {
    font-size: 26px;
  }

  .order-product-panel > .order-fact {
    font-size: 13px;
  }

  .order-product-panel > .field-help {
    font-size: 12px;
  }

  .order-delivery-panel h2 {
    font-size: 23px;
  }

  .order-delivery-panel .order-fact,
  .order-people-panel .order-fact {
    font-size: 13px;
  }

  .order-delivery-panel .order-fact > strong {
    font-size: 15px;
  }

  .order-delivery-panel h3 {
    font-size: 16px;
  }

  .order-delivery-panel .user-description {
    font-size: 14px;
  }

  .order-people-panel .button {
    width: 100%;
    min-height: 46px;
    font-size: 13px;
  }

  .order-people-panel > .text-button {
    font-size: 13px;
  }

  .chat-page > .page-heading {
    padding: 22px 0 20px;
  }

  .chat-page > .page-heading > .eyebrow {
    display: none;
  }

  .chat-page > .page-heading h1 {
    margin: 0;
    font-size: 30px;
  }

  .chat-shell {
    display: block;
    min-height: 480px;
    border-radius: 18px;
  }

  .conversation-sidebar {
    border: 0;
    min-height: 480px;
  }

  .conversation-heading {
    padding: 18px 20px;
  }

  .conversation-heading h2 {
    font-size: 17px;
  }

  .conversation-item {
    gap: 14px;
    padding: 20px;
  }

  .conversation-item > img {
    width: 56px;
    height: 56px;
  }

  .conversation-top strong {
    font-size: 15px;
  }

  .conversation-top time {
    display: block;
    font-size: 11px;
  }

  .conversation-title {
    font-size: 12px;
  }

  .conversation-message {
    font-size: 13px;
  }

  .chat-content {
    display: none;
  }

  .chat-shell.chat-open .conversation-sidebar {
    display: none;
  }

  .chat-shell.chat-open .chat-content {
    display: block;
  }

  .chat-shell.chat-open #chat-active {
    height: calc(100dvh - var(--site-header-height, 72px) - var(--announcement-height, 32px) - var(--mobile-nav-height, 72px) - env(safe-area-inset-bottom) - 90px);
    min-height: 300px;
    max-height: none;
  }

  .chat-person {
    gap: 12px;
    padding: 14px 16px;
  }

  .mobile-chat-back {
    display: flex;
    width: 30px;
    height: 34px;
    padding: 0;
    margin-left: -4px;
    transform: rotate(180deg);
  }

  .mobile-chat-back svg {
    width: 22px;
    height: 22px;
  }

  .chat-person .avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .chat-person h2 {
    font-size: 16px;
  }

  .connection-status {
    font-size: 11px;
  }

  .chat-listing {
    gap: 12px;
    padding: 12px 18px;
  }

  .chat-listing > img {
    width: 46px;
    height: 42px;
  }

  .chat-listing strong {
    font-size: 13px;
  }

  .chat-listing small {
    font-size: 12px;
  }

  .chat-order-links {
    padding: 10px 18px;
    font-size: 12px;
  }

  .chat-safety {
    gap: 7px;
    padding: 9px 14px;
    font-size: 11px;
    line-height: 1.6;
  }

  .chat-safety svg {
    width: 15px;
    height: 15px;
  }

  .messages {
    padding: 16px 18px 22px;
    gap: 18px;
  }

  .message {
    max-width: 88%;
  }

  .message-body {
    padding: 11px 14px;
    font-size: 14px;
    line-height: 1.8;
  }

  .message time {
    font-size: 11px;
  }

  .message-form {
    gap: 10px;
    padding: 14px;
  }

  .message-form textarea {
    padding: 10px 12px;
    font-size: 16px;
    min-height: 48px;
  }

  .message-form .button {
    width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .message-form .button svg {
    width: 21px;
    height: 21px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .stat-card {
    padding: 22px;
    border-radius: 16px;
  }

  .stat-card > span {
    font-size: 13px;
  }

  .stat-card > strong {
    font-size: 36px;
  }

  .admin-tabs {
    gap: 20px;
  }

  .admin-review {
    grid-template-columns: 100px minmax(0, 1fr);
    display: grid;
    padding: 22px;
    gap: 20px;
  }

  .admin-review > img {
    width: 100px;
    height: 100px;
  }

  .admin-review > div {
    min-width: 0;
  }

  .admin-review h3,
  .admin-report h3 {
    font-size: 19px;
  }

  .admin-review .listing-price {
    font-size: 20px;
  }

  .admin-review .admin-meta,
  .admin-report .admin-meta {
    font-size: 12px;
  }

  .admin-review .admin-description {
    font-size: 14px;
  }

  .admin-review-actions {
    gap: 10px;
  }

  .admin-review-actions .button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .admin-report,
  .admin-user-form {
    padding: 24px;
  }

  .admin-report .report-reason {
    font-size: 14px;
  }

  .admin-user-form > p {
    font-size: 14px;
    line-height: 1.85;
  }

  .action-dialog {
    padding: 26px;
  }

  .dialog-top h2 {
    font-size: 25px;
  }

  #dialog-description {
    font-size: 14px;
  }

  .dialog-actions .button {
    min-height: 46px;
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .post-page,
  .payment-page,
  .checkout-page,
  .orders-page,
  .order-detail-page,
  .collection-page,
  .admin-page {
    padding-bottom: 48px;
  }

  .surface {
    border-radius: 18px;
  }

  .post-form,
  .payment-form,
  .checkout-form {
    padding: 24px 20px;
  }

  .field-row,
  .digital-fields .field-row,
  .payment-form .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .digital-fields {
    padding: 22px 16px 0;
    margin-inline: -4px;
  }

  .digital-fields legend {
    font-size: 13px;
    gap: 6px;
    padding-inline: 5px;
  }

  .digital-fields legend svg {
    width: 16px;
    height: 16px;
  }

  .photo-preview {
    width: 96px;
    height: 92px;
  }

  .photo-preview > span {
    font-size: 10px;
  }

  .qr-upload-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
    gap: 24px;
  }

  .qr-upload-preview {
    width: 210px;
    max-width: 100%;
    justify-self: center;
  }

  .qr-upload-layout > div:last-child {
    text-align: left;
  }

  .qr-upload-layout h2 {
    font-size: 21px;
  }

  .qr-upload-layout p {
    font-size: 13px;
  }

  .qr-file-button {
    font-size: 13px;
    min-height: 44px;
    margin-top: 18px;
  }

  .qr-upload-layout .text-button {
    margin-left: 12px;
    font-size: 13px;
  }

  .payment-enable {
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 28px;
  }

  .payment-enable strong {
    font-size: 18px;
  }

  .payment-enable small {
    font-size: 13px;
    line-height: 1.8;
  }

  .payment-enable input {
    width: 44px;
    height: 26px;
  }

  .payment-enable input:before {
    width: 20px;
    height: 20px;
  }

  .payment-enable input:checked:before {
    transform: translateX(18px);
  }

  .payment-form .form-bottom > p {
    font-size: 13px;
    line-height: 1.8;
  }

  .checkout-page > .page-heading {
    padding-top: 4px;
  }

  .checkout-summary {
    padding: 22px 20px;
  }

  .checkout-summary > a {
    width: 88px;
    margin-right: 16px;
  }

  .checkout-summary h2 {
    font-size: 19px;
    padding-top: 18px;
  }

  .checkout-summary > .checkout-seller {
    font-size: 13px;
  }

  .checkout-summary > .text-button {
    float: none;
    width: auto;
    margin-right: 0;
    font-size: 13px;
  }

  .checkout-total {
    font-size: 14px;
  }

  .checkout-total strong {
    font-size: 24px;
  }

  .checkout-explanation {
    padding: 18px;
    gap: 12px;
  }

  .checkout-explanation > svg {
    width: 22px;
    height: 22px;
  }

  .checkout-explanation strong {
    font-size: 14px;
  }

  .checkout-explanation p {
    font-size: 13px;
    line-height: 1.85;
  }

  .order-detail-page > .page-heading {
    padding-top: 5px;
  }

  .order-detail-page .page-heading h1 {
    font-size: 29px;
  }

  .order-main > .surface,
  .order-aside > .surface {
    padding: 24px 20px;
  }

  .order-state-panel h2 {
    font-size: 25px;
    margin-top: 18px;
  }

  .panel-heading {
    gap: 12px;
    margin-bottom: 26px;
  }

  .panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .panel-icon > svg {
    width: 22px;
    height: 22px;
  }

  .order-payment-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .order-qr {
    width: 240px;
    max-width: 100%;
    margin-inline: auto;
  }

  .order-qr > a {
    font-size: 13px;
  }

  .order-bank-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .order-bank-info .order-fact > span {
    font-size: 12px;
  }

  .order-bank-info .order-fact > strong {
    font-size: 16px;
  }

  .order-copy {
    width: 40px;
    height: 40px;
  }

  .order-copy svg {
    width: 19px;
    height: 19px;
  }

  .order-list-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }

  .order-list-photo {
    width: 68px;
  }

  .order-list-title {
    font-size: 16px;
    line-height: 1.6;
  }

  .order-list-counterparty {
    font-size: 13px;
  }

  .order-list-date {
    font-size: 12px;
  }

  .order-list-end .listing-price {
    font-size: 20px;
  }

  .order-list-end .button {
    min-height: 42px;
    font-size: 12px;
    padding-inline: 12px;
  }

  .orders-toolbar > p {
    font-size: 13px;
  }

  .orders-toolbar .button {
    font-size: 12px;
    min-height: 42px;
    padding: 10px 12px;
  }

  .orders-empty-link {
    min-height: 46px;
    font-size: 14px;
  }

  .order-event {
    gap: 14px;
    padding-bottom: 28px;
  }

  .order-event h3 {
    font-size: 15px;
  }

  .my-listing {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }

  .my-listing-photo {
    width: 80px;
    height: 94px;
  }

  .my-listing h2 {
    font-size: 16px;
    line-height: 1.6;
  }

  .my-listing .listing-price {
    font-size: 19px;
  }

  .seller-profile > div {
    min-width: 0;
    flex: 1;
  }

  .seller-profile h1 {
    overflow-wrap: anywhere;
  }

  .chat-page {
    padding-bottom: 32px;
  }

  .chat-shell {
    min-height: 420px;
  }

  .conversation-sidebar {
    min-height: 420px;
  }

  .conversation-item {
    gap: 12px;
    padding: 20px 16px;
  }

  .conversation-item > img {
    width: 48px;
    height: 48px;
  }

  .conversation-top strong {
    font-size: 14px;
  }

  .conversation-top time {
    font-size: 11px;
  }

  .chat-person {
    padding: 12px 14px;
    gap: 10px;
  }

  .chat-person > div {
    min-width: 0;
  }

  .chat-person h2 {
    font-size: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .chat-safety {
    font-size: 11px;
    line-height: 1.65;
    padding: 8px 12px;
  }

  .message-body {
    font-size: 14px;
  }

  .message-form {
    padding: 12px;
  }

  .message-form textarea {
    font-size: 16px;
  }

  .stat-card {
    padding: 20px 18px;
  }

  .stat-card > span {
    font-size: 13px;
  }

  .stat-card > strong {
    font-size: 34px;
  }

  .admin-tabs {
    overflow-x: auto;
    gap: 24px;
    scrollbar-width: thin;
  }

  .admin-tabs > button {
    flex: none;
    white-space: nowrap;
    font-size: 13px;
  }

  .admin-tabs > button > span {
    font-size: 11px;
  }

  .admin-review {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px 20px;
  }

  .admin-review > img {
    width: 100%;
    height: 180px;
    object-fit: contain;
  }

  .admin-review > div {
    min-width: 0;
    width: 100%;
  }

  .admin-review h3,
  .admin-report h3 {
    font-size: 21px;
  }

  .admin-review .listing-price {
    font-size: 22px;
  }

  .admin-review .admin-description {
    font-size: 14px;
  }

  .admin-review-actions .button {
    min-height: 44px;
    font-size: 13px;
  }

  .admin-report,
  .admin-user-form {
    padding: 24px 20px;
  }

  .admin-user-form h2 {
    font-size: 25px;
  }

  .action-dialog {
    width: calc(100vw - 32px);
    padding: 24px 20px;
  }

  .dialog-top {
    align-items: start;
    gap: 12px;
  }

  .dialog-top h2 {
    font-size: 23px;
  }

  .dialog-actions {
    gap: 10px;
  }

  .dialog-actions .button {
    font-size: 13px;
    min-height: 46px;
  }
}
