/* Extracted from pages/pricelist_page_cz.php's 3 inline <style> blocks.
   Part of the Bootstrap migration: page-specific CSS that isn't reused
   anywhere else gets its own file instead of living inline.

   Two PHP-conditional chunks from the original blocks could NOT be moved here:
   - the .price_tab_box.me / .me.no_margin / .me-no-margin @media(min-width:767px)
     rules, gated by `!isset($_GET['me'])` - a genuine per-request toggle, stays
     inline in the page.
   - everything else that was gated by `$debug` here: that flag defaults to
     true and is never actually turned off anywhere in this file (confirmed
     matching production's current live behavior for both SK and CZ pricelists,
     see the DUDO-calculator feature) - so those rules are included below
     unconditionally, with the now-pointless `if($debug)` PHP wrapper removed. */

/* PRELEX boxes: converted to Bootstrap grid, same as pricelist_page.php's fix. */
@media (min-width: 768px) {
  #pricelist
    .container
    .price_tab_body
    .row.no-gutters
    > .price_tab_box.col-md-4 {
    flex: 0 0 32%;
    max-width: 32%;
  }
}

/* 2% gap (= 23px at the 1180px desktop width, and 3 x 32% + 2 x 2% always fits), matches the .me groups (md+ only: below 768px the boxes stack 1-per-row). */
@media (min-width: 768px) {
  #pricelist
    .container
    .price_tab_body
    .row.no-gutters
    > .price_tab_box.col-md-4 {
    margin-right: 2%;
  }
  #pricelist
    .container
    .price_tab_body
    .row.no-gutters
    > .price_tab_box.col-md-4.no_margin {
    margin-right: 0;
  }
}

/* display:table shrinks to the inner <p>'s hardcoded width:228px otherwise. */
#pricelist
  .container
  .price_tab
  .price_tab_body
  .price_tab_box.col-md-4
  .price_tab_box_top,
#pricelist
  .container
  .price_tab
  .price_tab_body
  .price_tab_box.col-md-4
  .price_tab_box_bottom {
  width: 100%;
}

/* no extra width on .price_tab .row.no-gutters: the box grid lines up with its .price_tab header on every width */

/* chained copy: outranks the legacy #pricelist ... .price_tab_box_top p span{font-weight:700} */
.price-desc,
#pricelist .container .price_tab .price_tab_body .price_tab_box .price_tab_box_top p span.price-desc {
  text-transform: initial !important;
  font-weight: 400;
}

.menu-top .cattegory {
  display: flex;
  padding: 12px;
  border: 2px solid #c1c3c2;
  margin-bottom: 40px;
}

.menu-top .cattegory a {
  padding: 0 15px;
  border-right: 1px solid #eee;
  line-height: 20px;
  font-family: var(--font-primary);
  text-transform: uppercase;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  display: inline-table;
  text-align: center;
  width: 19%;
  box-sizing: border-box;
}
.menu-top .cattegory a span {
  height: 60px;
  vertical-align: middle;
  display: table-cell;
}

.menu-top .cattegory a:last-child {
  border-right: none;
}

.menu-top .cattegory a.active {
  color: var(--color-teal);
  font-weight: 700;
}

.menu-top .cattegory a:hover {
  color: var(--color-teal);
}
.menu-top .select {
  display: table-cell;
  height: 103px;
  padding: 0 18px;
  border: 2px solid #c1c3c2;
  vertical-align: middle;
  background: var(--color-white);
  width: 100vw;
  font-family: var(--font-primary);
  font-size: 20px;
  color: var(--color-text);
  background-image: url(../img/relex-smile/select2.png) !important;
  background-position: right !important;
  background-repeat: no-repeat !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 45px;
  padding-left: 20px;
}
.mobil-navi {
  position: relative;
  margin-bottom: 40px;
  display: none;
}

.mobil-navi ul {
  border-left: 2px solid #c1c3c2;
  border-right: 2px solid #c1c3c2;
  border-bottom: 2px solid #c1c3c2;
  margin-top: 0px;
  position: absolute;
  top: 103px;
  width: calc(100% - 1px);
  background: var(--color-white);
  z-index: 100;
  display: none;
}
.mobil-navi ul li {
  padding: 10px 10px;
  margin: 0px;
}

.mobil-navi ul li:hover {
  background-color: #c1c3c2;
}

#pricelist .container .price_tab .price_tab_body .price_tab_box2 {
  width: 25%;
  margin-right: 0px;
}
#pricelist
  .container
  .price_tab
  .price_tab_body
  .price_tab_box2
  .price_tab_box_top {
  width: 95%;
}
#pricelist
  .container
  .price_tab
  .price_tab_body
  .price_tab_box2
  .price_tab_box_bottom {
  width: 95%;
}

@media (max-width: 1366px) {
  #pricelist .container .price_tab .price_tab_body .price_tab_box.me {
    width: 85%;
  }
}

@media (max-width: 1024px) {
}

@media (max-width: 768px) {
  .mobil-navi {
    display: block;
  }

  .menu-top {
    padding: 20px;
  }

  .menu-top .cattegory {
    display: none;
  }
}

