/* weimar-werk.de – Marktplatz order system (see assets/js/marktplatz-order.js) */

.tablepress .ww-order-add,
.ww-order-box .ww-order-add {
  display: inline-block;
  margin-top: .4em;
  padding: .25em .6em;
  border: 1px solid #ffd416;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: .85em;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
.tablepress .ww-order-add:hover,
.tablepress .ww-order-add:focus-visible,
.ww-order-box .ww-order-add:hover,
.ww-order-box .ww-order-add:focus-visible {
  background: #ffd416;
  color: #000;
}
.tablepress .ww-order-add.ww-added,
.ww-order-box .ww-order-add.ww-added {
  border-color: #717f01;
}
.tablepress .ww-order-add.ww-added .fa-cart-plus::before,
.ww-order-box .ww-order-add.ww-added .fa-cart-plus::before {
  content: "\f217"; /* cart-arrow-down */
}

/* order box on article details pages */
.ww-order-box {
  clear: both;
  margin: 1.5em 0;
  padding: .8em 1em;
  border-top: 2px solid #ffd416;
  border-bottom: 2px solid #ffd416;
}
.ww-order-box .ww-order-box-title {
  margin: 0 0 .5em;
}
.ww-order-box .ww-order-variants {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ww-order-box .ww-order-variant {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3em 1em;
  padding: .35em 0;
  border-bottom: 1px dotted #ddd;
}
.ww-order-box .ww-order-variant:last-child {
  border-bottom: none;
}
.ww-order-box .ww-order-add {
  margin-top: 0;
}
.ww-order-box .ww-order-variant-label {
  font-weight: bold;
}
.ww-order-box .ww-order-variant-no,
.ww-order-box .ww-order-variant-price {
  white-space: nowrap;
}
.ww-order-box .ww-order-box-hint {
  margin: .5em 0 0;
  font-size: .9em;
}

#ww-order-toast {
  position: fixed;
  right: 1em;
  bottom: calc(1em + env(safe-area-inset-bottom, 0px));
  z-index: 100000;
  max-width: min(26em, calc(100vw - 2em));
  padding: .8em 1em;
  border-left: 4px solid #ffd416;
  background: #333;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(1em);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#ww-order-toast.ww-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#ww-order-toast a {
  color: #ffd416;
  text-decoration: underline;
}
