/* Enhanced Profile Layout Overrides */

/* Exclude enhanced profile styling on /configure pages */
.enhanced-profile-active:not(.configure-page) .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.enhanced-profile-active .profile-content {
  margin: 0 !important;
  padding: 0 !important;
}

.enhanced-profile-active {
  margin: 0 !important;
  padding: 0 !important;
}

.enhanced-profile-active #ProductBanner {
  display: none !important;
}

.enhanced-profile-active #BrowseAllSolutions1 {
  display: none !important;
}

.enhanced-profile-active .productEditionListCard_0_0_374_bullets {
  display: flex !important;
  flex-direction: column !important;
}

.enhanced-profile-active #ProductTabMenu {
  display: none !important;
}

.enhanced-profile-active #ProductSimilarApps {
  display: none !important;
}

.enhanced-profile-active #EnhancedProfile {
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative !important;
}

.enhanced-profile-active .profile-content {
  padding-top: 20px !important;
}

body:not(.enhanced-profile-active) .profile-content {
  padding-top: 0 !important;
}

.enhanced-profile-active .main-region,
.enhanced-profile-active .profile-region {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.enhanced-profile-active .page-wrapper,
.enhanced-profile-active .content-wrapper,
.enhanced-profile-active .layout-default {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.enhanced-profile-active #EnhancedProfile,
.enhanced-profile-active .enhanced-profile-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.enhanced-profile-active .enhanced-profile-container nav,
.enhanced-profile-active .enhanced-profile-container ul,
.enhanced-profile-active .enhanced-profile-container li,
.enhanced-profile-active .enhanced-profile-container a {
  visibility: visible !important;
  opacity: 1 !important;
}

.enhanced-profile-active .enhanced-profile-container ul {
  display: flex !important;
}

.enhanced-profile-active .enhanced-profile-container > div:first-child {
  position: static !important;
  z-index: auto !important;
  display: block !important;
  margin-bottom: 20px !important;
  min-height: 60px !important;
}

.enhanced-profile-active .productImageViewer_main {
  max-height: none !important;
}

.enhanced-profile-active .productImageViewer_main .slick-slider,
.enhanced-profile-active .productImageViewer_main .slick-list {
  max-height: none !important;
}

/* Hide legacy content immediately when enhanced UI is active */
.enhanced-profile-active #PageOrderableContainerProfilePage {
  display: none !important;
}

/* Hide footer when enhanced UI is active */
.enhanced-profile-active #footer-universal {
  display: none !important;
}
.enhanced-profile-active #appsmart-footer-root {
  display: none !important;
}

.enhanced-profile-active .additionalInfo_grid {
  width: 75% !important;
}

.enhanced-profile-active .additionalInfo_sidebar {
  width: 240px !important;
}

/* Enhanced UI Image Alignment Fix - Remove top margin to align with sidebars */
/* Enhanced UI Image Alignment Fix - Remove top margin to align with sidebars */
.enhanced-profile-active .productImageViewer_main .slick-slider {
  margin-top: 25px !important;
  z-index: 0 !important;
}

.enhanced-profile-active .additional-info-card__title {
  margin-top: 0 !important;
}

.enhanced-profile-active .enhanced-profile-resources-container {
  padding: 8px 0 !important;
  box-shadow: none !important;
}

.enhanced-profile-active .resourceCard_0_0_374_header {
  margin-top: 12px !important;
  padding-bottom: 0;
}

.enhanced-profile-active .resourceCard_0_0_374_linkGroup{
  display: flex !important;
}

.layout-default:not(.enhanced-profile-active) {
  top: 60px;
}
.enhanced-profile-active .profile-layout__container {
  margin-top: 0px !important;
}