/* Style the form to display items in a column */
#custom_email_form {
  display: flex;
  flex-direction: column;
  width: 50%;
  /* Adjust width as needed */
  margin: auto;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#custom_email_form select,
#custom_email_form textarea,
#custom_email_form input[type="submit"] {
  margin-bottom: 20px;
}

#custom_email_content {
  height: 600px;
  /* Adjust height as needed */
  display: flex;
  flex-direction: column;
  width: 50%;
  /* Adjust width as needed */
  margin: auto;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.button-primary {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.button-primary:hover {
  background-color: #005077;
}

.custom-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-meta-row h3 {
  margin: 0;
  white-space: nowrap;
}
.custom-meta-row p {
  margin: 0;
}

/* Order Table Subject and Summary Part */
.order-summary-plugin {
  display: flex;
  justify-content: space-between;
  /* max-width: 1024px; */
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.problem-template,
.order-summary {
  width: 49%;
}

.problem-template select,
.problem-template input[type="text"],
.problem-template input[type="email"],
.problem-template textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.order-summary h3 {
  margin-top: 0;
}

.order-summary-inner {
  padding: 17px 20px;
  border-radius: 7px;
  background: #f5f5f5;
}

.order-summary-inner div div {
  gap: 3px;
  margin-bottom: 8px;
}

.order-summary-inner div div p {
  margin: 0em !important;
  padding: 0em !important;
}

.order-summary-plugin label {
  font-weight: bold;
}

/* Send and Save Buttons */
.button-section {
  display: flex;
  justify-content: center;
  padding: 20px;
  width: 95%;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.placeholder-card {
  width: 97%;
  background: #ebeeef;
  border-radius: 5px;
  padding: 10px 16px;
}

.placeholder-card-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.placeholder-card-inner p {
  padding: 10px 25px;
  font-size: 14px;
  background: #fff;
  border-radius: 5px;
  margin: 0em;
}

.save-email-button {
  border: 1px solid #ccc;
  color: #255a95;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
  border-radius: 5px;
  background-color: #edf2f8;
  flex-shrink: 0;
}
.save-email-button:hover {
  background-color: #255a95;
  color: white;
}

.send-email-button {
  /* background-color: #255A95; */
  background: linear-gradient(90deg, #868cf0 0%, #5253d2 100%);
  color: #fff;
  /* color: white; */
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  flex-grow: 1;
}

/* AI Box */

.ai_template_genarator p,
.ai_template_genarator h2 {
  margin: 0;
}

.ai_template_genarator .top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.ai_template_genarator .top p {
  padding: 10px 20px;
  font-size: 14px;
  color: #9f0bd3;
  background: rgba(158, 11, 211, 0.2);
  border-radius: 4px;
  font-weight: 500;
}

.ai_template_inner_wrapper {
  padding: 23px 26px;
  border: 2px solid #255a958a;
  border-radius: 7px;
  display: flex;
}

.ai_template_inner_wrapper div:first-child {
  width: 65%;
}

.ai_template_inner_wrapper div:first-child h2 {
  color: rgba(0, 0, 0, 0.84);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px; /* 133.333% */
}

.ai_template_inner_wrapper div:first-child textarea {
  width: 100%;
  border: 1.2px solid #b2bcca;
  min-height: 80px;
  border-radius: 7px;
  margin: 15px 0;
  outline: none;
  padding: 12px;
  box-sizing: border-box;
  margin: 8px 0;
}

#ai_submit_button {
  border-radius: 7px;
  background: linear-gradient(90deg, #868cf0 0%, #5253d2 100%);
  width: 100%;
  height: 45px;
  border: none;
  outline: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#ai_submit_button:hover,
.send-email-button:hover {
  background: linear-gradient(90deg, #22c36d 0%, #0d9011 100%);
}

#ai_submit_button:disabled,
.send-email-button:disabled {
  background-color: #ccc;
  background: linear-gradient(90deg, #cacaca 0%, #8e8f8e 100%) !important;
  cursor: not-allowed;
}

.ai_template_inner_wrapper div:last-child {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.ai_template_inner_wrapper div:last-child img {
  width: 150px;
}

.ai_template_inner_wrapper div:last-child h2 {
  color: #595ad6;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.address-p {
  color: grey;
  font-weight: 100;
  font-size: 9px;
}

p {
  margin: 0em 0;
}

.email-body-section {
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.email-body-section label {
  font-weight: bold;
}

.mailer-status {
  text-align: center;
  margin-bottom: 10px;
  font-style: italic;
}

#show_raw_text {
  margin-top: 3px;
}
