/* Vendored verbatim from the parts_details.php embedded <style> (issue #557/#559 parts-specific styles: condition-code help chip + applicable-aircraft bubbles/pills). The base detail layout is in page_details.css. */
  /* Issue #557: subtle "?" info chip linking to the condition-codes guide
     (replaces a plain underlined text link). Matches the v3 royal-navy token. */
  .cond-help {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%; background: #eef1fc !important; color: #2843A7 !important;
    font-size: 11px; font-weight: 700; line-height: 1; text-decoration: none;
    vertical-align: middle; transition: background .15s ease, color .15s ease;
  }
  .cond-help:hover, .cond-help:focus { background: #2843A7 !important; color: #ffffff !important; }

  /* Applicable Aircraft pills — royal navy v3 public-brand token (#2843A7)
     on a light navy tint, per the public-surface brand rule (avoid the
     admin/edit-form indigo here). */
  .specs-table .aircraft-bubbles { display: flex; flex-wrap: wrap; gap: 5px; }
  .specs-table .aircraft-bubble {
    background-color: #eef1fc;
    color: #2843A7;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2px;
    line-height: 1.5;
    white-space: nowrap;
  }
  /* Issue #559: hyperlinked, family-level aircraft pills — outlined royal
     navy so the link affordance reads clearly, fills on hover/focus. */
  .aircraft-pill-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 11px;
    border: 1px solid #2843A7;
    border-radius: 999px;
    background: #fff;
    color: #2843A7;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2px;
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
  }
  .aircraft-pill-link:hover, .aircraft-pill-link:focus { background: #2843A7; color: #fff; text-decoration: none; }
  .aircraft-pill-link .pill-arrow { font-size: 10px; opacity: .75; }
  /* Issue #559: muted pill for a model with no live listings — on-brand but
     desaturated, non-clickable, no arrow (clicking would dead-end on the
     empty "No aircraft available" listing). */
  .aircraft-pill-muted {
    display: inline-flex; align-items: center;
    padding: 3px 11px;
    border: 1px solid #d9dce6;
    border-radius: 999px;
    background: #f3f4f8;
    color: #9298ab;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: default;
  }
  #contactSellerModal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center; justify-content: center;
    padding: 20px;
  }
  #contactSellerModal .cs-modal-content {
    background: #fff; border-radius: 8px;
    width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto;
    padding: 24px; position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  }
  #contactSellerModal h3 { margin: 0 0 6px; font-size: 22px; color: #222; }
  #contactSellerModal .cs-sub { margin: 0 0 18px; color: #666; font-size: 13px; }
  #contactSellerModal .cs-close {
    position: absolute; top: 12px; right: 16px;
    font-size: 26px; line-height: 1; color: #999;
    background: none; border: none; cursor: pointer;
  }
  #contactSellerModal .cs-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
  #contactSellerModal .cs-row > * { flex: 1 1 200px; }
  #contactSellerModal input[type=text],
  #contactSellerModal input[type=email],
  #contactSellerModal input[type=tel],
  #contactSellerModal input[type=number],
  #contactSellerModal textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #ccc;
    border-radius: 6px; font-size: 14px; font-family: inherit; box-sizing: border-box;
  }
  #contactSellerModal textarea { min-height: 90px; resize: vertical; }
  #contactSellerModal .cs-submit {
    background: #4747A1; color: #fff; border: none; border-radius: 6px;
    padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
    width: 100%; margin-top: 6px;
  }
  #contactSellerModal .cs-submit:disabled { opacity: 0.6; cursor: not-allowed; }
  #contactSellerModal .g-recaptcha { margin: 12px 0; }
  #contactSellerFeedback {
    display: none; margin-top: 12px; padding: 10px 12px;
    border-radius: 6px; font-size: 14px;
  }
  #contactSellerFeedback.cs-ok    { background: #e8f5e9; color: #256029; }
  #contactSellerFeedback.cs-error { background: #fdecea; color: #b3261e; }
  /* TCPA / A2P 10DLC consent block in Contact Seller modal (issue #445) */
  #contactSellerModal .cs-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 12px;
    padding: 12px 14px;
    background: #f7f8fa;
    border: 1px solid #e6e8ee;
    border-radius: 6px;
    cursor: pointer;
  }
  #contactSellerModal .cs-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 17px;
    height: 17px;
    accent-color: #4747A1;
    cursor: pointer;
  }
  #contactSellerModal .cs-consent-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: #555;
  }
  #contactSellerModal .cs-consent-text strong { color: #2a2a3d; font-weight: 700; }
  #contactSellerModal .cs-consent-text a {
    color: #4747A1;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  #contactSellerModal .cs-consent-text a:hover { text-decoration: none; }
