/*
 Theme Name:   Edubin Child
 Theme URI:    https://thepixelcurve.com/wp/edubin/demo/
 Description:  Education LMS WordPress Theme Edubin Child Theme
 Author:       ThePixelcurve
 Author URI:   https://thepixelcurve.com/
 Template:     edubin
 Version:      4.0.6
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Tags:          custom-header, custom-logo, blog, theme-options
 Text Domain:  edubin-child
*/

/* =========================================================
   STYLING EDUBIN CHILD – LEARNDASH COURSE SIDEBAR
   ========================================================= */





/* Etykieta "Price" nad ceną */
body.single-sfwd-courses #secondary.widget-area .post-share.style-03 .share-label {
  display: block;
  text-align: left;
  margin: 0 24px 6px;
  font-weight: 600;
  font-size: 15px;
  color: #555;
}

/* Układ wiersza z ceną */
body.single-sfwd-courses #secondary.widget-area .post-share.style-03 .share-media { 
  display: flex !important;                
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 24px 14px;
}

/* Ikona obok ceny */
body.single-sfwd-courses #secondary.widget-area .post-share.style-03 .share-media .share-icon {
  font-size: 16px;
  line-height: 1;
  margin-right: 8px;
  color: #a99071; 
}

/* Sama cena */
body.single-sfwd-courses #secondary.widget-area .post-share.style-03 .share-media .course-price strong {
  color: #f6b500 !important;
  font-weight: 700;
  font-size: 18px;
}

/* Hover na ikonie */
body.single-sfwd-courses #secondary.widget-area .post-share.style-03 .share-media .share-icon:hover {
  color: #e5a400;
}

/* Spójny odstęp */
body.single-sfwd-courses #secondary.widget-area .post-share.style-03 {
  padding-bottom: 15px;
  text-align: center;
}

/* Linia oddzielająca */
body.single-sfwd-courses #secondary.widget-area .ld__widget + .entry-post-share {
  border-top: 1px solid #eee;
  padding-top: 10px;
}

/* Cena w żółtym boxie w sidebarze */
body.single-sfwd-courses #secondary .ld-price-card {
  background: #fff;
  border: 1px solid #e8e8ee;
  border-radius: 10px;
  padding: 24px 20px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-align: center; 
}

body.single-sfwd-courses #secondary .ld-price-card__label {
  font-size: 14px;
  font-weight: 600;
  color: #7a7a8c;
  margin-bottom: 8px;
}

body.single-sfwd-courses #secondary .ld-price-card__amount {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #10131a;
}

/* Przycisk w boxie ceny */
body.single-sfwd-courses #secondary .ld-price-card__actions {
  display: flex;
  justify-content: center;
}

body.single-sfwd-courses #secondary .ld-price-card__actions a,
body.single-sfwd-courses #secondary .ld-price-card__actions .btn,
body.single-sfwd-courses #secondary .ld-price-card__actions .ld-button {
  display: block;
  width: 100%;
  max-width: 260px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #a99071;
  color: #1f1f1f;
  text-align: center;
  font-weight: 700;
  border: none;
  transition: filter .2s ease;
}

body.single-sfwd-courses #secondary .ld-price-card__actions a:hover {
  filter: brightness(0.95);
}

/* Link logowania LearnDash pod przyciskiem */
body.single-sfwd-courses #secondary .ld-price-card__actions .ld-login,
body.single-sfwd-courses #secondary .ld-price-card__actions .ld-login a {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #7a7a8c;
}

/* Odstęp karty ceny od poprzednich sekcji */
body.single-sfwd-courses #secondary .ld__widget + .ld-price-card {
  margin-top: 16px;
}/* Przywróć widoczność kafelków w Related Courses */
.single-sfwd-courses .related_course .edubin-row > [class*="col"],
.single-sfwd-courses .related_course .course__container {
  display: block !important;
  visibility: visible !important;
}
/* Ukryj stary box z tekstem "Zapytaj o cenę" w sidebarze */
.single-sfwd-courses #secondary .ld__widget .ld-price-card:nth-of-type(2),
.single-sfwd-courses #secondary .entry-post-share,
.single-sfwd-courses #secondary .post-share.style-03 {
    display: none !important;
}
/* Karta ceny w sidebarze – wygląd jak inne boksy Edubina */
.single-sfwd-courses #secondary .ld__widget .ld-price-card {
  background: #fff;
  border: 1px solid #e8e8ee;
  border-radius: 10px;
  padding: 24px 20px;
  margin: 0 0 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  text-align: center;
}

.single-sfwd-courses #secondary .ld-price-card__label {
  font-size: 14px;
  font-weight: 600;
  color: #7a7a8c;
  margin-bottom: 8px;
  text-align: left;
}

.single-sfwd-courses #secondary .ld-price-card__amount {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #10131a;
  text-align: left;
}

.single-sfwd-courses #secondary .ld-price-card__actions {
  display: flex;
  justify-content: center;
}

