.ce-toolbar__content {
  max-width: initial;
}

.ce-toolbar__actions {
  left: 0;
  right: auto;
}

.codex-editor {
  padding-left: 60px;
}

.codex-editor__redactor {
  margin: 0 !important;
  padding: 0 0 100px !important;
}

.ce-block__content {
  max-width: 100%;
}

h2.ce-header {
  font-size: 21px;
  color: #fff;
  font-weight: bold;
  padding: 16px 12px;
  margin: 24px 0;
  background: #000;
}

h3.ce-header {
  position: relative;
  font-size: 17px;
  font-weight: bold;
  padding: 0 0 0 12px;
  margin: 0 16px 20px;
}
h3.ce-header::after {
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 16px;
  content: "";
  background: linear-gradient(to bottom, #226dff, #d458ff);
}

h4.ce-header {
  font-size: 15px;
  font-weight: 500;
  padding: 0;
  margin: 0 16px 20px;
}

.ce-paragraph.cdx-block {
  font-size: 15px;
  padding: 0 16px 16px;
  word-wrap: break-word;
  word-break: break-all;
}

.image-tool {
  padding: 0 16px 16px;
}
.image-tool .image-tool__image-picture {
  margin: 0 auto;
}

.embed-tool {
  max-width: 650px;
  margin: 0 auto;
  padding: 0 16px 20px;
}

@media (min-width: 768px) {
  h2.ce-header {
    font-size: 21px;
    padding: 16px;
    border-radius: 8px;
  }
  h3.ce-header {
    margin: 0 0 20px;
  }
  h4.ce-header {
    margin: 0 12px 20px;
  }
  .embed-tool {
    padding: 0 0 20px;
  }
}
.embed-tool__caption {
  padding: 0;
  height: 0;
  border: 0;
}
.embed-tool__caption:before {
  display: none !important;
}
.embed-tool__caption:after {
  display: none !important;
}

.hide {
  display: none !important;
}

.anyButtonContainer {
  position: relative;
}

.anyButtonContainer__registerButton {
  display: block;
  margin: auto;
}

.anyButtonContainer__inputHolder > * {
  margin-bottom: 10px;
}

.anyButtonContainer__input {
  padding-left: 38px;
  background-repeat: no-repeat;
  background-position: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.anyButtonContainer__input--link {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> <path d="M7.69998 12.6L7.67896 12.62C6.53993 13.7048 6.52012 15.5155 7.63516 16.625V16.625C8.72293 17.7073 10.4799 17.7102 11.5712 16.6314L13.0263 15.193C14.0703 14.1609 14.2141 12.525 13.3662 11.3266L13.22 11.12" stroke="black" stroke-width="2" stroke-linecap="round"/> <path d="M16.22 11.12L16.3564 10.9805C17.2895 10.0265 17.3478 8.5207 16.4914 7.49733V7.49733C15.5691 6.39509 13.9269 6.25143 12.8271 7.17675L11.3901 8.38588C10.0935 9.47674 9.95706 11.4241 11.0888 12.6852L11.12 12.72" stroke="black" stroke-width="2" stroke-linecap="round"/> </svg>');
}

.anyButtonContainer__input--text {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> <path d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14" stroke="black" stroke-width="2" stroke-linecap="round"/> </svg>');
}

.anyButtonContainer__input[contentEditable=true][data-placeholder]::before {
  position: absolute;
  content: attr(data-placeholder);
  color: #707684;
  font-weight: normal;
  opacity: 0;
}

.anyButtonContainer__input[contentEditable=true][data-placeholder]:empty::before {
  opacity: 1;
}

.anyButtonContainer__input[contentEditable=true][data-placeholder]:empty:focus::before {
  opacity: 0;
}

.cdx-button {
  white-space: nowrap;
}

.anyButtonContainer__anyButtonHolder {
  text-align: center;
  margin: 8px 0 24px;
}
.anyButtonContainer__anyButtonHolder:hover .anyButton__btn {
  background: #f53a50;
}
.anyButtonContainer__anyButtonHolder:hover .anyButton__title {
  color: #f53a50;
  font-family: Consolas, "Courier New", monospace;
}

.anyButton__btn {
  position: relative;
  display: inline-block;
  font-weight: bold;
  line-height: 1.5;
  color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  word-break: break-all;
  overflow-wrap: break-word;
  font-size: 21px;
  padding: 24px 56px;
  border-radius: 100px;
  background: #FF6534;
}
.anyButton__btn--default {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}
.anyButton__btn--gray {
  color: #fff;
  background-color: #7c7c7c;
  border-color: #7c7c7c;
}

.anyButton__title {
  color: #FF6534;
  font-size: 16px;
  margin-bottom: 8px;
  font-family: Consolas, "Courier New", monospace;
}

.toggle-input {
  position: absolute;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
  width: 40px;
  height: 20px;
  margin: 0;
}

.toggle-label {
  width: 40px;
  height: 20px;
  background: #ccc;
  position: relative;
  display: inline-block;
  border-radius: 46px;
  transition: 0.4s;
  box-sizing: border-box;
}

.toggle-label:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  left: 0;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
}

.toggle-input:checked + .toggle-label {
  background-color: #4BD865;
}

.toggle-input:checked + .toggle-label:after {
  left: 20px;
}

.toggle-switch {
  width: 40px;
  margin-left: auto;
  padding: 10px 0;
}

.anyButton__btn:visited {
  color: #fff; /* Or any desired color */
  text-decoration: none;
}

.image-tool {
  --bg-color: #cdd1e0;
  --front-color: #388ae5;
  --border-color: #e8e8eb;
}
.image-tool__image {
  overflow: hidden;
}
.image-tool__image-picture {
  max-width: 100%;
  vertical-align: bottom;
  display: block;
}
.image-tool__image-preloader {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  margin: auto;
  position: relative;
  background-color: var(--bg-color);
  background-position: center center;
}
.image-tool__image-preloader::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--bg-color);
  border-top-color: var(--front-color);
  left: 50%;
  top: 50%;
  margin-top: -30px;
  margin-left: -30px;
  animation: image-preloader-spin 2s infinite linear;
  box-sizing: border-box;
}
.image-tool__caption[contentEditable=true][data-placeholder]::before {
  position: absolute !important;
  content: attr(data-placeholder);
  color: #707684;
  font-weight: normal;
  display: none;
}
.image-tool__caption[contentEditable=true][data-placeholder]:empty::before {
  display: block;
}
.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus::before {
  display: none;
}
.image-tool--empty__image {
  display: none;
}
.image-tool--empty__caption, .image-tool--loading__caption {
  display: none;
}
.image-tool .cdx-button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-tool .cdx-button svg {
  height: auto;
  margin: 0 6px 0 0;
}
.image-tool--filled .cdx-button {
  display: none;
}
.image-tool--filled .image-tool__image-preloader {
  display: none;
}
.image-tool--loading__image {
  min-height: 200px;
  display: flex;
  border: 1px solid var(--border-color);
  background-color: #fff;
}
.image-tool--loading__image-picture {
  display: none;
}
.image-tool--loading .cdx-button {
  display: none;
}
.image-tool--withBorder__image {
  border: 1px solid var(--border-color);
}
.image-tool--withBackground__image {
  padding: 15px;
  background: var(--bg-color);
}
.image-tool--withBackground__image-picture {
  max-width: 60%;
  margin: 0 auto;
}
.image-tool--stretched__image-picture {
  width: 100%;
}