#pricelist
  .container
  .price_tab
  .price_tab_body
  .price_tab_box
  .price_tab_box_bottom.extrem {
  background-image: url(../img/letni-akce-iclinic-back.png);
  background-position: right bottom;
  background-repeat: no-repeat;
  background-color: #c4e6e1;
}

@media (max-width: 767px) {
  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_bottom.extrem {
    background: var(--color-white);
  }
}

.price_tab_box_top {
  cursor: pointer;
}
.bgcko {
  background-image: url(../img/novinka-cz-roztek.png) !important;
  background-position: right bottom !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 1024px) {
  .zaruka-container {
    width: 90%;
    margin: 0px auto 30px auto;
  }

  #pricelist .container .price_tab {
    width: 90%;
    margin: 0px auto 55px auto;
  }

  .warranty-center {
    padding: 7px 30px 15px 30px;
  }
}

@media (max-width: 768px) {
  /* mobile */

  #pricelist .smart-hore {
    display: inherit !important;
  }
  #pricelist .bgcko {
    background-image: none !important;
  }

  #pricelist .price_tab {
    width: 90%;
    margin: 0px auto;
  }
  #pricelist .price_tab .price_tab_header {
    display: flex;
    height: auto !important;
  }

  #pricelist .container .price_tab .price_tab_header .price_tab_header_left {
    height: auto !important;
  }

  #pricelist .price_tab .price_tab_header_left {
    width: 65% !important;
    display: flex !important;
  }
  #pricelist .container .price_tab .price_tab_header .price_tab_header_left h3 {
    padding: 10px !important;
    font-size: 15px;
    margin-top: 0px !important;
  }

  #pricelist .price_tab .price_tab_header_right {
    width: 35% !important;
    float: right !important;
    display: flex !important;
    height: auto !important;
  }

  #pricelist .price_tab .price_tab_header_right p {
    width: 100% !important;
    line-height: 4;
  }
  #pricelist .container .price_tab .price_tab_body .price_tab_box {
    margin-bottom: 10px;
    display: flex;
    float: none;
    width: 100% !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_top {
    width: 65%;
    display: flex;
    float: left;
    height: auto !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_bottom {
    width: 35%;
    display: flex;
    float: right !important;
    height: auto !important;
  }

  #pricelist .container .price_tab .price_tab_body .price_tab_box2 {
    margin-bottom: 10px;
    display: flex;
    float: none;
    width: 100% !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box2
    .price_tab_box_top {
    width: 65%;
    display: flex;
    float: left;
    height: auto !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box2
    .price_tab_box_bottom {
    width: 35%;
    display: flex;
    float: right !important;
    height: auto !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box2
    .price_tab_box_top
    p {
    width: 100% !important;
    font-size: 13px;
    font-weight: 400;
    display: table-cell;
    vertical-align: middle;
    text-align: left !important;
    padding: 10px;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box2
    .price_tab_box_bottom
    p {
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box2
    .price_tab_box_bottom
    p
    span
    strong {
    font-weight: 400;
    text-transform: initial !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_top
    p {
    font-size: 18px;
    font-weight: 700;
    /* display: table-cell; */
    vertical-align: top !important;
    text-align: left;
    padding: 10px;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_top
    p
    span {
    font-size: 14px;
    font-weight: 400;
    display: block;
    text-transform: initial !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_bottom
    p {
    /* width: 228px; */
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
  }
  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_bottom
    span {
    text-transform: initial !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_bottom
    p
    .kupon {
    display: none;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_bottom.bg {
    background-image: none;
  }

  #pricelist .container .price_tab .price_tab_header .price_tab_header_right p {
    color: var(--color-teal);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    display: flex !important;
    justify-content: center;
    align-content: center;
    flex-direction: column;
  }

  #pricelist .price_text {
    width: 90% !important;
    padding-right: 0px !important;
    padding-left: 0px !important;
    margin: 0px auto;
    margin-top: 20px;
  }

  .smart-hore {
    position: relative;
    top: -10px;
  }

  .bgs {
    background: #c20029 url(../img/extrem-akcia-iclinic-line.png) repeat-y !important;
    padding-top: 7px;
    padding-bottom: 7px;
    color: var(--color-white);
  }

  .bez-bg {
    background: none !important;
  }

  .bgs p {
    padding: 0px 10px !important;
  }

  .smart-a {
    font-size: 16px !important;
    font-weight: 400 !important;
    display: block !important;
    color: var(--color-teal-dark) !important;
    text-transform: initial !important;
  }

  .zaruka-container {
    width: 90% !important;
    margin: 0px auto !important;
  }

  .warranty-sub ul li {
    margin-left: 0px;
  }

  #pricelist .mobile-off {
    display: none !important;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_bottom
    p
    .kupon {
    display: block;
  }

  #pricelist
    .container
    .price_tab
    .price_tab_body
    .price_tab_box
    .price_tab_box_bottom
    p
    .kupon
    span {
    display: none !important;
  }

  #pricelist .gr_left_pricelist {
    float: none;
    margin: 0px auto 30px auto;
    width: auto !important;
    padding: 20px;
  }

  .podseba {
    display: inline-block !important;
  }

  .podseba .price_tab_box_bottom p {
    width: 100% !important;
    padding: 10px 0px;
  }

  .gr_result .gr_box_closed,
  .gr_result .gr_box_customers,
  .gr_result .gr_box_spare {
    background-color: var(--color-white);
  }

  .vacsi-padding .price_tab_box_bottom p {
    padding: 10px;
  }
}

#xmas {
  background-color: var(--color-teal-dark);
  width: 100%;
  margin: 20px 0px;
  display: block;
  overflow: hidden;
  color: var(--color-white);
  max-height: 198px;
}

.xmas-left {
  float: left;
  width: 305px;
}

.xmas-right {
  float: right;
  width: calc(100% - 305px);
}

.xmas-img {
  max-width: 305px;
}

.xmas-text {
  width: 65%;
  float: left;
  padding: 30px;
  text-align: left;
  box-sizing: border-box;
}

#pricelist .container .xmas-text h2 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
}

.xmas-btn {
  width: 35%;
  float: left;
  box-sizing: border-box;
}

.xmas-btn .jumble {
  color: rgb(255, 255, 255);
  background-color: rgb(255, 170, 5);
  position: relative;
  left: 0px;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 200px;
}

.dudo_calculator {
  display: flex !important;
  justify-content: center;
  padding: 12px 00px;
  max-width: 80%;
  margin: 0 auto;
  margin-top: 10px;
}
.dudo_calculator .dudo_plus {
  height: 15px;
  line-height: 21px; /* centers the "*" glyph in the 15px badge */
  font-size: 20px !important;
  background: rgb(255, 170, 5);
  color: var(--color-white);
  width: 15px;
  text-align: center;
}
.dudo_calculator .dudo_text {
  padding: 10px;
  text-align: center;
  align-items: center;
  background: #1f5f7d;
  text-transform: lowercase;
  font-weight: 500 !important;
}
.dudo_calculator .dudo_text strong {
  text-transform: uppercase;
  font-weight: bold !important;
}
#pricelist
  .container
  .price_tab
  .price_tab_body
  .price_tab_box2:hover
  .dudo_calculator
  .dudo_text {
  background: #36b5ae;
}
/* same rule, for the PRELEX boxes now using .price_tab_box instead of .price_tab_box2. */
#pricelist
  .container
  .price_tab
  .price_tab_body
  .price_tab_box:hover
  .dudo_calculator
  .dudo_text {
  background: #36b5ae;
}

@media (max-width: 1100px) {
  .xmas-text {
    margin-top: 5%;
    padding: 10px;
  }

  #pricelist .container .xmas-text h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .xmas-text p {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  #xmas {
    margin: 20px auto;
    max-height: initial;
    cursor: pointer;
  }

  .xmas-left,
  .xmas-right,
  .xmas-text,
  .xmas-btn {
    float: initial;
    width: 100%;
  }

  .xmas-img {
    max-width: 100%;
  }

  .xmas-btn .jumble {
    line-height: 0px;
  }

  .xmas-btn {
    margin: 20px 0px;
  }

  .xmas-right {
    padding: 20px 0px;
  }

  .xmas-text p {
    padding: 10px;
  }

  .xmas-text {
    margin-top: 0px;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
  }
  /* width:auto, not 100%: the global content-box rule (theme.css) beats border-box here, so 100% + padding overflowed by 20px */
  #pricelist .xmas-text {
    width: auto;
  }

  #pricelist .container {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
  }

  #pricelist .container .xmas-text h2 {
    margin-bottom: 0px;
  }

  .dudo_calculator {
    max-width: 100%;
  }
  .dudo_calculator .dudo_text {
    font-size: 13px !important;
  }
}

