/* Simple order, layout A (card upload + paste box above the form). Scoped to #smm-intake and the boxes it marks. */
#smm-intake { margin: 0 0 14px; min-width: 0; }
#smm-intake .smm-intake-upload { display: block; margin: 0; padding: 18px 12px; text-align: center; font-weight: 600; cursor: pointer; border: 2px dashed #b5b5b5; border-radius: 8px; }
#smm-intake input[type="file"] { display: block; width: 100%; margin: 10px 0 0; font-weight: 400; }
#smm-intake .smm-intake-or { margin: 12px 0; text-align: center; color: #666; }
#smm-intake textarea { display: block; width: 100%; box-sizing: border-box; height: auto !important; min-height: 110px !important; margin: 0 0 10px; padding: 10px; font: inherit; border: 1px solid #bbb; border-radius: 6px; }
/* the theme keeps button text on one line, which can make the whole form wider than a phone screen */
#smm-intake .smm-intake-lang { margin: 0 0 10px; }
#smm-intake .smm-intake-lang label { display: block; margin: 0 0 4px; font-weight: 600; }
#smm-intake .smm-intake-lang select { display: block; width: 100%; max-width: 100%; height: auto; min-height: 44px; margin: 0; font-size: 16px; border: 1px solid #bbb; border-radius: 6px; }
#smm-intake button { width: 100%; max-width: 100%; height: auto; min-height: 48px; margin: 0; padding: 8px 12px; white-space: normal; line-height: 1.4; cursor: pointer; }
#smm-intake button[disabled] { opacity: .6; cursor: wait; }
#smm-intake .smm-intake-note { margin: 0 0 6px; padding: 10px 12px; border-left: 4px solid #c77700; background: #fff7e8; }
#smm-intake .smm-intake-note:empty { display: none; }
#smm-intake .smm-intake-note ul { margin: 6px 0 0 18px; }
#smm-intake .smm-intake-names, #smm-intake .smm-intake-browse { display: none; }
/* compact layout "A": a lean upload row, a roomy text box, the language on one line, the button on its own line */
#smm-intake.smm-compact { margin: 0 0 12px; }
#smm-intake.smm-compact .smm-intake-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; position: relative; min-height: 40px; padding: 4px 4px 4px 10px; border: 1px solid #bbb; border-radius: 6px; text-align: left; font-size: 14px; line-height: 1.25; }
#smm-intake.smm-compact .smm-intake-upload:focus-within { outline: 2px solid #1565c0; outline-offset: 2px; }
#smm-intake.smm-compact input[type="file"] { position: absolute; width: 1px !important; height: 1px; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; }
#smm-intake.smm-compact .smm-intake-browse { display: block; grid-column: 2; grid-row: 1; padding: 5px 12px; border: 1px solid #999; border-radius: 5px; background: #f4f4f4; font-weight: 400; font-size: 13px; }
#smm-intake.smm-compact .smm-intake-names { display: block; grid-column: 1 / -1; margin: 3px 0 0; font-weight: 400; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#smm-intake.smm-compact .smm-intake-names:empty { display: none; }
#smm-intake.smm-compact .smm-intake-or { margin: 4px 0; font-size: 13px; }
#smm-intake.smm-compact textarea { height: 110px !important; min-height: 110px !important; margin: 0 0 8px; font-size: 16px; line-height: 1.4; resize: none; }
#smm-intake.smm-compact .smm-intake-lang { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
#smm-intake.smm-compact .smm-intake-lang label { margin: 0; font-size: 14px; white-space: nowrap; }
#smm-intake.smm-compact .smm-intake-lang select { flex: 1; min-width: 0; min-height: 40px; }
#smm-intake.smm-compact button { min-height: 44px; }
#smm-intake.smm-compact .smm-intake-note { margin: 8px 0 0; }