@font-face {
  font-family: 'Roche Sans';
  src: url('../fonts/RocheSans-Regular.eot');
  src:
    url('../fonts/RocheSans-Regular.eot') format('embedded-opentype'),
    url('../fonts/RocheSans-Regular.woff2') format('woff2'),
    url('../fonts/RocheSans-Regular.woff') format('woff'),
    url('../fonts/RocheSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Roche Sans Light';
  src: url('../fonts/RocheSansLight-Light.ttf');
}

.gigya-style-modern div.gigya-screen-dialog-close > a > img {
  background-color: rgb(11, 65, 205) !important;
  border-radius: 5px !important;
}

.separator-wrapper {
  display: none !important;
}

/*Application styles*/
body {
  font-family: 'Roche Sans';
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

div#gig_1735300502456_showScreenSet {
  outline: none !important;
}

#central-login-page {
  flex-direction: row;
}

.wrapper {
  margin: 0 auto;
  width: 100%;
  flex: 1;
}
.clear {
  clear: both;
}
.bg {
  background: #163572;
  width: 60%;
  float: left;
}
.roche-logo img {
  width: 75px;
  padding-bottom: 25px;
}
.right-section {
  width: 40%;
  float: right;
}
.content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.sub-content {
  color: #fff !important;
  padding: 100px 80px;
  text-align: left;
  height: 100vh;
}
.sub-content p {
  color: #fff !important;
}
header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #dbd6d1;
  background: #fff;
  padding: 0 5%;
}
header select {
  border: none;
  color: #0b41cd;
  background: transparent;
}
header select:focus-visible {
  border: none;
  outline: none;
}
.nav-menu {
  display: flex;
  padding: 15px 0;
  align-items: center;
}
.menu a {
  color: #544f4f;
  font-family: 'Roche Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.2px;
  text-decoration: none;
  padding: 0 10px;
}
#logo {
  padding: 10px 0;
  display: flex;
  align-items: center;
}
#logo .ciamhub {
  padding: 0 10px;
  font-family: 'Roche Sans';
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.2px;
  color: #0b41cd;
  cursor: pointer;
}
.separator {
  border: 1px solid #c2bab5;
  margin: 0 15px;
  height: 18px;
}

.activetab {
  border-bottom: 1px solid #011745 !important;
}

.nav-menu label {
  padding-left: 20px;
  color: #0b41cd;
}

#mobile-menu-button {
  margin-top: 10px;
}

.nav-menu label span.pname {
  border-radius: 20px;
  padding: 8px 10px;
  background: #d7e0f7;
  border: 1px solid #d7e0f7;
}

.main-container {
  flex-grow: 1;
  background: #fff;
  margin: 0 5%;
  padding: 0px 6%;
  padding-top: 30px;
  padding-bottom: 50px;
}

.mainheading {
  margin: 0;
  color: #000;
  font-family: 'Roche Sans';
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 0.2px;
}
.searchinput {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  align-items: center;
  margin-bottom: 25px;
}

.searchinput p {
  margin: 0 !important;
  flex: 2 !important;
  max-width: 425px !important;
}

