.ensCenter {
  text-align: center;
}

#ensModalWrapper {
  border: 1px solid #333;
  position: fixed;
  max-width: 65%;
  display: none;
  box-shadow: 5px 5px 5px grey;
  background-color: #f0f0f0;
  padding: 20px 10px;
  z-index: 9999;
  height: 70%; /* Increased height */
  top: 0%;     /* Optional: adjust vertical position */
  overflow-y: auto; /* Optional: scroll if content overflows */
}

#ensModal {
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial;
  font-size: 18px;
  color: #333;
  padding: 20px;
}

#ensModal input[type="checkbox"] {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

#ensModal input[type="checkbox"]:checked ~ .toggle {
  background: #fff;
  left: 36px;
  transition: 0.5s;
}

#ensModal input[type="checkbox"]:checked ~ .switch {
  background: #43a047;
  transition: 0.5s;
}

#ensModal .switch {
  display: block;
  width: 50px;
  height: 15px;
  background: #939393;
  border-radius: 10px;
  position: absolute;
  top: 0;
  transition: 0.5s;
}

#ensModal .toggle {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: -2px;
  left: -2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: 0.5s;
}

#ensModal .card {
  display: inline-block;
  margin: 5px;
  width: 50px;
  height: 20px;
  text-align: center;
  position: relative;
  float: right;
}

.ensToggleRow {
  margin-bottom: 10px;
}

.ensToggleLabel {
  min-height: 24px; 
  margin-right: 5px;
}

.ensButtons {
  clear: both;
  margin-top: 15px;
  float: right;
}

.ensButtons .button {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 32px;
  border-radius: 2px;
  font-size: 0.9em;
  background-color: #fff;
  color: #646464;
  margin-left: 0px;
  margin-bottom: 10px;
}

.ensButtons .button.grey {
  background-color: #eee;
}

.ensButtons .button.blue {
  background-color: #2b5cac;
  color: #fff;
}

.ensButtons .button.raised {
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.2s;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
}

.ensButtons .button.raised:active {
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);
  transition-delay: 0s;
}

#ensSave {
  background-color: #014a91 !important; /* Blue background */
  color: #ffffff;            /* White text */
  border: none;
  font-weight: 500 !important;
}

#ensCancel {
  background-color: #ffffff !important; /* White background */
  color: #000000;            /* Black text */
  border: 1px solid #ccc;
  font-weight: 500 !important;
}

#ensModal .ensTitle {
  margin: 5px;
  width: 95%;
  color: #74736f;
  position: absolute;
  top: -2px;
  left: -5px;
  padding-left: 5%;
  text-align: center;
  font-weight: 700;
}

#ensModal .ensDescription {
  color: #333;
  font-size: 14px;
  padding: 10px;
}

#ensModal .description {
  max-width: 2000px;
  font-size: 12px;
  margin-top: 1px;
  padding: 1px;
  clear: both;

}

#ensModal .defaultDescription {
  max-width: 2000px;
  font-size: 12px;
  margin-top: 1px;
  padding: 1px;
  clear: both;

}




#ensModal .ensTagsContent {
  display: none;
  padding: 0 0 0 20px;
}

#ensModal .tagContainer {
  color: #676767;
  padding: 7px 0 7px 7px;
  font-size: 15px;
}

.contactInfoLink {
  display: block;
  margin-bottom: 4px;
}

.ensToggleRowWrapper {
  max-height: 400px;
  overflow: auto;
}

.defaultDescription {
  max-width: 600px;
  font-size: 12px;
  margin-top: 15px;
  clear: both;
}
.ensCheckbox[disabled] ~ .toggle, 
.ensCheckbox[disabled] ~ .checked { 
   opacity: .5; 
}

/* Responsive adjustments for smaller screens */
@media (max-width: 998px) {
    .ensButtons #ensCancel {
        margin-left: unset !important;
        margin-right: unset !important;
    }
    #ensModalWrapper {
        max-width: 95% !important;
        height: 75%; /* Increased height */
        top: 1%;     /* Optional: adjust vertical position */
    }    
    .ensButtons .button {
        display: inline-block;
        position: relative;
        width: 120px;
        height: 32px;
        border-radius: 2px;
        font-size: 0.9em;
        background-color: #fff;
        color: #646464;
        text-align: center !important;
        margin-left: 0px !important;
        margin-bottom: 10px !important;
    }
    .bottom-shim {
        height: 30px;
    }

}


