/* MGardenPro cart and checkout — Prírodné drevo. */

.mattio-natural-storefront.mattio-shopping-flow .mattio-content-shell {
  padding-top: clamp(2.25rem, 4vw, 4rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.mattio-natural-storefront.mattio-shopping-flow .mattio-flow-page-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: clamp(1.4rem, 2.5vw, 2.2rem);
}

.mattio-natural-storefront.mattio-shopping-flow .mattio-flow-eyebrow {
  color: var(--mattio-olive);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mattio-natural-storefront.mattio-shopping-flow .mattio-page-header h1 {
  margin: 0;
  color: var(--mattio-brown);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.mattio-natural-storefront.mattio-shopping-flow .mattio-flow-subtitle {
  max-width: 690px;
  margin: 0.35rem 0 0;
  color: var(--mattio-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.mattio-natural-storefront.mattio-shopping-flow .mattio-entry-content,
.mattio-natural-storefront.mattio-shopping-flow .wp-block-woocommerce-cart,
.mattio-natural-storefront.mattio-shopping-flow .wp-block-woocommerce-checkout {
  width: 100%;
  max-width: none;
}

.mattio-natural-storefront .mattio-flow-progress {
  padding: 1rem clamp(1rem, 2.4vw, 1.75rem);
  margin-bottom: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgba(77, 56, 40, 0.12);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 8px 28px rgba(57, 39, 28, 0.035);
}

.mattio-natural-storefront .mattio-flow-progress-list {
  display: grid;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.mattio-natural-storefront .mattio-flow-step {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #8a8179;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.mattio-natural-storefront .mattio-flow-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -20%;
  width: 40%;
  height: 1px;
  background: rgba(77, 56, 40, 0.18);
  content: '';
}

.mattio-natural-storefront .mattio-flow-step-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border: 1px solid rgba(77, 56, 40, 0.2);
  border-radius: 50%;
  background: #fffefa;
  color: var(--mattio-muted);
  font-size: 0.74rem;
}

.mattio-natural-storefront .mattio-flow-step.is-current,
.mattio-natural-storefront .mattio-flow-step.is-complete {
  color: var(--mattio-brown);
}

.mattio-natural-storefront .mattio-flow-step.is-current .mattio-flow-step-number,
.mattio-natural-storefront .mattio-flow-step.is-complete .mattio-flow-step-number {
  border-color: var(--mattio-olive);
  background: var(--mattio-olive);
  color: #fff;
  box-shadow: 0 7px 18px rgba(79, 93, 32, 0.16);
}

.mattio-natural-storefront .mattio-flow-step.is-complete:not(:last-child)::after {
  background: rgba(100, 115, 41, 0.55);
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-cart,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-sidebar-layout.wc-block-checkout {
  display: grid;
  width: 100%;
  max-width: none;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.82fr);
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__main,
.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__sidebar,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__main,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__sidebar {
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__main,
.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__sidebar,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-components-checkout-step,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__order-notes,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__terms,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__actions,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__sidebar {
  border: 1px solid rgba(77, 56, 40, 0.12);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.84);
  box-shadow: 0 10px 34px rgba(57, 39, 28, 0.045);
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__main {
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__sidebar {
  position: sticky;
  top: 1.5rem;
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__main .wc-block-cart-items,
.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__main .wc-block-cart-items td,
.mattio-natural-storefront.mattio-cart-flow .wc-block-cart__main .wc-block-cart-items th {
  border-color: rgba(77, 56, 40, 0.12);
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-cart-item__image img {
  border-radius: 8px;
  background: var(--mattio-cream);
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-components-product-name {
  color: var(--mattio-brown);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
}

.mattio-natural-storefront.mattio-cart-flow .wc-block-components-product-price,
.mattio-natural-storefront.mattio-cart-flow .wc-block-cart-item__total-price-and-sale-badge-wrapper {
  color: var(--mattio-olive-dark);
  font-weight: 800;
}

.mattio-natural-storefront .wc-block-components-quantity-selector {
  overflow: hidden;
  border-color: rgba(77, 56, 40, 0.2);
  border-radius: 7px;
  background: #fffefa;
}

.mattio-natural-storefront .wc-block-components-quantity-selector::after {
  border-color: transparent;
}

.mattio-natural-storefront .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  min-height: 38px;
}

.mattio-natural-storefront .wc-block-components-totals-wrapper {
  border-color: rgba(77, 56, 40, 0.12);
}

.mattio-natural-storefront .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.mattio-natural-storefront .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--mattio-brown);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
}

.mattio-natural-storefront .wc-block-cart__submit-button,
.mattio-natural-storefront .wc-block-components-checkout-place-order-button {
  min-height: 54px;
  border: 1px solid var(--mattio-olive);
  border-radius: 7px;
  background: var(--mattio-olive);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(79, 93, 32, 0.17);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mattio-natural-storefront .wc-block-cart__submit-button:hover,
.mattio-natural-storefront .wc-block-components-checkout-place-order-button:hover {
  border-color: var(--mattio-olive-dark);
  background: var(--mattio-olive-dark);
  color: #fff;
  transform: translateY(-1px);
}

@media (min-width: 783px) {
  .mattio-natural-storefront.mattio-cart-flow .wc-block-cart__submit {
    height: auto;
  }

  .mattio-natural-storefront.mattio-cart-flow .wc-block-cart__submit-container--sticky {
    position: static;
    inset: auto;
    z-index: auto;
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
}

.mattio-natural-storefront.mattio-checkout-flow .wp-block-woocommerce-checkout.wc-block-checkout {
  display: block;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-sidebar-layout.wc-block-checkout {
  padding-top: 0;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form {
  display: grid;
  gap: 1rem;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-components-checkout-step,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__order-notes,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__terms,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__actions {
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__main .wc-block-components-checkout-step {
  margin: 0;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-checkout-step__heading {
  margin-bottom: 1rem;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-checkout-step__title,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__sidebar .wc-block-components-title {
  color: var(--mattio-brown);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-sidebar-layout .wc-block-components-main,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  box-sizing: border-box;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-text-input input,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-combobox .wc-block-components-combobox-control input,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-address-form select,
.mattio-natural-storefront.mattio-checkout-flow textarea,
.mattio-natural-storefront.mattio-checkout-flow input[type='text'],
.mattio-natural-storefront.mattio-checkout-flow input[type='email'],
.mattio-natural-storefront.mattio-checkout-flow input[type='tel'] {
  border-color: rgba(77, 56, 40, 0.2);
  border-radius: 7px;
  background-color: #fffefa;
  color: var(--mattio-ink);
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-text-input input:focus,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.mattio-natural-storefront.mattio-checkout-flow textarea:focus,
.mattio-natural-storefront.mattio-checkout-flow input:focus,
.mattio-natural-storefront.mattio-checkout-flow select:focus {
  border-color: var(--mattio-olive);
  box-shadow: 0 0 0 2px rgba(100, 115, 41, 0.12);
  outline: 0;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__option,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-address-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(77, 56, 40, 0.14);
  border-radius: 8px;
  background: #fffefa;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control-accordion-option {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__option-layout {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding-left: 2rem;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__label-group {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  gap: 0.3rem 0.65rem;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__label {
  min-width: 0;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__secondary-label {
  min-width: max-content;
  white-space: nowrap;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control-accordion-content {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding-right: 1rem;
  padding-left: 3rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-checkbox,
.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-checkbox__label {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-checkbox__label {
  white-space: normal;
  overflow-wrap: anywhere;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__option + .wc-block-components-radio-control__option {
  margin-top: 0.55rem;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__option:has(input:checked) {
  border-color: rgba(100, 115, 41, 0.65);
  background: rgba(100, 115, 41, 0.055);
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-components-checkout-return-to-cart-button {
  color: var(--mattio-olive-dark);
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__terms {
  color: var(--mattio-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__terms .wc-block-components-checkbox__label {
  line-height: 1.55;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__terms a {
  color: var(--mattio-olive-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__terms input[type="checkbox"] {
  margin-top: 0.15rem;
}

.mattio-natural-storefront .mattio-flow-reassurance {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(77, 56, 40, 0.1);
  border-radius: 10px;
  background: #f5eddf;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mattio-natural-storefront .mattio-flow-reassurance > span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--mattio-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.mattio-natural-storefront .mattio-flow-reassurance i {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(100, 115, 41, 0.14);
  color: var(--mattio-olive-dark);
  font-size: 0.7rem;
  font-style: normal;
}

@media (max-width: 980px) {
  .mattio-natural-storefront.mattio-cart-flow .wc-block-cart,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
  }
}

@media (max-width: 782px) {
  .mattio-natural-storefront.mattio-shopping-flow .mattio-content-shell {
    padding-top: 1.75rem;
  }

  .mattio-natural-storefront.mattio-shopping-flow .mattio-page-header h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .mattio-natural-storefront .mattio-flow-progress {
    padding: 0.85rem 0.7rem;
  }

  .mattio-natural-storefront .mattio-flow-step {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.68rem;
  }

  .mattio-natural-storefront .mattio-flow-step:not(:last-child)::after {
    top: 1rem;
    right: -24%;
    width: 48%;
  }

  .mattio-natural-storefront .mattio-flow-step-number {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
  }

  .mattio-natural-storefront.mattio-cart-flow .wc-block-cart,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: 1fr;
  }

  .mattio-natural-storefront.mattio-cart-flow .wc-block-cart__sidebar,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__sidebar {
    position: static;
  }

  .mattio-natural-storefront .mattio-flow-reassurance {
    grid-template-columns: 1fr;
  }

  .mattio-natural-storefront .mattio-flow-reassurance > span {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .mattio-natural-storefront.mattio-shopping-flow .mattio-flow-subtitle {
    font-size: 0.9rem;
  }

  .mattio-natural-storefront .mattio-flow-step-label {
    max-width: 92px;
  }

  .mattio-natural-storefront.mattio-cart-flow .wc-block-cart__main,
  .mattio-natural-storefront.mattio-cart-flow .wc-block-cart__sidebar,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-components-checkout-step,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__order-notes,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__terms,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form > .wc-block-checkout__actions,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__sidebar {
    padding: 1rem;
    border-radius: 9px;
  }

  .mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__main,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-checkout__form,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-checkout-step,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__option {
    min-height: 3rem;
    padding: 0.8rem 0.75rem;
  }

  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__option-layout {
    padding-left: 1.9rem;
  }

  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__label-group {
    flex-wrap: wrap;
  }

  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__label,
  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__secondary-label {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__label {
    font-size: 0.875rem;
  }

  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control__secondary-label {
    font-size: 0.75rem;
    white-space: normal;
  }

  .mattio-natural-storefront.mattio-checkout-flow .wc-block-components-radio-control-accordion-content {
    padding: 0 0.75rem 0.85rem 2.65rem;
    font-size: 0.82rem;
    line-height: 1.45;
  }
}
