/* sTrendem native commerce v7. Load after the existing theme and component CSS.
   Presentation only. Shoptet owns prices, amounts, validation and navigation. */

body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion,
.next-step .btn.btn-conversion {
  background: #00f2ea !important;
  border: 2px solid #00f2ea !important;
  color: #061014 !important;
  border-radius: 12px;
  min-height: 56px;
  min-width: 0;
  max-width: 100%;
  padding: 15px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease;
}

body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion > span,
.next-step .btn.btn-conversion .order-button-text {
  color: inherit !important;
}

body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion:hover,
.next-step .btn.btn-conversion:hover {
  background: #70fff8 !important;
  border-color: #70fff8 !important;
  color: #061014 !important;
}

body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion:active,
.next-step .btn.btn-conversion:active {
  background: #00cfc8 !important;
  border-color: #00cfc8 !important;
  color: #061014 !important;
}

body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion:focus-visible,
.next-step .btn.btn-conversion:focus-visible,
.next-step .btn.next-step-back:focus-visible {
  outline: 3px solid #ff0050;
  outline-offset: 3px;
}

body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion:is(:disabled, .disabled, [aria-disabled="true"]),
.next-step .btn.btn-conversion:is(:disabled, .disabled, [aria-disabled="true"]) {
  background: #26373d !important;
  border-color: #52666f !important;
  color: #c8d9de !important;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}

.next-step .btn.next-step-back {
  background: #152126;
  border: 1px solid #6b838d;
  color: #f5fafb !important;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}

.next-step .btn.next-step-back:hover {
  background: #26373d;
  border-color: #00f2ea;
  color: #fff !important;
}

.next-step {
  gap: 12px;
}

body.type-product .p-to-cart-block .p-add-to-cart-wrapper {
  max-width: 100%;
  min-width: 0;
}

body.type-product .p-to-cart-block .p-add-to-cart-wrapper .add-to-cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion {
  flex: 1 1 180px;
  width: auto;
}

body.type-product .p-to-cart-block .quantity,
.cart-table .p-quantity .quantity {
  box-sizing: border-box;
  flex: 0 0 150px;
  width: 150px;
  min-height: 54px;
  padding: 0 48px;
  position: relative;
  border: 1px solid #6b838d;
  border-radius: 12px;
  background: #0d151a;
  color: #f5fafb;
  vertical-align: middle;
}

body.type-product .p-to-cart-block .quantity label,
.cart-table .p-quantity .quantity label {
  display: block;
  margin: 0;
  padding: 0;
}

body.type-product .p-to-cart-block .quantity input.amount,
.cart-table .p-quantity .quantity input.amount {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5fafb;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: normal;
  text-align: center;
}

body.type-product .p-to-cart-block .quantity :is(.increase, .decrease),
.cart-table .p-quantity .quantity :is(.increase, .decrease) {
  box-sizing: border-box;
  width: 48px;
  height: 52px;
  padding: 0;
  position: absolute;
  top: 0;
  border-color: #6b838d;
  background: transparent;
  color: #f5fafb;
  font-size: 21px;
  line-height: 52px;
}

body.type-product .p-to-cart-block .quantity .increase,
.cart-table .p-quantity .quantity .increase {
  right: 0;
  left: auto;
  border-radius: 0 11px 11px 0;
}

body.type-product .p-to-cart-block .quantity .decrease,
.cart-table .p-quantity .quantity .decrease {
  left: 0;
  right: auto;
  border-radius: 11px 0 0 11px;
}

/* Current Shoptet provides real +/- spans. Keep its icon fallback for old DOM. */
body.type-product .p-to-cart-block .quantity .increase:has(.increase__sign)::before,
body.type-product .p-to-cart-block .quantity .decrease:has(.decrease__sign)::before,
.cart-table .p-quantity .quantity .increase:has(.increase__sign)::before,
.cart-table .p-quantity .quantity .decrease:has(.decrease__sign)::before {
  content: none;
}

body.type-product .p-to-cart-block .quantity :is(.increase__sign, .decrease__sign),
.cart-table .p-quantity .quantity :is(.increase__sign, .decrease__sign) {
  display: inline;
  color: inherit;
  font-size: 21px;
  line-height: 1;
}

body.type-product .p-to-cart-block .quantity :is(.increase, .decrease):hover,
.cart-table .p-quantity .quantity :is(.increase, .decrease):hover {
  background: #24373f;
  color: #00f2ea;
}

body.type-product .p-to-cart-block .quantity :is(input, button):focus-visible,
.cart-table .p-quantity .quantity :is(input, button):focus-visible {
  outline: 3px solid #00f2ea;
  outline-offset: -3px;
  box-shadow: none;
}

body.type-product .p-to-cart-block .quantity :is(.increase, .decrease):is(:disabled, .disabled, [aria-disabled="true"]),
.cart-table .p-quantity .quantity :is(.increase, .decrease):is(:disabled, .disabled, [aria-disabled="true"]) {
  background: #0d151a;
  color: #8d9ba1;
  cursor: not-allowed;
}

body.type-product .p-to-cart-block .error-message .quantity,
body.type-product .p-to-cart-block .quantity.error-field,
.cart-table .p-quantity .error-message .quantity,
.cart-table .p-quantity .quantity.error-field {
  border-color: #ff5c6d;
  box-shadow: 0 0 0 1px #ff5c6d;
}

/* Restore server-rendered category prices hidden by the legacy category rule. */
body.type-category.in-kurzy-a-mentoring #products .prices {
  display: block !important;
  color: #f5fafb;
  margin: 10px 0 20px;
}

body.type-category.in-kurzy-a-mentoring #products .prices .price-final {
  color: #f5fafb;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.35;
}

body.type-category.in-kurzy-a-mentoring #products .p-tools {
  display: flex !important;
  width: 100%;
  justify-content: center;
}

body.type-category.in-kurzy-a-mentoring #products .p-tools a.btn.btn-primary {
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid #00f2ea;
  border-radius: 12px;
  background: #00f2ea;
  color: #061014;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: none;
}

body.type-category.in-kurzy-a-mentoring #products .p-tools a.btn.btn-primary:hover {
  background: #70fff8;
  border-color: #70fff8;
  color: #061014;
}

body.type-category.in-kurzy-a-mentoring #products .p-tools a.btn.btn-primary:focus-visible {
  outline: 3px solid #ff0050;
  outline-offset: 3px;
}

/* Render the native Detail label; do not replace it with historical pseudo-copy. */
body.type-category.in-kurzy-a-mentoring #products .p-tools a.btn.btn-primary span {
  color: inherit;
  font-size: 16px;
}

body.type-category.in-kurzy-a-mentoring #products .p-tools a.btn.btn-primary::before,
body.type-category.in-kurzy-a-mentoring #products .p-tools a.btn.btn-primary::after,
body.type-category.in-kurzy-a-mentoring #products .p-tools a.btn.btn-primary span::after {
  content: none;
}

@media (max-width: 680px) {
  body.type-product .p-to-cart-block .p-add-to-cart-wrapper {
    width: 100%;
    margin-left: 0;
  }

  body.type-product .p-to-cart-block .p-add-to-cart-wrapper .add-to-cart {
    justify-content: center;
  }

  body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion {
    flex-basis: 100%;
    width: 100%;
    padding: 15px 18px;
  }

  .next-step .btn.btn-conversion,
  .next-step .btn.next-step-back {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.type-product .p-to-cart-block .add-to-cart-button.btn-conversion,
  .next-step .btn.btn-conversion {
    transition: none;
  }
}
