/* Order-page layout: keep existing calculation and AJAX markup intact. */
.order-page { background: #f6f8fa; color: #243747; }
.order-page .header-service { padding: 20px 0; }
.order-page .header-service { width: 100%; max-width: none; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.order-page .header-service > .clear { display: none; }
.order-services { display: grid; gap: 12px; padding-left: 20px; border-left: 3px solid #ff700a; }
.order-service h2 { margin: 0; font-size: 21px; line-height: 1.3; color: #243747; }
.order-service p { margin: 5px 0; font-size: 14px; line-height: 1.45; text-align: left; }
.order-service a { display: inline-block; padding: 6px 0; color: #243747; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.order-new { display: inline-block; padding: 2px 5px; margin-right: 4px; border-radius: 3px; background: #ff700a; color: #fff; font-size: 11px; text-transform: uppercase; vertical-align: middle; }
.order-page .header-hero h1 { font-size: 32px; }
.order-page .header-hero__eyebrow, .order-mobile-experience { display: none; }
.order-page .header-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; }
.order-page .index-faq a { color: #243747; }
.order-progress[hidden], .order-guide-section[hidden] { display: none !important; }
.order-page .header-hero__actions { display: flex; gap: 8px; margin-top: 12px; }
.order-page .header-hero > p { margin: 8px 0; }
.order-page .content .pure-button, .order-page .header-hero__actions .pure-button, .order-page input[type=button], .order-page input[type=submit] { border-radius: 3px; min-height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.order-page .pure-button.color, .order-page input.oddaj { background: #ff700a; color: rgba(0, 0, 0, .8); border: 1px solid rgba(0, 0, 0, .15); }
.order-page a:focus-visible, .order-page summary:focus-visible, .order-page input:focus-visible { outline: 3px solid #137eb8; outline-offset: 3px; }
.order-progress { display: flex; gap: 8px; margin: 16px 0; }
.order-progress a { flex: 1; padding: 7px; background: #fff; border: 1px solid #dbe3ea; border-radius: 3px; color: #243747; text-decoration: none; }
.order-progress b { color: #e95f03; margin-right: 6px; }
.order-templates { margin: 12px 0; }
.order-templates summary, .order-customer summary { padding: 12px; cursor: pointer; font-weight: 700; }
.order-page #osnovni { margin-top: 0; }
.order-page #ajaks { background: #fff; border: 1px solid #dbe3ea; padding: 8px; border-radius: 4px; }
.order-page #ajaks h2 { font-size: 22px; margin: 4px 0 8px; }
.order-input-hint { font-size: 14px; color: #526776; margin: 0 0 12px; }
.order-help-link { display: inline-block; padding: 8px 0; font-size: 14px; }
.order-field-label { display: none; }
.order-empty, .order-review, .order-customer, .order-help { padding: 10px; border: 1px solid #dbe3ea; border-radius: 4px; background: #fff; margin-top: 10px; }
.order-page .order-review { width: 100%; float: none; text-align: left; box-sizing: border-box; }
.order-review-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; line-height: 1.7; }
.order-next-action { text-align: right; }
.order-page:has(#orderCustomer[open]) .order-next-action { display: none; }
#orderPuOption[hidden], #orderCncOption[hidden], #orderPuSummary[hidden], #orderCncSummary[hidden] { display: none !important; }
.order-page #izpolni { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.order-page #izpolni > br { display: none; }
.order-customer-field { min-width: 0; }
.order-page #izpolni > .order-fulfilment-field { grid-column: 1 / -1; }
@media (min-width: 761px) {
    .order-page #izpolni > .order-fulfilment-field { grid-column: auto; }
    .order-page .order-fulfilment-field select { max-width: 360px; }
}
.order-customer-wide, .order-page #izpolni > .order-delivery-notice, .order-page #izpolni > select { grid-column: 1 / -1; }
.order-page .order-customer .pure-button { gap: 6px; margin: 4px 4px 4px 0; }
.order-submit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-page .order-submit-actions input { width: auto !important; flex: 1; }
.order-delivery-notice { padding: 8px; margin-bottom: 8px; border: 1px solid #dbe3ea; background: #f6f8fa; }
.order-delivery-notice[hidden] { display: none; }
.order-delivery-notice [hidden] { display: none !important; }
.order-page .order-delivery-notice input { max-width: 140px; }
.order-delivery-notice label { display: block; margin-top: 8px; }
.order-delivery-notice a { display: block; padding: 8px 0; }
.order-page #elementi { display: flex; flex-wrap: wrap; width: 100%; box-sizing: border-box; overflow: visible; }
.order-page #ajaks td.col3 { min-width: 160px; }
.order-page #ajaks td.col3:not(:has(#zg, #sp)) { display: grid; grid-template-columns: 9px 142px 9px; justify-content: center; }
.order-page #ajaks td.col3:not(:has(#zg, #sp)) #le, .order-page #ajaks td.col3:not(:has(#zg, #sp)) #de { float: none; }
.order-page .order-customer { display: block; width: 100%; float: none; text-align: left; box-sizing: border-box; }
.order-customer .order-field-label { display: block; margin: 10px 0 4px; font-weight: 600; }
.order-page .order-customer input, .order-page .order-customer select { margin: 0 0 8px; min-height: 44px; width: 100% !important; max-width: 440px; font-size: 16px; box-sizing: border-box; padding: 10px; }
.order-page #slikce { display: none; }
.order-page .podatki > textarea { box-sizing: border-box; }
.order-help { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.order-help h2 { font-size: 21px; margin-top: 0; }
.order-help p, .order-next { line-height: 1.5; }
.order-help small { display: block; margin-top: 10px; color: #526776; }
.order-help a { margin: 4px 4px 4px 0; }
.order-help > div:last-child a { display: block; overflow-wrap: anywhere; }
.order-mobile-bar { display: none; }
.order-page [id] { scroll-margin-top: 16px; }
.order-material-title { font-size: 17px; margin: 10px 0 5px; padding: 0; text-align: left; }
.order-material-title button { padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.order-material-title button::before { content: '▸'; font-size: 14px; margin-right: 6px; }
.order-material-title button[aria-expanded=true]::before { content: '▾'; }
.order-page #osnovni.order-material-menu, .order-material-menu { display: flex; flex-wrap: wrap; gap: 5px; position: relative; }
.order-page .order-material-menu .pure-button, .order-material-menu .pure-button { flex: 0 0 auto !important; white-space: nowrap !important; font-size: 13px; padding: 6px 8px; margin: 0; min-height: 36px; border-radius: 3px; }
.order-page #osnovni #ostali:not([hidden]) { display: flex !important; flex-wrap: wrap; flex: 0 0 100%; width: 100%; position: static; padding: 4px 0; box-sizing: border-box; gap: 5px; }
.order-page #osnovni #ostali[hidden] { display: none !important; }
.order-page #osnovni #ostali a { white-space: normal !important; min-width: 0; text-align: left; justify-content: flex-start; }
.order-material-measure { position: fixed; visibility: hidden; width: max-content; pointer-events: none; }
.order-guide summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.order-guide ol { padding-left: 18px; margin: 8px 0 0; }
.order-guide li { margin-bottom: 8px; }
.order-import .pure-button { width: 100%; margin: 3px 0; }
.order-import-programs { font-weight: 600; }
.order-page .sidebar-contact a { overflow-wrap: anywhere; }
.order-page .sidebar-section { padding: 10px; }
.order-page .sidebar p { text-align: left; }
.order-size-help { display: inline-flex; justify-content: center; align-items: center; vertical-align: middle; width: 30px; height: 30px; padding: 0; margin-left: 4px; border: 1px solid #bbcbd7; border-radius: 3px; background: #edf3f7; color: #245573; font-size: 14px; cursor: pointer; }
.order-field-label { position: relative; }
.order-size-popup:not([hidden]) { display: block; padding: 8px; margin-top: 4px; background: #edf3f7; color: #243747; font-size: 13px; line-height: 1.4; font-weight: 400; }
@media (min-width: 1051px) {
    .order-page .main { width: 100%; }
    .order-page .content { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 0 16px; align-items: start; }
    .order-page .content > :not(.order-sidebar-slot) { grid-column: 1; }
    .order-page .content > .order-sidebar-slot { grid-column: 2; grid-row: 1 / span 20; }
    .order-page .order-sidebar-slot .sidebar { position: static; top: auto; margin: 0 !important; width: 100%; min-width: 0; max-height: none; overflow: visible; box-sizing: border-box; box-shadow: none; border-radius: 3px; }
    .order-page .order-sidebar-slot .sidebar.order-sidebar-fixed { position: fixed; top: 0; left: var(--order-sidebar-left); width: var(--order-sidebar-width); }
}
@media (max-width: 760px) {
    .order-page .header-service { display: block; }
    .order-services { margin-top: 14px; padding-left: 10px; gap: 10px; }
    .order-service h2 { font-size: 18px; }
    .order-page .header-trust { display: flex; font-size: 12px; gap: 6px 12px; }
    .order-mobile-experience { display: inline; }
    .order-page .content > .sidebar-supplier { padding: 8px; background: #fff; border: 1px solid #dbe3ea; border-radius: 3px; margin: 8px 0; }
    .order-page .content > .order-guide-section { background: #fff; border: 1px solid #dbe3ea; border-radius: 3px; padding: 8px; margin-top: 8px; font-size: 14px; }
    .order-page .sidebar { margin-top: 12px !important; }
    .order-page .order-customer input, .order-page .order-customer select { padding: 7px; }
}
@media (max-width: 760px) {
    .order-page .wrapper { width: calc(100% - 16px); }
    .order-page .main, .order-page .content { width: 100%; min-width: 0; }
    .order-page .header-hero h1 { font-size: 25px; line-height: 1.2; }
    .order-page .header-service { padding: 12px 0; }
    .order-page .header-hero > p:not(.header-hero__eyebrow) { display: block; font-size: 15px; }
    .order-page .header-hero__actions { display: flex; }
    .order-page .header-hero__actions { flex-wrap: wrap; }
    .order-page .header-hero__actions a { flex: 1; padding: 10px 8px; font-size: 14px; }
    .order-progress { gap: 5px; }
    .order-progress a { padding: 8px 5px; font-size: 12px; text-align: center; }
    .order-progress b { display: block; margin: 0 0 3px; font-size: 16px; }
    .order-page #ajaks { overflow: visible; padding: 8px; }
    .order-page #ajaks table { min-width: 0; width: 100%; }
    .order-page #ajaks > table:not(.aj), .order-page #ajaks > table:not(.aj) > tbody, .order-page #ajaks > table:not(.aj) tr { display: block; }
    .order-page #ajaks td.col2, .order-page #ajaks td.col3, .order-page #ajaks td.col4 { display: block; width: 100%; padding: 8px 0; box-sizing: border-box; }
    .order-page #ajaks td.col3 { min-height: 188px; max-width: 230px; margin: 8px auto; padding: 0; }
    .order-page #ajaks #zg, .order-page #ajaks #sp { width: 230px; height: 44px; float: none; clear: both; }
    .order-page #ajaks #le, .order-page #ajaks #de { width: 44px; height: 100px; }
    .order-page #ajaks #co, .order-page #ajaks img.fronte { width: 142px; height: 100px; }
    .order-page #ajaks td.col3:not(:has(#zg, #sp)) { min-height: 100px; }
    .order-page #ajaks td.col3:not(:has(#zg, #sp)) { grid-template-columns: 44px 142px 44px; }
    .order-page #ajaks td.col4:empty { display: none; }
    .order-page #ajaks select, .order-page #ajaks .ts-wrapper { max-width: 100%; font-size: 16px; }
    .order-page #ajaks .ts-wrapper { width: 100%; }
    .order-page #ajaks .ts-control { min-height: 44px; font-size: 16px; }
    .order-page #ajaks .ts-control input { font-size: 16px; }
    .order-page #ajaks #deb { min-height: 44px; }
    .order-page #ajaks .q { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
    .order-page #ajaks table.aj, .order-page #ajaks table.aj > tbody { display: block; }
    .order-page #ajaks .order-entry-head, .order-page #ajaks .order-entry-extra { display: none; }
    .order-page #ajaks tr.order-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
    .order-page #ajaks tr.order-entry > td { padding: 0; width: auto; min-width: 0; text-align: left; }
    .order-page #ajaks .order-field-label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
    .order-page #ajaks .order-field input, .order-page #ajaks .order-field select { width: 100% !important; max-width: 100%; min-height: 44px; font-size: 17px; padding: 7px; box-sizing: border-box; text-align: left; }
    .order-field-opomba, .order-add { grid-column: 1 / -1; }
    .order-page #ajaks .ok.pure-button { max-width: none; width: 100%; min-height: 48px; font-size: 17px; font-weight: 700; }
    .order-page #ajaks tr.tabela { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; margin: 8px 0; border: 1px solid #dbe3ea; border-radius: 4px; background: #f7f9fb; }
    .order-page #ajaks tr.tabela > td { display: block; padding: 0; width: auto; text-align: left; overflow-wrap: anywhere; }
    .order-page #ajaks tr.tabela > td::before { content: attr(data-label); display: block; font-size: 11px; color: #526776; }
    .order-page #ajaks tr.tabela > td:nth-child(7), .order-page #ajaks tr.tabela > td:last-child { grid-column: 1 / -1; }
    .order-page #ajaks tr.tabela > td:last-child { display: flex; justify-content: flex-end; gap: 8px; }
    .order-page #ajaks tr.tabela a { display: inline-flex; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; border: 1px solid #dbe3ea; border-radius: 3px; background: white; }
    .order-page .zunanji { max-width: 100%; }
    .order-page input[type=file] { max-width: 100%; min-width: 0; box-sizing: border-box; }
    .order-page .sidebar { min-width: 0; }
    .order-page .footer { box-sizing: border-box; max-width: 100%; }
    .order-page .footer .colm1, .order-page .footer .colm2 { float: none; width: 100%; min-width: 0; box-sizing: border-box; }
    .order-page img { max-width: 100%; }
    .order-help { grid-template-columns: 1fr; gap: 16px; }
    .order-help .pure-button { width: 100%; }
    .order-mobile-bar:not([hidden]) { display: flex; position: fixed; z-index: 110; bottom: 0; left: 0; right: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -3px 18px #20364726; justify-content: space-between; align-items: center; gap: 8px; }
    .order-mobile-bar small { display: block; font-size: 12px; }
    .order-mobile-bar .pure-button { padding: 10px; font-size: 14px; }
    .order-page.order-has-items { padding-bottom: 95px; }
    .order-page:has(input:focus) .order-mobile-bar { display: none; }
}