footer {
  padding: 30px 11% 20px 11%;
  background: linear-gradient(136deg, #fff 35.41%, #fff7f5 58%, #bde3ff 128.14%);
  justify-content: space-between;
  color: var(--fg-low-contrast, #544f4f);
  font-family: 'Roche Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.2px;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: var(--fg-low-contrast, #544f4f);
  font-family: 'Roche Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.2px;
}
.footer-right a {
  text-decoration: none;
  padding-right: 20px;
  color: var(--fg-low-contrast, #544f4f);

  /* UI/Desktop XXL-XL/Label/Label M (Bold) */
  font-family: 'Roche Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  letter-spacing: 0.2px;
}
.footer-right a:last-child {
  padding: 0;
}
footer p {
  color: var(--fg-low-contrast, #544f4f);
  font-family: 'Roche Sans';
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.5px;
}

/* Modern tile base styling */
.title {
  display: inline-block;
  color: #fff !important;
  text-align: left !important;
  font-size: 26px !important;
  text-transform: uppercase;
  line-height: 20px !important;
  letter-spacing: 1.07px;
  padding-bottom: 0px !important;
  max-width: 400px;
}

/* Missing tile-loader styles */
.tile-bottom-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.tile-loader {
  width: 30px !important;
  height: 30px;
  background-image: url('../img/Roche-Loading.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 10px !important;
}

.tile-bottom-loader p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

p.limited-text {
  max-width: 110px !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis !important;
}

/* 3. FIX THE CONFLICTING MEDIA QUERY STYLES - Replace the mobile styles around line 1200 with: */

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 30px !important;
  }

  /* Keep modern tile styles on mobile */
  .main-tile {
    padding: 20px !important;
    height: auto !important;
  }

  .left-tile {
    height: 120px !important;
    margin-bottom: 20px !important;
  }

  .tile-bottom {
    padding: 12px 20px !important;
    min-height: 60px !important;
  }

  /* Adjust mobile responsive for bottom items */
  .tile-bottom-item {
    flex: 1 0 100% !important;
    margin-bottom: 8px !important;
  }

  .tile-bottom-item:last-child {
    margin-bottom: 0 !important;
  }
}

/* 4. ADD SPECIFIC FIXES FOR THE OLD STYLES THAT OVERRIDE THE NEW ONES: */

/* Force new container styles */
#apps-tiles .gigya-layout-cell.tile {
  text-align: left !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Override any remaining old tile margins */
.tile {
  margin: 0 !important;
}

/* Fix for tiles that might have old flexbox styles */
.main-tile {
  padding: 24px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  justify-content: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure proper image sizing */
.tile img {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

/* Fix any conflicting bottom styles */
.tile-bottom-left,
.tile-bottom-center,
.tile-bottom-right {
  width: auto !important;
  margin: 0 !important;
}

/* Override the old bottom item percentage styling */
.tile-bottom-item {
  padding: 0 !important;
  width: auto !important;
  text-align: left !important;
}

/* 5. ADDITIONAL MISSING STYLES FOR BETTER VISUAL CONSISTENCY: */

/* Force consistent flex behavior */
.tile-border {
  height: 100% !important;
}

/* Ensure warning overlay covers properly */
.warning-overlay {
  top: 0 !important;
  height: 100% !important;
  border-radius: 16px !important;
}

/* Maintenance tiles should maintain structure */
.tile-maintenance .tile h3 {
  position: relative !important;
  z-index: 11 !important;
  background-color: transparent !important;
}

/* Fix any remaining issues with tile wrapper */
.tile-wrapper {
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
}

.tile {
  background: #ffffff;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0;
  max-width: none;
  text-align: left;
  opacity: 1;
}

/* Remove the old tile-border class styling and replace with: */
.tile-border {
  border: none !important;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  width: 100% !important;
}

/* Enhanced hover effects */
.tile:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 20px 40px rgba(11, 65, 205, 0.15) !important;
}

/* Click effect */
.tile:active {
  transform: translateY(-8px) scale(0.98) !important;
  box-shadow: 0 15px 30px rgba(11, 65, 205, 0.1) !important;
  transition: all 0.1s ease-out !important;
}

/* Modern tile headers */
.tile h3 {
  color: #21201f;
  font-family: 'Roche Sans';
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 28px !important;
  padding: 24px 24px 12px !important;
  text-align: left !important;
  margin: 0 !important;
  height: auto !important;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Add decorative line under headers */
.tile h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #0b41cd;
  margin-top: 8px;
  border-radius: 2px;
}

.left-tile {
  width: 100% !important;
  height: 140px !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  position: relative;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden;
  background-color: #f8f9fb !important;
  border-radius: 12px;
  box-sizing: border-box !important;
}

/* Better image handling for all logos */
.left-tile img {
  max-width: 85% !important;
  max-height: 85% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  padding: 0 !important;
  transition: transform 0.6s ease !important;
}

/* Image hover effect */
.tile:hover .left-tile img {
  transform: scale(1.08) !important;
}

/* Right tile content */
.right-tile {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  margin-bottom: auto;
}

.right-tile h3 {
  color: var(--fg-high-contrast, #21201f);
  font-family: 'Roche Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.right-tile p {
  color: #544f4f !important;
  font-family: 'Roche Sans';
  font-size: 16px !important;
  line-height: 24px !important;
  margin: 0 !important;
  text-align: left !important;
  min-height: 72px !important;
  width: 100% !important;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Consistent bottom section - always present with fixed height */
.tile-bottom {
  background-color: #f6f9ff !important;
  padding: 16px 24px !important;
  min-height: 80px !important;
  border-top: 1px solid #edf2f7;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  margin: 0 !important;
  margin-top: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  justify-content: space-between;
}

/* Fix alignment of bottom items */
.tile-bottom-item {
  flex: 1 0 30% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  min-height: 48px !important;
  justify-content: center !important;
  text-align: left;
  min-width: 80px;
}

.tile-bottom-item label {
  color: #717171 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px !important;
  display: block !important;
  width: 100% !important;
  font-family: 'Roche Sans Light';
  font-style: normal;
  line-height: 19px;
}

.tile-bottom-item p {
  color: #0b41cd !important;
  font-family: 'Roche Sans Light';
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  min-height: auto !important;
  line-height: 19px;
  letter-spacing: -0.5px;
  padding-bottom: 10px;
}

/* Number styling for metrics */
.tile-bottom-center p,
.tile-bottom-right p {
  color: #0b41cd !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  padding: 10px 0;
}

/* Special tile effects - decorative top border on hover */
.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0b41cd, #44a4f2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
  border-radius: 16px 16px 0 0;
}

.tile:hover::before {
  transform: scaleX(1);
}

/* Maintenance tile styling */
.tile-maintenance {
  opacity: 1 !important;
  filter: grayscale(0.5);
  height: auto !important;
  width: 100% !important;
  pointer-events: none;
  border: none !important;
}

/* Maintenance tiles - disable hover effects */
.tile-maintenance:hover {
  transform: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
  border-color: transparent !important;
}

.tile-maintenance:hover .main-tile,
.tile-maintenance:hover .tile-bottom,
.tile-maintenance:hover .left-tile img {
  transform: none !important;
}

.tile-maintenance:hover::before {
  transform: scaleX(0) !important;
}

/* Warning overlay improvements */
.warning-overlay {
  position: absolute;
  top: 65px !important; /* Start below the title area */
  left: 0;
  width: 100% !important;
  height: calc(100% - 65px) !important; /* Adjust height to account for title space */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)) !important;
  border-radius: 0 0 16px 16px !important; /* Only round bottom corners since top is cut off */
  z-index: 10;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 1;
}

.warning-overlay svg {
  width: 56px !important;
  height: 56px !important;
  margin-bottom: 24px !important;
  animation: pulse 2s infinite;
}

/* Maintenance message styling */
.warning-overlay div:last-child {
  font-family: 'Roche Sans';
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #21201f !important;
  text-align: center !important;
  width: 100% !important;
  min-height: 72px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  max-width: 240px !important;
  margin: 0 auto !important;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Ensure gigya layout cells work properly */
#apps-tiles .gigya-layout-cell {
  text-align: left;
  float: none;
  width: 100% !important;
}

.gigya-layout-cell.tile {
  width: 100% !important;
}

.tile-link {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  text-decoration: none;
  color: inherit;
}

/* Hide empty elements properly */
.tile.hide {
  opacity: 0;
  transform: scale(0.95);
  display: none !important;
}

.gigya-screen.portrait {
  width: -webkit-fill-available !important;
  font-size: 15px;
}

h1#gigya_content_caption {
  margin-left: 65px;
  display: none;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
  padding-top: 40px !important;
}

.tile-bottom-left {
  width: 38% !important;
  margin: 0 !important;
}
.tile-bottom-center,
.tile-bottom-right {
  margin: 0 !important;
}
.tile-bottom-center p,
.tile-bottom-right p {
  font-weight: 700 !important;
  font-size: 20px !important;
  padding: 10px 0;
}
.tile .right-tile h3 {
  color: var(--fg-high-contrast, #21201f);
  font-family: 'Roche Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.tile .right-tile p {
  color: var(--fg-low-contrast, #544f4f);
  font-family: 'Roche Sans';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.3px;
}

#apps-tiles .gigya-layout-cell {
  text-align: center;
  float: left;
  width: auto !important;
}

#apps-tiles .tile-bottom-left,
#apps-tiles .tile-bottom-center,
#apps-tiles .tile-bottom-right {
  margin: 0 !important;
}

footer.footer-container {
  background: #f1f1f1;
  padding: 20px;
  text-align: center;
  position: relative;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links-align {
  margin: 5px 10px;
}

.footer-links-content {
  color: #003087;
  text-decoration: none;
}

.footer-links-content:hover {
  text-decoration: underline;
}

#menu-button {
  padding: 10px 2px 0px 30px;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

.pname {
  padding: 10px 15px;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  padding: 8px 10px;
  background: #d7e0f7;
  color: #0b41cd;
}

.rolediv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  position: relative;

  /* Rounded borders like main tiles */
  border-radius: 16px !important;
  border: 2px solid #e0e0e0 !important;

  /* Gray background when not selected */
  background-color: #f5f5f5 !important;

  /* Smooth transitions */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Hover effect - same as main tiles */
.rolediv:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 20px 40px rgba(11, 65, 205, 0.15) !important;
  border-color: #90ABF1 !important;
}

/* Selected state - blue like button */
.rolediv[style*="background-color: rgb(1, 23, 69)"],
.rolediv[style*="background-color:#011745"] {
  background-color: #0b41cd !important;
  border-color: #0b41cd !important;
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 35px rgba(11, 65, 205, 0.25) !important;
}

/* Check icon in top-right corner */
.rolediv .check-icon {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 24px !important;
  height: 24px !important;
  opacity: 0 !important;
  transform: scale(0.5) rotate(-15deg) !important;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  filter: brightness(0) invert(1) !important;
  pointer-events: none !important;
}

/* Show check icon when selected */
.rolediv[style*="background-color: rgb(1, 23, 69)"] .check-icon,
.rolediv[style*="background-color:#011745"] .check-icon {
  opacity: 1 !important;
  transform: scale(1) rotate(0deg) !important;
}

/* User icon styling - keep in center */
.rolediv .user-icon {
  margin-bottom: 10px;
  transition: filter 0.3s ease !important;
  width: 60px;
  height: 60px;
}

/* Icon color change when selected */
.rolediv[style*="background-color: rgb(1, 23, 69)"] .user-icon,
.rolediv[style*="background-color:#011745"] .user-icon {
  filter: brightness(0) invert(1) !important;
}

/* Gray icon when not selected */
.rolediv:not([style*="background-color: rgb(1, 23, 69)"]):not([style*="background-color:#011745"]) .user-icon {
  filter: grayscale(100%) opacity(0.6) !important;
}

/* Text styling */
.rolediv p {
  margin: 10px 0 0 0;
  font-weight: 500;
  transition: color 0.3s ease !important;
}

/* Text color when selected */
.rolediv[style*="background-color: rgb(1, 23, 69)"] p,
.rolediv[style*="background-color:#011745"] p {
  color: white !important;
}

/* Gray text when not selected */
.rolediv:not([style*="background-color: rgb(1, 23, 69)"]):not([style*="background-color:#011745"]) p {
  color: #666 !important;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 5px;
}

.greeting label,
.greeting span {
  display: inline-block;
}

#menu-content {
  background-color: #fff;
  box-shadow:
    0px 0px 2px 0px rgba(0, 0, 0, 0.16),
    0px 8px 30px 0px rgba(0, 0, 0, 0.17);
  position: absolute;
  right: 95px;
  top: 65px;
  z-index: 999;
}

#menu-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: black;
}

