.filepond--panel.filepond--panel-root * {
  background-color: transparent !important;
}


.image-upload-field-container .filepond--list-scroller {
  pointer-events: none !important;
}

.image-upload-field-container div:empty {
  display: revert !important;
}

.image-upload-field-container .filepond--list-scroller .filepond--file {
  display: flex !important;
}


.image-upload-field-container .filepond--list-scroller ul * {
  font-size: 14px !important;
}

.image-upload-field-container .filepond--list-scroller .filepond--file-action-button {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Uppy Image Editor Modal Styles */
#uppy-image-editor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.5);
}

#uppy-image-editor-modal .uppy-Dashboard-inner {
  max-width: 90vw;
  max-height: 90vh;
  margin: 5vh auto;
}

.uppy-DashboardContent-back {
  visibility: hidden !important;
}

/* FilePond Edit Button Styles */
.filepond--edit-button {
  position: absolute;
  top: 0.5em;
  right: 3.5em;
  width: 2em;
  height: 2em;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3em;
  transition: all 0.2s ease;
  z-index: 999 !important;
  pointer-events: auto !important;
}

.filepond--edit-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.filepond--edit-button:active {
  transform: scale(0.95);
}

.filepond--edit-button svg {
  width: 100%;
  height: 100%;
}

/* Uppy Dashboard Custom Styles */
.uppy-Dashboard-inner {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.uppy-Dashboard-innerWrap {
  border-radius: 8px;
  overflow: hidden;
}

/* Image Editor within Uppy */
.uppy-ImageEditor-container {
  background-color: #f5f5f5;
}

/* Uppy close button */
.uppy-Dashboard-close {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background-color 0.2s ease;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 1px;
}

.uppy-Dashboard-close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* ============================================
   POLARIS COMPONENTS STYLES
   Styles for Polaris-like form components
   Only applied within .image-upload-other-fields-wrapper for safety
   ============================================ */

/* Global reset for Polaris components */
.image-upload-other-fields-wrapper .polaris-text-field *,
.image-upload-other-fields-wrapper .polaris-checkbox *,
.image-upload-other-fields-wrapper .polaris-radio *,
.image-upload-other-fields-wrapper .polaris-select *,
.image-upload-other-fields-wrapper .polaris-radio-group *,
.image-upload-other-fields-wrapper .polaris-checkbox-group * {
  box-sizing: border-box;
}

/* ============================================
   TEXT FIELD COMPONENT
   ============================================ */

.image-upload-other-fields-wrapper .polaris-text-field__label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: #202223;
  margin-bottom: 4px;
}

.image-upload-other-fields-wrapper .polaris-text-field__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.image-upload-other-fields-wrapper .polaris-text-field__input {
  flex: 1;
  width: 100%;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #202223;
  background-color: #ffffff;
  border: 1px solid #8c9196;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.image-upload-other-fields-wrapper .polaris-text-field__input::placeholder {
  color: #8c9196;
  opacity: 1;
}

.image-upload-other-fields-wrapper .polaris-text-field__input:hover:not(:disabled) {
  border-color: #5c5f62;
}

.image-upload-other-fields-wrapper .polaris-text-field__input:focus {
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}

.image-upload-other-fields-wrapper .polaris-text-field__input:disabled {
  background-color: #f6f6f7;
  border-color: #c9cccf;
  color: #8c9196;
  cursor: not-allowed;
}

.image-upload-other-fields-wrapper .polaris-text-field__input.error {
  border-color: #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-text-field__input.error:focus {
  border-color: #d72c0d;
  box-shadow: 0 0 0 1px #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-text-field__help-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
  color: #616161;
}

.image-upload-other-fields-wrapper .polaris-text-field__error {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
  color: #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-text-field__input--multiline {
  min-height: 80px;
  resize: vertical;
  padding: 8px 12px;
}

@media screen and (max-width: 768px) {
  .image-upload-other-fields-wrapper .polaris-text-field__input {
    font-size: 16px;
  }
}

