.media-uploader {
  .uploader {
    height: 40px;

    .uppy-Root {
      height: 100%;
    }

    .uppy-DragDrop--isDragDropSupported {
      border: 1px dashed var(--bs-gray-500);
    }

    .uppy-DragDrop-inner {
      display: flex;
      padding: 0;

      svg {
        width: 30px;
        height: 20px;
        margin: 0;
      }

      .uppy-DragDrop-label {
        margin: 0;
        font-size: 1rem;
        color: var(--bs-gray-600);
        margin-right: var(--bs-spacer-2);
      }
    }
  }

  .preview {
    .overlay-carousel-items {
      width: 100%;
    }

    .overlay-carousel-item-row {
      width: 100%;
    }

    .overlay-carousel-item-media {
      width: 6.5rem;
      flex: 0 0 6.5rem;
    }

    .overlay-carousel-item-thumb {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      border: 1px solid var(--bs-gray-300);
      border-radius: 0.5rem;
      background: var(--bs-gray-200) no-repeat center / cover;
      padding: 0;
    }

    .overlay-carousel-item-links {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      margin-top: 0.5rem;
    }

    .overlay-carousel-item-handle {
      cursor: move;
      color: var(--bs-gray-600);
      flex: 0 0 auto;

      svg {
        width: 1rem;
        height: 1rem;
        fill: currentColor;
      }
    }

    .overlay-carousel-item-body {
      min-width: 0;
    }

    .overlay-carousel-item-side-actions {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      min-width: 1.5rem;
      padding-top: 0.1rem;
    }

    .customer-story-editor-items {
      width: 100%;
    }

    .customer-story-editor-row {
      width: 100%;
    }

    .customer-story-editor-avatar-thumb {
      aspect-ratio: 1 / 1;
      border-radius: 999px;
    }

    .customer-story-editor-body {
      min-width: 0;
    }

    .overlay-carousel-editor,
    .faq-accordion-tool-editor {
      .codex-editor {
        border: 1px solid var(--bs-gray-300);
        border-radius: 0.5rem;
        background: var(--bs-white);
      }

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

      .ce-block__content {
        margin: 0;
        border-left: 0;
        border-right: 0;
        padding-left: 2.25rem;
        padding-right: 0.5rem;
      }

      .ce-toolbar__content {
        margin-left: 0;
      }

      .ce-toolbar__actions {
        left: 0.35rem !important;
      }

      .ce-paragraph,
      .ce-header {
        line-height: 1.5;
      }

      .ce-paragraph[data-placeholder]:empty::before {
        color: var(--bs-gray-500);
      }
    }

    .draggable-source--is-dragging {
      opacity: 0.5;
    }

    .draggable--original {
      display: none !important;
    }

    .handle {
      cursor: move;
    }

    .remove {
      cursor: pointer;
      color: var(--bs-danger);
      transition: opacity 0.2s ease-in-out;
      opacity: 0;

      svg {
        margin-left: 1px;
        width: 1rem;
        height: 1rem;
        fill: var(--bs-danger);
      }
    }

    .item:hover .remove {
      opacity: 1;
    }

    .overlay-carousel-item-side-actions .remove {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      opacity: 1;
      padding: 0.125rem;
    }
  }
}
