/* Herbatica - prehladnejsi kosik */
body.in-kosik #content-wrapper {
  width: calc(100% - 32px);
  max-width: 1460px;
}

body.in-kosik #content {
  padding-top: 10px !important;
}

body.in-kosik .cart-inner,
body.in-kosik .cart-row {
  width: 100%;
}

body.in-kosik .cart-wrapper {
  font-family: "Open Sans", Arial, sans-serif;
  margin-top: 12px !important;
}

body.in-kosik .cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 380px);
  gap: 24px;
  margin: 0;
}

body.in-kosik .cart-row > .col-md-8,
body.in-kosik .cart-row > .sidebar-in-cart {
  float: none;
  width: 100%;
  padding: 0;
}

body.in-kosik .cart-row > .col-md-8 {
  grid-column: 1;
}

body.in-kosik .cart-row > .sidebar-in-cart {
  grid-column: 2;
}

body.in-kosik .cart-content {
  border: 1px solid #e3e9e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 35, 27, .04);
}

body.in-kosik .cart-row > .col-md-8 > .cart-content {
  padding-bottom: 22px;
}

body.in-kosik .cart-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 64px;
  margin: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #e7ece9;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

body.in-kosik .cart-header .step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100% !important;
  box-sizing: border-box;
  padding: 0 12px;
  border: 0;
  color: #7b8480;
  font-size: 13.5px;
  font-weight: 700;
}

body.in-kosik .cart-header .step,
body.in-kosik .cart-header .step * {
  font-family: "Open Sans", Arial, sans-serif !important;
}

body.in-kosik .cart-header .step span::before {
  content: none !important;
  display: none !important;
}

body.in-kosik .cart-header .step span {
  white-space: nowrap;
}

body.in-kosik .cart-header .step-1 span {
  font-size: 0 !important;
}

body.in-kosik .cart-header .step-1 span::after {
  content: "Košík";
  font-size: 13.5px;
}

body.in-kosik .cart-header .step::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #bdc7c2;
  border-right: 1px solid #bdc7c2;
  transform: rotate(45deg);
}

body.in-kosik .cart-header .step:last-child::after {
  display: none;
}

body.in-kosik .cart-header .step::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  border: 1px solid #cbd4d0;
  border-radius: 50%;
  background: #fff;
  color: #69736e;
  font-size: 12px;
  font-weight: 700;
}

body.in-kosik .cart-header .step-1::before { content: "1"; }
body.in-kosik .cart-header .step-2::before { content: "2"; }
body.in-kosik .cart-header .step-3::before { content: "3"; }

body.in-kosik .cart-header .step.active {
  color: #087858;
}

body.in-kosik .cart-header .step.active::before {
  border-color: #2fa87d;
  background: #eaf7f1;
  color: #087858;
}

body.in-kosik .cart-header .step strong,
body.in-kosik .cart-header .step a {
  color: inherit;
  font-weight: inherit;
}

body.in-kosik .cart-table,
body.in-kosik .cart-table tbody {
  display: block;
  width: 100%;
}

body.in-kosik .cart-table {
  padding: 0 20px;
  border: 0;
}

body.in-kosik .cart-table tr.removeable {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: 86px minmax(175px, 1fr) 92px 122px 122px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e2e8e5;
  border-radius: 14px;
  background: #fff;
}

body.in-kosik .cart-table tr.removeable + tr.removeable {
  margin-top: 12px;
}

body.in-kosik .cart-table tr.removeable > td {
  display: block;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
}

body.in-kosik .cart-p-image img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border: 1px solid #edf1ef;
  border-radius: 11px;
  background: #fff;
}

body.in-kosik .cart-table .p-name .main-link {
  display: block;
  color: #09213f;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-transform: none;
}

body.in-kosik .cart-table .show-related,
body.in-kosik .cart-table .p-label,
body.in-kosik .cart-table .p-price,
body.in-kosik .cart-table .p-discount {
  display: none !important;
}

body.in-kosik .cart-table .p-availability {
  color: #16855f;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

body.in-kosik .cart-table .p-availability .availability-label {
  display: block;
  color: #16855f !important;
  font-size: 14px;
}

body.in-kosik .cart-table .p-availability .availability-amount {
  display: none;
}

body.in-kosik .cart-table .p-availability .availability-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #35ad73;
  box-shadow: 0 0 0 4px #e6f6ed;
  vertical-align: 1px;
}

body.in-kosik .cart-table .quantity {
  display: grid;
  grid-template-columns: 37px 44px 37px;
  width: 120px;
  height: 46px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid #d8e1dc;
  border-radius: 11px;
  background: #fff;
}

