/* ========================================
   Post Form (Just Post) Page Styles
   Mirrors the Create Collection design language:
   pill .form-control inputs, .cltn-toggle pills,
   .upld-container drop-zone, .load-more primary action.
   ======================================== */

/* ----- Page wrapper ----- */
.post-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.post-page .post-form {
  flex: 1 0 auto;
  padding-bottom: 60px;
}

/* ----- Header ----- */
.post-header {
  margin-bottom: 24px;
  padding: 10px 0;
}
.post-header .post-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.01em;
}

/* ----- Form rhythm ----- */
.post-form .form-group {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}
.post-form .form-group:first-child {
  margin-top: 0 !important;
}

/* ----- Description textarea (override .form-control's 40px height) ----- */
.post-form-textarea {
  height: auto !important;
  min-height: 130px;
  border-radius: 18px !important;
  resize: none;
  padding: 12px 16px !important;
  line-height: 1.5;
  text-align: left;
}

/* ----- Gradient border on focus (override main.css's blue focus) ----- */
.post-form .form-control:focus,
.post-link-input:focus {
  border-color: transparent !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--linear-background) border-box !important;
  box-shadow:
    -3px 0 10px rgba(92, 20, 174, 0.18),
    3px 0 10px rgba(195, 55, 100, 0.18),
    0 -2px 8px rgba(92, 20, 174, 0.10),
    0 2px 8px rgba(195, 55, 100, 0.10);
}
.post-search-modal .search-bar:focus-within {
  background:
    linear-gradient(#f4f4f4, #f4f4f4) padding-box,
    var(--linear-background) border-box;
  border: 1.5px solid transparent;
}

/* ----- Section heading (Featured / Who can see it?) ----- */
.post-section-heading {
  margin: 0 0 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.005em;
}

/* ----- Upload media trigger inside .upld-container ----- */
.post-upload-trigger {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  text-align: center;
  width: 100%;
}
.post-upload-trigger img {
  display: block;
  margin: 0 auto;
}
.post-upload-trigger h5 {
  margin: 10px 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  line-height: 1.2;
}
.post-upload-trigger span {
  display: block;
  font-size: 11px;
  color: #888;
  line-height: 1.3;
}

/* ----- Featured cards (3-up action grid) ----- */
.post-featured {
  text-align: left;
}
.post-featured-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.post-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px 14px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    #ececec border-box;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  min-height: 122px;
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.post-featured-card:hover {
  opacity: 0.85;
}
.post-featured-card.is-active {
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--linear-background) border-box;
}
.post-featured-card.is-muted {
  opacity: 0.55;
}
.post-featured-card.is-muted:hover {
  opacity: 0.8;
}
.post-featured-card .card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(92, 20, 174, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5C14AE;
}
.post-featured-card .card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f4f4f4;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.post-featured-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-featured-card .card-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.post-featured-card .card-hint {
  font-size: 11px;
  color: #888;
  font-weight: 500;
}
.post-featured-card .card-name {
  font-size: 11px;
  color: #555;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  display: block;
}
.post-featured-card .card-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.post-featured-card .card-clear:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* ----- Web link input row ----- */
.post-link-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.post-link-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.15s ease;
}
.post-link-input:focus {
  border-color: #5C14AE;
}
.post-link-save {
  padding: 0 16px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--linear-background);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.post-link-save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ----- Visibility section ----- */
.post-visibility {
  text-align: left;
}
.post-visibility.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.post-visibility-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}
.post-visibility-row:last-child {
  margin-bottom: 0;
}
.post-visibility-row .post-visibility-label {
  flex: 1;
  color: #444;
}
.post-visibility-row .yes-no {
  width: 28px;
  margin-right: 12px;
  text-align: right;
  font-size: 12px;
  color: #888;
}

/* ----- Toggle switch ----- */
.post-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.post-toggle.post-toggle-active {
  background: var(--linear-background);
}
.post-toggle .post-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.post-toggle.post-toggle-active .post-toggle-thumb {
  left: 22px;
}

/* ----- Error message ----- */
.post-error {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  border-radius: 12px;
  text-align: center;
}

