@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&amp;display=swap");

.wpai-tool fieldset legend {
  display: none;
}

.wpai-tool fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: var(--s-4);
  justify-content: flex-start;
  align-items: start;
  position: relative;
}

.wpai-tool fieldset .repeater-controls {
  grid-column: 1 / -1;
}

.repeated-section:nth-child(2n),
.repeated-section:nth-child(1) {
  background: #e8e9ea;
}

.wpai-tool .wp-input-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: start;
}

.wpai-tool .wp-input-group > *:nth-child(2) {
  margin-right: 12px;
}

.repeater-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background-color: rgba(0, 0, 0, 0);
}

.add-button {
  cursor: copy;
}

.remove-button {
  cursor: pointer;
  color: rgb(194, 26, 26);
}

.wpai-tool .wp-input-group label {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 6px;
  font-family: "Space Grotesk";
}

.wpai-tool .wp-input-group p {
  margin: 0;
  margin-top: 4px;
}

.wpai-tool .wp-submit {
  border: none;
  cursor: pointer;
  font-family: "Space Grotesk";
  font-weight: bold;
}

.wpai-tool .help-text {
  font-size: 10px;
  opacity: 0.75;
  color: #6c757d;
}

.wpai-tool-code {
  font-size: 14px;
}

.toggle-switch {
  height: 18px;
}

.toggle-switch button {
  position: relative;
  width: 30px; /* Half the original width */
  height: 17px; /* Half the original height */
  border-radius: 17px; /* Half the original border radius */
  background-color: #ccc;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  top: -50%;
}

.toggle-switch-slider {
  position: absolute;
  top: 1px; /* Half the original top */
  left: 1px; /* Half the original left */
  width: 15px; /* Half the original width */
  height: 15px; /* Half the original height */
  border-radius: 50%;
  background-color: white;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

button.toggle-switch-checked {
  background-color: var(--primary-color);
}

.toggle-switch-slider-checked {
  transform: translateX(13px); /* Half the original transform */
}

.tabs {
  display: flex;
  overflow-y: auto;
  position: relative;
}

.tabs button {
  white-space: nowrap;
  font-size: var(--text-sm);
}

.wpai-tool .tabs {
  background: rgba(244, 245, 246, 0.5);
}

.wpai-tool .tab-content {
  background: #f4f5f6;
}

.tabs button {
  background-color: transparent;
  font-weight: bold;
  border: none;
  transition: all 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);
  color: rgba(0, 0, 0, 0.35);
  padding: var(--s-4) var(--s-8);
  font-family: "Space Grotesk";
  cursor: pointer;
}

.tabs button.active-tab {
  box-shadow: inset 0 2px 0 0 var(--primary-color);
  color: #000;
  background: #f4f5f6;
}

.wpai-tool-output pre {
  margin: 0;
  padding: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.material-icons.spin {
  animation: spin 1s linear infinite;
}

.status-logged_in {
  background: #28a745;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  margin-right: var(--s-1);
}

.status-logged_out {
  background: #dc3545;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  margin-right: var(--s-1);
}

.wpai-tool-code-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: var(--s-2) var(--s-4);
  background: #f4f5f6;
  font-size: 12px;
  opacity: 0.35;
}

.wpai-tool-code-header button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  color: black;
}

.wpai-tool-code-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) var(--s-4);
  background: #f4f5f6;
  font-size: 12px;
  opacity: 0.35;
}

.wpai-tool input[type="text"],
.wpai-tool input[type="email"],
.wpai-tool input[type="password"],
.wpai-tool input[type="number"] {
  padding: 0.5rem;
  border: 2px solid #ddd;
  background: #fff;
  color: var(--black-color);
  font-family: inherit;
}

input[type="color"] {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: none;
  padding: 0;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: solid 2px #dddddd;
  border-radius: 50%;
}

.wpai-tool textarea,
.wpai-tool input[type="textarea"] {
  min-height: 250px;
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #ddd;
  background: #fff;
  color: var(--black-color);
  font-family: inherit;
}

.wpai-tool input,
.wpai-tool textarea {
  box-shadow: none;
  transition: all 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.wpai-tool input:focus,
.wpai-tool textarea:focus {
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb-vals), 0.5);
  border: solid 2px transparent;
  outline: none;
}

#tool pre,
.hljs {
  background: #f4f5f6;
}

.ai-register-upsell {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--s-8);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(244, 245, 246, 0.85);
  backdrop-filter: blur(10px);
  text-align: center;
}

.wp-block-kevinbatdorf-code-block-pro {
  max-width: 100% !important;
}
