/**
 * ToolsLuv — Protect Pdf Mobile (P2C idle upload)
 * Hide desktop editor chrome + upload icon lock on idle mobile.
 */
.upload-format-desktop {
  display: inline;
}

@media (min-width: 761px) {
  .upload-format-mobile,
  .protect-m-upload-title,
  .protect-m-upload-subtitle,
  .protect-m-drag-helper {
    display: none;
  }
}

@media (max-width: 760px) {
  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] main[data-tool="protect-pdf"] .pdf-studio:not(.has-selected-file) .upload-format-desktop {
    display: none;
  }

  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] main[data-tool="protect-pdf"] .pdf-studio:not(.has-selected-file) .upload-format-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  /* Desktop editor topbar must not show on idle mobile upload */
  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] body.flux-tool-body.flux-tool-pdf-tools:not(.protect-mobile-editor-active) main#main#main.page-shell.tool-page[data-tool="protect-pdf"] .pdf-studio[data-pdf-tool="protect-pdf"]:not(.has-selected-file) > .protect-editor-topbar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] body.flux-tool-body.flux-tool-pdf-tools:not(.protect-mobile-editor-active) main#main#main.page-shell.tool-page[data-tool="protect-pdf"] .pdf-studio[data-pdf-tool="protect-pdf"]:not(.has-selected-file) label.upload-box[data-upload-box] > strong,
  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] body.flux-tool-body.flux-tool-pdf-tools:not(.protect-mobile-editor-active) main#main#main.page-shell.tool-page[data-tool="protect-pdf"] .pdf-studio[data-pdf-tool="protect-pdf"]:not(.has-selected-file) label.upload-box[data-upload-box] > small {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
  }

  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] body.flux-tool-body.flux-tool-pdf-tools:not(.protect-mobile-editor-active) main#main#main#main.page-shell.tool-page[data-tool="protect-pdf"] .pdf-studio[data-pdf-tool="protect-pdf"]:not(.has-selected-file) label.upload-box[data-upload-box] .upload-icon {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    margin: 0 auto 2.4px !important;
    padding: 0 !important;
    border: 1px solid rgba(254, 202, 202, 0.88) !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%) !important;
    color: #ef4444 !important;
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  }

  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] body.flux-tool-body.flux-tool-pdf-tools:not(.protect-mobile-editor-active) main#main#main#main.page-shell.tool-page[data-tool="protect-pdf"] .pdf-studio[data-pdf-tool="protect-pdf"]:not(.has-selected-file) label.upload-box[data-upload-box] .upload-icon::before {
    content: "" !important;
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    background: #ef4444 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M12 17V10'/%3E%3Cpath d='m8.5 13.5 3.5-3.5 3.5 3.5'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M12 17V10'/%3E%3Cpath d='m8.5 13.5 3.5-3.5 3.5 3.5'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] body.flux-tool-body.flux-tool-pdf-tools:not(.protect-mobile-editor-active) main#main#main#main.page-shell.tool-page[data-tool="protect-pdf"] .pdf-studio[data-pdf-tool="protect-pdf"]:not(.has-selected-file) label.upload-box[data-upload-box] .upload-icon svg,
  html[data-tl-mobile-shell="v1"][data-tl-mobile-upload="v1"] body.flux-tool-body.flux-tool-pdf-tools:not(.protect-mobile-editor-active) main#main#main#main.page-shell.tool-page[data-tool="protect-pdf"] .pdf-studio[data-pdf-tool="protect-pdf"]:not(.has-selected-file) label.upload-box[data-upload-box] .upload-icon i {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
