/* placeholder for css */
.conditional {
  background: rgba(0, 0, 255, 0.5);
}

.conditional:nth-of-type(2n) {
  background: rgba(0, 0, 255, 0.25);
}

.gform_setting_clp_wysiwyg { /* Main container for all JS-generated UI */
  max-width: 100%;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding-bottom: 1rem; /* Padding at bottom of main container */
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.625rem;
}

.toolbar-button {
  border: 1px solid #000 !important;
  color: #000 !important;
  font-size: 0.875rem;
  margin: 0;
  padding: 0.8125rem 1rem;
  width: auto;
  overflow: visible;
  background-color: transparent;
  border-radius: 0.1875rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.toolbar-button:is(select) {
  width: 159px !important;
}

.clp-wysiwyg,
.clp-textarea { /* Applied to contenteditable div and hidden textarea */
  display: block;
  box-sizing: border-box;
  min-height: 250px;
  width: 100%;
  outline: none;
  padding: 1rem;
  line-height: 1.6;
  color: #333;
  /* Allow overflow-y for scrolling if content exceeds min-height */
  overflow-y: auto;
  border: 1px solid gray; /* Remove default textarea border for consistency */
  border-radius: 0.5rem;
}

.clp-textarea:focus {
  outline: 2px solid #3b82f6; /* Blue outline on focus */
  outline-offset: -2px;
}

/* Modal specific styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.modal-field {
  margin-bottom: 1rem;
  text-align: left;
}

.modal-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.modal-field select, .modal-field input[type=text] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.modal-button.primary {
  background-color: #3b82f6;
  color: white;
}

.modal-button.primary:hover {
  background-color: #2563eb;
}

.modal-button.secondary {
  background-color: #e5e7eb;
  color: #4b5563;
}

.modal-button.secondary:hover {
  background-color: #d1d5db;
}

.modal-button.danger {
  background-color: #ef4444;
  color: white;
}

.modal-button.danger:hover {
  background-color: #dc2626;
}

/* Style for page breaks within the editor (design mode) */
.page-break-highlight {
  background-color: #febfbf; /* light red */
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-weight: bold;
  color: #af1e1e; /* dark red */
  white-space: nowrap;
  cursor: default;
  display: inline-block;
  text-align: center;
  width: 100%;
}

/* Style for merge tags within the editor (design mode) */
.merge-tag-highlight {
  background-color: #bfdbfe; /* light blue */
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-weight: bold;
  color: #1e40af; /* dark blue */
  white-space: nowrap; /* Keep the tag on one line */
  cursor: default; /* Indicate it's not directly editable */
  display: inline-block; /* Ensure padding applies correctly */
}

/* Style for conditional content in editor (design mode) */
.conditional-content-design {
  border: 1px dashed #9ca3af; /* Dashed gray border for conditional content */
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background-color: #f3f4f6; /* Light gray background */
  display: inline-block; /* Or block, depending on desired layout */
  margin: 2px 0; /* Small margin for separation */
  position: relative;
}

.conditional-content-design::before {
  content: "IF";
  font-size: 0.7em;
  font-weight: bold;
  color: #6b7280;
  position: absolute;
  top: -8px;
  left: 5px;
  background-color: #f3f4f6;
  padding: 0 3px;
  border-radius: 3px;
}

/* Hidden class for preview mode */
.hidden-in-preview {
  display: none !important;
}

/* Style for conditional content in rendered visual preview (when condition is true) */
.conditional-rendered {
  background-color: #d1fae5; /* light green for true conditions */
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-weight: 500;
  color: #065f46; /* dark green */
  display: inline-block; /* To respect padding/margin for inline blocks */
}

/* Code Preview styles */
#codePreviewContainer {
  background-color: #2d3748; /* Dark background */
  color: #e2e8f0; /* Light text */
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  overflow-x: auto; /* Enable horizontal scrolling for long lines */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default */
}

#codePreview pre {
  margin: 0;
  white-space: pre-wrap; /* Wrap long lines */
  word-wrap: break-word; /* Break words if necessary */
}

/* Style for conditional spans in the generated HTML code preview */
.conditional-code {
  color: #f6ad55; /* Orange-ish for conditional attributes in code */
}

