/*
Theme Name: Customify Child
Theme URI: https://pressmaximum.com/customify
Template: customify
Author: WPCustomify
Author URI: https://pressmaximum.com
Description: Customify is fast, lightweight, responsive and super flexible multipurpose theme built with SEO, speed, and usability in mind. Unleash the power of your imagination with a true WYSIWYG Header &amp; Footer builder (inside the WordPress Customizer) built exclusively for this theme. The theme works great with any of your favorite page builder likes Elementor, Beaver Builder, SiteOrigin, Thrive Architect, Divi, Visual Composer, etc. Combined with the Header &amp; Footer builder, you can build any type of websites like shop, business agencies, corporate, portfolio, education, university portal, consulting, church, restaurant, medical and so on. Customify is compatible with all well-coded plugins, including major ones like WooCommerce, OrbitFox, Yoast, BuddyPress, bbPress, etc. Learn more about the theme and ready to import demo sites at https://pressmaximum.com/customify
Tags: custom-background,custom-logo,custom-menu,featured-images,flexible-header,footer-widgets,full-width-template,sticky-post,theme-options,threaded-comments,translation-ready,one-column,two-columns,three-columns,left-sidebar,right-sidebar,e-commerce,blog
Version: 0.4.10.1756544127
Updated: 2025-08-30 10:55:27

*/

/* Domyślnie chowamy pola do faktury i uwagi do zamówienia */
#order_numer_nip_field,
#order_nazwa_firmy_field,
#order_adres_firmy_field,
#order_comments_field {
    display: none;
}

/* ============================
   WooCommerce: modyfikacja dopisku (opcjonalne) w polach Zamówienia
   ============================ 
UWAGA:
   - Możesz usuwać i zmieniać dopiski "(opcjonalne)" przy polach checkout
     albo za pomocą CSS (zalecane przy użyciu Flexible Checkout Fields),
     albo alternatywnie przez PHP w functions.php (działa tylko na standardowe pola WooCommerce), ale można też używać wtyczki FCF.
   - Nie stosuj obu metod jednocześnie dla tych samych pól, 
     aby uniknąć konfliktów.
*/

/* 1. Usuwamy dopisek "(opcjonalne)" ze wszystkich pól */
.woocommerce form .optional {
    display: none !important;
}

/* 2. Dodajemy "(opcjonalnie)" tylko przy wybranych polach */

/* Pole: Nazwa firmy – dane do faktury */
label[for="billing_company"]::after {
    content: " (opcjonalnie)";
    font-weight: normal;
    color: #666; /* można zmienić np. na #999 albo inny */
}

/* Pole: Nazwa firmy – adres dostawy */
label[for="shipping_company"]::after {
    content: " (opcjonalnie)";
    font-weight: normal;
    color: #666;
}


/* ============================
   WooCommerce: dodanie brakującej w motywie ikony oka na stronie logowania pod polem hasła
   ============================
*/

/* Ikona oka (hasło ukryte – domyślnie) */
.woocommerce form .password-input .show-password-input::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    margin: auto; /* wyśrodkowanie w kwadracie WooCommerce */
    background: url("/wp-content/themes/customify-child/icons/eye.svg") no-repeat center;
    background-size: contain;
}

/* Ikona przekreślonego oka (hasło widoczne – WooCommerce dodaje klasę display-password) */
.woocommerce form .password-input .show-password-input.display-password::before {
    background: url("/wp-content/themes/customify-child/icons/eye-off.svg") no-repeat center;
    background-size: contain;
}

/* ======================================================
 * Responsywność osadzonych filmów
 * ====================================================== 
 */

.hero-video {
  position: relative;
  width: 100%;
  height: 380px; /* desktop */
  overflow: hidden;
  margin-bottom: 0; /* ważne */
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-video {
  margin-bottom: 0 !important;
}

.wp-block-video,
.wp-block-group,
.wp-block-columns {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-video {
    height: 300px; /* np. 260–320 = lepsza jakość */
  }
}

/* ======================================================
   UKRYWANIE REKLAM / UPSELLI PRO W PANELU WP
   (bez ruszania krytycznych ostrzeżeń)
   
   Aby tymczasowo włączyć widoczność komunikatów:
   - usuń lub zakomentuj linie display: none !important;
   - odśwież panel WordPressa
   ====================================================== */

/* typowe klasy reklam PRO */
.wp-admin .notice.is-dismissible[class*="pro"],
.wp-admin .notice[class*="upgrade"],
.wp-admin .notice[class*="premium"],
.wp-admin .notice[class*="upsell"],
.wp-admin .notice[class*="buy"],
.wp-admin .notice[class*="sale"],
.wp-admin .notice[class*="promo"],

/* częste wrappery stosowane przez wtyczki */
.wp-admin .plugin-install .notice,
.wp-admin .update-nag,

/* sidebarowe boksy „Go PRO” */
.wp-admin .postbox[class*="pro"],
.wp-admin .postbox[class*="upgrade"],
.wp-admin .postbox[class*="premium"] {
    display: none !important; /* <-- usuń lub zakomentuj, aby pokazać komunikaty */
}

/* Komunikat o braku stanu magazynowego pod listą produktów w koszyku */
.custom-stock-notice {
    margin: 15px 0;
}

.custom-stock-notice .stock-error {
    background-color: #fff3f3; /* delikatny róż */
    border: 1px solid #f5c2c2;
    color: #a94442;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