body.in-kosik .cart-table .quantity label,
body.in-kosik .cart-table .quantity .amount,
body.in-kosik .cart-table .quantity button {
  position: static !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.in-kosik .cart-table .quantity button::before,
body.in-kosik .cart-table .quantity button::after {
  content: none !important;
  display: none !important;
}

body.in-kosik .cart-table .quantity .increase__sign,
body.in-kosik .cart-table .quantity .decrease__sign {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1 !important;
}

body.in-kosik .cart-table .quantity label { grid-column: 2; grid-row: 1; }
body.in-kosik .cart-table .quantity .decrease { grid-column: 1; grid-row: 1; }
body.in-kosik .cart-table .quantity .increase { grid-column: 3; grid-row: 1; background: #ecf7f2 !important; color: #12845e; }
body.in-kosik .cart-table .quantity .amount { padding: 0 !important; text-align: center; font-size: 16px; font-weight: 800; }
body.in-kosik .cart-table .quantity button { font-size: 18px; font-weight: 800; }

body.in-kosik .cart-table .quantity .decrease {
  border-right: 1px solid #e4ebe7 !important;
}

body.in-kosik .cart-table .quantity .increase {
  border-left: 1px solid #dceae3 !important;
}

body.in-kosik .cart-table .p-total {
  position: static;
  padding-right: 28px !important;
  text-align: right;
}

body.in-kosik .cart-table .p-total .price-final {
  color: #09213f;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

body.in-kosik .cart-table .remove-item {
  top: 50% !important;
  right: 12px !important;
  width: 24px;
  height: 30px;
  margin-top: 0;
  opacity: .58;
  transform: translateY(-50%);
}

body.in-kosik .delivery-time {
  margin: 12px 20px 0;
  padding: 0;
  color: #68736e;
  font-size: 13px;
}

body.in-kosik .delivery-time strong {
  color: #16855f;
  text-decoration: none;
}

body.in-kosik .sidebar-in-cart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.in-kosik .sidebar-in-cart .summary-wrapper {
  order: 1;
  position: sticky;
  top: 18px;
  padding: 0;
}

body.in-kosik .sidebar-in-cart .checkout-box-wrapper {
  order: 2;
  padding: 18px 20px;
}

body.in-kosik .sidebar-in-cart .checkout-box-wrapper h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

body.in-kosik .sidebar-in-cart .checkout-box-wrapper .box {
  padding: 0;
  border: 0;
  background: transparent;
}

body.in-kosik .sidebar-in-cart .contact-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
}

body.in-kosik .sidebar-in-cart .contact-box li {
  margin: 0;
  color: #68736e;
  font-size: 13px;
}

body.in-kosik .summary-wrapper .box {
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

body.in-kosik .summary-wrapper .price-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 18px;
  align-items: baseline;
}

body.in-kosik .summary-wrapper .price-label,
body.in-kosik .summary-wrapper .price {
  float: none;
  width: auto;
  margin: 0;
}

body.in-kosik .summary-wrapper .price-primary.price-label {
  color: #293631;
  font-size: 14px;
  font-weight: 700;
}

body.in-kosik .summary-wrapper .price-primary.price {
  color: #09213f;
  font-size: 32px;
  font-weight: 850;
}

body.in-kosik .summary-wrapper .price-secondary {
  color: #8a938f;
  font-size: 12px;
}

body.in-kosik .summary-wrapper .next-step {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px;
}

body.in-kosik .summary-wrapper .next-step-forward {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 11px;
  background: #22a675;
  box-shadow: 0 8px 18px rgba(34, 166, 117, .18);
  font-size: 16px;
  font-weight: 800;
}

body.in-kosik .summary-wrapper .next-step-forward .order-button-text::after {
  content: none;
  display: none;
}

body.in-kosik .summary-wrapper .next-step-back {
  order: 2;
  min-height: 34px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #69736e;
  font-size: 13px;
  text-align: center;
}

body.in-kosik #herbatica-tip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 22px;
  align-items: center;
  margin: 18px 20px 0;
  padding: 16px 18px;
  border: 1px solid #e3e9e6;
  border-radius: 14px;
  background: #f8faf8;
}

body.in-kosik #herbatica-tip h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 3px;
  font-size: 16px !important;
  line-height: 1.3;
  text-align: left;
}

body.in-kosik #herbatica-tip > p {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 13px;
  text-align: left;
}

body.in-kosik #herbatica-tip .herbatica-tip-options {
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 8px;
}

body.in-kosik #herbatica-tip .herbatica-tip-form button {
  min-width: 78px;
  min-height: 88px;
  border-radius: 11px;
  box-shadow: none;
}

