.priceSliderInput .ui-slider-range{
	background: var(--kh-ac,#CD7DDB) !important;
}

.wcpf-button-action-reset:hover {
	background: var(--kh-ac,#CD7DDB) !important;
}

#wc-square-digital-wallet{
	margin-top: 5px !important;
}

/* Ocultar banner "Disponible en App Store" cuando se usa desde la app */
.is-khbeauty-app .app-store-banner {
    display: none !important;
}

/* Fix: forzar color de fondo del encabezado "Contenido de la Lección" (LearnDash) 
   Design Upgrade Pro fija este color vía variable CSS --ldx-content-lists-header-bg-color
   con especificidad (3 clases + !important) que gana sobre el color configurado en el Customizer.
   Esta regla usa mayor especificidad para forzar el color correcto. */
body .learndash-wrapper .ld-table-list .ld-table-list-header.ld-primary-background,
body.single-sfwd-lessons .learndash-wrapper .ld-table-list-header.ld-primary-background,
body.single-sfwd-topic .learndash-wrapper .ld-table-list-header.ld-primary-background {
  background: var(--kh-ac,#CD7DDB) !important;
}


/* Fix: reemplazar azul por defecto de LearnDash Modern UI con el morado de marca */
.ld-progress-bar__label--complete,
.ld-progress-bar__label--complete svg,
.ld-progress-bar__label--complete path,
.ld-navigation__progress-completed-action,
.ld-navigation__progress-completed-action svg,
.ld-navigation__progress-completed-action path,
.ld-navigation__label--completed {
  color: var(--kh-ac,#CD7DDB) !important;
  fill: var(--kh-ac,#CD7DDB) !important;
}
.ld-lesson-item-preview-heading.ld-primary-color-hover,
.ld-lesson-title {
  color: #4a2a56 !important;
}
.ld-lesson-item-preview-heading.ld-primary-color-hover:hover {
  color: var(--kh-ac,#CD7DDB) !important;
}


/* Tip box y CTA card en lecciones/temas */
.kh-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f6eef9;
  border: 1px solid #e3cdec;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0;
}
.kh-tip-icon { font-size: 24px; line-height: 1; }
.kh-tip-text { font-size: 15px; line-height: 1.5; color: #4a2a56; }
.kh-cta-card {
  background: #ffffff;
  border: 1px solid #ecdcf3;
  border-left: 4px solid var(--kh-ac,#CD7DDB);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.kh-cta-text { font-size: 15px; line-height: 1.5; color: #333; }
.kh-cta-button {
  background: var(--kh-ac,#CD7DDB);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 24px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.kh-cta-button:hover { background: #b95fc9; }


/* Ocultar el circulo grande de progreso del area central (ahora vive en el sidebar) */
.single-sfwd-lessons .ld-progress-bar__meter,
.single-sfwd-topic .ld-progress-bar__meter,
.single-sfwd-courses .ld-progress-bar__meter {
  display: none !important;
}

/* Sidebar de progreso KH (shortcode [kh_sidebar]) */
.kh-sidebar-progress-card,
.kh-sidebar-content-card,
.kh-sidebar-help-card {
  background: #fff;
  border: 1px solid #f0e0f5;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(74,42,86,0.06);
}
.kh-sidebar-heading {
  font-weight: 700;
  font-size: 15px;
  color: #2d2d2d;
  margin-bottom: 14px;
}
.kh-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.kh-progress-circle {
  --pct: 0%;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--kh-ac,#CD7DDB) var(--pct), #f0e0f5 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.kh-progress-circle::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}
.kh-progress-circle span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  color: #4a2a56;
}
.kh-progress-info {
  flex: 1;
  min-width: 0;
}
.kh-progress-lesson-count {
  font-size: 12px;
  color: #9a7aa8;
  margin-bottom: 2px;
}
.kh-progress-lesson-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d2d2d;
  line-height: 1.3;
}
.kh-progress-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #f0e0f5;
  overflow: hidden;
}
.kh-progress-bar-fill {
  height: 100%;
  background: var(--kh-ac,#CD7DDB);
  border-radius: 3px;
}
.kh-sidebar-lesson-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.kh-sidebar-lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px !important;
}
.kh-sidebar-lesson-item a {
  line-height: 20px !important;
}
.kh-sidebar-lesson-item.is-current {
  background: #f6eef9;
}
.kh-sidebar-lesson-item a {
  color: #2d2d2d;
  text-decoration: none;
}
.kh-sidebar-lesson-item.is-current a {
  color: #4a2a56;
  font-weight: 600;
}
.kh-sidebar-lesson-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid #e3cdec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}
.kh-sidebar-lesson-item.is-complete .kh-sidebar-lesson-check {
  background: var(--kh-ac,#CD7DDB);
  border-color: var(--kh-ac,#CD7DDB);
}
.kh-sidebar-view-all {
  font-size: 13px;
  color: var(--kh-ac,#CD7DDB) !important;
  text-decoration: underline;
}
.kh-sidebar-help-card p {
  font-size: 13px;
  color: #555;
  margin: 0 0 14px;
}
.kh-sidebar-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kh-ac,#CD7DDB);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px;
}
.kh-sidebar-help-btn:hover { background: #b95fc9; }


/* Fix: boton "Marcar como completado" en azul de Design Upgrade Pro -> morado de marca */
/* Design Upgrade Pro usa ".learndash-wrapper .learndash_mark_complete_button" (especificidad 0,2,0) + !important,
   por lo que necesitamos igual o mayor especificidad para ganarle. */
body .learndash-wrapper .learndash_mark_complete_button,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button {
  background: var(--kh-ac,#CD7DDB) !important;
}
body .learndash-wrapper .learndash_mark_complete_button:hover,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button:hover {
  background: #b95fc9 !important;
}


/* Header de leccion: link volver, tarjeta con icono, breadcrumb + badge de estado */
.kh-back-to-course {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #4a2a56;
  text-decoration: none !important;
  font-weight: 600;
  margin-bottom: 16px;
}
.kh-back-to-course:hover { color: var(--kh-ac,#CD7DDB); }

.kh-lesson-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #f0e0f5;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(74,42,86,0.05);
}
.kh-lesson-header-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: #f6eef9;
  color: var(--kh-ac,#CD7DDB);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kh-lesson-header-text {
  flex: 1;
  min-width: 0;
}
.kh-lesson-header-text .entry-title {
  margin: 0 0 6px !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
}
.kh-lesson-header-text .entry-meta {
  font-size: 13px;
  color: #8a8a8a;
}

.kh-breadcrumb-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 10px;
  background: #faf6fb;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px !important;
}
.kh-breadcrumb-bar .kh-status-badge {
  margin-left: auto;
}
.kh-breadcrumb-bar .ld-breadcrumbs__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.kh-status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: #fff;
}
.kh-status-badge.is-complete { background: var(--kh-ac,#CD7DDB); }
.kh-status-badge.is-progress { background: #c9a8d6; }

/* Ya no necesitamos la fila original de "LECCION COMPLETE" / "Last activity", reemplazada por el badge */
.single-sfwd-lessons .ld-progress-bar,
.single-sfwd-topic .ld-progress-bar {
  display: none !important;
}


/* ===== KH Quiz Page Redesign ===== */

.single-sfwd-quiz .ld-quiz-status { display: none !important; }

.kh-quiz-header-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 12px 0 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.kh-quiz-header-card .kh-lesson-header-text h1 {
  margin: 0 0 4px;
}
.kh-quiz-subtitle {
  margin: 0;
  color: #6b6b6b;
  font-size: 15px;
}

.kh-quiz-infobar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 24px;
  margin: 0 0 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  flex-wrap: wrap;
}
.kh-quiz-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kh-quiz-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #9a9a9a;
}
.kh-quiz-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #2b2b2b;
}
.kh-quiz-stat-progress {
  margin-left: auto;
}
.kh-quiz-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kh-quiz-progress-circle {
  --pct: 0%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--kh-ac,#CD7DDB) var(--pct), #f0e0f5 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.kh-quiz-progress-circle::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
}
.kh-quiz-progress-pct {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  color: #2b2b2b;
}
.kh-quiz-progress-text {
  font-size: 14px;
  color: #6b6b6b;
  white-space: nowrap;
}

.kh-quiz-instructions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f5eefb;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 16px;
}
.kh-quiz-instructions-icon {
  color: var(--kh-ac,#CD7DDB);
  flex-shrink: 0;
  margin-top: 2px;
}
.kh-quiz-instructions p {
  margin: 0;
  color: #4a4a4a;
  font-size: 14px;
}

.wpProQuiz_content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.wpProQuiz_content .wpProQuiz_header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.wpProQuiz_content .wpProQuiz_questionList {
  border: none;
}
.wpProQuiz_content .wpProQuiz_questionListItem {
  background: #f8f5fa;
  border: 1px solid #eee0f2;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: background 0.15s, border-color 0.15s;
}
.wpProQuiz_content .wpProQuiz_questionListItem:hover {
  background: #f5eefb;
  border-color: var(--kh-ac,#CD7DDB);
}
.wpProQuiz_content .wpProQuiz_questionListItem label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}
.wpProQuiz_content .wpProQuiz_button.wpProQuiz_QuestionButton {
  background: var(--kh-ac,#CD7DDB);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 26px;
  font-weight: 700;
  cursor: pointer;
}
.wpProQuiz_content .wpProQuiz_button.wpProQuiz_QuestionButton:hover {
  background: #b565c9;
}

.kh-tip-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff7e0;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
}
.kh-tip-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.kh-tip-text strong {
  color: #7a5c00;
  font-weight: 600;
  font-size: 14px;
}

.kh-sidebar-quizinfo-card {
  background: #fff;
  border: 1.25px solid #f0e0f5;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.kh-quizinfo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kh-quizinfo-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 4px 0;
  font-size: 12px;
  color: #6b6b6b;
  border-bottom: 1px solid #f2f2f2;
}
.kh-quizinfo-list li:last-child {
  border-bottom: none;
}
.kh-quizinfo-list li strong {
  color: #2b2b2b;
  font-size: 15px;
}


/* KH - Mejora visual de la Descripcion del curso (pagina de Curso) */
.elementor-element-c331dc0 .e-n-tabs-content {
  background: #ffffff;
  border: 1.25px solid #f0e0f5;
  border-radius: 16px;
  box-shadow: 0 0 1px 2px rgba(211,206,206,0.5);
  padding: 28px 30px;
}

.elementor-element-c331dc0 .e-n-tabs-content p {
  line-height: 1.75;
  color: #4a4a4a;
  margin-bottom: 14px;
}

.elementor-element-c331dc0 .e-n-tabs-content p > strong:only-child {
  display: block;
  color: var(--kh-ac,#CD7DDB);
  font-size: 19.6px;
  font-weight: 700;
  margin-top: 26px;
  margin-bottom: 4px;
}

.elementor-element-c331dc0 .e-n-tabs-content p:first-child > strong:only-child {
  margin-top: 0;
}

.elementor-element-c331dc0 .e-n-tabs-content ul,
.elementor-element-c331dc0 .e-n-tabs-content ol {
  margin: 4px 0 20px 0;
  padding-left: 22px;
  color: #4a4a4a;
  line-height: 1.8;
}

.elementor-element-c331dc0 .e-n-tabs-content ul li,
.elementor-element-c331dc0 .e-n-tabs-content ol li {
  margin-bottom: 6px;
}

.elementor-element-c331dc0 .e-n-tabs-content ul li::marker,
.elementor-element-c331dc0 .e-n-tabs-content ol li::marker {
  color: var(--kh-ac,#CD7DDB);
  font-weight: 700;
}
