/*!************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs/index.js??ruleSet[1].rules[1].use[3]!./wysi/wysi.css ***!
  \************************************************************************************************************************************************************************************************/
/**
 * Wysi: A Vanilla JS WYSIWYG editor for Bootstrap 5
 * @version: 1.1.0
 * @license: MIT
 * @author: PiruAdmin
 */
:root {
  --wysi-primary: #027ffe;
  --wysi-hover: #0266cb;
  --wysi-highlight: #cce5ff;
}

#wysi-svg-icons {
  display: none;
}

.wysi-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.5;
  outline: 1px solid rgba(160, 160, 160, 0.3);
}

/* Fix for external styles interfering with the editor */
.wysi-wrapper {
  display: inline-flex;
  width: 100%;
  font-weight: normal !important;
  font-style: normal !important;
}

.wysi-wrapper:focus-within {
  outline-color: #ff0055;
  outline-color: var(--wysi-primary);
}

.wysi-wrapper + textarea {
  display: none;
}

.wysi-toolbar {
  display: flex;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 5px;
  border-radius: 5px 5px 0 0;
  background-color: #eee;
  box-sizing: border-box;
}

.wysi-autohide .wysi-toolbar {
  display: none;
}

.wysi-autohide:focus-within .wysi-toolbar {
  display: flex;
  flex-wrap: nowrap;
  position: absolute;
  min-width: 100%;
  left: 50%;
  transform: translate(-50%, -100%);
  margin-top: -5px;
  border-radius: 5px;
  outline: 1px solid rgba(160, 160, 160, 0.3);
}

.wysi-toolbar *,
.wysi-toolbar *:before,
.wysi-toolbar *:after {
  box-sizing: inherit;
}

.wysi-toolbar button {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 30px;
  margin: 0 5px 0 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: #444;
  background-color: transparent;
  font-family: inherit;
  font-size: 1em;
  font-weight: 400;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}

.wysi-popover > button,
.wysi-toolbar > button {
  justify-content: center;
  width: 30px;
}

.wysi-toolbar button:hover,
.wysi-toolbar button:focus,
.wysi-listbox button[aria-expanded=true] {
  background-color: #fff;
}

.wysi-toolbar button[aria-pressed=true] {
  color: #ff0055;
  color: var(--wysi-primary);
  background-color: rgba(255, 0, 85, 0.1);
  background-color: var(--wysi-highlight);
}

.wysi-toolbar button[aria-pressed=true]:hover {
  background-color: rgba(255, 0, 85, 0.1);
  background-color: var(--wysi-highlight);
  mix-blend-mode: multiply;
}

.wysi-toolbar button * {
  pointer-events: none;
}

.wysi-toolbar svg {
  width: 1.5em;
  height: 1.5em;
  fill: currentColor;
}

.wysi-listbox {
  position: relative;
  line-height: 0;
}

.wysi-listbox > button {
  justify-content: space-between;
  width: 40px;
  padding: 0 4px 0 2px;
}

.wysi-listbox > button:after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  transform: rotateZ(45deg);
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  box-sizing: border-box;
}

.wysi-listbox div {
  position: absolute;
  margin-top: -1px;
  z-index: 1;
  border-radius: 0 0 3px 3px;
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.wysi-listbox > button[aria-expanded=false] + div {
  display: none;
}

.wysi-listbox div button {
  display: flex;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  text-align: left;
  cursor: pointer;
}

.wysi-listbox div button:focus {
  background-color: #eee;
}

/** Format tool **/
.wysi-format button {
  font-size: 0.875em;
}

.wysi-format > button {
  width: 120px;
  padding: 0 10px;
}

.wysi-format div {
  min-width: 160px;
  padding: 5px;
}

.wysi-format button[data-option^=h] {
  font-weight: bold;
}

.wysi-format button[data-option=h1] {
  font-size: 1.25em;
}

.wysi-format button[data-option=h2] {
  font-size: 1.125em;
}

.wysi-format button[data-option=h3] {
  font-size: 1em;
}

/** End of Format tool **/
/* ==========================================================================
   WYSIWYG Modal Backdrop & Dialog (Fullscreen Overlay)
   ========================================================================== */
body.wysi-modal-open {
  overflow: hidden;
}

@keyframes wysiFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.wysi-popover {
  position: relative;
  line-height: 0;
}

.wysi-popover > button {
  margin: 0;
}

.wysi-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100000 !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: wysiFadeIn 0.15s ease-out;
}