#menu-content a:hover {
  background-color: #f8f8f8;
}

.menu-hidden {
  display: none;
}

.menu-visible {
  display: block;
}

img#roche-logo {
  height: 37px !important;
  padding-right: 10px;
  padding-top: 5px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

#searchBar {
  width: 100%;
  padding: 7px 35px;
  /* border-radius: 2px; */
  border: 1px solid #9d948e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  transition: all 0.3s ease;
  background: url(../img/search.png) no-repeat 7px;
  border-radius: 4.5px;
  border: 1px solid #b6bdc5;
  background-color: #fff;
  box-sizing: border-box;
  height: 43px;
}

#searchBar:focus {
  border-color: #007bff;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
  outline: none;
}

/*Disabled apps overlay*/
.tile-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.tile-maintenance {
  opacity: 0.9 !important;
  border: none !important;
  pointer-events: none;
}

.warning-overlay {
  position: absolute;
  top: 65px; /* Start below the title area (title + padding is about 65px) */
  left: 0;
  width: 100% !important;
  height: calc(100% - 65px); /* Adjust height to account for title space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.warning-overlay .center {
  margin-bottom: 15px;
}

.warning-overlay svg {
  width: 48px;
  height: 48px;
}

.warning-overlay .clear {
  clear: both;
}

/* Alternative approach: Use border-top instead of changing position */
.warning-overlay-alt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  border-top: 65px solid transparent; /* Creates space for the title */
}

