/* AAEP — only what the theme doesn't already style. Colours come from
 * Woodmart's own custom properties when it's the theme, so the Portal follows it. */
/* WoodMart's own page-title bar (on these virtual routes, its "Blog" one): the Portal's band,
 * inside #aaep-main, names the page instead (#56). WoodMart gives no hook to drop it per request. */
body.aaep-page .wd-page-title:not(#aaep-main *) { display: none; }
/* WoodMart's content area is a 12-column grid: the wrapper spans all of it whatever the theme's
 * column rules, and may shrink below its content's widest line (a grid item's default min-width
 * is that width), so wide tables scroll in place instead of widening the page (#58).
 * .wd-grid-g is WoodMart's alone: a no-op under other themes. This rule decides the span; the
 * template's inline --wd-col-*:12 (read by .wd-grid-col) is the fallback for a WoodMart grid parent
 * without .wd-grid-g, where this selector misses. */
.wd-grid-g > #aaep-main { grid-column: 1 / -1; min-width: 0; }

.aaep {
  --aaep-accent: var(--wd-primary-color, #3e8e41);
  --aaep-line: var(--brdcolor-gray-300, rgba(0, 0, 0, .12));
  --aaep-red: #B92330; /* AA's header red. */
  padding: 24px 0 48px;
}
.aaep-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 12px 0; margin-bottom: 24px; border-bottom: 1px solid var(--aaep-line);
}
.aaep-brand { font-weight: 700; color: var(--aaep-accent); }
.aaep-links { display: flex; gap: 20px; flex: 1; }
.aaep-links a[aria-current="page"] { color: var(--aaep-accent); text-decoration: underline; text-underline-offset: 4px; }
.aaep-who { display: flex; align-items: center; gap: 12px; font-size: .9em; }
.aaep-who form { margin: 0; }
.aaep-link-btn {
  background: none; border: 0; padding: 0; min-height: 0; color: var(--aaep-accent);
  text-transform: none; font-weight: inherit; cursor: pointer;
}
.aaep-h1 { margin-bottom: 16px; }
.aaep-muted { opacity: .75; }
.aaep-error { color: #b3261e; font-weight: 600; }

.aaep-login { max-width: 420px; margin: 24px auto; }
.aaep-form { display: grid; gap: 14px; margin: 18px 0; }
.aaep-form label { display: grid; gap: 6px; font-weight: 600; }

.aaep-eyebrow {
  font-family: var(--wd-header-el-font); font-size: 12px; font-weight: bold; text-transform: uppercase;
  letter-spacing: .06em; color: var(--aaep-red); margin: 0 0 6px;
}
.aaep-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Home: the entitled Configurators, large type, numbered. */
.aaep-intro { font-size: 30px; line-height: 1.2; margin: 0; }
.aaep-list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 2px solid var(--wd-title-color); }
.aaep-list li { margin: 0; }
.aaep-list a {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--aaep-line); color: inherit;
}
.aaep-idx { font-family: var(--wd-header-el-font); font-weight: bold; font-size: 14px; color: var(--aaep-red); }
.aaep-list-t {
  display: block; font-family: var(--wd-title-font); font-weight: var(--wd-title-font-weight);
  font-size: 30px; line-height: 1.2; color: var(--wd-title-color); transition: color .15s;
}
.aaep-list a:hover .aaep-list-t { color: var(--aaep-red); }
.aaep-list-d { display: block; margin-top: 4px; }
.aaep-go {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: var(--wd-primary-color); color: var(--btn-accented-color);
}
.aaep-list a:hover .aaep-go { background: var(--btn-accented-bgcolor-hover); }
.aaep-notice { margin-top: 22px; }

/* Home introduction (#61): three short points in a tinted strip, and a closing box of actions. */
.aaep-points {
  list-style: none; margin: 8px 0 36px; padding: 22px 26px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px;
  background: rgba(185, 35, 48, .05); border-left: 4px solid var(--aaep-red); border-radius: var(--wd-brd-radius, 4px);
}
.aaep-points li { margin: 0; }
.aaep-points b { display: block; color: var(--wd-title-color); margin-bottom: 4px; }
.aaep-points span { font-size: 15px; line-height: 1.5; }
.aaep-home-foot {
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--aaep-line);
  border-radius: var(--wd-brd-radius, 4px);
}
.aaep-home-foot > div { padding: 18px 22px; display: grid; gap: 4px; }
.aaep-home-foot > div + div { border-left: 1px solid var(--aaep-line); }
.aaep-home-foot a { font-weight: 600; }

