.matx-loader {
  display: inline-block;
  position: absolute;
  width: 40px;
  height: 40px;
  left: 0;
  right: 0;
  top: calc(50% - 20px);
  margin: auto;
}

.matx-loader img {
  position: absolute;
  height: 25px;
  width: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.matx-loader div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 3.4px solid #1976d2;
  border-radius: 50%;
  animation: matx-loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #1976d2 transparent transparent transparent;
}

.matx-loader div:nth-child(1) {
  animation-delay: -0.45s;
}

.matx-loader div:nth-child(2) {
  animation-delay: -0.3s;
}

.matx-loader div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes matx-loader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

[role='tabpanel'] .MuiBox-root {
  padding: 20px 0;
}

.form-label {
  font-weight: bold;
  padding-bottom: 5px;
}

a,
a:hover {
  color: unset !important;
  text-decoration: unset !important;
}


.rendered-form-wrapper h6 {
  border-top: 1px solid #eee;
  padding-top: 15px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 16px;
}

.rendered-form-wrapper label {
  font-weight: bold !important;
  margin-bottom: 8px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.image-grid .img-item {
  width: 100%;
  height: auto;
}

.image-grid .close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}


.custom-scrollbar::-webkit-scrollbar-track {
  float: left;
  /* -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); */
  border-radius: 5px;
  background-color: #f5f5f5;
}

.custom-scrollbar::-webkit-scrollbar {
  float: left;
  width: 6px;
  overflow-y: visible;
  background-color: #f5f5f5;
  position: relative;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  float: left;
  overflow-y: visible;
  width: 12px;
  height: 26px;
  position: absolute;
  border-radius: 10px;
  background-color: #b0aeae;
  /* -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); */
  /* background-image: url("/images/scroll.png"); */
}

.MuiAccordion-root.Mui-expanded {
  margin: unset !important;
}

.react-form-builder-preview {
  width: 75% !important;
}

.react-form-builder-toolbar {
  width: 25% !important;
  max-height: 100vh !important;
  overflow-y: auto;
  margin-top: unset !important;
}

/* Hide the h4:Toolbar from the builder sidebar */
.react-form-builder-toolbar h4 {
  display: none;
}

/* Hide the default submit button on the rendered form */
.react-form-builder-form .btn-toolbar input[type="submit"] {
  display: none;
}