/* Ensure the title remains visible and interactive */
.tile-maintenance .tile h3,
.tile-maintenance h3 {
  position: relative !important;
  z-index: 11 !important;
  background-color: white !important;
  pointer-events: auto !important;
  /* Remove the background transparency that was hiding the title */
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .warning-overlay {
    top: 60px; /* Slightly less space on mobile */
    height: calc(100% - 60px);
  }

  .warning-overlay-alt {
    border-top: 60px solid transparent;
  }
}

/*loader*/
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.loader span {
  animation: dot 1.3s infinite;
  animation-fill-mode: both;
  font-size: 6rem;
  color: #0b41cd;
}

.loader span:nth-child(1) {
  animation-delay: 0s;
}
.loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}
@keyframes dot {
  0%,
  60%,
  100% {
    transform: initial;
  }
  30% {
    transform: translateY(-20px);
  }
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
}

.gigya-screen-loader {
  display: none !important;
}

.language_dropdown.mobile {
  display: none;
}

.link-accounts-main-header,
.social-login-title {
  color: #000;
  font-family: 'Roche Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 125% */
  letter-spacing: -0.5px;
}

/* menu styles */

.navbar {
  /* display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px; */
}

.hamburger {
  font-size: 24px;
  color: #544f4f;
  cursor: pointer;
  display: none; /* Hidden by default */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #544f4f;
  text-decoration: none;
  /* padding: 10px; */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.signinbutton {
  padding-bottom: 0 !important;
  margin-bottom: 5px !important;
}

.emptyscreen {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 400px;
  padding: 0px 28% !important;
}
.emptydivtext {
  color: #21201f;
  /* UI/Desktop XXL-XL/Label/Label L (Bold) */
  font-family: 'Roche Sans';
  line-height: 24px; /* 133.333% */
  letter-spacing: 0.2px;
}

.emptydivtext p {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
}

.emptydivtext span {
  font-family: 'Roche Sans Light';
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
}

.emptyseparator {
  border: 1px solid #c2bab5 !important;
  margin: 0 25px !important;
  height: 140px !important;
}

/* Custom select dropdown styles */

.custom-select {
  position: relative;
  display: inline-block;
  width: 125px;
}

.select-selected {
  padding: 10px;
  cursor: pointer;
  padding-left: 0px;
}

.select-selected i {
  color: #544f4f;
  padding-left: 3px;
}

.select-items {
  position: absolute;
  z-index: 99;
  width: 100%;
  background-color: rgb(255, 255, 255);
  box-shadow:
    rgba(0, 0, 0, 0.16) 0px 0px 2px 0px,
    rgba(0, 0, 0, 0.17) 0px 8px 30px 0px;
}

.select-items div {
  padding: 10px;
  cursor: pointer;
}

.select-items div:hover {
  background-color: #f8f8f8;
}

.select-hide {
  display: none;
}

.tile-bottom-item:nth-child(n + 3) {
  /* These will have more balanced alignment */
  text-align: center;
}

.gigya-otp-send-code-form {
  margin-top: 50px !important;
}

span#usernameid {
  color: #0b41cd;
}

