/* =========================================================
   FLAVIO — PRZYCISK KUPNA W KONFIGURATORZE
   ========================================================= */

#flavioConfiguratorBuyBox {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bfe7c8;
  border-radius: 14px;
  background: #f0fff4;
  box-shadow: 0 8px 24px rgba(15, 91, 45, 0.08);
}

#flavioConfiguratorBuyBox.flavio-hidden {
  display: none !important;
}

#flavioConfiguratorBuyBox.flavio-visible {
  display: block;
}

.flavio-configurator-buy-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.flavio-configurator-buy-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: #52705d;
}

#flavioConfiguratorBuyLayout {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  color: #083b24;
}

.flavio-configurator-buy-price {
  flex: 0 0 auto;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: #006b36;
  white-space: nowrap;
}

.flavio-configurator-buy-button {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: #006b36;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 107, 54, 0.22);
}

.flavio-configurator-buy-button:hover {
  background: #00542b;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 107, 54, 0.28);
}

.flavio-configurator-buy-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(0, 107, 54, 0.2);
}

.flavio-configurator-buy-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #52705d;
  text-align: center;
}


/* =========================================================
   FLAVIO — ZMIANA ZAKŁADKI "OPIS" NA "KONFIGURATOR"
   Tylko wizualnie, przez CSS.
   ========================================================= */

/* Standardowe selektory WooCommerce */
.woocommerce-tabs ul.tabs li.description_tab a,
.woocommerce-tabs ul.tabs li#tab-title-description a,
.woocommerce-tabs .wc-tabs li.description_tab a,
.woocommerce-tabs .wc-tabs li#tab-title-description a,
.wc-tabs li.description_tab a,
.wc-tabs li#tab-title-description a {
  font-size: 0 !important;
  color: transparent !important;
  position: relative !important;
}

/* Nowy napis */
.woocommerce-tabs ul.tabs li.description_tab a::after,
.woocommerce-tabs ul.tabs li#tab-title-description a::after,
.woocommerce-tabs .wc-tabs li.description_tab a::after,
.woocommerce-tabs .wc-tabs li#tab-title-description a::after,
.wc-tabs li.description_tab a::after,
.wc-tabs li#tab-title-description a::after {
  content: "Konfigurator" !important;
  font-size: 14px !important;
  line-height: inherit !important;
  color: #ee1c25 !important;
  font-weight: 700 !important;
  display: inline-block !important;
  visibility: visible !important;
}

/* Awaryjnie — jeśli motyw nie używa klasy description_tab */
.woocommerce-tabs ul.tabs li:first-child a,
.woocommerce-tabs .wc-tabs li:first-child a,
.wc-tabs li:first-child a,
.tabs li:first-child a {
  font-size: 0 !important;
  color: transparent !important;
  position: relative !important;
}

.woocommerce-tabs ul.tabs li:first-child a::after,
.woocommerce-tabs .wc-tabs li:first-child a::after,
.wc-tabs li:first-child a::after,
.tabs li:first-child a::after {
  content: "Konfigurator" !important;
  font-size: 14px !important;
  line-height: inherit !important;
  color: #ee1c25 !important;
  font-weight: 700 !important;
  display: inline-block !important;
  visibility: visible !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  #flavioConfiguratorBuyBox {
    padding: 15px;
    border-radius: 12px;
  }

  .flavio-configurator-buy-summary {
    display: block;
    margin-bottom: 12px;
  }

  .flavio-configurator-buy-price {
    margin-top: 8px;
    font-size: 24px;
  }

  .flavio-configurator-buy-button {
    min-height: 50px;
    font-size: 15px;
  }

  .woocommerce-tabs ul.tabs li.description_tab a::after,
  .woocommerce-tabs ul.tabs li#tab-title-description a::after,
  .woocommerce-tabs .wc-tabs li.description_tab a::after,
  .woocommerce-tabs .wc-tabs li#tab-title-description a::after,
  .wc-tabs li.description_tab a::after,
  .wc-tabs li#tab-title-description a::after,
  .woocommerce-tabs ul.tabs li:first-child a::after,
  .woocommerce-tabs .wc-tabs li:first-child a::after,
  .wc-tabs li:first-child a::after,
  .tabs li:first-child a::after {
    font-size: 14px !important;
  }
}