/* ----- Submission status overlay (submitting / pending / rejected) ----- */
.post-status-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.post-status-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.post-status-title {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
}
.post-status-text {
  margin: 0 0 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.45;
}
.post-status-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.post-status-primary,
.post-status-secondary {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.post-status-primary {
  background: var(--linear-background);
  color: #fff;
}
.post-status-secondary {
  background: #f3f3f3;
  color: #333;
}
.post-status-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid rgba(92, 20, 174, 0.15);
  border-top-color: #5C14AE;
  border-radius: 50%;
  animation: post-thumb-spin 0.8s linear infinite;
}
.post-status-success {
  display: block;
  margin: 0 auto;
  animation: post-status-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes post-status-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ----- Sticky bottom bar (media strip + Post button) -----
   Sticks to viewport bottom while scrolling, but stays strictly
   inside .post-page — never bleeds past form content.
   Explicit width:100% + box-sizing prevents any chance of
   horizontal overflow into the sidebar column. ----- */
.post-bottom-bar {
  position: sticky;
  bottom: 32px;
  z-index: 5;
  /* Match .post-page content box so the bar never bleeds wider than the form */
  width: 100%;
  max-width: 568px; /* 600px page max-width - 2 * 16px page padding */
  box-sizing: border-box;
  align-self: center;
  margin: 24px auto 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.post-bottom-inner {
  padding: 12px 14px;
}

/* ----- Mobile: lift bar above the fixed mobile-navbar + give form extra room ----- */
@media (max-width: 767px) {
  .post-page .post-form {
    padding-bottom: 240px;
  }
  .post-bottom-bar {
    bottom: 64px;
  }
}

/* ----- Media strip (fixed add tile + scrollable thumbs) ----- */
.post-media-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  min-width: 0;
}
.post-media-thumbs {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.post-media-thumbs::-webkit-scrollbar {
  display: none;
}

.post-add-tile {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 1px dashed #b3b3b3;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: #777;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.post-add-tile:hover {
  border-color: #5C14AE;
  background: #faf6ff;
}
.post-add-tile .add-label {
  font-size: 10px;
  white-space: nowrap;
  line-height: 1;
}

.post-thumb {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f3f3;
}
.post-thumb img,
.post-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.post-thumb-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.post-thumb-status.failed {
  background: rgba(220, 38, 38, 0.5);
}
.post-thumb-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-top-color: transparent;
  border-radius: 50%;
  animation: post-thumb-spin 0.8s linear infinite;
}
@keyframes post-thumb-spin {
  to { transform: rotate(360deg); }
}
.post-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.post-thumb-remove:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ----- Override .load-more for full-width Post button in bottom bar ----- */
.post-bottom-bar .load-more {
  width: 100%;
  margin-top: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.post-bottom-bar .load-more:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ----- Search modal (FeaturedSelector picker) ----- */
.post-search-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.post-search-modal .modal-card {
  background: #fff;
  width: 100%;
  max-width: 600px;
  height: 85vh;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}
.post-search-modal .grabber {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d6d6d6;
  margin: 8px auto 4px;
}
.post-search-modal .search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 16px 12px;
  padding: 8px 16px;
  background: #f4f4f4;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.post-search-modal .search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 14px;
  outline: none;
  color: #333;
}
.post-search-modal .close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.post-search-modal .results {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.post-search-modal .results-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #999;
}
.post-search-modal .results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) {
  .post-search-modal .modal-card { border-radius: 24px; max-width: 560px; }
  .post-search-modal { align-items: center; padding: 16px; }
  .post-search-modal .grabber { display: none; }
  .post-search-modal .results-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-result-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(#f4f4f4, #f4f4f4) padding-box,
    transparent border-box;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: background 0.15s ease;
}
.post-result-card:hover {
  background:
    linear-gradient(#f4f4f4, #f4f4f4) padding-box,
    var(--linear-background) border-box;
}
.post-result-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-result-card .caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.post-result-card .caption .title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-result-card .caption .sub {
  font-size: 10px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Picker (brand/product) header + selected state ----- */
.post-search-modal .picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 10px;
}
.post-search-modal .picker-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.post-search-modal .picker-done {
  background: var(--linear-background);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.post-search-modal .post-result-card.is-selected {
  box-shadow: 0 0 0 2px #5C14AE;
}
.post-search-modal .picker-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--linear-background);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ----- Thumb body button (real <button> for reliable click) ----- */
.post-thumb-body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
}
.post-thumb-body:disabled {
  cursor: default;
}
.post-thumb-body > video,
.post-thumb-body > img,
.post-thumb-body > span > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}
/* Decorative overlays must NOT swallow clicks meant for the body button. */
.post-thumb > .post-thumb-status,
.post-thumb > .post-thumb-tag-badge {
  pointer-events: none;
}
.post-thumb-tag-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--linear-background);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   Media Editor — full-screen popup that lets the user tag
   one brand and up to N products on a single media item.
   ============================================================ */

.media-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.media-editor {
  background: #fff;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 600px) {
  .media-editor-overlay {
    align-items: center;
    padding: 16px;
  }
  .media-editor {
    max-height: 92vh;
    border-radius: 24px;
  }
}

.media-editor-stage {
  position: relative;
  background: #000;
  height: 320px;
  max-height: calc(100vh - 280px);
  overflow: hidden;
  flex-shrink: 0;
}
.media-editor-stage img,
.media-editor-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.media-editor-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.media-editor-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
}
.media-editor-nav.prev { left: 12px; }
.media-editor-nav.next { right: 12px; }
.media-editor-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.media-editor-tags {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  min-height: 180px;
}
.tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 13px;
  color: #555;
  transition: opacity 0.15s ease;
}
.tag-row:hover {
  opacity: 0.75;
}
.tag-row .tag-row-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(89, 89, 89, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5C14AE;
  font-size: 18px;
}
.tag-row .tag-row-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-row .tag-row-clear {
  color: #999;
  font-size: 18px;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
  user-select: none;
}
.tag-row .tag-row-clear:hover {
  color: #b91c1c;
}

.tag-products-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
}
.tag-products-list .add-tile {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(89, 89, 89, 0.08);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5C14AE;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.tag-products-list .add-tile:hover {
  background: rgba(92, 20, 174, 0.12);
}
.tag-products-list .product-chip {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f4;
  flex-shrink: 0;
}
.tag-products-list .product-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tag-products-list .product-chip-remove {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.tag-products-list .product-chip:hover .product-chip-remove,
.tag-products-list .product-chip:focus-within .product-chip-remove {
  opacity: 1;
}
.tag-products-list .tag-products-count {
  margin-left: auto;
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.media-editor-actions {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 8px;
  padding: 10px 16px max(env(safe-area-inset-bottom), 14px);
  border-top: 1px solid #f0f0f0;
  background: #fff;
  flex-shrink: 0;
}
.media-editor-action {
  flex: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.media-editor-action:not(:disabled):hover {
  background: rgba(92, 20, 174, 0.06);
  color: #5C14AE;
}
.media-editor-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.media-editor-action.delete {
  color: #b91c1c;
}
.media-editor-action.delete:not(:disabled):hover {
  background: rgba(185, 28, 28, 0.06);
  color: #b91c1c;
}
