/* Hints under a field: a Sky (#C9ECFF) box with the information icon and 14px navy text, per the hint colour rule.
   Status lines, counters and empty or hidden hints keep their plain look. Inside the
   product-type layer so the type roles' layered !important sizes do not win. */
@layer product-type {
  body.ow[data-product-type] .ow-field > p.hint.hint:not(:empty):not([hidden]):not([role="status"]):not([aria-live]):not([data-recipient-count]):not([class*="count"]):not([id*="count"]):not([id*="-limit"]):not([data-note-count]) {
    position: relative;
    margin: 4px 0 0 !important;
    padding: 8px 12px 8px 36px;
    border-radius: 4px;
    background: #c9ecff;
    color: var(--attention-ink, #042238) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.45 !important;
  }
  body.ow[data-product-type] .ow-field > p.hint.hint:not(:empty):not([hidden]):not([role="status"]):not([aria-live]):not([data-recipient-count]):not([class*="count"]):not([id*="count"]):not([id*="-limit"]):not([data-note-count])::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 10px;
    width: 18px;
    height: 18px;
    background: currentColor;
    opacity: .7;
    -webkit-mask: url("/images/artwork-library/icons/outline/information.svg") center / contain no-repeat;
    mask: url("/images/artwork-library/icons/outline/information.svg") center / contain no-repeat;
  }
}

/* Notes: a fitted Sky box with the information icon and 14px navy text. Attention notes take
   the pale yellow fill. Inside the product-type layer so type roles and page rules do not win.
   Page note classes share the look without their own frame. Their generic info glyph gives way
   to the shared icon; a logo, lock or warning sign at the leading edge stays in its place.
   Status lines, alerts and guidance panels with headings, lists or actions keep their look. */
@layer product-type {
  body.ow[data-product-type] :is(.ow-note.ow-note.ow-note,
    .lf-note:not(.lf-state-guidance), .ow-law:not(:has(ul, details)), .ow-infoband, .mk-contact-note,
    .invite-mailing-note, .ld-hint, .cr-setup-note, .setup-tip, .listing-review-notice,
    .plan-review-note, .phone-retention-note, .phone-luna-note, .delete-extra-note, .lc-tenants-note,
    .la-note:not(h2 + .la-note), .lc-mo-note, .aw-demo-note, .ac-flow-note, .mz-memory-note,
    .au-review-protection, .mt-caution, .goals-answer-note, .vacancy-note, .rules-no-pets-help,
    .utilities-tip) {
    position: relative;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px 8px var(--note-pad-left, 36px) !important;
    border-radius: 4px !important;
    background: var(--hint-bg, #c9ecff) !important;
    color: var(--attention-ink, #042238) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.45 !important;
  }
  body.ow[data-product-type] :is(
    .lf-note:not(.lf-state-guidance), .ow-law:not(:has(ul, details)), .ow-infoband, .mk-contact-note,
    .invite-mailing-note, .ld-hint, .cr-setup-note, .setup-tip, .listing-review-notice,
    .plan-review-note, .phone-retention-note, .phone-luna-note, .delete-extra-note, .lc-tenants-note,
    .la-note:not(h2 + .la-note), .lc-mo-note, .aw-demo-note, .ac-flow-note, .mz-memory-note,
    .au-review-protection, .mt-caution, .goals-answer-note, .vacancy-note, .rules-no-pets-help,
    .utilities-tip) {
    border: 0 !important;
  }
  /* Text a note wraps in its own paragraph keeps the note's type. */
  body.ow[data-product-type] :is(.ow-note.ow-note.ow-note,
    .lf-note:not(.lf-state-guidance), .ow-law:not(:has(ul, details)), .ow-infoband, .mk-contact-note,
    .invite-mailing-note, .ld-hint, .cr-setup-note, .setup-tip, .listing-review-notice,
    .plan-review-note, .phone-retention-note, .phone-luna-note, .delete-extra-note, .lc-tenants-note,
    .la-note:not(h2 + .la-note), .lc-mo-note, .aw-demo-note, .ac-flow-note, .mz-memory-note,
    .au-review-protection, .mt-caution, .goals-answer-note, .vacancy-note, .rules-no-pets-help,
    .utilities-tip) p {
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
  }
  body.ow[data-product-type] :is(.ow-note.ow-note.ow-note[data-tone="attention"],
    .lf-note.warning, .listing-review-notice, .delete-extra-note, .lc-mo-note, .mt-caution) {
    background: #fff1b4 !important;
    box-shadow: inset 0 0 0 1px #fce273;
  }
  body.ow[data-product-type] :is(
    .au-review-protection, .mt-caution, .goals-answer-note, .vacancy-note, .rules-no-pets-help,
    .utilities-tip) {
    --note-pad-left: 12px;
  }
  body.ow[data-product-type] :is(.ow-note.ow-note.ow-note,
    .lf-note:not(.lf-state-guidance), .ow-law:not(:has(ul, details)), .ow-infoband, .mk-contact-note,
    .invite-mailing-note, .ld-hint, .cr-setup-note, .setup-tip, .listing-review-notice,
    .plan-review-note, .phone-retention-note, .phone-luna-note, .delete-extra-note, .lc-tenants-note,
    .la-note:not(h2 + .la-note), .lc-mo-note, .aw-demo-note, .ac-flow-note, .mz-memory-note)::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 9px;
    width: 18px;
    height: 18px;
    background: currentColor;
    opacity: .7;
    -webkit-mask: url("/images/artwork-library/icons/outline/information.svg") center / contain no-repeat;
    mask: url("/images/artwork-library/icons/outline/information.svg") center / contain no-repeat;
  }
  /* The phone-only larger-screen note: one line with a bare close; hidden at tablet width and up. */
  body.ow[data-product-type] .ow-note.ow-note.ow-note.ow-wide-note {
    display: flex;
    align-items: flex-start;
    margin: 8px 0 12px !important;
    padding: 0 0 0 36px !important;
  }
  body.ow[data-product-type] .ow-note.ow-note.ow-note.ow-wide-note::before { top: 13px; }
  body.ow[data-product-type] .ow-wide-note > span { padding: 12px 0; }
  body.ow[data-product-type] .ow-wide-note-close {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 4px; background: none; color: inherit; cursor: pointer;
  }
  body.ow[data-product-type] .ow-wide-note-close:hover { background: rgba(4, 34, 56, .08); }
  body.ow[data-product-type] .ow-wide-note-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  body.ow[data-product-type] .ow-note.ow-note.ow-note.ow-wide-note[hidden] { display: none !important; }
  @media (min-width: 768px) {
    body.ow[data-product-type] .ow-note.ow-note.ow-note.ow-wide-note { display: none !important; }
  }
  body.ow[data-product-type] :is(.ow-law:not(:has(ul, details)) > svg, .ow-infoband > svg,
    .listing-review-notice > svg, .ld-hint > span[aria-hidden="true"],
    .lf-disclosure-hint > .lf-insurance-symbol, .setup-tip > .setup-tip-i) {
    display: none !important;
  }
}
