/*
Theme Name: MasterStudy Child
Template: masterstudy
*/

/* 
.custom-header-user {
    position: absolute;
    top: 28px; 
    right: 35px; 
    background: #ff6600;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    z-index: 999;
        width: 140px;
        height: 40px;
  

}

.custom-header-btn {
    display: inline-block;
    width: 100%;
    white-space: nowrap;     
    overflow: hidden;        
    text-overflow: ellipsis;  
    background-color: transparent;
    border:none;
}

.custom-header-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 5px;
}

.custom-header-dropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

.custom-header-dropdown a:hover {
    background: #f2f2f2;
}

.custom-header-user:hover .custom-header-dropdown {
    display: block;
}

 */
.custom-user-menu {
    display: inline-flex !important;   /* Stay inline with other menu items */
    align-items: center;              /* Vertically center text */
    padding: 3px !important;
       flex-shrink: 0 !important;   /* Prevent shrinking */
    margin-left: 10px;
}

.custom-user-menu > a.name {
    background-color: #0073aa !important;
    color: #fff !important;
    padding: 4px 6px !important;
    border-radius: 4px;

    display: block !important;        /* Block inside flex fixes padding */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
 .custom-header-user {
    position: relative;
    display: inline-block;
    margin-left: 20px; /* Push it away from menu */
}

.custom-header-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.custom-header-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
}

.custom-header-user:hover .custom-header-dropdown {
    display: block;
}


/* --- Responsive Table Styles --- */
.table-responsive-wrapper {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Adds smooth scrolling on iOS devices */
}

/* Optional: Ensure the table inside doesn't shrink unnecessarily */
.table-responsive-wrapper table {
  min-width: 600px; /* Adjust this value based on your content if needed */
}

.stm_lms_user_float_menu.__collapsed .custom-float-menu-image img {
    width: 50px !important;
    height: 50px !important;
}


.stm_lms_user_float_menu .custom-float-menu-image img {
    width: 7vw !important; 
    height: 7vh !important; 
}

/* Remove entire list items for Price High and Price Low filters */
.ms_lms_courses_archive__sorting li:has([data-id="price_high"]),
.ms_lms_courses_archive__sorting li:has([data-id="price_low"]) {
  display: none !important;
}

/* Hide course bundle prices in MasterStudy */
.bundle__price,
.bundle__cost,
.bundle-card .stm_lms_courses__bundle__price,
.stm_lms_bundle__price,
.stm_lms_single_bundle_card__course_price,
.stm_lms_single_bundle_card__bottom, .stm_lms_single_bundle__courses_course__price, .masterstudy-bundle-button  {
	display: none !important;
}
/* Hide course prices in MasterStudy */
.ms_lms_courses_card_item_info_price, .masterstudy-related-courses__price {
	display: none !important;
}

.stm_header_top_toggler {
	display: none !important;
}
.masterstudy-analytics-short-report-page-stats__wrapper > :nth-child(1),
.masterstudy-analytics-short-report-page-stats__wrapper > :nth-child(2) {
    display: none !important;
}

.stm_lms_instructor_courses__single--price strong, .stm_lms_courses__single--price strong {
	display: none !important;
}

.masterstudy-prerequisites-list__progress label {
display: none !important;
}