body.in-kosik #herbatica-tip .herbatica-tip-form img {
  width: 44px;
  height: 44px;
}

body.in-kosik .cart-summary {
  margin: 22px 20px 0;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.in-kosik .cart-summary > h2 {
  margin: 0 0 10px;
  color: #52605a;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

body.in-kosik .cart-summary .extras-wrapper {
  gap: 24px;
  align-items: center;
}

body.in-kosik .cart-summary .extras-col {
  padding: 0;
}

body.in-kosik .discount-coupon::before,
body.in-kosik .discount-coupon::after {
  content: none !important;
  display: none !important;
}

body.in-kosik .discount-coupon {
  width: 100%;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

body.in-kosik .discount-coupon form {
  width: 100%;
  max-width: 330px;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid #d8e3de;
  border-radius: 10px;
  background: #f8faf9;
}

body.in-kosik .discount-coupon .form-control {
  min-width: 0;
  padding: 0 14px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
}

body.in-kosik .discount-coupon .btn {
  min-width: 88px;
  padding: 0 15px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #e7f5ef !important;
  color: #087858 !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

body.in-kosik .discount-coupon .btn:hover {
  background: #22a675 !important;
  color: #fff !important;
}

body.in-kosik .discount-coupon .form-control,
body.in-kosik .discount-coupon .btn {
  min-height: 44px;
}

@media (max-width: 991px) {
  body.in-kosik #content { padding-top: 18px; }

  body.in-kosik .cart-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.in-kosik .cart-row > .col-md-8,
  body.in-kosik .cart-row > .sidebar-in-cart {
    grid-column: 1;
  }

  body.in-kosik .sidebar-in-cart .summary-wrapper {
    position: static;
  }

  body.in-kosik .sidebar-in-cart .checkout-box-wrapper {
    display: none;
  }
}

@media (max-width: 767px) {
  body.in-kosik,
  body.in-kosik #content-wrapper,
  body.in-kosik #content,
  body.in-kosik .cart-wrapper,
  body.in-kosik .cart-inner,
  body.in-kosik .cart-row,
  body.in-kosik .cart-row > .col-md-8,
  body.in-kosik .cart-row > .sidebar-in-cart,
  body.in-kosik .cart-content {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.in-kosik #content-wrapper {
    width: 100%;
    padding-left: 7px;
    padding-right: 7px;
  }

  body.in-kosik #content {
    padding-top: 4px;
  }

  body.in-kosik .cart-wrapper {
    margin-top: 5px !important;
    overflow: hidden;
  }

  body.in-kosik .cart-row {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  body.in-kosik .cart-row > .col-md-8 {
    display: contents !important;
  }

  body.in-kosik .cart-row > .col-md-8 > .cart-content {
    order: 1;
  }

  body.in-kosik .cart-row > .sidebar-in-cart {
    order: 2;
    width: 100% !important;
    overflow: hidden;
  }

  body.in-kosik .cart-row > .col-md-8 > .cart-up-sell {
    order: 3;
    margin-top: 14px;
  }

  body.in-kosik .cart-content {
    width: 100%;
    border-radius: 13px;
    overflow: hidden;
  }

  body.in-kosik .cart-row > .col-md-8 > .cart-content {
    padding-bottom: 14px;
  }

  body.in-kosik .cart-header {
    position: static;
    min-height: 48px;
    margin-bottom: 9px;
    border-radius: 13px 13px 0 0;
  }

  body.in-kosik .cart-header .step {
    padding: 0 5px;
    font-size: 0;
  }

  body.in-kosik .cart-header .step::before {
    margin-right: 0;
  }

  body.in-kosik .cart-header .step span {
    display: none;
  }

  body.in-kosik .cart-header .step.active span {
    display: inline-block;
    max-width: calc(100% - 31px);
    overflow: hidden;
    margin-left: 7px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.in-kosik .cart-header .step-1 span::after {
    font-size: 11px;
  }

  body.in-kosik .cart-table {
    width: 100% !important;
    padding: 0 9px;
    table-layout: fixed;
  }

  body.in-kosik .cart-table tbody { width: 100% !important; }

  body.in-kosik .cart-table tr.removeable {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    grid-template-areas:
      "image name name"
      "image availability availability"
      "quantity quantity total";
    gap: 7px 10px;
    padding: 11px 11px 12px;
    overflow: hidden;
  }

  body.in-kosik .cart-p-image { grid-area: image; align-self: start; }
  body.in-kosik .cart-table .p-name {
    grid-area: name;
    min-width: 0;
    padding-right: 23px !important;
    overflow: hidden;
  }
  body.in-kosik .cart-table .p-availability { grid-area: availability; }
  body.in-kosik .cart-table .p-quantity {
    grid-area: quantity;
    min-width: 0;
    margin-top: 5px;
  }
  body.in-kosik .cart-table .p-quantity > div,
  body.in-kosik .cart-table .p-quantity form {
    width: 120px !important;
    max-width: 100% !important;
  }
  body.in-kosik .cart-table .p-total {
    grid-area: total;
    align-self: center;
    min-width: 84px;
    margin-top: 5px;
    padding-right: 0 !important;
  }

  body.in-kosik .cart-p-image img {
    width: 66px;
    height: 66px;
    border-radius: 9px;
  }

  body.in-kosik .cart-table .p-name .main-link {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal !important;
    font-size: 13.5px;
    line-height: 1.3;
  }

  body.in-kosik .cart-table .p-availability,
  body.in-kosik .cart-table .p-availability .availability-label {
    width: auto !important;
    min-width: 0 !important;
  }

  body.in-kosik .cart-table .p-total .price-final {
    font-size: 17px;
  }

  body.in-kosik .cart-table .remove-item {
    top: 50% !important;
    right: 8px !important;
    margin-top: 0;
    transform: translateY(-50%);
  }

  body.in-kosik .delivery-time {
    margin: 10px 13px 0;
    font-size: 12px;
  }

  body.in-kosik .summary-wrapper .box {
    padding: 18px;
  }

  body.in-kosik .summary-wrapper .price-primary.price {
    font-size: 26px;
  }

  body.in-kosik .summary-wrapper .next-step-forward {
    min-height: 52px;
    font-size: 15px;
  }

  body.in-kosik #herbatica-tip,
  body.in-kosik .cart-summary {
    width: auto !important;
    min-width: 0 !important;
    margin: 12px 9px 0;
  }

  body.in-kosik #herbatica-tip {
    height: auto !important;
    min-height: 0 !important;
    padding: 12px;
    overflow: hidden;
  }
  body.in-kosik .cart-summary { padding: 0 0 3px; }

  body.in-kosik #herbatica-tip {
    display: block;
  }

  body.in-kosik #herbatica-tip h2,
  body.in-kosik .cart-summary > h2 {
    width: auto !important;
    margin-bottom: 9px;
    font-size: 15px !important;
  }

  body.in-kosik #herbatica-tip > p {
    display: block;
    margin: 0 0 10px;
    color: #66736d;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
  }

  body.in-kosik #herbatica-tip .herbatica-tip-options {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  body.in-kosik #herbatica-tip .herbatica-tip-form {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.in-kosik #herbatica-tip .herbatica-tip-form button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 78px;
    padding: 6px 2px;
  }

  body.in-kosik #herbatica-tip .herbatica-tip-form img {
    width: 36px;
    height: 36px;
  }

  body.in-kosik .cart-summary .extras-wrapper {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
  }

  body.in-kosik .cart-summary .extras-col {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.in-kosik .discount-coupon form {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
  }

  body.in-kosik .discount-coupon .form-control {
    width: 1% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  body.in-kosik .discount-coupon .btn {
    display: block !important;
    flex: 0 0 auto !important;
  }

  body.in-kosik .cart-up-sell,
  body.in-kosik .cart-up-sell .up-sell-inner,
  body.in-kosik .cart-up-sell .slick-list {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.in-kosik .sidebar-in-cart {
    margin-top: 12px;
  }
}

@media (min-width: 768px) {
  body.in-kosik .cart-header .step::before {
    content: none !important;
    display: none !important;
  }

  body.in-kosik .cart-header .step span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  body.in-kosik .cart-header .step span::before {
    content: counter(steps) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-right: 9px;
    border: 1px solid #cbd4d0;
    border-radius: 50%;
    background: #fff;
    color: #69736e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  body.in-kosik .cart-header .step.active span::before {
    border-color: #2fa87d;
    background: #eaf7f1;
    color: #087858;
  }
}

/* Regression fixes kept at the end so older theme rules cannot override them. */
body.in-kosik .cart-header .step > strong,
body.in-kosik .cart-header .step > a {
  padding: 10px 0 !important;
}

body.in-kosik .cart-table tr.removeable {
  position: relative !important;
}

body.in-kosik .cart-table .remove-item {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 767px) {
  body.in-kosik #content-wrapper,
  body.in-kosik .content-wrapper-in,
  body.in-kosik #content,
  body.in-kosik .cart-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.in-kosik .cart-header .step.active span {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.in-kosik .cart-table .remove-item {
    right: 10px !important;
  }
}
