.property-media-upload-dialog,
.property-media-upload-dialog *,
.property-media-upload-dialog *::before,
.property-media-upload-dialog *::after {
  box-sizing: border-box;
}

.action-dialog-overlay.property-media-upload-overlay {
  padding: var(--property-media-upload-overlay-padding, 24px);
  background: rgb(15 23 42 / 48%);
  backdrop-filter: blur(6px);
}

.property-media-upload-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1336px, var(--property-media-upload-max-width, calc(100vw - 112px)));
  max-width: var(--property-media-upload-max-width, calc(100vw - 112px));
  max-height: var(--property-media-upload-max-height, calc(100vh - 48px));
  gap: 0;
  overflow: hidden;
  padding: 36px 40px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(15 23 42 / 12%);
  zoom: var(--property-media-upload-zoom, 1);
}

.property-media-upload-dialog > header {
  min-width: 0;
  align-items: flex-start;
  gap: 24px;
}

.property-media-upload-dialog > header > div {
  min-width: 0;
}

.property-media-upload-dialog .eyebrow {
  margin: 0 0 8px;
  color: #667085;
  font-size: var(--property-media-upload-font-eyebrow, 14px);
  font-weight: 600;
  line-height: var(--property-media-upload-line-eyebrow, 1.4);
}

.property-media-upload-dialog #actionDialogTitle {
  margin: 0;
  color: #101828;
  font-size: var(--property-media-upload-font-title, clamp(24px, 2vw, 28px));
  font-weight: 700;
  line-height: var(--property-media-upload-line-title, 1.25);
}

.property-media-upload-dialog #actionDialogTitle:focus {
  outline: none;
}

.property-media-upload-dialog #actionDialogDescription {
  min-width: 0;
  margin: var(--property-media-upload-description-margin-top, 8px) 0 var(--property-media-upload-description-margin-bottom, 44px);
  color: #667085;
  font-size: var(--property-media-upload-font-description, 16px);
  line-height: var(--property-media-upload-line-description, 1.5);
  white-space: normal;
}

.property-media-upload-dialog > header .icon-back-button.compact {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #475467;
  box-shadow: none;
  font-weight: 400;
}

.property-media-upload-dialog > header .icon-back-button.compact:hover,
.property-media-upload-dialog > header .icon-back-button.compact:focus-visible {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #101828;
}

.property-media-upload-dialog > header .icon-back-button.compact span {
  font-size: var(--property-media-upload-font-close, 28px);
  font-weight: 300;
  line-height: var(--property-media-upload-line-close, 1);
}

.property-media-upload-dialog #actionDialogFields {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 2px 2px 0;
  scrollbar-gutter: auto;
}