/* A Shopper, not a User: red band with the steps to get access. */
.aaep-band {
  background: var(--aaep-red); color: rgba(255, 255, 255, .85); border-radius: var(--wd-brd-radius);
  padding: 48px 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center;
}
.aaep-band h2 { color: #fff; font-size: 40px; line-height: 1.15; margin-bottom: 12px; }
.aaep-band p { font-size: 17px; }
.aaep-band .aaep-eyebrow { color: var(--wd-alternative-color); }
.aaep-steps { list-style: none; margin: 0; padding: 0; counter-reset: aaep-step; }
.aaep-steps li {
  counter-increment: aaep-step; display: grid; grid-template-columns: 46px 1fr; gap: 12px;
  padding: 12px 0; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.aaep-steps li::before {
  content: counter(aaep-step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wd-alternative-color); color: var(--wd-title-color); font-weight: bold;
}
.aaep-steps b { display: block; color: #fff; }

/* Not available on your account. */
.aaep-plain-msg { max-width: 720px; }
.aaep-plain-msg h2 { font-size: 34px; margin-bottom: 10px; }
.aaep-plain-msg p { font-size: 16px; }

/* Feedback (#62): one form, then a thank-you bar linking back to where it was sent from. */
.aaep-feedback-h { font-size: 26px; margin: 0 0 8px; }
.aaep-feedback-form { max-width: 720px; }
.aaep-feedback-form select { max-width: 280px; }
.aaep-feedback-form textarea { width: 100%; }
.aaep-feedback-count { margin-top: -10px; font-size: .85em; }
.aaep-feedback-sent a { margin-left: 8px; font-weight: bold; }
/* #64: Your Feedback under the form; a thread of boxes, AA's marked red; the closed note. */
.aaep-feedback-list-h { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--aaep-line); }
.aaep-feedback-status {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: bold;
  background: #e3f1e4; color: #23602a; white-space: nowrap;
}
.aaep-feedback-status.is-closed { background: #ececec; color: #555; }
.aaep-feedback-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aaep-feedback-head .aaep-feedback-h { margin: 0; }
.aaep-feedback-thread { list-style: none; margin: 16px 0 24px; padding: 0; max-width: 720px; }
.aaep-feedback-thread li { margin: 0 0 12px; padding: 14px 18px; border: 1px solid var(--aaep-line); border-radius: 4px; }
.aaep-feedback-thread li.is-aa { border-left: 4px solid var(--aaep-red); }
.aaep-feedback-who { margin-bottom: 6px; font-size: .9em; }
.aaep-feedback-aa { color: var(--aaep-red); font-weight: bold; margin-right: 4px; }
.aaep-feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.aaep-feedback-closed a { margin-left: 8px; font-weight: bold; }
.aaep-feedback-table td:nth-child(3) { overflow-wrap: anywhere; }
/* #65: the Attachment picker with its limits under it, then the chosen files (feedback.js) with Remove; one over a limit is red. */
.aaep-feedback-help { display: block; font-size: .85em; font-weight: normal; }
.aaep-feedback-attachments { list-style: none; margin: 0; padding: 0; border: 1px solid var(--aaep-line); border-radius: 4px; }
.aaep-feedback-attachments[hidden] { display: none; }
.aaep-feedback-attachments li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 12px; margin: 0; border-bottom: 1px solid var(--aaep-line); }
.aaep-feedback-attachments li:last-child { border-bottom: 0; }
.aaep-feedback-attachments li span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.aaep-feedback-attachments li.is-bad { background: #fdecea; color: #b3261e; }
.aaep-feedback-attachment-names { overflow-wrap: anywhere; }

@media (max-width: 768px) {
  .aaep-band { grid-template-columns: 1fr; padding: 30px 22px; gap: 24px; }
  .aaep-band h2 { font-size: 30px; }
  .aaep-intro { font-size: 24px; }
  .aaep-list a { grid-template-columns: 30px 1fr auto; gap: 12px; }
  .aaep-list-t { font-size: 22px; }
  .aaep-go { width: 44px; height: 44px; }
  .aaep-points { grid-template-columns: 1fr; padding: 18px; }
  .aaep-home-foot { grid-template-columns: 1fr; }
  .aaep-home-foot > div + div { border-left: 0; border-top: 1px solid var(--aaep-line); }
  /* Your Feedback: each row a small card (date, type, status; then the message). */
  .aaep-feedback-table thead { display: none; }
  .aaep-feedback-table, .aaep-feedback-table tbody { display: block; }
  .aaep-feedback-table tr {
    display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--aaep-line);
  }
  .aaep-feedback-table td { padding: 0; border: 0; }
  .aaep-feedback-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .aaep-feedback-table td:nth-child(4) { display: none; }
  .aaep-feedback-table td:nth-child(5) { grid-column: 3; grid-row: 1; }
}

.aaep-table-wrap { overflow-x: auto; }
.aaep-table { width: 100%; border-collapse: collapse; }
.aaep-table th, .aaep-table td { padding: 10px 12px; border-bottom: 1px solid var(--aaep-line); text-align: left; }
.aaep-center { text-align: center !important; }
.aaep-table td:first-child { white-space: nowrap; }
.aaep-inline { margin: 0; }
.aaep-toggle {
  min-height: 0; padding: 6px 12px; border: 1px solid var(--aaep-line); border-radius: 20px;
  background: transparent; color: inherit; text-transform: none; cursor: pointer;
}
.aaep-toggle.is-on { background: var(--aaep-accent); border-color: var(--aaep-accent); color: #fff; }

.aaep-quote-head { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; }
.aaep-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 16px 0; }
.aaep-meta dt { font-weight: 600; }
.aaep-meta dd { margin: 0; }
.aaep-quote-text {
  white-space: pre-wrap; padding: 18px; border: 1px solid var(--aaep-line); border-radius: 6px;
  background: rgba(0, 0, 0, .02); font-size: .9em; max-width: 100%; overflow-x: auto;
}

.aaep-hash { font-size: .8em; word-break: break-all; }

@media print {
  header, footer, .site-header, .site-footer, .whb-header, .wd-footer, .aaep-bar, .aaep-noprint, .aaep .wd-breadcrumbs { display: none !important; }
  .aaep-quote-text { border: 0; background: none; }
}
