/* Dodatki serwisu boxes.dev.sorto.ai: nagłówek, „Polecane”, komunikaty, stopka, układ na telefonie. */
.sorto-naglowek {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 8px 12px; margin: 0 0 8px; background: #1f2a37; color: #fff; font-family: sans-serif;
}
.sorto-naglowek a { color: #fff; text-decoration: none; }
.sorto-nazwa { font-weight: bold; }
.sorto-edytor { border: 1px solid #fff; border-radius: 4px; padding: 6px 10px; }
.sorto-edytor:hover, .sorto-edytor:focus { background: #fff; color: #1f2a37 !important; }

.sorto-polecane { margin: 12px 0; }
.sorto-polecane-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sorto-polecany {
  display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid #ccc; border-radius: 6px;
  color: inherit; text-decoration: none; background: #fafafa;
}
.sorto-polecany:hover, .sorto-polecany:focus { border-color: #1f2a37; }
.sorto-polecany img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.sorto-polecany-nazwa { font-weight: bold; }
.sorto-polecany-opis { font-size: 0.85em; color: #555; }

.sorto-bledy { margin: 12px 0; padding: 10px 14px; border: 2px solid #b00020; border-radius: 6px; background: #fff0f2; color: #5c0011; }
.sorto-bledy ul { margin: 6px 0 0; padding-left: 20px; }

.sorto-stopka { clear: both; margin-top: 24px; padding: 12px; border-top: 1px solid #ccc; font-size: 0.9em; color: #444; }

@media (max-width: 700px) {
  body { margin: 0 8px; }
  .container > div[style*="width: 75%"], .container > div[style*="width: 25%"] { width: 100% !important; float: none !important; }
  .container > div[style*="width: 25%"] img { width: 120px; }
  .argumentcontainer, #preview { width: 100% !important; float: none !important; position: static !important; height: auto !important; }
  .argumentcontainer table { width: 100%; }
  .argumentcontainer td { display: block; }
  .argumentcontainer input[type="text"], .argumentcontainer select, .argumentcontainer textarea { max-width: 100%; box-sizing: border-box; }
  .linkbar li.right { float: none; }
  .sorto-polecane-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  img { max-width: 100%; }
}
