/* Shared PC/mobile type choices and explicit promotion eligibility. */
.promotion-choice { min-width: 0; align-self: start; overflow: hidden; border: 1px solid #e0e8ee; border-radius: 12px; background: #fff; }
.promotion-choice > button { width: 100%; box-sizing: border-box; margin: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; }
.promotion-choice > .promotion-eligibility { box-sizing: border-box; margin: 0 12px 12px; padding: 10px 0 0; border-top: 1px solid #e0e8ee; color: #637b8e; font-size: 12px; line-height: 1.65; text-align: left; overflow-wrap: anywhere; }
.promotion-choice.is-promotion-unavailable > .promotion-eligibility { color: #805b25; }
.forum-compose-picker-grid { align-items: start; }
.post-type-picker { flex-wrap: wrap; }
.post-type-picker .promotion-choice { flex: 1 1 180px; max-width: 100%; }
.forum-post-sheet [hidden], .forum-post-sheet .community-rule-acceptance[data-rule-state="accepted"] { display: none !important; }
html body[data-page="forum"] .is-promotion-unavailable { opacity: 1 !important; cursor: not-allowed !important; border-color: #e0e8ee !important; background: #f5f8fa !important; color: #718294 !important; box-shadow: none !important; }
html body[data-page="forum"] .is-promotion-unavailable :is(strong,small,span) { color: inherit; }
html body[data-page="forum"] .pcpost-badge.question { color: #8a6427; background: #fff8eb; }

/* PC/mobile use the same composer field and photo layout. */
.promotion-choice > button[aria-expanded="true"] { background: #f5f8fa; }
.promotion-choice > .promotion-eligibility[hidden] { display: none; }
#forum-post-sheet .forum-post-sheet-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
#forum-post-sheet .forum-post-sheet-heading h2 { flex-shrink: 0; }
#forum-post-sheet #post-type-note { margin: 0; font-size: 12px; line-height: 1.5; color: #647c90; }
#forum-post-sheet .forum-post-sheet-close,
#forum-compose-picker .forum-compose-picker-close {
  display: inline-grid; place-items: center; flex-shrink: 0; padding: 0; box-sizing: border-box;
}
#forum-post-sheet .forum-sheet-close-icon,
#forum-compose-picker .forum-sheet-close-icon { display: block; width: 18px; height: 18px; }
#forum-post-sheet .forum-compose-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
#forum-post-sheet .forum-compose-toolbar #login-box { margin: 0; min-width: 0; }
#forum-post-sheet #community-change-type {
  flex: 0 0 auto; min-height: 36px; width: auto; padding: 0 2px; margin: 0; border: 0;
  border-radius: 4px; background: transparent; color: #126b90; box-shadow: none;
  font-size: 12px; font-weight: 650; cursor: pointer;
}
#forum-post-sheet .forum-compose-field { display: grid; min-width: 0; gap: 5px; }
#forum-post-sheet .forum-compose-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#forum-post-sheet .forum-compose-field-head label,
#forum-post-sheet #promotion-fields > label { font-size: 14px; font-weight: 700; }
#forum-post-sheet .forum-field-count { color: #647c90; font-size: 12px; white-space: nowrap; }
#forum-post-sheet #promotion-fields > label { display: block; margin-top: 10px; }
#forum-post-sheet #promotion-fields .contact-grid { margin-top: 5px; }
#forum-post-sheet .promotion-contact-note { margin: 5px 0 0; color: #647c90; font-size: 12px; }
#forum-post-sheet .image-uploader.community-post-photos { padding: 12px; border: 1px solid #d4e9f3; border-radius: 12px; background: #f8fcff; }
#forum-post-sheet .community-post-photos .image-uploader-head { gap: 8px; margin-bottom: 8px; font-size: 14px; }
#forum-post-sheet .community-post-photos strong small { margin-left: 5px; font-size: 11px; font-weight: 400; color: #647c90; }
#forum-post-sheet .community-post-photos .image-count { margin: 0 0 0 auto; flex-shrink: 0; font-size: 12px; color: #58788e; }
#forum-post-sheet #image-preview-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
@media (min-width: 769px) {
  #forum-post-sheet #image-preview-list { max-width: 360px; }
}
#forum-post-sheet #image-preview-list .post-photo-tile {
  position: relative; box-sizing: border-box; display: grid; place-items: center;
  width: 100%; min-width: 0; aspect-ratio: 1; margin: 0; padding: 0;
  overflow: hidden; border: 1px solid #d9e1e6; border-radius: 10px;
  background: #eef1f4; color: #526674; box-shadow: none;
}
#forum-post-sheet #image-preview-list [data-pick-post-image] { cursor: pointer; }
#forum-post-sheet #image-preview-list [data-pick-post-image]:hover { background: #e5eaee; }
#forum-post-sheet #image-preview-list [data-pick-post-image] svg { width: 22px; height: 22px; }
#forum-post-sheet #image-preview-list .post-photo-tile > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
}
#forum-post-sheet #image-preview-list .post-photo-tile > button {
  position: absolute; isolation: isolate; display: grid; place-items: center;
  box-sizing: border-box; width: min(44px, 50%); height: min(44px, 50%);
  min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; box-shadow: none;
  font-size: 16px; line-height: 1; cursor: pointer;
}
#forum-post-sheet #image-preview-list .post-photo-tile > button::before {
  content: ""; position: absolute; z-index: -1; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(21, 36, 47, .82);
}
#forum-post-sheet #image-preview-list .image-remove { inset: 0 0 auto auto; }
#forum-post-sheet #image-preview-list .image-move { inset: auto auto 0 0; }
#forum-post-sheet #image-preview-list .image-move[data-dir="1"] { inset: auto 0 0 auto; }
#forum-post-sheet #image-preview-list button:focus-visible,
#forum-post-sheet #community-change-type:focus-visible { outline: 2px solid #0087b3; outline-offset: -3px; }
#forum-post-sheet .forum-photo-notes { margin: 8px 0 0; font-size: 12px; line-height: 1.55; color: #567286; }
#forum-post-sheet .forum-photo-notes p { margin: 1px 0 0; }