.property-media-upload-shell {
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.property-media-upload-shell > [id] {
  width: 100%;
  min-width: 0;
}

.property-media-upload-shell .uppy-Dashboard {
  width: 100% !important;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.property-media-upload-shell .uppy-Dashboard-inner {
  width: 100% !important;
  min-height: 324px !important;
  height: 324px !important;
  max-height: none;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fafcff;
  box-shadow: none;
}

.property-media-upload-shell .uppy-Dashboard-innerWrap {
  display: block;
  position: relative;
  height: 100%;
  padding: 14px;
}

.property-media-upload-shell .uppy-Dashboard-AddFiles {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 35px 24px 64px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: transparent;
}

.property-media-upload-dialog .property-media-upload-shell .uppy-Dashboard-AddFiles-title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  color: #101828;
  font-size: var(--property-media-upload-font-add-title, 22px);
  font-weight: 600;
  line-height: var(--property-media-upload-line-add-title, 1.5);
  text-align: center;
}

.property-media-upload-shell .uppy-Dashboard-AddFiles-title::before {
  display: block;
  width: 120px;
  height: 88px;
  margin: 0 auto 12px;
  content: "";
  background-color: transparent;
  background-image: url("/assets/media-upload-cloud.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 120px 88px;
}

.property-media-upload-shell .uppy-Dashboard-browse {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.property-media-upload-shell .uppy-Dashboard-AddFiles-list {
  flex: 0 0 auto;
  height: 0;
  min-height: 0;
  overflow: hidden;
}

.property-media-upload-shell .uppy-Dashboard-AddFiles-info {
  display: block !important;
  position: static !important;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 0 !important;
  color: #98a2b3;
  font-size: var(--property-media-upload-font-add-note, 14px);
  line-height: var(--property-media-upload-line-add-note, 1.5);
}

.property-media-upload-shell .uppy-Dashboard-progressindicators {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  left: 16px;
}

.property-media-upload-shell .uppy-Dashboard-progress,
.property-media-upload-shell .uppy-StatusBar-progress {
  height: 6px;
  border-radius: 999px;
  background: #eef2f6;
}

.property-media-upload-shell .uppy-Dashboard-progressBarContainer,
.property-media-upload-shell .uppy-StatusBar-progressInner {
  border-radius: 999px;
  background: #2563eb;
}

.property-media-upload-shell .uppy-StatusBar {
  min-height: 48px;
  height: 48px;
  margin-top: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  box-shadow: none;
}

.property-media-upload-shell .uppy-StatusBar.is-waiting {
  opacity: 0;
}

.property-media-upload-shell .uppy-StatusBar-actionBtn--upload {
  visibility: hidden;
  pointer-events: none;
}

.property-media-upload-dialog .property-media-upload-footer-action {
  display: inline-flex;
  min-width: 136px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: var(--property-media-upload-font-footer-action, 14px);
  font-weight: 600;
  line-height: var(--property-media-upload-line-footer-action, 1);
}

.property-media-upload-dialog .property-media-upload-footer-action:hover,
.property-media-upload-dialog .property-media-upload-footer-action:focus-visible {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
}

.property-media-upload-dialog .property-media-upload-footer-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.property-media-selected-section {
  display: grid;
  gap: var(--property-media-upload-section-gap, 22px);
  margin-top: var(--property-media-upload-section-margin-top, 28px);
  min-width: 0;
}

.property-media-selected-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.property-media-upload-dialog .property-media-selected-header h3 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #101828;
  font-size: var(--property-media-upload-font-section-title, 18px);
  font-weight: 600;
  line-height: var(--property-media-upload-line-section-title, 1.4);
}

.property-media-upload-dialog .property-media-clear-all {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font: inherit;
  font-size: var(--property-media-upload-font-clear-all, 16px);
}

.property-media-upload-dialog .property-media-clear-all::before {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  content: "";
  background: url("/assets/media-trash.svg") center / contain no-repeat;
}

.property-media-upload-dialog .property-media-clear-all svg {
  width: 20px;
  height: 20px;
}

.property-media-upload-dialog .property-media-clear-all:hover,
.property-media-upload-dialog .property-media-clear-all:focus-visible {
  color: #344054;
}

.property-media-upload-dialog .property-media-clear-all[hidden] {
  display: none;
}

.property-media-upload-dialog .property-media-file-count {
  display: inline-flex;
  min-width: 28px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: var(--property-media-upload-font-count, 14px);
  font-weight: 600;
  line-height: var(--property-media-upload-line-count, 1);
}

.property-media-file-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 300px));
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 0;
}

.property-media-file-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.property-media-file-thumb {
  display: block;
  width: 100%;
  height: 203px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f8;
}

.property-media-upload-dialog .property-media-file-name {
  min-width: 0;
  height: 20px;
  margin: 0;
  overflow: hidden;
  color: #475467;
  font-size: var(--property-media-upload-font-file-name, 13px);
  line-height: var(--property-media-upload-line-file-name, 20px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-media-file-type {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
}

.property-media-file-type-label {
  display: none;
}

.property-media-upload-dialog .property-media-file-type .property-media-file-type-select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 36px 0 36px;
  appearance: none;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2' y='2' width='12' height='12' rx='2' stroke='%23667085' stroke-width='1.2'/%3E%3Cpath d='M4.5 10.5 7 8l2 2 1.5-1.5 1 2' stroke='%23667085' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23475467' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: 12px center, right 11px center;
  background-repeat: no-repeat, no-repeat;
  background-size: 16px 16px, 16px 16px;
  color: #344054;
  font: inherit;
  font-size: var(--property-media-upload-font-file-type, 14px);
  line-height: var(--property-media-upload-line-file-type, 1.4);
  text-overflow: ellipsis;
}

.property-media-file-type-select:hover {
  border-color: #98a2b3;
}

.property-media-file-type-select:focus-visible {
  border-color: #2563eb;
  outline: 3px solid rgb(37 99 235 / 16%);
  outline-offset: 0;
}

.property-media-file-type-select:invalid {
  border-color: #d0d5dd;
}

.property-media-upload-dialog .property-media-file-edit {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  padding: 5px 8px;
  border: 1px solid rgb(37 99 235 / 20%);
  border-radius: 6px;
  background: rgb(255 255 255 / 92%);
  color: #2563eb;
  cursor: pointer;
  font: inherit;
  font-size: var(--property-media-upload-font-file-name, 13px);
  font-weight: 600;
  box-shadow: 0 2px 6px rgb(15 23 42 / 10%);
}

.property-media-upload-dialog .property-media-file-edit:hover,
.property-media-upload-dialog .property-media-file-edit:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
}

