.smw {
  --smw-forest: #213b28;
  --smw-deep: #172a1b;
  --smw-leaf: #6f7d45;
  --smw-cream: #f7f4ed;
  --smw-paper: #fffdf8;
  --smw-sand: #e6d8a8;
  --smw-line: #e3dac8;
  --smw-body: #3f4d42;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--smw-cream);
  color: #243126;
  font-family: inherit;
  box-sizing: border-box;
}

.smw *,
.smw *::before,
.smw *::after {
  box-sizing: border-box;
}

.smw button,
.smw input,
.smw select {
  font: inherit;
}

.smw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.smw-eyebrow,
.smw-kicker {
  margin: 0 0 14px !important;
  color: var(--smw-sand) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.smw-eyebrow {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.smw-availability-hero {
  position: relative;
  min-height: clamp(300px, 36vw, 430px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background:
    linear-gradient(
      100deg,
      rgba(23, 42, 27, 0.90) 0%,
      rgba(23, 42, 27, 0.62) 50%,
      rgba(23, 42, 27, 0.20) 100%
    ),
    var(--smw-availability-hero) center / cover no-repeat;
}

.smw-availability-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 42, 27, 0.32), transparent 58%);
}

.smw-availability-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 66px) 18px;
  color: #fff;
}

.smw-availability-hero h1 {
  max-width: 820px;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(44px, 6vw, 72px) !important;
  font-weight: 600 !important;
  line-height: 1.03 !important;
  letter-spacing: -0.04em;
}

.smw-availability-hero__updated {
  margin: 16px 0 0 !important;
  color: #f4ead0 !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.4 !important;
}

.smw-availability {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 18px 56px;
}

.smw .smw-kicker {
  color: var(--smw-leaf) !important;
  margin-bottom: 9px !important;
}

.smw-filters {
  display: grid;
  grid-template-columns: minmax(210px, 360px) 1fr;
  gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--smw-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36, 49, 38, 0.055);
}

.smw-quality select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d6ddcf;
  border-radius: 14px;
  background: #fbfcf8;
  color: #243126;
  outline: none;
}

.smw-quality select:focus {
  border-color: var(--smw-leaf);
  box-shadow: 0 0 0 4px rgba(111, 125, 69, 0.12);
}

.smw-quality {
  display: grid;
  gap: 7px;
}

