/* Local additions to the inherited Resale Field Guides layout. */
:root {
  --oa-paper: #f3f1eb;
  --oa-surface: #ffffff;
  --oa-ink: #161918;
  --oa-jade: #153a34;
  --oa-border: #c9cec8;
}

/* Deliver the body copy even if a legacy reveal listener fails or JS is disabled. */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.oa-home-band {
  padding-block: clamp(2.5rem, 5vw, 5rem);
  background: #dfe8e4;
  color: var(--oa-ink);
  border-block: 1px solid var(--oa-border);
}

.oa-home-band > .site-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.oa-home-band h2,
.oa-page h2 {
  color: var(--oa-jade);
  font-size: 1.65rem;
  line-height: 1.2;
  margin-bottom: .6rem;
}

.oa-home-band p,
.oa-page p {
  line-height: 1.65;
}

.oa-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.oa-actions a:not(.button),
.oa-page a:not(.button),
.oa-home-intro a {
  color: var(--oa-jade);
  text-decoration: underline;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}

.oa-page {
  max-width: 54rem;
  margin-inline: auto;
  padding-block: 2.5rem 5rem;
  color: var(--oa-ink);
}

.oa-box {
  padding: clamp(1.15rem, 3vw, 2rem);
  margin-block: 0 1.2rem;
  border: 1px solid var(--oa-border);
  background: var(--oa-surface);
  border-radius: .8rem;
}

.oa-box p + p {
  margin-top: .85rem;
}

.oa-box .button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.oa-order-summary {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid currentColor;
  font-size: .94rem;
  line-height: 1.55;
}

.oa-order-summary a,
.oa-checkout-help {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .16em;
}

@media (max-width: 720px) {
  .oa-home-band > .site-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }

  .oa-page {
    padding-block: 1.5rem 3rem;
  }
}

@media (max-width: 520px) {
  .product-table {
    min-width: 0;
    table-layout: fixed;
  }

  .product-table th,
  .product-table td {
    padding: .75rem .45rem;
    overflow-wrap: anywhere;
  }

  .product-table th:first-child {
    width: 56%;
  }

  .product-table th:nth-child(3),
  .product-table td:nth-child(3),
  .product-table th:nth-child(4),
  .product-table td:nth-child(4) {
    display: none;
  }
}

oa-support.oa-help {
  --oa-paper: var(--paper, #f3f1eb);
  --oa-soft: var(--paper-deep, #dfe8e4);
  --oa-ink: var(--ink, #161918);
  --oa-muted: var(--ink-soft, #5c625e);
  --oa-border: var(--line, #c9cec8);
  --oa-dark: var(--jade-dark, #153a34);
  --oa-yellow: var(--yellow, #f0c64b);
  color: var(--oa-ink);
  font-family: var(--aw-font-sans, system-ui, sans-serif);
  line-height: 1.45;
}

.oa-help [hidden] {
  display: none !important;
}

.oa-help button {
  cursor: pointer;
  font: inherit;
  letter-spacing: normal;
}

.oa-help :where(button, a, textarea):focus-visible {
  outline: 3px solid #0b6b5c;
  outline-offset: 2px;
}

.oa-help__launcher {
  position: fixed;
  z-index: 58;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid #0e302a;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--oa-dark);
  color: #fff;
  box-shadow: 0 6px 18px #162b2729;
}

.oa-help__launcher:hover {
  background: #1c4b41;
}

.oa-help__panel {
  position: fixed;
  z-index: 70;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  width: min(400px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  height: 570px;
  max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--oa-border);
  border-radius: 12px;
  background: var(--oa-paper);
  box-shadow: 0 12px 36px #162b273d;
  font-size: 14px;
  text-align: left;
}

.oa-help__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 15px;
  background: var(--oa-dark);
  color: #fff;
}

.oa-help .oa-help__title {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.25;
}

.oa-help__title:focus-visible {
  outline: 2px solid var(--oa-yellow);
  outline-offset: 3px;
}

.oa-help__header p,
.oa-help__notice p,
.oa-help__message p,
.oa-help__status,
.oa-help__privacy {
  margin: 0;
}

.oa-help__header p {
  color: #e1ede9;
  font-size: 0.8125rem;
}

.oa-help__close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid #9abaad;
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.oa-help__close:hover {
  background: #2b5448;
}

.oa-help .oa-help__close:focus-visible {
  outline-color: var(--oa-yellow);
}

.oa-help__toolbar {
  display: flex;
  flex: none;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--oa-border);
  padding: 0 14px;
}

.oa-help .oa-help__text-action,
.oa-help__links a {
  min-height: 36px;
  color: var(--oa-dark);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oa-help__scroll {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 12px;
  overflow: auto;
  overscroll-behavior-y: contain;
  padding: 13px 14px;
}

.oa-help__notice {
  display: grid;
  justify-items: start;
  gap: 6px;
  border-left: 3px solid #0a7b68;
  padding: 9px 11px;
  background: var(--oa-soft);
}

.oa-help__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oa-help .oa-help__topic {
  min-height: 34px;
  border: 1px solid #82988e;
  border-radius: 5px;
  padding: 5px 9px;
  background: #fff;
  color: var(--oa-dark);
  font-size: 0.8125rem;
  font-weight: 600;
}

.oa-help .oa-help__topic:hover {
  background: #e7f0e9;
}

.oa-help__log {
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}

.oa-help__message {
  display: grid;
  justify-items: start;
  gap: 4px;
  border: 1px solid var(--oa-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
}

.oa-help__message--visitor {
  margin-left: 20px;
  background: #eaf0e7;
}

.oa-help__message small {
  color: var(--oa-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.oa-help__message a {
  color: #125347;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oa-help__composer {
  display: grid;
  flex: none;
  gap: 5px;
  border-top: 1px solid var(--oa-border);
  padding: 9px 14px 5px;
  background: #fff;
}

.oa-help__form label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 650;
}

.oa-help__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.oa-help__form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 90px;
  resize: vertical;
  border: 1px solid #82988e;
  border-radius: 6px;
  padding: 8px 9px;
  color: var(--oa-ink);
  font: inherit;
  font-size: 1rem;
}

.oa-help .oa-help__send {
  min-height: 44px;
  border-radius: 6px;
  padding: 7px 13px;
  background: var(--oa-yellow);
  color: #202522;
  font-weight: 750;
}

.oa-help__send:hover {
  background: #e7b940;
}

.oa-help__status,
.oa-help__privacy {
  color: var(--oa-muted);
  font-size: 0.75rem;
}

.oa-help__status {
  margin-top: 4px;
  color: #862b1b;
}

.oa-help__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.oa-help__links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

body.menu-open .oa-help__launcher {
  visibility: hidden;
}

@media (max-width: 760px) {
  .oa-help__launcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .oa-help__panel {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(400px, calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

@media (max-width: 680px) {
  body:has(.mobile-cta) .oa-help__launcher {
    bottom: calc(104px + env(safe-area-inset-bottom));
  }
}

@media (max-height: 520px) {
  .oa-help__header {
    padding-block: 7px;
  }

  .oa-help__scroll {
    padding-block: 9px;
  }
}
