/* 1. Hide the "Course" icon and label on individual listing detail pages */
div[data-customizationid="product-details-type"] {
  display: none !important;
}

/* 2. Hide the "Course" badge/row on storefront grid cards */
[data-customizationid="product-card-type"],
[data-customizationid="listing-card-type"],
[data-testid="product-card-type"],
[data-testid="course-type-badge"] {
  display: none !important;
}

/* 3. Style the custom Search button next to the search input */
#custom-catalog-search-btn {
  background-color: #003366;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

#custom-catalog-search-btn:hover {
  background-color: #002244;
}

/* 4. Style the instruction callout beneath the search bar */
#custom-catalog-search-help {
  margin-top: 12px;
  padding: 10px 14px;
  background-color: #f4f7fa;
  border-left: 4px solid #003366;
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
  color: #1e293b;
  line-height: 1.45;
  max-width: 540px;
}

#custom-catalog-search-help .custom-help-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#custom-catalog-search-help .custom-help-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #003366;
  flex-shrink: 0;
}

/* 5. Customize the Filters modal fields */
#filter-panel-form > div:has(input[data-testid="homepage-filters-type"]),
#filter-panel-form > div:has(input[data-testid="homepage-filters-price"]),
#filter-panel-form > div:has(input[placeholder="All Instructors"]),
#filter-panel-form [class*="gridCol"]:has(input[data-testid="homepage-filters-enrollable"]) {
  display: none !important;
}

/* 6. Hide the hero image and "About This Course" heading on individual listing pages */
[data-customizationid="product-details-image"],
[data-customizationid="product-image"],
[data-customizationid="product-details-description"] > h2,
[data-customizationid="product-details-description"] > h3 {
  display: none !important;
}

/* 7. Hide the top-left header logo visually while preserving its layout space so login stays right-aligned */
header [data-customizationid="header-logo"],
header [data-testid="header-logo"],
header a[href="/"],
nav a[href="/"] {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 8. Hide the shopping cart icon in the header */
[data-customizationid="cart-button"],
[data-customizationid="header-cart"],
[data-testid="cart-button"],
[data-automation="cart-button"],
a[href*="/cart"],
button[aria-label*="cart" i],
button[aria-label*="Cart"] {
  display: none !important;
}

/* 9. Keep the footer visible, but disable links inside it so users cannot navigate to the root catalog */
footer a,
[data-customizationid="footer"] a,
[data-testid="footer"] a,
[role="contentinfo"] a {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}