.wiz-email-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  z-index: 1000;
}


.wiz-email-modal-content {
  background-color: white;
  margin: 2% auto;
  width: 800px;
  max-width: 90%;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.wiz-email-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.wiz-email-close-icon {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #555;
}

.wiz-email-row {
  display: flex;
  gap: 10px;

  flex-wrap: wrap;
}

.label {
  margin-bottom: 0;
}

.wiz-email-field {
  flex: 1;
  min-width: 200px;
}

.wiz-email-row label,
.wiz-email-row input,
.wiz-email-body-section label,
.wiz-email-body-section textarea {
  width: 100%;
  display: block;
}

#wizEmailSubject {
  width: 100%;
  margin-top: 5px;
}

.wiz-email-body-section {
  margin-top: 10px;
  flex: 1;
}

#wizEmailBody {
  width: 100%;
  height: 200px;
  resize: vertical;
  margin-top: 5px;
}

.wiz-email-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.wiz-email-close-btn {
  background-color: #ccc;
  /* Light grey */
  color: #333;
  /* Darker text */
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wiz-email-close-btn:hover {
  background-color: #bbb;
  /* Slightly darker grey on hover */
}

.wiz-email-send-btn {
  background-color: #28a745;
  /* Green */
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wiz-email-send-btn:hover {
  background-color: #218838;
}

.my-textarea {
  border-radius: 5px;
  /* Applies a 5px radius to all corners */
  border: 1px solid #ccc;
  font-size: 13px;

}

textarea:focus {
  border-color: #28a745;
  /* Green border on focus */
  outline: none;
  /* Remove default outline */
}

.font-grey-color {
  color: grey;
}

.closebtn {
  outline: none;
  color: grey;
  background-color: white;
}

.closebtn:hover,
.closebtn:focus {
  color: white;
  background-color: #28a745;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.wiz-email-toolbar {
  border: 1px solid #ccc;
  margin-bottom: 6px;
  display: flex;
  background-color: #f9f9f9;
  border-radius: 4px;

}

.wiz-email-toolbar button {
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  font-size: 16px;
  outline: none;
}

.wiz-email-toolbar button:hover {
  color: green;
}

.wiz-email-toolbar button:focus {
  outline: none;
  /* ✅ Ensure no focus ring even when tabbed */
}

#wizEmailBodyCode {
  background-color: #f0f0f0;
}

.body-tab-content {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
}

#wizEmailBodyCode {
  background-color: #f0f0f0;
  resize: vertical;
  /* Optional: let user resize */
}

/* Prevent focus border from appearing black */
#wizEmailBodyPreview {
  border: 1px solid #ccc;
  /* Light grey border */
  outline: none;
  /* Remove default focus outline */
  transition: border-color 0.2s ease;
}

/* Optional: Add subtle style when focused */
#wizEmailBodyPreview:focus {
  border-color: #bbb;
  /* Slightly darker grey if you want visual feedback */
}

/* Maintain body-tab-content scrolling styles */
.body-tab-content {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  min-height: 150px;
  max-height: 15em;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
}

/* Overlay to block interactions and center spinner */
.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8); /* dim background */
  display: none; /* initially hidden */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999;
  pointer-events: all; /* block interaction */
}

/* Spinner animation */
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid green;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}