.toplevel_page_cfio #wpwrap {
  background-color: #f1f5f9;
}
.toplevel_page_cfio #wpcontent {
  padding: 0;
}
.toplevel_page_cfio #wpbody-content {
  height: calc(100vh - 31px);
  padding-bottom: 0;
}
.toplevel_page_cfio #wpbody-content *,
.toplevel_page_cfio #wpbody-content ::after,
.toplevel_page_cfio #wpbody-content ::before {
  box-sizing: border-box;
}
.toplevel_page_cfio #wpfooter {
  display: none;
}

.cfio {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  gap: 20px;
  min-height: 100%;
  padding: 20px;
}
.cfio__sidebar {
  width: 224px;
}
.cfio__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cfio__menu li {
  margin: 0;
}
.cfio__link {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  color: #1a2537;
  background-color: transparent;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color ease-in-out 0.2s, background-color ease-in-out 0.2s;
}
.cfio__link:hover {
  color: #0f172a;
  background-color: #f8fafc;
}
.cfio__link--active {
  background-color: #e2e8f0 !important;
  pointer-events: none;
}
.cfio__content {
  flex: 1;
  padding: 20px;
  min-width: 0;
  min-height: 460px;
  background-color: #fff;
  border-radius: 20px;
}
.cfio__tab {
  display: none;
}
.cfio__tab--active {
  display: block;
}

.cfio-chat,
.cfio-forms {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cfio-chat__title,
.cfio-forms__title {
  margin: 0;
}

.cfio-chat__connected {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cfio-chat__preview {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  color: #66727e;
  background-color: #f5f6f8;
  border-radius: 10px;
}

.cfio-forms__placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 200px;
  background: #f5f6f8;
  border-radius: 20px;
}
.cfio-forms__placeholder-text {
  font-size: 15px;
  text-align: center;
  line-height: 1.3;
}
.cfio-forms__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cfio-forms__list-head {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
}
.cfio-forms__list-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cfio-forms__quantity {
  font-size: 14px;
  color: #66727e;
}
.cfio-forms__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  background-color: #f5f6f8;
  border-radius: 10px;
}
.cfio-forms__item:hover .cfio-forms__actions {
  opacity: 1;
  pointer-events: auto;
}
.cfio-forms__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.cfio-forms__shortcode {
  font-size: 15px;
  font-weight: 500;
}
.cfio-forms__id {
  font-size: 13px;
  color: #66727e;
}
.cfio-forms__actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.cfio-forms__action {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  color: #66727e;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.cfio-forms__action:hover {
  color: #1a2537;
  background-color: #fff;
}

.cfio-notice-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
}

.cfio-notice {
  position: relative;
  min-width: 270px;
  max-width: calc(100% - 40px);
  padding: 10px 20px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  overflow: hidden;
  transform: translateY(0);
  transition: 0.35s;
}
.cfio-notice--visible {
  opacity: 1;
  transform: translateY(-10px);
}
.cfio-notice--success {
  border-left: 4px solid #25d366;
}
.cfio-notice--error {
  border-left: 4px solid #ff3e57;
}

.cfio-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.cfio-form__preview {
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.cfio-form__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.cfio-form__footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.cfio-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cfio-form-field__label {
  font-size: 14px;
}
.cfio-form-field__value {
  width: 100%;
}

.cfio-input,
.cfio-textarea {
  width: 100%;
  font-size: 14px;
  background: #f5f6f8 !important;
  border-radius: 10px;
  border: none !important;
}

.cfio-input {
  height: 40px;
  padding: 0 15px !important;
}

.cfio-textarea {
  height: 110px;
  padding: 10px 15px !important;
  resize: none;
}

.cfio-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 500;
  color: #fff !important;
  text-decoration: none;
  background-color: #2196f3;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.cfio-button__label {
  position: relative;
  z-index: 1;
}
.cfio-button__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 8px;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  opacity: 0;
}
.cfio-button:hover {
  background-color: #1a7dd1;
}
.cfio-button--small {
  height: 34px;
  font-size: 14px;
}
.cfio-button--gray {
  color: #000 !important;
  background-color: #f5f6f8;
}
.cfio-button--gray:hover {
  background-color: #e1e2e4;
}
.cfio-button--red {
  background-color: #ff3e57;
}
.cfio-button--red:hover {
  background-color: #f03a52;
}
.cfio-button--loading {
  user-select: none;
  pointer-events: none;
}
.cfio-button--loading .cfio-button__label {
  opacity: 0;
}
.cfio-button--loading .cfio-button__spinner {
  opacity: 1;
}
.cfio-button:disabled {
  color: #92a3b4 !important;
  background-color: #e6e9ef !important;
  pointer-events: none;
}

.cfio-confirmation {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.cfio-confirmation--active {
  display: block;
}
.cfio-confirmation__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
}
.cfio-confirmation__window {
  position: relative;
  max-width: 340px;
  margin: 120px auto 0;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  animation: okocrmFadeIn 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cfio-confirmation__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cfio-confirmation__text {
  color: #555;
  margin-bottom: 18px;
}
.cfio-confirmation__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@keyframes okocrmFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 991px) {
  .cfio {
    flex-direction: column;
  }
  .cfio__sidebar {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
  .cfio__menu {
    flex-flow: row wrap;
  }
  .cfio-forms__actions {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 782px) {
  .toplevel_page_cfio #wpbody-content {
    height: calc(100vh - 46px);
    padding-bottom: 0;
  }
}
@media (max-width: 575px) {
  .cfio {
    gap: 15px;
    padding: 15px;
  }
  .cfio__sidebar {
    gap: 15px;
  }
  .cfio__content {
    padding: 15px;
  }
  .cfio-forms__item {
    padding-right: 10px;
  }
  .cfio-forms__shortcode {
    font-size: 14px;
  }
  .cfio-forms__id {
    font-size: 12px;
  }
  .cfio-forms__actions {
    flex-direction: column;
    gap: 0;
  }
}