.wysi-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2rem);
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #212529;
}

.wysi-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
  box-sizing: border-box;
  flex-shrink: 0;
}

.wysi-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}

.wysi-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6c757d;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.wysi-modal-close:hover {
  background-color: #e9ecef;
  color: #212529;
}

.wysi-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wysi-modal-form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.wysi-modal-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 5px;
  text-transform: none;
  display: block;
}

.wysi-modal-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: #ffffff;
  color: #212529;
  font-size: 0.875rem;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.wysi-modal-input:focus {
  border-color: #ff0055;
  border-color: var(--wysi-primary, #ff0055);
}

.wysi-file-input {
  width: 100%;
  height: auto;
  min-height: 32px;
  padding: 4px 6px;
  font-size: 0.8125rem;
  font-family: inherit;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
}

.wysi-file-input::file-selector-button {
  padding: 3px 10px;
  margin-right: 8px;
  border: 0;
  border-radius: 4px;
  background-color: #ff0055;
  background-color: var(--wysi-primary, #ff0055);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.wysi-file-input::file-selector-button:hover {
  background-color: #e6004c;
  background-color: var(--wysi-hover, #e6004c);
}

.wysi-modal-preview {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-top: 8px;
  border: 1px dashed #ced4da;
  border-radius: 6px;
  background-color: #f8f9fa;
  max-height: 140px;
  overflow: hidden;
  box-sizing: border-box;
}

.wysi-preview-img {
  max-width: 100%;
  max-height: 120px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 4px;
}

.wysi-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #dee2e6;
  background-color: #f8f9fa;
  box-sizing: border-box;
  flex-shrink: 0;
}

.wysi-modal-btn-cancel {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: #ffffff;
  color: #495057;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
}

.wysi-modal-btn-cancel:hover {
  background-color: #e9ecef;
  color: #212529;
  border-color: #adb5bd;
}

.wysi-modal-btn-save {
  height: 32px;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  background-color: #ff0055;
  background-color: var(--wysi-primary, #ff0055);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-transform: uppercase;
}

.wysi-modal-btn-save:hover {
  background-color: #e6004c;
  background-color: var(--wysi-hover, #e6004c);
  color: #ffffff;
}

.wysi-modal-btn-unlink {
  margin-right: auto;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dc3545;
  border-radius: 5px;
  background-color: transparent;
  color: #dc3545;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.wysi-modal-btn-unlink svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.wysi-modal-btn-unlink:hover {
  background-color: #dc3545;
  color: #ffffff;
}

.wysi-segmented {
  display: flex !important;
  position: relative;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 2px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background-color: #f1f3f5;
  box-sizing: border-box;
  align-items: stretch;
  gap: 2px;
}

.wysi-segmented:focus-within {
  outline: 2px solid #ff0055;
  outline: 2px solid var(--wysi-primary, #ff0055);
}

.wysi-segmented legend {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.wysi-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.wysi-segmented label {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  border-radius: 4px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.15s ease;
}

.wysi-segmented label:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #212529;
}

.wysi-segmented input:checked + label {
  background-color: #ff0055 !important;
  background-color: var(--wysi-primary, #ff0055) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: none !important;
}

.wysi-separator {
  width: 5px;
  height: 30px;
  margin-right: 10px;
  border-right: 1px solid #ccc;
}

.wysi-newline {
  flex-basis: 100%;
}

.wysi-editor {
  min-height: 200px;
  max-height: 200px;
  padding: 1em;
  outline: none;
  overflow: auto;
}

.wysi-autogrow .wysi-editor {
  max-height: none !important;
}

.wysi-editor > :first-child {
  margin-top: 0;
}

.wysi-editor blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 1.5em;
  padding-right: 1.5em;
  border-left: 3px solid #ccc;
  font-style: italic;
}

.wysi-editor img {
  cursor: pointer;
  max-width: 100%;
  height: auto;
  transition: outline 0.15s ease;
}

.wysi-editor img:hover {
  outline: 2px dashed #ff0055;
  outline: 2px dashed var(--wysi-primary);
  outline-offset: 1px;
}

.wysi-editor img.wysi-selected {
  outline: none !important;
}

/** Original Dark mode class (legacy) **/
.wysi-darkmode .wysi-toolbar {
  color: #fff;
  background-color: #222;
}

.wysi-darkmode .wysi-toolbar button:not([aria-pressed=true]) {
  color: #ddd;
}

.wysi-darkmode .wysi-listbox button[aria-expanded=true],
.wysi-darkmode .wysi-toolbar > button:focus,
.wysi-darkmode .wysi-toolbar > button:hover,
.wysi-darkmode .wysi-toolbar > div > button:focus,
.wysi-darkmode .wysi-toolbar > div > button:hover {
  background-color: #444;
}

.wysi-darkmode .wysi-toolbar button[aria-pressed=true]:hover {
  background-color: rgba(255, 0, 85, 0.1);
  background-color: var(--wysi-highlight);
  mix-blend-mode: difference;
}

.wysi-darkmode .wysi-listbox div,
.wysi-darkmode .wysi-popover div {
  background-color: #444;
}

.wysi-darkmode .wysi-listbox div button:focus {
  background-color: #222;
}

.wysi-darkmode .wysi-popover div:before {
  border-bottom-color: #444;
}

.wysi-darkmode .wysi-popover div button:not(:last-of-type):hover,
.wysi-darkmode .wysi-popover div button:not(:last-of-type):focus {
  color: #444;
}

.wysi-darkmode .wysi-separator {
  border-color: #444;
}

.wysi-autohide.wysi-darkmode:focus-within .wysi-toolbar {
  outline-color: #111;
}

/* ==========================================================================
   PiruAdmin Design System Overrides & Bootstrap 5 Dark Mode
   ========================================================================== */
:root {
  --wysi-primary: #ff0055;
  --wysi-hover: #e6004c;
  --wysi-highlight: rgba(255, 0, 85, 0.1);
}

.wysi-wrapper {
  border: 1px solid #dee2e6 !important;
  border-radius: 0.375rem !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

.wysi-wrapper:focus-within {
  border-color: #ff0055 !important;
  border-color: var(--wysi-primary) !important;
}

.wysi-toolbar {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6 !important;
  padding: 8px !important;
}

.wysi-toolbar button {
  color: #212529 !important;
  border-radius: 4px !important;
  transition: all 0.2s ease;
}

.wysi-toolbar button:hover {
  background-color: #e9ecef !important;
}

.wysi-toolbar button[aria-pressed=true] {
  background-color: rgba(255, 0, 85, 0.1) !important;
  background-color: var(--wysi-highlight) !important;
}

.wysi-editor {
  padding: 1.5rem !important;
  min-height: 350px;
}

/* --- Bootstrap 5 Dark Mode Integration --- */
[data-bs-theme=dark] .wysi-wrapper {
  border-color: #333333 !important;
  background-color: #1a1a1a !important;
}

[data-bs-theme=dark] .wysi-toolbar {
  background-color: #2a2a2a !important;
  border-color: #333333 !important;
}

[data-bs-theme=dark] .wysi-toolbar button {
  color: #e0e0e0 !important;
}

[data-bs-theme=dark] .wysi-toolbar button:hover {
  background-color: #333333 !important;
}

[data-bs-theme=dark] .wysi-editor {
  color: #e0e0e0;
}

[data-bs-theme=dark] .wysi-listbox div {
  background-color: #2a2a2a !important;
  border: 1px solid #444444 !important;
  color: #e0e0e0 !important;
  box-shadow: none !important;
}

/* Fix for Listbox (Dropdown) in Dark Mode */
[data-bs-theme=dark] .wysi-listbox > button {
  background-color: transparent !important;
  color: #e0e0e0 !important;
}

[data-bs-theme=dark] .wysi-listbox > button:hover,
[data-bs-theme=dark] .wysi-listbox > button:focus,
[data-bs-theme=dark] .wysi-listbox button[aria-expanded=true] {
  background-color: #333333 !important;
  color: #ffffff !important;
}

[data-bs-theme=dark] .wysi-listbox div button:focus,
[data-bs-theme=dark] .wysi-listbox div button:hover {
  background-color: #444444 !important;
  color: #ffffff !important;
}

/* Fix for Modal Dialog in Dark Mode */
[data-bs-theme=dark] .wysi-modal-backdrop {
  background-color: rgba(0, 0, 0, 0.82) !important;
}

[data-bs-theme=dark] .wysi-modal-dialog {
  background-color: #1f1f1f !important;
  border-color: #383838 !important;
  color: #e0e0e0 !important;
  box-shadow: none !important;
}

[data-bs-theme=dark] .wysi-modal-header,
[data-bs-theme=dark] .wysi-modal-footer {
  background-color: #262626 !important;
  border-color: #383838 !important;
}

[data-bs-theme=dark] .wysi-modal-title {
  color: #ffffff !important;
}

[data-bs-theme=dark] .wysi-modal-close {
  color: #adb5bd !important;
}

[data-bs-theme=dark] .wysi-modal-close:hover {
  background-color: #333333 !important;
  color: #ffffff !important;
}

[data-bs-theme=dark] .wysi-modal-label {
  color: #e0e0e0 !important;
}

[data-bs-theme=dark] .wysi-modal-input,
[data-bs-theme=dark] .wysi-file-input {
  background-color: #141414 !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

[data-bs-theme=dark] .wysi-modal-input:focus {
  border-color: #ff0055 !important;
  border-color: var(--wysi-primary, #ff0055) !important;
}

[data-bs-theme=dark] .wysi-modal-preview {
  background-color: #141414 !important;
  border-color: #444444 !important;
}

[data-bs-theme=dark] .wysi-modal-btn-cancel {
  background-color: #2a2a2a !important;
  border-color: #444444 !important;
  color: #e0e0e0 !important;
}

[data-bs-theme=dark] .wysi-modal-btn-cancel:hover {
  background-color: #383838 !important;
  color: #ffffff !important;
  border-color: #555555 !important;
}

[data-bs-theme=dark] .wysi-modal-btn-unlink {
  border-color: #ea868f !important;
  color: #ea868f !important;
}

[data-bs-theme=dark] .wysi-modal-btn-unlink:hover {
  background-color: #5c1e24 !important;
  color: #ffffff !important;
}

[data-bs-theme=dark] .wysi-segmented {
  background-color: #141414 !important;
  border-color: #444444 !important;
}

[data-bs-theme=dark] .wysi-segmented label {
  color: #aaaaaa !important;
}

[data-bs-theme=dark] .wysi-segmented label:hover {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

[data-bs-theme=dark] .wysi-segmented input:checked + label {
  color: #ffffff !important;
  background-color: #ff0055 !important;
  background-color: var(--wysi-primary, #ff0055) !important;
}

.wysi-editor.wysi-dragover {
  outline: 2px dashed #ff0055 !important;
  outline: 2px dashed var(--wysi-primary) !important;
  outline-offset: -4px;
  background-color: rgba(255, 0, 85, 0.1) !important;
  background-color: var(--wysi-highlight) !important;
}

[data-bs-theme=dark] .wysi-file-input::file-selector-button {
  background-color: #ff0055 !important;
  background-color: var(--wysi-primary) !important;
  color: #ffffff !important;
}

[data-bs-theme=dark] .wysi-file-input::file-selector-button:hover {
  background-color: #e6004c !important;
  background-color: var(--wysi-hover) !important;
}

/* ==========================================================================
   Image Resizer Overlay & Floating Action Toolbar
   ========================================================================== */
.wysi-image-resizer {
  position: absolute;
  z-index: 1040;
  pointer-events: none;
  box-sizing: border-box;
}

.wysi-resizer-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ff0055;
  border: 1px solid var(--wysi-primary, #ff0055);
  box-sizing: border-box;
  pointer-events: none;
}

.wysi-resizer-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #000000;
  border: 1px solid #ffffff;
  pointer-events: auto;
  box-sizing: border-box;
  z-index: 2;
}

.wysi-handle-nw {
  top: -4px;
  left: -4px;
  cursor: nwse-resize;
}

.wysi-handle-ne {
  top: -4px;
  right: -4px;
  cursor: nesw-resize;
}

.wysi-handle-se {
  bottom: -4px;
  right: -4px;
  cursor: nwse-resize;
}

.wysi-handle-sw {
  bottom: -4px;
  left: -4px;
  cursor: nesw-resize;
}

/* Dimension Badge Overlay */
.wysi-resizer-info {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 3px 6px;
  background-color: rgba(33, 37, 41, 0.88);
  color: #ffffff;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.wysi-info-current {
  font-weight: 600;
}

.wysi-info-original {
  font-size: 10px;
  opacity: 0.85;
}

/* Floating Toolbar */
.wysi-image-toolbar {
  position: absolute;
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 3px;
  pointer-events: auto;
  z-index: 1050;
  white-space: nowrap;
  box-sizing: border-box;
}

.wysi-image-toolbar.wysi-toolbar-below {
  top: calc(100% + 8px);
}

.wysi-image-toolbar.wysi-toolbar-above {
  bottom: calc(100% + 8px);
}

/* Tooltip arrow */
.wysi-toolbar-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.wysi-toolbar-below .wysi-toolbar-arrow {
  top: -6px;
  border-bottom: 6px solid #dee2e6;
}

.wysi-toolbar-below .wysi-toolbar-arrow::after {
  content: "";
  position: absolute;
  top: 1px;
  left: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #ffffff;
}

.wysi-toolbar-above .wysi-toolbar-arrow {
  bottom: -6px;
  border-top: 6px solid #dee2e6;
}

.wysi-toolbar-above .wysi-toolbar-arrow::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #ffffff;
}

/* Button groups */
.wysi-img-btn-group {
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
}

.wysi-img-btn-group:not(:last-child) {
  border-right: 1px solid #dee2e6;
  margin-right: 2px;
  padding-right: 4px;
}

.wysi-img-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 2px 7px;
  border: 0;
  border-radius: 4px;
  background-color: transparent;
  color: #495057;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.wysi-img-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  pointer-events: none;
}

.wysi-img-btn:hover {
  background-color: #f1f3f5;
  color: #212529;
}

.wysi-img-btn.active {
  background-color: rgba(255, 0, 85, 0.1);
  background-color: var(--wysi-highlight, rgba(255, 0, 85, 0.1));
  color: #ff0055;
  color: var(--wysi-primary, #ff0055);
}

.wysi-img-btn-danger:hover {
  background-color: #ffeef0;
  color: #dc3545;
}

body.wysi-resizing {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Dark Mode support for Image Resizer & Toolbar */
[data-bs-theme=dark] .wysi-resizer-box {
  border-color: #ff0055;
  border-color: var(--wysi-primary, #ff0055);
}

[data-bs-theme=dark] .wysi-resizer-handle {
  background-color: #ffffff;
  border-color: #000000;
}

[data-bs-theme=dark] .wysi-image-toolbar {
  background-color: #2a2a2a;
  border-color: #444444;
}

[data-bs-theme=dark] .wysi-toolbar-below .wysi-toolbar-arrow {
  border-bottom-color: #444444;
}

[data-bs-theme=dark] .wysi-toolbar-below .wysi-toolbar-arrow::after {
  border-bottom-color: #2a2a2a;
}

[data-bs-theme=dark] .wysi-toolbar-above .wysi-toolbar-arrow {
  border-top-color: #444444;
}

[data-bs-theme=dark] .wysi-toolbar-above .wysi-toolbar-arrow::after {
  border-top-color: #2a2a2a;
}

[data-bs-theme=dark] .wysi-img-btn-group:not(:last-child) {
  border-right-color: #444444;
}

[data-bs-theme=dark] .wysi-img-btn {
  color: #e0e0e0;
}

[data-bs-theme=dark] .wysi-img-btn:hover {
  background-color: #383838;
  color: #ffffff;
}

[data-bs-theme=dark] .wysi-img-btn.active {
  background-color: rgba(255, 0, 85, 0.2);
  color: #ff4d88;
}

[data-bs-theme=dark] .wysi-img-btn-danger:hover {
  background-color: #442024;
  color: #ea868f;
}
