/* natürlich drauf – global commerce helpers for XTRA and WooCommerce */

.nd-small-business-notice {
  box-sizing: border-box;
  max-width: 760px;
  margin: 26px 0 0;
  padding: 13px 16px;
  border: 1px solid rgba(101, 134, 51, 0.22);
  border-left: 3px solid #658633;
  border-radius: 0 12px 12px 0;
  background: rgba(239, 236, 191, 0.42);
  color: #625b54;
  font-size: 13px;
  line-height: 1.55;
}

.nd-small-business-notice strong {
  color: #58514b;
}

body.nd-product-detail .nd-small-business-notice {
  margin-top: 14px;
}

.wp-block-woocommerce-cart + .nd-small-business-notice,
.wp-block-woocommerce-checkout + .nd-small-business-notice {
  margin: 24px auto 0;
}

.nd-small-business-table-row .nd-small-business-notice {
  max-width: none;
  margin: 8px 0 0;
  text-align: left;
}

.nd-small-business-order-total-note {
  box-sizing: border-box;
  margin: 0;
  padding: 10px 16px 2px;
  color: #625b54;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.wp-block-woocommerce-checkout .wc-block-components-order-meta .nd-small-business-order-total-note {
  border-top: 1px solid rgba(101, 134, 51, 0.18);
}

.nd-small-business-table-row .nd-small-business-order-total-note {
  padding-inline: 0;
}

.nd-mobile-commerce-links {
  display: none;
}

@media (max-width: 768px) {
  body.nd-has-mobile-commerce-links {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .nd-mobile-commerce-links {
    box-sizing: border-box;
    position: fixed;
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    left: 10px;
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 5px;
    border: 1px solid rgba(88, 81, 75, 0.12);
    border-radius: 18px;
    background: rgba(248, 246, 232, 0.94);
    box-shadow: 0 12px 32px rgba(88, 81, 75, 0.2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: none;
  }

  .nd-mobile-commerce-link {
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid rgba(73, 101, 35, 0.22);
    border-radius: 13px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: none;
    color: #496523;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    pointer-events: auto;
    touch-action: manipulation;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  }

  .nd-mobile-commerce-link--shop,
  .nd-mobile-commerce-link--shop.is-active {
    border-color: #658633;
    background: #658633;
    color: #fff;
  }

  .nd-mobile-commerce-link--contact {
    border-color: rgba(198, 163, 89, 0.72);
    background: #fffdf8;
    color: #58514b;
  }

  .nd-mobile-commerce-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .nd-mobile-commerce-link:focus-visible {
    outline: 3px solid #8fc045;
    outline-offset: 3px;
  }
}

@media (hover: hover) and (pointer: fine) and (max-width: 768px) {
  .nd-mobile-commerce-link--shop:hover {
    border-color: #496523;
    background: #496523;
    color: #fff;
  }

  .nd-mobile-commerce-link--contact:hover {
    border-color: #c6a359;
    background: #efecbf;
    color: #58514b;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-mobile-commerce-link {
    scroll-behavior: auto;
    transition: none;
  }
}

@media (forced-colors: active) {
  .nd-mobile-commerce-link {
    border: 1px solid ButtonText;
  }
}
