/*
 * Mediatech: Produktvergleich (YITH WooCommerce Compare 3.6.0), Agent VERGLEICH, 14.10.2026.
 * Anlass: Estebans Wort vom 14.10.2026, Vergleichsfenster mit riesigen Preisen und Text statt Knopf.
 * Ursache: Das Fenster haengt im Seitenkoerper. Auf der Produktseite greifen die Preisregeln der
 * Produktseite (40 px) auch in der Tabelle. Alle Regeln hier haengen an #yith-woocompare und sind
 * dadurch staerker als Seitenregeln; !important nur dort, wo das Theme selbst !important setzt.
 * Die ID steht doppelt (#yith-woocompare#yith-woocompare): nur so gewinnen die Regeln auch gegen die
 * Plugin-Regeln "table.dataTable.compare-list", die greifen, sobald das Plugin DataTables einschaltet.
 * Masse nach Fibonacci: 3 5 8 13 21 34 55 89 144 233.
 * Rueckweg: diese Datei und mediatech-vergleich.php loeschen.
 */

/* ---------- Rahmen ---------- */
.yith-woocompare-popup-container .yith-woocompare-table-wrapper {
  background: #fff !important;
}
.yith-woocompare-popup-container .yith-woocompare-table-scroll-wrapper {
  padding: 55px 34px 34px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.yith-woocompare-popup-container a.yith-woocompare-popup-close {
  position: fixed;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  font-size: 21px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #333e48;
  z-index: 5;
}
.yith-woocompare-popup-container a.yith-woocompare-popup-close:hover {
  background: #823a2d;
  color: #fff;
}

#yith-woocompare#yith-woocompare table.compare-list {
  width: auto;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  line-height: 21px;
  color: #333e48;
}
#yith-woocompare#yith-woocompare table.compare-list thead,
#yith-woocompare#yith-woocompare table.compare-list tfoot,
#yith-woocompare#yith-woocompare table.compare-list tr .filler {
  display: none;
}

/* ---------- Zellen ---------- */
#yith-woocompare#yith-woocompare table.compare-list tbody th:not(.filler),
#yith-woocompare#yith-woocompare table.compare-list tbody td:not(.filler) {
  padding: 13px 21px;
  border: 0;
  border-top: 1px solid #ececec;
  font-size: 13px;
  line-height: 21px;
  vertical-align: top;
  background-color: #fff;
}
#yith-woocompare#yith-woocompare table.compare-list tbody td:not(.filler) {
  width: 233px;
  min-width: 233px;
  max-width: 233px;
  text-align: left;
  color: #333e48;
}

/* Kopfspalte links: schmal, klein, bleibt beim waagrechten Scrollen stehen */
#yith-woocompare#yith-woocompare table.compare-list tbody th:not(.filler) {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 144px;
  min-width: 144px;
  max-width: 144px;
  padding-left: 13px;
  padding-right: 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 21px;
  color: #6b7280;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .08);
}
#yith-woocompare#yith-woocompare table.compare-list tbody tr.product_info th,
#yith-woocompare#yith-woocompare table.compare-list tbody tr.product_info td:not(.filler) {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 21px;
}
#yith-woocompare#yith-woocompare table.compare-list tbody tr.product_info th h1,
#yith-woocompare#yith-woocompare table.compare-list tbody tr.product_info th h2,
#yith-woocompare#yith-woocompare table.compare-list tbody tr.product_info th h3 {
  margin: 0;
  font-size: 21px;
  line-height: 34px;
  font-weight: 700;
  color: #333e48;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

/* Zeilen abwechselnd leicht getoent (Produktzeile oben bleibt weiss) */
#yith-woocompare#yith-woocompare table.compare-list tbody tr:not(.product_info):nth-child(odd) th,
#yith-woocompare#yith-woocompare table.compare-list tbody tr:not(.product_info):nth-child(odd) td:not(.filler) {
  background-color: #f7f7f8;
}