@media (max-width: 390px) {
  .dudo_calculator .dudo_text {
    font-size: 11px !important;
  }
}

.smart-box {
  width: 32.5% !important;
}

.smart-odsad {
  margin-left: 15px;
}

@media (max-width: 1024px) {
  .smart-odsad {
    margin-left: 10px;
  }
}
@media (max-width: 768px) {
  .smart-odsad {
    margin-left: 0px;
    margin-top: 10px !important;
  }
}

/* phones + 768px: every price box stacks full width with no side gap (768 included: there Bootstrap's col-md-* and the legacy max-width:768px mobile rules both apply).
   [class][class] only raises specificity above the page's inline .me / .no_margin rules. */
@media (max-width: 768px) {
  #pricelist .container .price_tab .price_tab_body .price_tab_box[class][class] {
    margin-left: 0;
    margin-right: 0;
  }
  #pricelist .container .price_tab_body .row.no-gutters > .price_tab_box[class*="col-md-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* tablet: inline-block box groups (not .row) are centred, so the gap goes on both sides; .me boxes 3 per row */
@media (min-width: 769px) and (max-width: 1220px) {
  #pricelist .container .price_tab .price_tab_body > .price_tab_box[class] {
    margin-left: 5px;
    margin-right: 5px;
  }
  #pricelist .container .price_tab .price_tab_body > .price_tab_box.me[class] {
    width: calc(33.333% - 14px);
    margin-left: 5px;
    margin-right: 5px;
  }
}