.property-media-upload-dialog .property-media-file-edit:disabled,
.property-media-upload-dialog .property-media-file-remove:disabled,
.property-media-upload-dialog .property-media-clear-all:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.property-media-upload-dialog .property-media-file-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(17 24 39 / 65%);
  color: #fff;
  cursor: pointer;
  font-size: var(--property-media-upload-font-remove, 22px);
  line-height: var(--property-media-upload-line-remove, 1);
}

.property-media-upload-dialog .property-media-file-remove:hover,
.property-media-upload-dialog .property-media-file-remove:focus-visible {
  background: rgb(17 24 39 / 82%);
  outline: 0;
}

.property-media-file-card[data-state="failed"] {
  outline: 2px solid #dc2626;
  outline-offset: -2px;
}

.property-media-upload-dialog .property-media-upload-status {
  min-height: 20px;
  margin: 0;
  color: #667085;
  font-size: var(--property-media-upload-font-status, 14px);
  line-height: var(--property-media-upload-line-status, 20px);
}

.property-media-upload-dialog .property-media-upload-status[data-state="processing"] {
  color: #8a5a00;
}

.property-media-upload-dialog .property-media-upload-status[data-state="ready"] {
  color: #176c4a;
  padding: 12px 16px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 8px;
  font-weight: 600;
}

.property-media-upload-dialog .property-media-upload-status[data-state="failed"] {
  color: #b42318;
  font-weight: 600;
}

.property-media-upload-dialog .property-media-upload-footer-action[hidden] {
  display: none;
}

.property-media-upload-dialog .confirm-actions {
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eaecf0;
}

.property-media-upload-dialog .confirm-actions > button {
  min-width: 96px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: var(--property-media-upload-font-footer-button, 14px);
  font-weight: 600;
}

.property-media-upload-dialog .confirm-actions > #actionDialogConfirm {
  display: none;
}

.property-media-upload-dialog .confirm-cancel {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.property-media-upload-dialog .confirm-cancel:hover,
.property-media-upload-dialog .confirm-cancel:focus-visible {
  background: #f8fafc;
}

.property-media-upload-dialog .confirm-actions > .primary-action {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.property-media-upload-dialog .confirm-actions > .primary-action:hover,
.property-media-upload-dialog .confirm-actions > .primary-action:focus-visible {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.action-dialog-overlay.property-media-upload-overlay.property-media-upload-compact {
  padding: var(--property-media-upload-compact-overlay-padding, 12px);
}

.property-media-upload-dialog.property-media-upload-compact {
  padding: 22px 20px 18px;
}

.property-media-upload-dialog.property-media-upload-compact #actionDialogDescription {
  margin-bottom: 18px;
  font-size: var(--property-media-upload-font-description-compact, 14px);
  line-height: var(--property-media-upload-line-description-compact, 1.5);
}

.property-media-upload-dialog.property-media-upload-compact .property-media-upload-shell {
  gap: 20px;
}

.property-media-upload-dialog.property-media-upload-compact .property-media-file-wall {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.property-media-upload-dialog.property-media-upload-narrow {
  padding: 18px 16px 16px;
}

.property-media-upload-dialog.property-media-upload-narrow > header .icon-back-button.compact {
  flex-basis: 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}

.property-media-upload-dialog.property-media-upload-narrow #actionDialogTitle {
  font-size: var(--property-media-upload-font-title-narrow, 24px);
  line-height: var(--property-media-upload-line-title-narrow, 1.25);
}

.property-media-upload-dialog.property-media-upload-narrow #actionDialogDescription {
  font-size: var(--property-media-upload-font-description-narrow, 16px);
  line-height: var(--property-media-upload-line-description-narrow, 1.5);
}

.property-media-upload-dialog.property-media-upload-narrow .property-media-upload-shell .uppy-Dashboard-inner,
.property-media-upload-dialog.property-media-upload-narrow .property-media-upload-shell .uppy-Dashboard-AddFiles {
  min-height: 190px !important;
}

.property-media-upload-dialog.property-media-upload-narrow .property-media-upload-shell .uppy-Dashboard-AddFiles {
  padding: 18px;
}

.property-media-upload-dialog.property-media-upload-narrow .property-media-upload-shell .uppy-Dashboard-AddFiles-title {
  font-size: var(--property-media-upload-font-add-title-narrow, 17px);
  line-height: var(--property-media-upload-line-add-title-narrow, 1.5);
}

.property-media-upload-dialog.property-media-upload-narrow .confirm-actions > button {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 14px;
}