/* ---------- Produktkopf: Bild, Titel, Knopf ---------- */
#yith-woocompare#yith-woocompare table.compare-list tr.product_info td:not(.filler) {
  text-align: center;
}
#yith-woocompare#yith-woocompare table.compare-list tr.product_info td > * {
  margin-bottom: 13px;
}
#yith-woocompare#yith-woocompare table.compare-list .image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 144px;
  margin: 0 0 13px;
  line-height: 0;
  overflow: hidden;
}
#yith-woocompare#yith-woocompare table.compare-list .image-wrap img {
  width: 100%;
  height: 144px;
  max-height: 144px;
  object-fit: contain;
}
#yith-woocompare#yith-woocompare table.compare-list .image-wrap .image-overlay {
  background: rgba(255, 255, 255, .55);
}
#yith-woocompare#yith-woocompare table.compare-list .product-anchor {
  display: block;
  color: inherit;
  text-decoration: none;
}
#yith-woocompare#yith-woocompare table.compare-list .product_title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  height: 63px; /* drei Zeilen zu 21 px: Titel und Knoepfe stehen auf gleicher Hoehe */
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 21px;
  font-weight: 600;
  color: #333e48;
  text-align: center;
  letter-spacing: 0;
}
#yith-woocompare#yith-woocompare table.compare-list .product-anchor:hover .product_title {
  color: #823a2d;
}

/* "In den Warenkorb" als Knopf wie auf den Produktkarten */
#yith-woocompare#yith-woocompare table.compare-list .add_to_cart_wrap,
#yith-woocompare#yith-woocompare table.compare-list .add-to-cart-wrap {
  display: block;
  margin: 0;
  text-align: center;
}
#yith-woocompare#yith-woocompare table.compare-list a.button,
#yith-woocompare#yith-woocompare table.compare-list .add_to_cart_wrap a.button,
#yith-woocompare#yith-woocompare table.compare-list .add-to-cart-wrap a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 233px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 21px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #823a2d !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 34px !important;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-indent: 0 !important;
  white-space: nowrap;
  box-shadow: none !important;
  box-sizing: border-box;
  transition: background-color .15s;
}
#yith-woocompare#yith-woocompare table.compare-list a.button::before,
#yith-woocompare#yith-woocompare table.compare-list a.button::after {
  display: none !important;
}
#yith-woocompare#yith-woocompare table.compare-list a.button:hover,
#yith-woocompare#yith-woocompare table.compare-list a.button:focus-visible {
  background: #6b2f24 !important;
  color: #fff !important;
}
#yith-woocompare#yith-woocompare table.compare-list a.button.loading {
  opacity: .6;
}
#yith-woocompare#yith-woocompare table.compare-list a.added_to_cart {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 21px;
  color: #823a2d;
  text-decoration: underline;
}

/* ---------- Preis ---------- */
#yith-woocompare#yith-woocompare table.compare-list tr.price td:not(.filler) {
  white-space: normal;
}
#yith-woocompare#yith-woocompare table.compare-list tr.price .electro-price,
#yith-woocompare#yith-woocompare table.compare-list tr.price .price {
  display: inline;
  margin: 0;
  font-size: 21px !important;
  line-height: 34px;
  color: #333e48;
}
#yith-woocompare#yith-woocompare table.compare-list tr.price ins,
#yith-woocompare#yith-woocompare table.compare-list tr.price ins .amount,
#yith-woocompare#yith-woocompare table.compare-list tr.price .electro-price > .amount,
#yith-woocompare#yith-woocompare table.compare-list tr.price .electro-price > .woocommerce-Price-amount {
  display: inline;
  font-size: 21px !important;
  line-height: 34px !important;
  font-weight: 700 !important;
  color: #333e48 !important;
  background: none;
  text-decoration: none;
}
#yith-woocompare#yith-woocompare table.compare-list tr.price del,
#yith-woocompare#yith-woocompare table.compare-list tr.price del .amount {
  display: inline !important;
  margin: 0 0 0 5px;
  font-size: 13px !important;
  line-height: 21px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  vertical-align: baseline;
  opacity: 1;
}
#yith-woocompare#yith-woocompare table.compare-list tr.price del {
  text-decoration: line-through;
}
#yith-woocompare#yith-woocompare table.compare-list tr.price .woocommerce-price-suffix {
  font-size: 13px !important;
  line-height: 21px !important;
  color: #6b7280 !important;
}