/* ============================================
   CHECKBOX COMPONENT
   ============================================ */

.image-upload-other-fields-wrapper .polaris-checkbox__wrapper {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.image-upload-other-fields-wrapper .polaris-checkbox__backdrop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background-color: #ffffff;
  border: 1.5px solid #8c9196;
  border-radius: 4px;
  transition: all 0.1s ease-in-out;
}

.image-upload-other-fields-wrapper .polaris-checkbox__wrapper:hover .polaris-checkbox__backdrop {
  border-color: #5c5f62;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input:focus+.polaris-checkbox__backdrop {
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input:checked+.polaris-checkbox__backdrop {
  background-color: #202223;
  border-color: #202223;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input:checked:hover+.polaris-checkbox__backdrop {
  background-color: #000000;
  border-color: #000000;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input:disabled+.polaris-checkbox__backdrop {
  background-color: #f6f6f7;
  border-color: #c9cccf;
  cursor: not-allowed;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input:checked:disabled+.polaris-checkbox__backdrop {
  background-color: #c9cccf;
  border-color: #c9cccf;
}

.image-upload-other-fields-wrapper .polaris-checkbox__icon {
  display: none;
  width: 12px;
  height: 12px;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input:checked+.polaris-checkbox__backdrop .polaris-checkbox__icon {
  display: block;
}

.image-upload-other-fields-wrapper .polaris-checkbox__label-wrapper {
  margin-left: 8px;
  flex: 1;
}

.image-upload-other-fields-wrapper .polaris-checkbox__label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #202223;
  cursor: pointer;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input:disabled~.polaris-checkbox__label-wrapper .polaris-checkbox__label {
  color: #8c9196;
  cursor: not-allowed;
}

.image-upload-other-fields-wrapper .polaris-checkbox__help-text {
  margin-top: 2px;
  font-size: 13px;
  line-height: 16px;
  color: #616161;
}

.image-upload-other-fields-wrapper .polaris-checkbox__error {
  margin-top: 2px;
  font-size: 13px;
  line-height: 16px;
  color: #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input.error+.polaris-checkbox__backdrop {
  border-color: #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-checkbox__input.error:focus+.polaris-checkbox__backdrop {
  border-color: #d72c0d;
  box-shadow: 0 0 0 1px #d72c0d;
}

/* Checkbox Group */
.image-upload-other-fields-wrapper .polaris-checkbox {
  margin-bottom: 8px;
}

.image-upload-other-fields-wrapper .polaris-checkbox-group__label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: #202223;
  margin-bottom: 12px;
}

/* ============================================
   RADIO BUTTON COMPONENT
   ============================================ */

.image-upload-other-fields-wrapper .polaris-radio {
  margin-bottom: 8px;
}

.image-upload-other-fields-wrapper .polaris-radio__wrapper {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
}

.image-upload-other-fields-wrapper .polaris-radio__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.image-upload-other-fields-wrapper .polaris-radio__backdrop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background-color: #ffffff;
  border: 1.5px solid #8c9196;
  border-radius: 50%;
  transition: all 0.1s ease-in-out;
}

.image-upload-other-fields-wrapper .polaris-radio__wrapper:hover .polaris-radio__backdrop {
  border-color: #5c5f62;
}

.image-upload-other-fields-wrapper .polaris-radio__input:focus+.polaris-radio__backdrop {
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}

.image-upload-other-fields-wrapper .polaris-radio__input:checked+.polaris-radio__backdrop {
  background-color: #202223;
  border-color: #202223;
}

.image-upload-other-fields-wrapper .polaris-radio__input:checked:hover+.polaris-radio__backdrop {
  background-color: #000000;
  border-color: #000000;
}

.image-upload-other-fields-wrapper .polaris-radio__input:disabled+.polaris-radio__backdrop {
  background-color: #f6f6f7;
  border-color: #c9cccf;
  cursor: not-allowed;
}

.image-upload-other-fields-wrapper .polaris-radio__input:checked:disabled+.polaris-radio__backdrop {
  background-color: #c9cccf;
  border-color: #c9cccf;
}

.image-upload-other-fields-wrapper .polaris-radio__dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.1s ease-in-out;
}