.assessment-review-form li {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
  border-bottom: 1px solid #ebebf2;
}
.assessment-review-form li:not(:last-child) {
  margin-bottom: 0.75rem;
}
.assessment-review-form li.arfi-question input[type=radio],
.assessment-review-form li.arfi-question input[type=checkbox] {
  display: none;
}
.assessment-review-form li.arfi-question input[type=radio]:checked + label,
.assessment-review-form li.arfi-question input[type=checkbox]:checked + label {
  background: #ffc100;
}
.assessment-review-form li.arfi-question input[type=radio] + label,
.assessment-review-form li.arfi-question input[type=checkbox] + label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.125rem;
  padding: 0 1rem;
  border: 1px solid #50575e;
  cursor: pointer;
}
.assessment-review-form li.arfi-question input[type=radio] + label:first-of-type,
.assessment-review-form li.arfi-question input[type=checkbox] + label:first-of-type {
  border-top-left-radius: 0.1875rem;
  border-bottom-left-radius: 0.1875rem;
}
.assessment-review-form li.arfi-question input[type=radio] + label:last-of-type,
.assessment-review-form li.arfi-question input[type=checkbox] + label:last-of-type {
  border-top-right-radius: 0.1875rem;
  border-bottom-right-radius: 0.1875rem;
}
.assessment-review-form li.arfi-question input[type=radio] + label:not(:first-of-type),
.assessment-review-form li.arfi-question input[type=checkbox] + label:not(:first-of-type) {
  margin-left: -1px;
}
.assessment-review-form li input:not([type=radio], [type=checkbox]) {
  font-size: 0.8175rem;
  padding: 0.4375rem 1rem;
  border: 1px solid #50575e;
  width: 100%;
}

.assessment-review-form-page {
  display: none;
}
.assessment-review-form-page.active {
  display: block;
}
.assessment-review-form-page > h2 {
  background-color: #242748 !important;
  color: #FFF !important;
  font-weight: 700 !important;
  margin: -0.75rem -0.75rem 0.75rem !important;
}

.arfi-input {
  display: flex;
  align-items: center;
}

.assessment-review-form-box {
  margin-bottom: 0.75rem;
}

.arfi-result-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.arfi-result-box input {
  display: none;
}
.arfi-result-box input:disabled + label {
  opacity: 1 !important;
}
.arfi-result-box input[id$=-denied]:checked + label {
  background: #F8D7DA;
}
.arfi-result-box input[id$=-emerging]:checked + label {
  background: #F9D3BC;
}
.arfi-result-box input[id$=-growing]:checked + label {
  background: #FAE2B4;
}
.arfi-result-box input[id$=-high]:checked + label {
  background: #EAF5B4;
}
.arfi-result-box input[id$=-significant]:checked + label {
  background: #D7F2A6;
}
.arfi-result-box input[id$=-transformative]:checked + label {
  background: #C8E6B9;
}
.arfi-result-box label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.125rem;
  width: 100%;
  padding: 0 !important;
  border: 1px solid #50575e;
  cursor: pointer;
}
.arfi-result-box label:first-of-type {
  border-top-left-radius: 0.1875rem;
  border-top-right-radius: 0.1875rem;
}
.arfi-result-box label:last-of-type {
  border-bottom-left-radius: 0.1875rem;
  border-bottom-right-radius: 0.1875rem;
}
.arfi-result-box label:not(:first-of-type) {
  margin-top: -1px;
}

.assessment-review-form {
  display: none;
}
.assessment-review-form.active {
  display: block;
}

body.assessment-review-active::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999999;
}

body.assessment-review-active #post-body-content,
body.assessment-review-active .assessment-review-box {
  position: relative;
  z-index: 99999999;
}

.assessment-review-actions.hidden {
  display: none;
}

.assessment-review-form-buttons {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.375rem;
  row-gap: 0.375rem;
}
.assessment-review-form-buttons button {
  display: none !important;
}
.assessment-review-form-buttons button.active {
  display: inline-block !important;
}

.cancel-review-btn {
  background-color: #b32d2e !important;
}

.assessment-review-status {
  display: block;
  width: fit-content;
  padding: 0.3125rem 0.5625rem;
  border-radius: 0.1875rem;
  margin-bottom: 0.75rem;
}
.assessment-review-status[data-reviewed=yes] {
  background-color: #cdffc2;
}
.assessment-review-status[data-reviewed=no] {
  background-color: #f1bfc4;
}

/*# sourceMappingURL=style.css.map */