@keyframes image-preloader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.link-tool {
  position: relative;
  padding: 0 16px;
  margin-bottom: 8px;
}
.link-tool__input {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath stroke='%23707684' stroke-linecap='round' stroke-width='2' d='m7.7 12.6-.021.02a2.795 2.795 0 0 0-.044 4.005v0a2.795 2.795 0 0 0 3.936.006l1.455-1.438a3 3 0 0 0 .34-3.866l-.146-.207'/%3E%3Cpath stroke='%23707684' stroke-linecap='round' stroke-width='2' d='m16.22 11.12.136-.14c.933-.954.992-2.46.135-3.483v0a2.597 2.597 0 0 0-3.664-.32L11.39 8.386a3 3 0 0 0-.301 4.3l.031.034'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.link-tool__input-holder {
  position: relative;
}
.link-tool__input-holder--error {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath stroke='rgb(224, 147, 147)' stroke-linecap='round' stroke-width='2' d='m7.7 12.6-.021.02a2.795 2.795 0 0 0-.044 4.005v0a2.795 2.795 0 0 0 3.936.006l1.455-1.438a3 3 0 0 0 .34-3.866l-.146-.207'/%3E%3Cpath stroke='rgb(224, 147, 147)' stroke-linecap='round' stroke-width='2' d='m16.22 11.12.136-.14c.933-.954.992-2.46.135-3.483v0a2.597 2.597 0 0 0-3.664-.32L11.39 8.386a3 3 0 0 0-.301 4.3l.031.034'/%3E%3C/svg%3E");
  background-color: #fff3f6;
  border-color: #f3e0e0;
  color: #a95a5a;
  box-shadow: inset 0 1px 3px 0 rgba(146, 62, 62, 0.05);
}
.link-tool__input[contentEditable=true][data-placeholder]::before {
  position: absolute;
  content: attr(data-placeholder);
  color: #707684;
  font-weight: normal;
  opacity: 0;
}
.link-tool__input[contentEditable=true][data-placeholder]:empty::before {
  opacity: 1;
}
.link-tool__input[contentEditable=true][data-placeholder]:empty:focus::before {
  opacity: 0;
}
.link-tool__progress {
  position: absolute;
  box-shadow: inset 0 1px 3px 0 rgba(102, 85, 107, 0.04);
  height: 100%;
  width: 0;
  background-color: #f4f5f7;
  z-index: -1;
}
.link-tool__progress--loading {
  -webkit-animation: progress 500ms ease-in;
  -webkit-animation-fill-mode: forwards;
}
.link-tool__progress--loaded {
  width: 100%;
}
.link-tool__content {
  display: block;
  color: initial !important;
  text-decoration: none !important;
}
.link-tool__content--rendered {
  min-height: 122px;
  padding: 12px;
  background: #F0F0F0;
  border-radius: 6px;
  will-change: filter;
}
.link-tool__image {
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 180px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.link-tool__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.link-tool__title + .link-tool__anchor {
  margin-top: 25px;
}
.link-tool__description {
  font-size: 15px;
  line-height: 1.55em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.link-tool__anchor {
  display: block;
  font-size: 15px;
  line-height: 1em;
  color: #888 !important;
  border: 0 !important;
  padding: 0 !important;
}

@keyframes link-in {
  from {
    filter: blur(5px);
  }
  to {
    filter: none;
  }
}
@-webkit-keyframes progress {
  0% {
    width: 0;
  }
  100% {
    width: 85%;
  }
}
@media (min-width: 768px) {
  .link-tool {
    padding: 0;
  }
  .link-tool__content--rendered {
    padding: 16px 16px 16px 192px;
  }
  .link-tool__image {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 160px;
    height: 90px;
    margin: 0;
  }
  .link-tool__description {
    -webkit-line-clamp: 2;
  }
}
.table-tool__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}
.table-tool__control {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.table-tool__control:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}
.table-tool__control:active {
  background: #dee2e6;
}
.table-tool__control input[type=checkbox] {
  margin-right: 6px;
}
.table-tool__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.table-tool__table th, .table-tool__table td {
  padding: 12px;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
  min-width: 100px;
  word-wrap: break-word;
  transition: background-color 0.2s ease;
}
.table-tool__table th:focus, .table-tool__table td:focus {
  outline: 2px solid #007bff;
  outline-offset: -2px;
  background: #e3f2fd;
}
.table-tool__table th:empty::before, .table-tool__table td:empty::before {
  content: " ";
  display: inline-block;
  width: 1px;
  height: 1em;
}
.table-tool__table th:last-child, .table-tool__table td:last-child {
  border-right: none;
}
.table-tool__table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 1;
}
.table-tool__table td {
  background: #ffffff;
  color: #212529;
}
.table-tool__table td:hover {
  background: #f8f9fa;
}
.table-tool__table tr:hover {
  background: #f8f9fa;
}
.table-tool__table tr:last-child th, .table-tool__table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 768px) {
  .table-tool__table th, .table-tool__table td {
    padding: 8px;
    min-width: 80px;
    font-size: 14px;
  }
}
.table-tool__table--stretched {
  width: 100%;
  table-layout: fixed;
}
.table-tool.ce-block--readonly .table-tool__table th, .table-tool.ce-block--readonly .table-tool__table td {
  background: #f8f9fa;
  color: #6c757d;
  cursor: default;
}
.table-tool.ce-block--readonly .table-tool__table th:focus, .table-tool.ce-block--readonly .table-tool__table td:focus {
  outline: none;
}
.table-tool.ce-block--readonly .table-tool__table th:hover, .table-tool.ce-block--readonly .table-tool__table td:hover {
  background: #f8f9fa;
}
.table-tool__table th:empty::before, .table-tool__table td:empty::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
}
.table-tool__table-wrapper {
  overflow-x: auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