/* Żółty przycisk w karcie (Woo lub LD) */
.single-sfwd-courses #secondary .ld-price-card__actions .edubin-yellow-btn,
.single-sfwd-courses #secondary .ld-price-card__actions a.button.edubin-yellow-btn,
.single-sfwd-courses #secondary .ld-price-card__actions .ld-button.edubin-yellow-btn {
  display: block;
  width: 100%;
  max-width: 260px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #a99071;
  color: #1f1f1f !important;
  text-align: center;
  font-weight: 700;
  border: none;
  transition: filter .2s ease;
  text-decoration: none;
}

.single-sfwd-courses #secondary .ld-price-card__actions .edubin-yellow-btn:hover {
  filter: brightness(0.95);
}/* Delikatny fallback na sticky */
@supports (position: sticky) {
  .single-sfwd-courses #secondary.widget-area.do_sticky {
    position: sticky;
    top: 100px;
  }
}/* Wymuś styl guzika w sidebarze kursu (LD/Woo/Edubin) */
.single-sfwd-courses #secondary .ld-price-card__actions a,
.single-sfwd-courses #secondary .ld-price-card__actions button,
.single-sfwd-courses #secondary .ld-price-card__actions .button,
.single-sfwd-courses #secondary .ld-price-card__actions .ld-button {
  background: #a99071 !important;
  border-color: #a99071 !important;
  color: #1f1f1f !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
.single-sfwd-courses #secondary .ld-price-card__actions a:hover,
.single-sfwd-courses #secondary .ld-price-card__actions button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions .button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions .ld-button:hover {
  filter: brightness(.95) !important;
}/* Tekst w przycisku ceny/koszyka – wymuś biały na elemencie i wnętrzu */
.single-sfwd-courses #secondary .ld-price-card__actions a,
.single-sfwd-courses #secondary .ld-price-card__actions button,
.single-sfwd-courses #secondary .ld-price-card__actions .button,
.single-sfwd-courses #secondary .ld-price-card__actions .ld-button,
.single-sfwd-courses #secondary .ld-price-card__actions .single_add_to_cart_button,
.single-sfwd-courses #secondary .ld-price-card__actions a.button.alt,
.single-sfwd-courses #secondary .ld-price-card__actions a *,
.single-sfwd-courses #secondary .ld-price-card__actions button *,
.single-sfwd-courses #secondary .ld-price-card__actions .button *,
.single-sfwd-courses #secondary .ld-price-card__actions .ld-button * {
  color: #fff !important;
  fill: #fff !important;     /* dla ikon SVG, jeśli są */
  text-shadow: none !important;
}/* Wymuś biały tekst w przycisku "Przejdź do koszyka" */
.single-sfwd-courses #secondary .ld-price-card__actions a.button.edubin-yellow-btn {
  color: #fff !important;
}/* Kolor tekstu przycisku "Log In" */
.single-sfwd-courses #secondary .ld-enrollment__login-link {
  color: #a99071 !important;
  background: transparent !important; /* brak tła */
  border: none !important;            /* brak obramowania */
  padding: 0;                          /* zachowanie jak link */
  font-weight: 600;                    /* opcjonalnie pogrubione */
}

/* Hover (ciemniejszy odcień przy najechaniu) */
.single-sfwd-courses #secondary .ld-enrollment__login-link:hover {
  color: #7a5f3a !important;
  text-decoration: underline;          /* opcjonalnie */
}/* Przyciski WooCommerce w kursach LearnDash – biały tekst na tle #a99071 */
.single-sfwd-courses #secondary .ld-price-card__actions a.button,
.single-sfwd-courses #secondary .ld-price-card__actions a.button.alt,
.single-sfwd-courses #secondary .ld-price-card__actions .button,
.single-sfwd-courses #secondary .ld-price-card__actions button,
.single-sfwd-courses #secondary .ld-price-card__actions .single_add_to_cart_button {
  background: #a99071 !important;
  border-color: #a99071 !important;
  color: #fff !important;          /* biały tekst */
  text-shadow: none !important;
  box-shadow: none !important;
}

/* Hover – ciemniejszy odcień */
.single-sfwd-courses #secondary .ld-price-card__actions a.button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions .button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions .single_add_to_cart_button:hover {
  background: #7a5f3a !important;  /* ciemniejszy */
  border-color: #7a5f3a !important;
  color: #fff !important;          /* tekst zostaje biały */
}/* Hover guzika Enroll/Dodaj do koszyka – poprawka */
.single-sfwd-courses #secondary .ld-price-card__actions a.button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions .button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions .ld-button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions .single_add_to_cart_button:hover,
.single-sfwd-courses #secondary .ld-price-card__actions a.button.edubin-yellow-btn:hover {
  background: #7a5f3a !important;   /* ciemniejszy brąz */
  border-color: #7a5f3a !important;
  color: #fff !important;           /* tekst zostaje biały */
}