.smw-quality > span {
  color: var(--smw-leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smw-quality select {
  padding: 11px 40px 11px 14px;
}

.smw-count {
  justify-self: end;
  margin: 0 !important;
  padding: 0 10px 14px !important;
  color: #667269 !important;
  font-size: 14px !important;
  white-space: nowrap;
}

.smw-count strong {
  color: var(--smw-forest);
}

.smw-table-shell {
  overflow: hidden;
  border: 1px solid var(--smw-line);
  border-radius: 24px;
  background: var(--smw-paper);
  box-shadow: 0 16px 42px rgba(36, 49, 38, 0.075);
}

.smw table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
}

.smw thead {
  background: var(--smw-forest);
  color: #fff;
}

.smw th {
  padding: 17px 20px !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  text-align: left;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.smw td {
  padding: 13px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #ece5d8 !important;
  background: transparent !important;
  color: var(--smw-body) !important;
  font-size: 15px !important;
  vertical-align: middle;
}

.smw tbody tr:nth-child(even) {
  background: #fbf8f1;
}

.smw tbody tr:hover {
  background: #f0f4e7;
}

.smw tbody tr:last-child td {
  border-bottom: 0 !important;
}

.smw-plant-name {
  color: var(--smw-forest);
  font-weight: 800;
}

.smw-price {
  color: var(--smw-forest);
  white-space: nowrap;
}

.smw-quality-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.smw-quality--excellent { background: #d4ead3; color: #24512d; }
.smw-quality--excellent-good { background: #dcebd3; color: #36532c; }
.smw-quality--good { background: #e7efda; color: #4e6536; }
.smw-quality--good-average { background: #edf0d7; color: #626a35; }
.smw-quality--average { background: #f0e7ce; color: #6d5a32; }
.smw-quality--average-poor { background: #f2dfca; color: #7c5132; }
.smw-quality--poor { background: #efd5ce; color: #7a3c31; }
.smw-quality--clearance { background: #f2ce7d; color: #684500; }

.smw-photo-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--smw-forest);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.smw-photo-button img {
  display: block;
  width: 58px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(36, 49, 38, 0.14);
}

.smw-empty {
  padding: 58px 20px;
  text-align: center;
}

.smw-empty h3 {
  margin: 0 !important;
  color: var(--smw-forest) !important;
  font-size: 24px !important;
}

.smw-empty p {
  margin: 8px 0 18px !important;
  color: var(--smw-body) !important;
}

.smw-empty button {
  border: 0;
  background: transparent;
  color: var(--smw-forest);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
}

.smw-pagination {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 30px;
}

.smw-pagination__label {
  color: var(--smw-leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smw-page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.smw-page-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--smw-line);
  border-radius: 50%;
  background: #fff;
  color: var(--smw-forest);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.smw-page-number.is-current {
  border-color: var(--smw-forest);
  background: var(--smw-forest);
  color: #fff;
}

.smw-page-number.is-disabled {
  background: #efede7;
  color: #aaa9a3;
  cursor: not-allowed;
}

.smw-page-note {
  color: #747d76;
  font-size: 13px;
}

.smw-modal[hidden] {
  display: none;
}

.smw-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 29, 19, 0.84);
  backdrop-filter: blur(8px);
}

.smw-modal__card {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 10px;
  border-radius: 26px;
  background: var(--smw-paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.smw-modal__card > img {
  display: block;
  width: 100%;
  max-height: 68vh;
  border-radius: 20px;
  object-fit: cover;
}

.smw-modal__copy {
  padding: 22px 24px 24px;
}

.smw-modal__copy h2 {
  margin: 0 !important;
  color: var(--smw-forest) !important;
  font-size: clamp(26px, 4vw, 38px) !important;
}

.smw-modal__close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 42, 27, 0.9);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
}

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

@media (max-width: 720px) {
  .smw-availability-hero {
    min-height: 340px;
    border-radius: 0 0 26px 26px;
    background-position: 58% center;
  }

  .smw-filters {
    grid-template-columns: 1fr;
  }

  .smw-count {
    grid-column: auto;
    justify-self: start;
  }

  .smw-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .smw table,
  .smw thead,
  .smw tbody,
  .smw tr,
  .smw th,
  .smw td {
    display: block;
  }

  .smw thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .smw tbody {
    display: grid;
    gap: 12px;
  }

  .smw tbody tr,
  .smw tbody tr:nth-child(even) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 18px;
    border: 1px solid var(--smw-line);
    border-radius: 20px;
    background: var(--smw-paper);
    box-shadow: 0 10px 28px rgba(36, 49, 38, 0.06);
  }

  .smw td {
    display: grid !important;
    gap: 6px;
    padding: 9px 4px !important;
    border: 0 !important;
  }

  .smw td:first-child,
  .smw td:last-child {
    grid-column: 1 / -1;
  }

  .smw td:first-child {
    padding-bottom: 12px !important;
    border-bottom: 1px solid #ece5d8 !important;
  }

  .smw td::before {
    content: attr(data-label);
    color: var(--smw-leaf);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

}

@media (max-width: 430px) {
  .smw-page-list {
    max-width: 250px;
  }
}

/* Editable WordPress content for the wholesale landing and information pages. */
.smw-landing,
.smw-info-page {
  --smw-forest: #213b28;
  --smw-deep: #172a1b;
  --smw-leaf: #6f7d45;
  --smw-cream: #f7f4ed;
  --smw-paper: #fffdf8;
  --smw-sand: #e6d8a8;
  --smw-line: #e3dac8;
  --smw-body: #3f4d42;
  box-sizing: border-box;
  color: #243126;
}

.smw-landing *,
.smw-landing *::before,
.smw-landing *::after,
.smw-info-page *,
.smw-info-page *::before,
.smw-info-page *::after {
  box-sizing: border-box;
}

.smw-landing {
  width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  background: var(--smw-cream);
}

.smw-landing-hero {
  min-height: clamp(470px, 60vw, 680px) !important;
}

.smw-landing-hero .wp-block-cover__background {
  background: linear-gradient(
    105deg,
    rgba(23, 42, 27, 0.94) 0%,
    rgba(23, 42, 27, 0.74) 52%,
    rgba(23, 42, 27, 0.30) 100%
  ) !important;
  opacity: 1 !important;
}

.smw-landing-hero .wp-block-cover__inner-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.smw-landing-eyebrow {
  display: inline-flex;
  width: auto;
  margin: 0 0 18px !important;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--smw-sand) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.smw-landing-hero h1 {
  max-width: 820px;
  margin: 0 !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(44px, 7vw, 82px) !important;
  font-weight: 600 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em;
}

.smw-landing-intro {
  max-width: 730px;
  margin: 24px 0 0 !important;
  color: #f4ead0 !important;
  font-size: clamp(18px, 2vw, 23px) !important;
  line-height: 1.55 !important;
}

.smw-landing .wp-block-buttons {
  margin-top: 30px;
}

.smw-landing .wp-block-button__link {
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.smw-landing .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.smw-landing .is-style-fill .wp-block-button__link {
  background: var(--smw-paper);
  color: var(--smw-forest);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.smw-landing .is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.68);
  background: transparent;
  color: #fff;
}

.smw-landing-section {
  max-width: 1180px;
  margin: 0 auto !important;
  padding: clamp(54px, 8vw, 90px) 18px !important;
}

.smw-landing-section > h2,
.smw-info-page h1,
.smw-info-page h2 {
  margin-top: 0 !important;
  color: var(--smw-forest) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
}

.smw-landing-section > h2 {
  max-width: 760px;
  margin-bottom: 14px !important;
  font-size: clamp(36px, 5vw, 56px) !important;
  line-height: 1.05 !important;
}

.smw-landing-section > p {
  max-width: 760px;
  color: var(--smw-body);
  font-size: 18px;
  line-height: 1.65;
}

.smw-landing-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px !important;
}

.smw-landing-card {
  position: relative;
  min-height: 255px;
  padding: clamp(25px, 4vw, 38px) !important;
  overflow: hidden;
  border: 1px solid var(--smw-line);
  border-radius: 28px;
  background: var(--smw-paper);
  box-shadow: 0 14px 38px rgba(36, 49, 38, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.smw-landing-card:hover,
.smw-landing-card:focus-within {
  transform: translateY(-5px);
  border-color: #bfcba6;
  background: #fbfdf5;
  box-shadow: 0 22px 50px rgba(36, 49, 38, 0.14);
}

.smw-landing-card h3 {
  margin: 0 0 12px !important;
  color: var(--smw-forest) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(27px, 3vw, 36px) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
}

.smw-landing-card p {
  margin: 0 0 28px !important;
  color: var(--smw-body);
  font-size: 16px;
  line-height: 1.62;
}

.smw-card-link {
  margin-top: auto !important;
}

.smw-card-link a {
  color: var(--smw-forest) !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.smw-card-link a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.smw-landing-callout {
  width: min(1144px, calc(100% - 36px));
  margin: 0 auto clamp(54px, 8vw, 90px) !important;
  padding: clamp(28px, 5vw, 48px) !important;
  border-radius: 30px;
  background: var(--smw-forest);
  color: #fff;
  box-shadow: 0 18px 46px rgba(36, 49, 38, 0.13);
}

.smw-landing-callout h2 {
  margin: 0 !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(31px, 4vw, 46px) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
}

.smw-landing-callout p {
  color: #f4ead0;
  font-size: 17px;
  line-height: 1.6;
}

.smw-info-page {
  max-width: 960px;
  margin: 0 auto !important;
  padding: clamp(40px, 7vw, 78px) 18px !important;
}

.smw-info-page h1 {
  font-size: clamp(42px, 6vw, 68px) !important;
  line-height: 1.04 !important;
}

.smw-info-page .smw-landing-eyebrow {
  border-color: #d6ddc8;
  background: #f2f5e9;
  color: var(--smw-leaf) !important;
}

.smw-info-page h2 {
  margin-top: 42px !important;
  font-size: clamp(29px, 4vw, 40px) !important;
}

.smw-info-page p,
.smw-info-page li {
  color: var(--smw-body);
  font-size: 17px;
  line-height: 1.7;
}

.smw-info-note {
  margin: 30px 0 !important;
  padding: 24px 26px !important;
  border-left: 5px solid var(--smw-leaf);
  border-radius: 0 18px 18px 0;
  background: #f2f5e9;
}

@media (max-width: 720px) {
  .smw-landing-grid {
    grid-template-columns: 1fr;
  }

  .smw-landing-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smw *,
  .smw *::before,
  .smw *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .smw-landing *,
  .smw-landing *::before,
  .smw-landing *::after {
    transition: none !important;
  }
}
