/* Uklad wspolny dla starych szablonow Smarty. */
html { scroll-padding-bottom: 10rem; }
body { background: #fff; color: #172b43; font-size: 15px; line-height: 1.6; }
*, *::before, *::after { box-sizing: border-box; }
a { color: #075f9d; }
a:hover { color: #084a78; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #d86a00; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
h2, h3 { line-height: 1.4; }
.sf-skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 10000; padding: 12px; background: white; }
.sf-skip-link:focus { top: 1rem; }
.sf-header { background: linear-gradient(120deg, #073875, #007eaf); color: #fff; }
#top_logo { width: calc(100% - 32px); max-width: 1180px; height: auto; min-height: 140px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: 8px 0 16px; }
.sf-brand { display: block; grid-column: 1; grid-row: 1; max-width: 100%; color: #fff; font: normal clamp(22px, 6.5vw, 42px)/1.2 Georgia, serif; white-space: nowrap; }
.sf-brand:hover { color: #fff; text-decoration: none; }
#top_logo .sf-tagline { position: static; grid-column: 1; grid-row: 2; font-size: 15px; font-weight: normal; color: #fff; line-height: 1.4; margin: 0; padding: 0; }
#top_logo > table { grid-column: 2; grid-row: 1 / 3; float: none !important; margin: 0 !important; max-width: 100%; }
#top_logo > table td { padding: 4px; }
#top_logo > table td[bgcolor] { color: #172b43; }
#content { width: calc(100% - 32px); max-width: 1180px; margin: 28px auto; display: flex; align-items: flex-start; gap: 24px; }
#left { float: none; width: 280px; flex: 0 0 280px; margin: 0; min-width: 0; }
#right { float: none; width: auto !important; min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
#szukaj, #top_koszyk { width: 100%; }
#szukaj { background: #fff4de; color: #172b43; border-color: #e1b775; border-radius: 8px 8px 0 0; padding: 12px; }
#szukaj h2 { margin-top: 0; }
#szukaj table { width: 100%; table-layout: fixed; }
#szukaj td { padding: 2px; }
#szukaj td:first-child { width: 36%; overflow-wrap: anywhere; }
#szukaj input[type="text"] { width: 100% !important; }
#top_koszyk { border-color: #bbd6b7; padding: 12px; font-size: 14px; border-radius: 0 0 8px 8px; }
#left ul li a { padding: 10px 12px; min-height: 44px; }
#left .box .content { padding: 12px; }
#left .box table { width: 100%; table-layout: fixed; }
#left .box table td:first-child { width: 30%; overflow-wrap: anywhere; }
#left .box input { max-width: 100%; }
.box .head { background: #075f9d; padding: 12px 16px; border-radius: 8px 8px 0 0; }
.box .content { padding: 16px; border-radius: 0 0 8px 8px; }
.box .content a { display: inline-block; padding: 2px; }
input, select, textarea, button { font: inherit; max-width: 100%; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { min-height: 44px; border: 1px solid #8094a9; border-radius: 4px; padding: 8px; }
input[type="submit"], input[type="button"], button { min-height: 44px; height: auto !important; padding: 10px 16px; cursor: pointer; background: #075f9d; color: white; border: 1px solid #075f9d; border-radius: 5px; white-space: normal; }
#right form > .menu input[type="submit"] { width: auto !important; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; vertical-align: middle; }
.sf-zgody { min-width: 0; margin: 24px 0; padding: 16px; border: 1px solid #bac7d4; border-radius: 6px; }
.sf-zgody legend { padding: 0 8px; font-weight: bold; }
.sf-zgody label { display: block; cursor: pointer; }
.sf-zgody input[type="checkbox"] { margin-right: 8px; }
th { font-size: 13px; padding: 10px 8px; text-align: left; }
td { vertical-align: top; }
.sf-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin: 12px 0; border: 1px solid #d2dce6; border-radius: 6px; }
.sf-table-scroll > table { width: 100%; min-width: 620px; border-spacing: 1px; }
.sf-table-scroll th, .sf-table-scroll td { overflow-wrap: normal; word-break: normal; }
.sf-table-scroll td { padding: 9px 8px; }
.sf-table-scroll td:first-child { min-width: 46px; }
body:not(.sf-ready) #right table:has(th) { display: block; max-width: 100%; overflow-x: auto; }
.sf-table-hint { font-size: 13px; color: #425b73; margin: 8px 0; display: none; }
.sf-menu-toggle { display: none; }
#foot { clear: both; width: 100%; padding-top: 24px; padding-bottom: 16px; font-size: 13px; line-height: 1.7; border-top: 1px solid #d2dce6; }
#foot p { padding-left: 16px; padding-right: 16px; overflow-wrap: anywhere; }
#foot a { display: inline-block; padding: 6px 2px; color: #40576f; }
#foot .menu { padding: 14px 16px; }
#menu_strony { max-width: 100%; }
.white_content { max-width: calc(100% - 32px); }
#cookies-message { padding: 12px 16px; font-size: 14px; line-height: 1.5; border-top: 1px solid #bac7d4; text-align: center; position: fixed; bottom: 0; left: 0; background: #f1f5f8; color: #172b43; width: 100%; z-index: 999; }
#cookies-message a { margin-left: 6px; text-decoration: underline; }
#accept-cookies-checkbox { margin: 8px 0 0 12px; }
@media (max-width: 900px) {
  #top_logo { grid-template-columns: minmax(0, 1fr); padding: 12px 0 18px; gap: 8px; }
  .sf-brand, #top_logo .sf-tagline { grid-column: 1; }
  .sf-brand { max-width: 100%; }
  #top_logo > table { grid-column: 1; grid-row: 3; justify-self: start; width: 100%; max-width: 420px; table-layout: fixed; }
  #top_logo > table td { overflow-wrap: anywhere; }
  #content { flex-direction: column; gap: 24px; }
  #left { width: 100%; flex-basis: auto; }
  #right { width: 100% !important; }
  #szukaj input[type="text"] { width: 100% !important; margin-bottom: 4px !important; }
  #szukaj td:first-child { width: 30%; }
  #left .box input[type="text"] { width: 100%; }
  #left .box table td:first-child { width: 30%; }
  .sf-ready .sf-menu-toggle { display: block; width: 100%; margin-bottom: 8px; }
  .sf-ready #left > .sf-sidebar-panel[data-sf-open="false"] { display: none; }
  .sf-table-hint { display: block; }
  #right form > table:not(:has(th)) { width: 100%; }
  #right form > table:not(:has(th)) > tbody > tr > td { display: block; width: 100% !important; }
  #right form > table:not(:has(th)) input:not([type="checkbox"]):not([type="radio"]),
  #right form > table:not(:has(th)) select { width: 100% !important; }
  #menu_strony { float: none; width: 100%; min-height: 0; margin: 0 0 20px; }
  .white_content { left: 16px; top: 10%; width: calc(100% - 32px); height: 80%; padding: 12px; border-width: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