#organization-buttons button {
  margin: 5px;
  padding: 10px;
}
#organization-buttons button.selected {
  background-color: #007bff;
  color: white;
}
#apps-role .main-text {
  font-family: 'Roche Sans';
}
.newTextColor {
  color: #90abf1 !important;
}

/* Responsive Styles */
@media (max-width: 767px) {
  .tile-bottom {
    padding-left: 10% !important;
    min-height: auto;
    padding: 5px !important;
    padding-left: 10% !important;
  }

  .tile-bottom-item {
    width: 100%;
    flex-basis: 100%;
    text-align: left !important;
    margin-top: 3px;
    padding: 3px;
  }

  .tile-bottom-item:nth-child(n) {
    text-align: left !important;
  }

  /* Compact the label and value */
  .tile-bottom-item {
    flex-direction: row;
    align-items: center;
  }

  .tile-bottom-item label {
    margin-right: 5px;
    margin-bottom: 0;
  }

  .tile-bottom-item p {
    margin-top: 0;
  }
}

@media (min-width: 769px) {
  .tile-bottom-item:nth-child(4):nth-last-child(1),
  .tile-bottom-item:nth-child(3):nth-last-child(2) {
    /* Two items per row for desktop on 4 items */
    flex-basis: 50%;
    margin-top: 8px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* For tablets and smaller desktops */
  .tile-bottom-item {
    min-width: 70px;
  }

  .tile-bottom-item label {
    font-size: 12px;
  }

  .tile-bottom-item p {
    font-size: 14px !important;
  }

  /* Special case for 4+ parameters */
  .tile-bottom-item:nth-child(4):nth-last-child(1),
  .tile-bottom-item:nth-child(3):nth-last-child(2) {
    flex-basis: 50%;
    margin-top: 5px;
  }
}

@media (max-width: 768px) {
  .tile-bottom-item {
    /* On mobile, stack if more than 2 items */
    flex-basis: 100%;
    text-align: left !important;
    margin-top: 5px;
  }

  .tile-bottom-item:nth-child(n + 3) {
    text-align: left !important;
  }
}

@media (max-width: 860px) {
  .hamburger {
    display: block; /* Show hamburger on small screens */
    padding-left: 20px;
  }

  .nav-links {
    display: none; /* Hide links by default */
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 50px;
    left: 0;
    box-shadow:
      0px 0px 2px 0px rgba(0, 0, 0, 0.16),
      0px 8px 30px 0px rgba(0, 0, 0, 0.17);
  }

  .nav-links.show {
    display: flex; /* Show links when hamburger is clicked */
    padding: 10px 0;
  }

  .nav-links li {
    padding: 0 35px;
  }

  .nav-links a {
    /* padding: 15px 35px; */
    text-align: center;
  }

  .nav-menu label span.pname:hover,
  .nav-menu label span.pname:active,
  .nav-menu label span.pname:focus {
    border: 1px solid #0b41cd;
  }
}

/*Media*/

@media (max-width: 768px) {
  .searchinput {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .searchinput h1 {
    margin: 0;
    flex: 1;
  }

  .searchinput p {
    margin: 0 !important;
    flex: 2;
  }

  #searchBar {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .searchinput {
    flex-direction: column;
    align-items: flex-start;
  }

  .searchinput h1 {
    margin-bottom: 15px;
  }

  .searchinput p {
    width: 100%;
  }
}

@media (max-width: 1900px) {
  .social-icons a.gigya-composite-control-link {
    margin: 6px 15px;
  }
}

@media (max-width: 1640px) {
  .social-icons a.gigya-composite-control-link {
    margin: 6px 15px;
  }
}

@media (max-width: 1440px) {
  .social-icons a.gigya-composite-control-link {
    margin: 6px 15px;
  }
}

@media (max-width: 1360px) {
}

@media (max-width: 1280px) {
  .sub-content {
    padding: 100px 80px;
  }
  .emptyscreen {
    padding: 0px 24% !important;
  }
}

@media (max-width: 1140px) {
  .sub-content {
    padding: 100px 80px;
  }
  .emptyscreen {
    padding: 0px 20% !important;
  }
}

@media (max-width: 1080px) {
  .sub-content {
    padding: 100px 80px;
  }
  .emptyscreen {
    padding: 0px 20% !important;
  }
}

@media (max-width: 991px) {
  .sub-content {
    padding: 100px 40px;
  }
  .emptyscreen {
    padding: 0px 17% !important;
  }

  .btnwidth {
    width: 14% !important;
  }
}

@media (max-width: 845px) {
  .btnwidth {
    width: 12% !important;
  }
}

@media (max-width: 768px) {
  #central-login-page {
    flex-direction: column;
  }
  .language_dropdown {
    display: none;
  }
  .language_dropdown.mobile {
    display: block;
  }
  .bg,
  .right-section {
    width: 100%;
  }
  .roche-logo img {
    width: 100px;
  }
  .sub-content {
    height: auto;
    padding: 30px;
  }

  .social-icons a.gigya-composite-control-link {
    padding: 20px 30px !important;
    margin: 6px 15px;
    width: 20px;
  }

  .social-icons i {
    font-size: 25px;
  }
  .language_dropdown {
    margin-top: 10px;
  }
  .language_dropdown select {
    font-size: 16px;
    height: 35px;
    padding: 0 10px;
  }
  .title {
    font-size: 32px !important;
  }
  .signinbutton {
    margin-top: -5px;
  }

  .main-container {
    margin: 0;
  }

  /* Tiles screen */
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .btnwidth {
    width: 30% !important;
  }
  .searcinput {
    display: block;
  }
  .searcinput p {
    margin: 0 !important;
    width: 100%;
  }
  #searchBar {
    width: 75%;
    margin: 20px 0;
  }
  .gigya-screen .gigya-layout-cell.tile {
    width: 100%;
    max-width: 100%;
  }

  .footer,
  .footer-right a {
    display: block;
  }

  #menu-content {
    right: 0;
    top: 55px;
    width: 100%;
  }
  #menu-content div {
    padding: 13px 40px;
  }

  #menu-content a {
    padding: 10px 40px;
  }
  .emptyscreen {
    padding: 0px 13% !important;
  }
}

