.button {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  label.button {
    margin-bottom: 0;
  }
  
  .d-flex > .button {
    flex: 1;
  }
  
  .carbonads {
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    overflow: hidden;
    padding: 1rem;
  }
  
  .carbon-wrap {
    overflow: hidden;
  }
  
  .carbon-img {
    clear: left;
    display: block;
    float: left;
  }
  
  .carbon-text,
  .carbon-poweredby {
    display: block;
    margin-left: 140px;
  }
  
  .carbon-text,
  .carbon-text:hover,
  .carbon-text:focus {
    color: #fff;
    text-decoration: none;
  }
  
  .carbon-poweredby,
  .carbon-poweredby:hover,
  .carbon-poweredby:focus {
    color: #ddd;
    text-decoration: none;
  }
  
  @media (min-width: 768px) {
    .carbonads {
      float: right;
      margin-bottom: -1rem;
      margin-top: -1rem;
      max-width: 360px;
    }
  }
  
  .footer {
    font-size: 0.875rem;
  }
  
  .heart {
    color: #ddd;
    display: block;
    height: 2rem;
    line-height: 2rem;
    margin-bottom: 0;
    margin-top: 1rem;
    position: relative;
    text-align: center;
    width: 100%;
  }
  
  .heart:hover {
    color: #ff4136;
  }
  
  .heart::before {
    border-top: 1px solid #eee;
    content: " ";
    display: block;
    height: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
  }
  
  .heart::after {
    background-color: #fff;
    content: "♥";
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    position: relative;
    z-index: 1;
  }
  
  .docs-demo {
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 2px;
  }
  
  .img-container,
  .img-preview {
    min-height: 550px;
    background-color: #f7f7f7;
    text-align: center;
    width: 100%;
  }
  
  .cropper-container,
  .img-container {
    max-height: 70vh; /* Max height of cropper */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
  }
  
  .cropper-canvas img {
    display: block;
    margin: auto; /* Center the image */
    max-height: 550px; /* Set cropped image height */
    object-fit: contain; /* Ensure the image fits within the container */
  }

  @media (max-width: 781px) {
    .img-container,
    .img-preview {
      min-height: 360px;
      max-height: 70vh;     /* fallback for browsers without dvh */
      max-height: 70dvh;    /* stable across iOS URL-bar show/hide */
    }
  }
  
  .img-container > img {
    max-width: 100%;
    width: 100%;
  }
  
  .docs-preview {
    margin-right: -1rem;
  }
  
  .img-preview {
    float: left;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    overflow: hidden;
  }
  
  .img-preview > img {
    max-width: 100%;
  }
  
  .preview-lg {
    height: 9rem;
    width: 16rem;
  }
  
  .preview-md {
    height: 4.5rem;
    width: 8rem;
  }
  
  .preview-sm {
    height: 2.25rem;
    width: 4rem;
  }
  
  .preview-xs {
    height: 1.125rem;
    margin-right: 0;
    width: 2rem;
  }
  
  .docs-data > .input-group {
    margin-bottom: 0.5rem;
  }
  
  .docs-data .input-group-prepend .input-group-text {
    min-width: 4rem;
  }
  
  .docs-data .input-group-append .input-group-text {
    min-width: 3rem;
  }

  .actions {
    background-color: #fff;
  }
  
  .docs-buttons > .button,
  .docs-buttons > .button-group,
  .docs-buttons > .form-control {
    margin-bottom: 0.5rem;
    margin-right: 0.25rem;
    background-color: #fff;
  }
  
  .docs-toggles > .button,
  .docs-toggles > .button-group,
  .docs-toggles > .dropdown {
    margin-bottom: 0.5rem;
  }
  
  .docs-tooltip {
    display: block;
    margin: -0.5rem -0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .docs-tooltip > .icon {
    margin: 0 -0.25rem;
    vertical-align: top;
  }
  
  .tooltip-inner {
    white-space: normal;
  }
  
  .button-upload .tooltip-inner,
  .button-toggle .tooltip-inner {
    white-space: nowrap;
  }
  
  .button-toggle {
    padding: 0.5rem;
  }
  
  .button-toggle > .docs-tooltip {
    margin: -0.5rem;
    padding: 0.5rem;
  }
  
  @media (max-width: 400px) {

    .crop-editor-buttons-container {
      flex-direction: column;
      gap: 5px;
    }

    .orientation-button-group {
      justify-content: center !important;
      display: flex;
      gap: 5px;
    }

    .button-group-crop {
      margin-right: -1rem !important;
    }
  
    .button-group-crop > .button {
      padding-left: 0.5rem;
      padding-right: 0.5rem;
    }
  
    .button-group-crop .docs-tooltip {
      margin-left: -0.5rem;
      margin-right: -0.5rem;
      padding-left: 0.5rem;
      padding-right: 0.5rem;
    }
  }
  
  .docs-options .dropdown-menu {
    width: 100%;
  }
  
  .docs-options .dropdown-menu > li {
    font-size: 0.875rem;
    padding: 0.125rem 1rem;
  }
  
  .docs-options .dropdown-menu .form-check-label {
    display: block;
  }
  
  .docs-cropped .modal-body {
    text-align: center;
  }
  
  .docs-cropped .modal-body > img,
  .docs-cropped .modal-body > canvas {
    max-width: 100%;
  }

  .heic-converting {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: all;
  }

  .heic-converting.is-active {
    display: flex;
  }

  .heic-converting-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .heic-converting-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: heic-converting-spin 0.8s linear infinite;
  }

  .heic-converting-text {
    font-size: 1rem;
    color: #333;
  }

  @keyframes heic-converting-spin {
    to { transform: rotate(360deg); }
  }

  .cropper-point {
    background-color: var(--wp--preset--color--vivid-red) !important;
  }