/* ---------- Beschreibung, Nummer, Marke ---------- */
#yith-woocompare#yith-woocompare table.compare-list tr.description td:not(.filler),
#yith-woocompare#yith-woocompare table.compare-list tr.description td p {
  font-size: 13px;
  line-height: 21px;
  color: #4b5563;
  text-align: left;
}
#yith-woocompare#yith-woocompare table.compare-list tr.description td p {
  margin: 0 0 8px;
}
#yith-woocompare#yith-woocompare table.compare-list tr.description td p:last-child {
  margin-bottom: 0;
}

/* ---------- Verfuegbarkeit: kleiner farbiger Punkt mit Text, keine Flaeche ---------- */
#yith-woocompare#yith-woocompare table.compare-list tr.stock td:not(.filler) {
  background-image: none;
  color: #333e48;
}
#yith-woocompare#yith-woocompare table.compare-list tr.stock:not(.product_info):nth-child(odd) td:not(.filler) {
  background-color: #f7f7f8;
}
#yith-woocompare#yith-woocompare table.compare-list tr.stock:not(.product_info):nth-child(even) td:not(.filler) {
  background-color: #fff;
}
#yith-woocompare#yith-woocompare table.compare-list tr.stock td span,
#yith-woocompare#yith-woocompare table.compare-list tr.stock .availability-label {
  position: relative;
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  padding-left: 13px;
  font-size: 13px;
  line-height: 21px;
  color: #333e48;
  background: none;
  white-space: normal;
  word-break: normal;
}
#yith-woocompare#yith-woocompare table.compare-list tr.stock td span::before,
#yith-woocompare#yith-woocompare table.compare-list tr.stock .availability-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e8e3e;
}
#yith-woocompare#yith-woocompare table.compare-list tr.stock td.out-of-stock span::before,
#yith-woocompare#yith-woocompare table.compare-list tr.stock td.out-of-stock .availability-label::before {
  background: #b42318;
}
#yith-woocompare#yith-woocompare table.compare-list tr.stock td.available-on-backorder span::before,
#yith-woocompare#yith-woocompare table.compare-list tr.stock td.available-on-backorder .availability-label::before,
#yith-woocompare#yith-woocompare table.compare-list tr.stock td.onbackorder span::before {
  background: #b26b00;
}

/* ---------- Hervorhebung "unterschiedlich", falls eingeschaltet ---------- */
#yith-woocompare#yith-woocompare table.compare-list tr.different th {
  color: #823a2d;
}

/* ---------- Schmale Breite ---------- */
@media (max-width: 767px) {
  .yith-woocompare-popup-container .yith-woocompare-table-scroll-wrapper {
    padding: 55px 0 21px 0;
  }
  #yith-woocompare#yith-woocompare table.compare-list {
    margin: 0;
  }
  #yith-woocompare#yith-woocompare table.compare-list tbody th:not(.filler) {
    width: 102px; /* 89 px Text plus 13 px Innenrand */
    min-width: 102px;
    max-width: 102px;
    padding: 13px 5px 13px 8px;
    font-size: 13px;
    hyphens: manual;
    overflow-wrap: normal;
  }
  #yith-woocompare#yith-woocompare table.compare-list tbody td:not(.filler) {
    width: 144px;
    min-width: 144px;
    max-width: 144px;
    padding: 13px 8px;
  }
  #yith-woocompare#yith-woocompare table.compare-list tbody tr.product_info th h1,
  #yith-woocompare#yith-woocompare table.compare-list tbody tr.product_info th h2,
  #yith-woocompare#yith-woocompare table.compare-list tbody tr.product_info th h3 {
    font-size: 13px;
    line-height: 21px;
  }
  #yith-woocompare#yith-woocompare table.compare-list .image-wrap,
  #yith-woocompare#yith-woocompare table.compare-list .image-wrap img {
    height: 89px;
    max-height: 89px;
  }
  #yith-woocompare#yith-woocompare table.compare-list .product_title {
    -webkit-line-clamp: 5;
    line-clamp: 5;
    height: 105px; /* fuenf Zeilen zu 21 px, auf dem Telefon sind die Spalten schmal */
  }
  #yith-woocompare#yith-woocompare table.compare-list a.button,
  #yith-woocompare#yith-woocompare table.compare-list .add-to-cart-wrap a.button {
    padding: 0 8px !important;
    font-size: 13px !important;
  }
  #yith-woocompare#yith-woocompare table.compare-list tr.price del,
  #yith-woocompare#yith-woocompare table.compare-list tr.price del .amount {
    margin-left: 0;
  }
}