/* Mobile layout for title and language selector */
@media (max-width: 768px) {
  /* Create a flex container for the title and mobile language selector */
  .title-language-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
  }

  /* Adjust the title styling when in mobile container */
  .title-language-container .title {
    font-size: 24px !important;
    line-height: 28px !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    flex: 1;
    min-width: 0; /* Allow text to shrink if needed */
  }

  /* Style the mobile language dropdown when next to title */
  .title-language-container .language_dropdown.mobile {
    flex-shrink: 0;
    margin: 0 !important;
    min-width: 120px;
  }

  /* Hide the label for mobile dropdown when next to title */
  .title-language-container .language_dropdown.mobile .gigya-label {
    display: none;
  }

  /* Style the select element */
  .title-language-container .language_dropdown.mobile select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    min-width: 100px;
  }

  /* Style the select options */
  .title-language-container .language_dropdown.mobile select option {
    background: #163572;
    color: #fff;
  }

  /* Remove any existing margins/padding that might interfere */
  .sub-content .language_dropdown.mobile {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }
}

/* Ensure proper spacing for elements that follow */
@media (max-width: 768px) {
  .sub-content .clear {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .emptyscreen {
    padding: 0px 3% !important;
  }
  .searcinput p {
    margin: 0 !important;
    width: 100%;
  }
  #searchBar {
    width: 100%;
    margin: 20px 0;
  }
}

.warning-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff7df;
  border-left: 4px solid #e9b519;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
  transition: all 0.3s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}

.warning-box.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.warning-box.hidden {
  display: none;
}

.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.warning-content {
  flex: 1;
}

.warning-content h3 {
  margin: 0 0 0.5rem 0;
  color: #e65100;
  font-size: 1.1rem;
}

.warning-content p {
  margin: 0;
  color: #333 !important;
  line-height: 1.4;
}

.close-button {
  position: absolute;
  top: 0rem;
  right: 0rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}

