/* Design review 27 Nov 2026, page group L4 (order, shop, contact): page-specific fixes, loaded after the site-wide file.
   Where the older rules in orveka-final.css / orveka-cenik.css use !important (they hide the price bar, paint the error frames),
   the rules here use more specific selectors with !important as well, because a normal rule cannot win against those. */

/* ===== /order ===== */

/* L4-01: phone price bar. The shared files hide every child of the bar, so outside the Czech page only an empty white strip
   with a blue line stayed. Now the bar is hidden until the price is ready, then it shows the total and the Continue button.
   (The Czech page has its own progress line in the bar, left as it is.) */
@media (max-width:800px){
  html:not(:lang(cs)) body #oc-mobile-price:not(.oc-mobile-price-ready){display:none!important}
  html:not(:lang(cs)) body.order-page:has(#oc-mobile-price:not(.oc-mobile-price-ready)){padding-bottom:0}
  html:not(:lang(cs)) body #oc-mobile-price.oc-mobile-price-ready{padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));gap:12px}
  html:not(:lang(cs)) body #oc-mobile-price .oc-mobile-price-copy>#oc-mobile-price-label,
  html:not(:lang(cs)) body #oc-mobile-price .oc-mobile-price-copy>#oc-mobile-price-value{display:block!important}
  html:not(:lang(cs)) body #oc-mobile-price .oc-mobile-price-copy>#oc-mobile-price-label{font-size:14px;font-weight:500}
  html:not(:lang(cs)) body #oc-mobile-price #oc-mobile-price-action{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border:0;border-radius:12px;background:#2f6f1f;color:#fff;font-size:16px;font-weight:700;max-width:none}
}

/* L4-03: chosen finish (phone). The image, the name and the button shared one flex row, the name was squeezed to one letter.
   Image and name sit side by side, the "Change finish" button under them across the full width. */
@media (max-width:767px){
  #oc-wrapper #oc-step-decor #oc-decor-summary:not([hidden]){display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:10px 14px;align-items:center}
  #oc-wrapper #oc-step-decor #oc-decor-summary>img,#oc-wrapper #oc-step-decor #oc-decor-summary>.oc-decor-swatch{justify-self:start}
  #oc-wrapper #oc-step-decor #oc-decor-summary>div{min-width:0;width:auto}
  #oc-wrapper #oc-step-decor #oc-decor-summary>div strong{display:block;font-size:17px;line-height:1.3;overflow-wrap:break-word}
  #oc-wrapper #oc-step-decor #oc-decor-summary>button{grid-column:1/-1;width:100%;max-width:none;min-height:44px;white-space:normal}
}

/* L4-04: error state of a step (phone). Before: dashed outline, red frame and a red frame round every option, the step was
   pushed in by 17 px and words broke ("Orthosi / s"). Now the step keeps its width, options keep a normal border and
   red stays on the title, the number badge and the message. */
@media (max-width:767px){
  html body #oc-form .oc-next-step,html body #oc-form .oc-next-step.oc-invalid{outline:none!important}
  html body .oc-layout #oc-form .oc-step.oc-invalid{box-shadow:none!important;border:0!important;margin:0!important;padding:12px 4px!important;background:none!important}
  html body .oc-layout #oc-form .oc-step.oc-invalid .oc-choices label,
  html body .oc-layout #oc-form .oc-choices.oc-invalid label,
  html body .oc-layout #oc-form #oc-side-group.oc-invalid label,
  html body .oc-layout #oc-form #oc-construction-row.oc-invalid .oc-choices label,
  html body .oc-layout #oc-form #oc-sole-row.oc-invalid .oc-choices label,
  html body .oc-layout #oc-form #oc-step-decor.oc-invalid .oc-decor-grid label{border:2px solid #c7ddb9!important;box-shadow:none!important;background:#fff!important}
  html body .oc-layout #oc-form #oc-side-group.oc-invalid,
  html body .oc-layout #oc-form #oc-construction-row.oc-invalid,
  html body .oc-layout #oc-form #oc-sole-row.oc-invalid{border:0!important;background:transparent!important;padding:0!important}
}

/* L4-05: the frame round the next empty field only says "write here": brand green, red stays for real errors. */
#oc-form .oc-next-step:not(.oc-invalid){outline:2px solid #6FB43F!important;outline-offset:4px}

/* L4-06: review screen rows. The label gets a fixed share and breaks only between words, an amount never breaks. */
#oc-review .oc-spec-row span{flex:0 0 40%!important;min-width:0;overflow-wrap:normal;word-break:normal;hyphens:auto}
#oc-review .oc-spec-row strong{flex:1 1 0!important;min-width:0;overflow-wrap:break-word}
#oc-review .oc-price-row span{flex:1 1 auto!important;min-width:0;overflow-wrap:normal;word-break:normal}
#oc-review .oc-price-row strong{flex:0 0 auto!important;white-space:nowrap}

/* L4-07: agreements at the end of the order. Box on the left, one text block on the right (links inline, one line height).
   Long consents show their first sentence (.oc-consent-lead); the rest (.oc-consent-rest) opens in place with the button
   (orveka-revize-G4.js adds .is-collapsed and shows the button; without the script the full text stays visible). */
#oc-form .oc-checkline{display:grid!important;grid-template-columns:24px minmax(0,1fr);gap:0 12px;align-items:start;line-height:1.5}
#oc-form .oc-checkline>input{width:22px;height:22px;margin:1px 0 0}
#oc-form .oc-checkline>span{display:block;line-height:1.5}
#oc-form .oc-checkline a{display:inline!important;line-height:inherit!important;min-height:0!important;padding:0!important;margin:0!important}
#oc-form .oc-checkline>.oc-required-warning{grid-column:1/-1;margin:8px 0 0}
#oc-form .oc-consent-lead{font-weight:700}
#oc-form .oc-consent-long.is-collapsed .oc-consent-rest{display:none}
#oc-form .oc-consent-more{grid-column:2;justify-self:start;min-height:44px;margin:0;padding:0 2px;border:0;background:none;color:#0b6fb8;font-weight:700;font-size:15px;line-height:1.2;font-family:inherit;text-decoration:underline;cursor:pointer}
#oc-form .oc-consent-more:focus-visible{outline:3px solid #6fb43f;outline-offset:2px;border-radius:4px}
#oc-form .oc-consent-more[hidden]{display:none}

/* L4-16: first screen of /order on the phone: the E-shop card shrinks to one slim link row. */
@media (max-width:767px){
  .orveka-landing-grid{gap:10px!important}
  .orveka-landing-shop{padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
  .orveka-landing-shop .orveka-landing-description{display:none!important}
  .orveka-landing-shop .orveka-landing-cta{min-height:44px;padding:0 14px}
  .orveka-landing-bespoke{padding-bottom:14px!important}
  .orveka-landing-bespoke .orveka-landing-cta{min-height:48px}
}

/* L4-17: no tracked-out small headings and no extra spacing in panel headings, on the order page. */
html body main .oc-overline,html body main .oc-kicker,html body main .orveka-mobile-small-copy,
html body #oc-wrapper .oc-stage-heading>span{letter-spacing:0!important;text-transform:none}
html body .oc-price-head{letter-spacing:0!important}
html body .oc-container h2,html body .oc-container h3,html body .oc-panel h2,html body #oc-wrapper h2,html body #oc-wrapper h3,html body #oc-review h2,html body #oc-finish h2,html body .oc-intro h2{letter-spacing:0!important;word-spacing:0!important}

/* Hand-made look rule (a): alerts and notes get an even border, no coloured stripe down the left edge. */
.oc-banner{border:1px solid #b6d2e4;border-left-width:1px}
.oc-required-warning{border:1px solid #d62636;border-radius:9px}
.legal-note{border-left:0;padding-left:0}

/* L4-19: order page on a computer: secondary text and the price summary 14 px, as on the phone. */
@media (min-width:1024px){
  html body #oc-wrapper .oc-field>span,html body #oc-wrapper .oc-hint,html body #oc-wrapper .oc-stephead small,html body #oc-wrapper small,html body #oc-wrapper .oc-choices label small,
  html body #oc-form .oc-field>span,html body #oc-form small,html body #oc-form .oc-hint,html body #oc-sidebar .oc-spec-row,html body #oc-sidebar .oc-price-row,html body #oc-sidebar .oc-total-row,html body #oc-review .oc-spec-row,html body #oc-review .oc-price-row{font-size:14px!important;line-height:1.45}
}

/* ===== /contact ===== */

/* L4-08: file field of the contact form looks like the one in the order: green button, visible dashed frame. */
body.contacts-page input[type=file]{width:100%;box-sizing:border-box;min-height:64px;padding:10px 12px;border:2px dashed #8fc06f;border-radius:12px;background:#fff;font-size:16px;color:#3d5c70;cursor:pointer;display:block}
body.contacts-page input[type=file]::file-selector-button{margin-right:14px;min-height:44px;padding:0 18px;border:1px solid #8fc06f;border-radius:10px;background:#f1f8eb;color:#2f6f1f;font:700 16px/1 -apple-system,system-ui,Arial,sans-serif;cursor:pointer}

/* L4-14: the page title shows on the phone too. */
@media (max-width:767px){
  body.contacts-page #ct-h1{display:block!important;font-size:30px;line-height:1.15;letter-spacing:-0.8px;margin:0 0 12px;color:#0b2f4f}
  body.contacts-page .ct-intro{padding:26px 0 20px}
}

/* L4-15: notes under the file field are plain small text, the Send button text is centred, more room round the button. */
body.contacts-page .ct-field-hint{background:none!important;border:0!important;padding:0!important;margin:12px 0 0!important;font-size:14px;line-height:1.5;color:#4d697e}
body.contacts-page .ct-contact-files .ct-field-hint{margin-top:8px!important}
body.contacts-page .ct-submit{justify-content:center!important;text-align:center}
body.contacts-page .ct-submit-row{margin-top:18px}
body.contacts-page .ct-submit-row a{color:#0b6fb8;font-weight:600;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}

/* ===== /shop ===== */

/* L4-09: product cards on the phone: the description shows the first lines, the rest opens with "Show details". */
.shop-product-main .shop-more-btn{display:none}
@media (max-width:767px){
  .shop-product-main:not(.is-open)>p:first-of-type{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
  .shop-product-main:not(.is-open)>p:not(:first-of-type){display:none}
  .shop-product-main .shop-more-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 6px 0 0;margin:2px 0 0;border:0;background:none;color:#0b6fb8;font:700 16px/1 -apple-system,system-ui,Arial,sans-serif;cursor:pointer}
}

/* L4-10: buy block of a product on the phone: price and note in a row, variant list full width, quantity and "Add to basket"
   in one row, every control 48 px. */
@media (max-width:767px){
  .otheraids-page .shop-product-buy{display:grid!important;grid-template-columns:104px minmax(0,1fr);gap:10px 12px;align-items:center;padding:16px 5px 6px}
  .otheraids-page .shop-product-buy .shop-price{grid-column:1;grid-row:1;font-size:20px}
  .otheraids-page .shop-product-buy>small{grid-column:2;grid-row:1;font-size:14px}
  .otheraids-page .shop-product-buy select{grid-column:1/-1!important;grid-row:2!important;width:100%;height:48px;min-height:48px;font-size:16px;margin:0}
  .otheraids-page .shop-product-buy input[type=number]{grid-column:1;grid-row:3;height:48px;min-height:48px;font-size:16px;width:100%;box-sizing:border-box}
  .otheraids-page .shop-product-buy .shop-add{grid-column:2;grid-row:3;height:48px;min-height:48px;margin:0;font-size:16px}
  .otheraids-page .shop-product-buy>p[role=status]{grid-column:1/-1;margin:0}
}

/* L4-11: top of the shop on the phone: heading and basket button in one row, the intro text across the full width. */
@media (max-width:690px){
  .otheraids-page .shop-topline{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 16px;margin-bottom:20px}
  .otheraids-page .shop-heading{display:contents!important}
  .otheraids-page .shop-heading h1{grid-column:1;grid-row:1;margin:0!important}
  .otheraids-page .shop-bag-button{grid-column:2;grid-row:1}
  .otheraids-page .shop-heading>p{grid-column:1/-1;grid-row:2}
  .otheraids-page .shop-heading>.shop-eyebrow{display:none}
}

/* L4-12: basket rows use the .cart-line styles of dalsi-pomucky.css (the script now adds the classes); remove link with a 44 px area. */
.cart-items>.cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:14px 0;border-bottom:1px solid #e1eaf1}
.cart-items>.cart-line>.cart-line-name{grid-column:1;margin:0;font-size:17px}
.cart-items>.cart-line>.cart-line-variant{grid-column:1;margin:0;font-size:15px}
.cart-items>.cart-line>.cart-remove{grid-column:2;grid-row:1/3;margin:0;min-height:44px;min-width:44px;padding:0 6px;font-size:15px;color:#0b6fb8;background:none;border:0;text-decoration:underline;cursor:pointer}

/* L4-13: basket in the checkout step: compact footer, larger controls, checkbox aligned with the first line of the sentence. */
.shop-cart .cart-footer{padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
.shop-cart .cart-total{margin-bottom:8px}
.shop-cart .cart-footer>p:empty,.shop-cart #shop-checkout-availability:empty{display:none}
.shop-cart .cart-footer>p{margin:0 0 8px;font-size:14px}
.shop-cart .cart-checkout{min-height:52px;font-size:16px;border-radius:12px}
.otheraids-page .shop-cart .cart-checkout:not(:disabled){color:#fff!important}
.shop-cart .cart-form{padding:12px 16px 16px}
.shop-cart .cart-consent{align-items:flex-start;gap:12px;font-size:15px}
.shop-cart .cart-consent input{width:24px;height:24px;margin:0;flex:0 0 24px}
.shop-cart .cart-choice input{width:22px;height:22px;accent-color:#0b6fb8}
.shop-cart .cart-choice label{min-height:44px}
.shop-cart .cart-consent>span{display:block;flex:1 1 auto;min-width:0;line-height:1.5}
.shop-cart .cart-consent a{display:inline!important;font-weight:600}

/* L4-17 (shop): product labels without tracked-out capitals. */
.otheraids-page .shop-eyebrow,.otheraids-page .shop-other-eyebrow,.otheraids-page .shop-product-tag,.otheraids-page .shop-image-caption{letter-spacing:0!important}

/* L4-18: shop on a computer: the top row has the same width as the product list. */
@media (min-width:768px){
  .otheraids-page .shop-topline{max-width:1120px;margin-left:auto!important;margin-right:auto!important}
  .otheraids-page .shop-heading{max-width:none}
}

/* 27 Nov 2026 (main check after the build): with the 20 px page margin the choice card is 18 px narrower and the
   bold choice name ("Orthosis") broke mid-word. The name keeps its width, the short description wraps instead. */
.oc-choices label > b{flex:0 1 auto!important;width:auto!important;min-width:min-content;overflow-wrap:normal;word-break:normal;margin-right:12px}
.oc-choices label > b + *{min-width:0;margin-left:auto;text-align:right}
