#emailSignatureTable {
    min-width: 360px !important;
  }

fieldset.form-wrapper {
  border:2px solid var(--cutler);
}

fieldset.fieldgroup {
  border:none;
}

 /* Small screens */
  @media (max-width: 480px) {
    #emailSignatureTable {
      width: 360px;
    }
}

/* Medium screens */
  @media (min-width: 481px) and (max-width: 767px) {
    #emailSignatureTable {
      width: 360px;
    }
}



#edit-layout-left {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column; 
    gap: 2rem;
}

/* Hide the image container */
#edit-processed-text {
    display: none;
}


label,
legend .fieldset-legend {
    font-weight: 500;
}

#social-media {
    list-style: none; 
}

#edit-socialmedia-flexbox div {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 50%;
          flex: 0 0 50%;
}

/* Hide pseudo-element for links opening in new tab */
a[target="_blank"]::after {
    display: none; 
}

#edit-actions-submit {
    cursor: pointer; 
}

/* Style for checkbox and label */
input[type="checkbox"] {
    display: inline-block; 
}

input[type="checkbox"] + label {
    display: inline-block; 
    white-space: nowrap; 
}

.middle table {
    border-collapse: initial !important;
    border: initial !important;
    width: initial !important;
    margin: initial !important;
}

/*Result Container Styles*/
#edit-resultcontainer {
min-width: 360px;
max-width: 550px; 
height:auto;
}

 /* Adjust error message to display below the input field */
.js-form-type-tel, .js-form-item-url-1 {
display: initial !important;
}

#emailSignatureTable td  {
    padding: 0px;
}

/* Reset line-height for elements inside the table */
table * {
    line-height: initial !important;
}

/* Styles for signature logo media entity */
.embedded-entity {
    width: 126px;
    height: 60px;
}

/* fixes color contrast for focused links */
.webform-submission-email-signature-form-form a:focus,
.webform-submission-email-signature-form-form a:focus * {
  background-color:transparent !important;
}

/* fixes layout of two 50% inline inputs */
.webform-flexbox--center {
  align-items:flex-start;
}

@media screen and (min-width: 768px) {
  .webform-section-wrapper .webform-flexbox .webform-flex:nth-of-type(1) .webform-flex--container {
    margin-left:0;
  }

  .webform-section-wrapper .webform-flexbox .webform-flex:nth-of-type(2) .webform-flex--container {
    margin-left:0.5em;
    margin-right:0;
  }
}

/* overrides offset mobile checkboxes and labels */
@media screen and (max-width: 768px) {
  .webform-submission-form fieldset .fieldset-wrapper .form-type-checkbox .form-checkbox {
    width:5%;
  }

  .webform-submission-form fieldset .fieldset-wrapper .form-type-checkbox label {
    width:95%;
  }
}