.close-button:hover {
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */

@media (max-width: 480px) {
  .warning-box {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .close-button {
    top: 0.25rem;
    right: 0.25rem;
  }
}
.info-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f0f4fd;
  border-left: 4px solid #0b41cd;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
  transition: all 0.3s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}

.info-box.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.info-box.hidden {
  display: none;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-content p {
  margin: 0;
  color: #333 !important;
  line-height: 1.4;
}

.info-content h3 {
  margin: 0 0 0.5rem 0;
  color: #1d5e00;
  font-size: 1.1rem;
}

/* The info box will use your existing close-button and animation styles */

@media (max-width: 480px) {
  .info-box {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 880px) {
  /* Adjust header layout */
  header {
    padding: 0 2% !important;
  }

  /* Fix logo and hub text */
  #logo {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  #logo .ciamhub {
    font-size: 16px !important;
  }

  /* Adjust spacing for nav items */
  .nav-menu {
    gap: 5px !important;
  }

  .separator {
    margin: 0 5px !important;
  }

  /* Handle user greeting */
  .greeting {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  /* Make custom select smaller */
  .custom-select {
    width: 100px !important;
  }

  /* Ensure flex items don't overflow */
  .nav-menu > div {
    flex-shrink: 1 !important;
  }
}

/* Add specific fix for exact breakpoint */
@media (max-width: 873px) and (min-width: 861px) {
  header {
    padding: 0 1% !important;
  }

  #logo .ciamhub {
    font-size: 15px !important;
  }

  .separator {
    margin: 0 3px !important;
  }

  .custom-select {
    width: 90px !important;
  }
}

/* Make sure the desktop heading is always visible */
h1.mainheading.desktop {
  display: block !important;
}

/* Hide the mobile heading completely */
h1.mainheading.mobile {
  display: none !important;
}

/* General improvement for searchinput layout */
.searchinput {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-bottom: 25px;
}

.searchinput h1.mainheading {
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.searchinput p {
  margin: 0 !important;
  width: 300px !important;
  flex-shrink: 0;
}

#searchBar {
  width: 100%;
}

/* Specific adjustment for 1105px and below */
@media (max-width: 1105px) {
  .searchinput {
    gap: 30px;
  }

  .searchinput h1.mainheading {
    font-size: 24px;
    line-height: 32px;
  }

  .searchinput p {
    width: 250px !important;
  }
}

/* Further adjustments for smaller screens */
@media (max-width: 900px) {
  .searchinput {
    gap: 15px;
  }

  .searchinput h1.mainheading {
    font-size: 22px;
    line-height: 30px;
  }

  .searchinput p {
    width: 230px !important;
  }
}

/* Adjust for mobile sizes but keep the desktop heading */
@media (max-width: 768px) {
  .searchinput {
    flex-direction: column;
    align-items: flex-start;
  }

  .searchinput h1.mainheading {
    white-space: normal;
    font-size: 20px;
    line-height: 28px;
  }

  .searchinput p {
    width: 100% !important;
  }
}

/* Extra small screens - further reduce font size but keep full title */
@media (max-width: 480px) {
  .searchinput h1.mainheading {
    font-size: 18px;
    line-height: 24px;
  }
}

/* Blur main content when Gigya popup is active */
.blur-background .wrapper,
.blur-background .content,
.blur-background header,
.blur-background .main-container,
.blur-background footer {
  filter: blur(3px);
  -webkit-filter: blur(3px);
  transition: filter 0.3s ease;
}

/* Ensure Gigya popup elements are NOT blurred */
.blur-background div[id*="gigya"],
.blur-background .gigya-screen-dialog,
.blur-background #passkeys-error-modal {
  filter: none !important;
  -webkit-filter: none !important;
}

/* ===== UNIVERSAL GIGYA SCREENSET STYLING - HOVERED TILE DESIGN ===== */

/* Thick blue border on top, thin on sides/bottom */
.gigya-screen-dialog-main {
  position: relative;
  border: 1px solid rgba(11, 65, 205, 0.3) !important;
  border-top: 4px solid #0b41cd !important;
  border-radius: 10px !important;
  box-shadow: 0 20px 40px rgba(11, 65, 205, 0.15) !important;
  transform: translateY(-12px) !important;
  transition: all 0.3s ease !important;
}

/* Gradient top border (optional decorative element) */
.gigya-screen-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 10px 10px 0 0;
  z-index: 1;
}

/* Remove all focus-visible borders */
.gigya-screen-dialog:focus-visible,
.gigya-screen-dialog:focus,
.gigya-screen-dialog-main:focus-visible,
.gigya-screen-dialog-main:focus,
.gigya-screen-dialog *:focus-visible,
.gigya-screen-dialog *:focus,
.gigya-screen-dialog input:focus-visible,
.gigya-screen-dialog button:focus-visible,
.gigya-screen-dialog a:focus-visible,
[role="dialog"]:focus-visible,
[role="dialog"]:focus {
  outline: none !important;
  border-color: rgba(11, 65, 205, 0.3) !important;
  border-top-color: #0b41cd !important;
}

/* Blue bar below title */
.gigya-screen-dialog-caption::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #0b41cd;
  margin-top: 8px;
}