.image-upload-other-fields-wrapper .polaris-radio__input:checked+.polaris-radio__backdrop .polaris-radio__dot {
  opacity: 1;
  transform: scale(1);
}

.image-upload-other-fields-wrapper .polaris-radio__input:checked:hover+.polaris-radio__backdrop .polaris-radio__dot {
  background-color: #ffffff;
}

.image-upload-other-fields-wrapper .polaris-radio__input:checked:disabled+.polaris-radio__backdrop .polaris-radio__dot {
  background-color: #8c9196;
}

.image-upload-other-fields-wrapper .polaris-radio__label-wrapper {
  margin-left: 8px;
  flex: 1;
}

.image-upload-other-fields-wrapper .polaris-radio__label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #202223;
  cursor: pointer;
}

.image-upload-other-fields-wrapper .polaris-radio__input:disabled~.polaris-radio__label-wrapper .polaris-radio__label {
  color: #8c9196;
  cursor: not-allowed;
}

.image-upload-other-fields-wrapper .polaris-radio__help-text {
  margin-top: 2px;
  font-size: 13px;
  line-height: 16px;
  color: #616161;
}

.image-upload-other-fields-wrapper .polaris-radio__error {
  margin-top: 2px;
  font-size: 13px;
  line-height: 16px;
  color: #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-radio__input.error+.polaris-radio__backdrop {
  border-color: #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-radio__input.error:focus+.polaris-radio__backdrop {
  border-color: #d72c0d;
  box-shadow: 0 0 0 1px #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-radio-group__label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: #202223;
  margin-bottom: 12px;
}

/* ============================================
   SELECT BOX COMPONENT
   ============================================ */

.image-upload-other-fields-wrapper .polaris-select__label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: #202223;
  margin-bottom: 4px;
}

.image-upload-other-fields-wrapper .polaris-select__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.image-upload-other-fields-wrapper .polaris-select__select {
  flex: 1;
  width: 100%;
  min-height: 36px;
  padding: 7px 32px 7px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #202223;
  background-color: #ffffff;
  border: 1px solid #8c9196;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.image-upload-other-fields-wrapper .polaris-select__select option[value=""][disabled] {
  color: #8c9196;
}

.image-upload-other-fields-wrapper .polaris-select__select:hover:not(:disabled) {
  border-color: #5c5f62;
}

.image-upload-other-fields-wrapper .polaris-select__select:focus {
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}

.image-upload-other-fields-wrapper .polaris-select__select:disabled {
  background-color: #f6f6f7;
  border-color: #c9cccf;
  color: #8c9196;
  cursor: not-allowed;
}

.image-upload-other-fields-wrapper .polaris-select__select.error {
  border-color: #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-select__select.error:focus {
  border-color: #d72c0d;
  box-shadow: 0 0 0 1px #d72c0d;
}

.image-upload-other-fields-wrapper .polaris-select__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.image-upload-other-fields-wrapper .polaris-select__icon svg {
  width: 16px;
  height: 16px;
  fill: #5c5f62;
}

.image-upload-other-fields-wrapper .polaris-select__select:disabled~.polaris-select__icon svg {
  fill: #c9cccf;
}

.image-upload-other-fields-wrapper .polaris-select__help-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
  color: #616161;
}

.image-upload-other-fields-wrapper .polaris-select__error {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
  color: #d72c0d;
}

@media screen and (max-width: 768px) {
  .image-upload-other-fields-wrapper .polaris-select__select {
    font-size: 16px;
  }
}

/* ============================================
   OTHER FIELDS WRAPPER
   ============================================ */

.image-upload-other-fields-wrapper {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}