.ensCenter {
  text-align: center;
}

#ensModalWrapper {
  border: 1px solid #333;
  position: fixed;
  max-width: 700px;
  display: none;
  box-shadow: 5px 5px 5px grey;
  background-color: #fff;
  padding: 15px;
  z-index: 9999;
  height: fit-content;
  top: 0%; /* Optional: adjust vertical position */
  overflow-y: auto; /* Optional: scroll if content overflows */
}

#ensModal {
  font-size: 18px;
  font-variation-settings: "wght" 500, "wdth" 96;
  padding: 0;
  color: #123257;
}

#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: 27px;
  transition: 0.5s;
}

#ensModal input[type="checkbox"]:checked ~ .switch {
  background: #56c080;
  transition: 0.5s;
}

#ensModal .switch {
  display: block;
  width: 50px;
  height: 24px;
  background: #939393;
  border-radius: 15px;
  position: absolute;
  top: 0;
  transition: 0.5s;
}

#ensModal .toggle {
  height: 23px;
  width: 23px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 0;
  left: -2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: 0.5s;
}

#ensModal .card {
  /* display: block; */
  margin: 0 0 0 10px;
  width: 50px;
  height: 24px;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
  /* float: right; */
}

#ensModal hr {
  margin-top: 20px;
  margin-bottom: 20px;
}

.ensToggleRow {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.1;
}

.ensToggleLabel {
  line-height: 1;
  margin: 0;
}

.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: #123257 !important; /* Blue background */
  color: #fff;
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin: var(--spacing-small) 0;
  border: none;
  border-radius: 4px;
  padding: 0 1.5em;
  font-family: peridot-pe-variable, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.32px;
  font-style: normal;
  font-weight: 500;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.2s ease-out;
}

#ensCancel {
  border: 1px solid #ccc;
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin: var(--spacing-small) 0;
  border-radius: 4px;
  padding: 0 1.5em;
  font-family: peridot-pe-variable, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.32px;
  font-style: normal;
  font-weight: 500;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  background-color: var(--ui-color-light, #fff);
  color: var(--brand-color-black, #171714);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.2s ease-out;
}

.ensButtons #ensCancel,
.ensButtons #ensSave {
  margin-top: 0;
  margin-bottom: 0;
}

#ensModal .ensTitle {
  width: 100%;
  color: #123257;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  margin: 0;
  padding: 0;
}

#ensModal .ensDescription {
  color: #333;
  font-size: 14px;
  padding: 0;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

#ensModal .description {
  max-width: 1200px;
  font-size: 12px;
  margin-top: 1px;
  padding: 1px;
  clear: both;
  line-height: 1;
}

#ensModal .defaultDescription {
  max-width: 1200px;
  font-size: 12px;
  margin-top: 1px;
  padding: 1px;
  clear: both;
  line-height: 1;
}

.ensToggleLabel.chevron::before {
  border-style: solid;
  border-width: 2px 2px 0 0;
  content: "";
  display: inline-block;
  height: 8px;
  margin: 0 5px 2px 0;
  position: relative;
  width: 8px;
}

.ensToggleLabel.chevron.right:before {
  transform: rotate(45deg);
}

.ensToggleLabel.chevron.bottom:before {
  margin-left: 2px;
  margin-bottom: 3px;
  transform: rotate(135deg);
}

#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: 0.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 */
    max-height: 100%;
    height: fit-content;
    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;
  }
}