/* Blue footer - only on rows with buttons */
.gigya-screen-dialog .gigya-profile-form > .gigya-layout-row:has(.gotoappbtn),
.gigya-screen-dialog .gigya-profile-form > .gigya-layout-row:has(.changepwdbtn),
.gigya-screen-dialog .gigya-profile-form > .gigya-layout-row:has(.gigya-composite-control-submit) {
  background-color: #f6f9ff !important;
  padding: 10px 24px 10px 100px !important;
  min-height: 80px !important;
  border-top: 1px solid #edf2f7 !important;
  margin: 20px -24px -35px -24px !important;
  border-radius: 0 0 10px 10px !important;
  width: calc(100% + 48px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
}

.gigya-screen-dialog .gigya-profile-form > .gigya-layout-row:has(.gotoappbtn) {
  margin: 20px -24px -60px -24px !important;
}

/* Hide the empty row-submit row */
.gigya-screen-dialog .row-submit {
  display: none !important;
}

/* Hide the error-wrapper div completely (no footer styling) */
.gigya-screen-dialog .gigya-profile-form > div:has(.error-wrapper) {
  display: none !important;
}

/* Align button to the right within its row */
.gigya-screen-dialog .gotoappbtn,
.gigya-screen-dialog .changepwdbtn,
.gigya-screen-dialog .gigya-composite-control-submit {
  display: inline-block !important;
  margin-left: auto !important;
  margin-right: -50px !important;
}

/* Style the button itself */
.gigya-screen-dialog .gigya-input-submit,
.gigya-screen-dialog input[type="submit"],
.gigya-screen-dialog input[type="button"] {
  background-color: #0b41cd !important;
  color: white !important;
  border: none !important;
  padding: 0px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  margin: 0 !important;
}

.gigya-screen-dialog .gigya-input-submit:hover,
.gigya-screen-dialog input[type="submit"]:hover,
.gigya-screen-dialog input[type="button"]:hover {
  background-color: #093499 !important;
}

/* Remove focus borders from button */
.gigya-screen-dialog .gigya-input-submit:focus-visible,
.gigya-screen-dialog input[type="submit"]:focus-visible,
.gigya-screen-dialog input[type="button"]:focus-visible {
  outline: none !important;
  border: none !important;
}

/* Blue footer for pwd-btns container - targets it directly as it's a direct child of form */
.gigya-screen-dialog .gigya-profile-form > .pwd-btns {
  background-color: #f6f9ff !important;
  padding: 10px 24px !important;
  min-height: 80px !important;
  border-top: 1px solid #edf2f7 !important;
  margin: 20px -24px -35px -24px !important;
  border-radius: 0 0 10px 10px !important;
  width: calc(100% + 48px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  box-sizing: border-box !important;
  gap: 12px !important;
}

/* Secondary button style for cancel button */
.gigya-screen-dialog .cancelbtn .gigya-input-submit,
.gigya-screen-dialog .cancelbtn input[type="button"] {
  background-color: white !important;
  color: #0b41cd !important;
  border: 1px solid #0b41cd !important;
  margin-right: 50px !important;
}

.gigya-screen-dialog .cancelbtn .gigya-input-submit:hover,
.gigya-screen-dialog .cancelbtn input[type="button"]:hover {
  background-color: #f6f9ff !important;
  color: #093499 !important;
  border-color: #093499 !important;
}

/* Ensure button wrappers don't interfere with alignment */
.gigya-screen-dialog .pwd-btns .cancelbtn,
.gigya-screen-dialog .pwd-btns .changepwdbtn {
  margin: 0 !important;
  display: inline-block !important;
  margin-right: 48px !important;
}

.gigya-screen-dialog .gotoappbtn {
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: 0px !important;
}

/* ===== PASSKEY SCREENSET ALIGNMENT FIXES ===== */

/* Fix feature cards alignment - override inline styles */
.gigya-composite-control-label > div[style*="display: grid"] {
  max-width: 600px !important;
  margin: 0 auto !important;
}

.gigya-composite-control-label > div[style*="display: grid"] > div[style*="display: flex"] {
  width: 100% !important;
  margin: 0 auto !important;
}

/* Center passkey manager widget */
.gigya-passkey-card-manager {
  max-width: 600px !important;
  margin: 0 auto !important;
}

/* Center the button row */
.gigya-layout-row-75w {
  max-width: 600px !important;
  margin: 0 auto !important;
  width: 100% !important;
  text-align: center !important;
}

/* Center the Add Passkey button */
.gigya-passKey-widget.gigya-composite-control-passkey-register-widget {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Center empty list message */
.gigya-empty-list {
  text-align: center !important;
}

/* Ensure headers are centered */
.gigya-passkey-card-manager-label {
  text-align: center !important;
}

.gigya-passkey-card-manager-description {
  text-align: center !important;
}

/* Center the main form content */
.gigya-profile-form {
  margin: 0 auto !important;
}

/* Ensure the h2 header is centered */
.gigya-composite-control-header {
  max-width: 600px !important;
  margin: 0 auto 20px auto !important;
}