
.imgtool-stage {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #fdfdfd 0%, #f7f8fb 100%);
  padding: 56px 16px 80px;
  box-sizing: border-box;
}

.imgtool-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
  padding: 0 16px;
  box-sizing: border-box;
}

.imgtool-handwriting {
  display: block;
  width: min(185px, 45vw);
  height: auto;
  margin: 0 auto 7px;
  color: #272727;
  opacity: 0.78;
  transform: rotate(-2deg);
}

.imgtool-hero h1 {
  margin: 0;
  color: #111827;
  font-size: 35px;
  line-height: 1.2;
  font-weight: 700;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.imgtool-title-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 0.18em 0.06em;
}

.imgtool-title-highlight::after {
  content: "";
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  bottom: 0.08em;
  height: 0.36em;
  background: #9fc4ef;
  border-radius: 999px;
  z-index: -1;
  transform-origin: center;
}
.imgtool-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.imgtool-benefits {
  width: 100%;
  background: #ffffff;
  padding: 64px 16px;
  
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.imgtool-benefits,
.imgtool-benefits * {
  box-sizing: border-box;
}
.imgtool-benefits .imgtool-benefits-inner {
  max-width: 980px!important;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  box-sizing: border-box;
}

.imgtool-benefit-card {
  text-align: center;
  min-width: 0;
}

.imgtool-benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.imgtool-benefit-icon-blue {
  color: #238af5;
  background: #eef6ff;
  border-color: #d8ebff;
}

.imgtool-benefit-icon-green {
  color: #16a34a;
  background: #ecfdf3;
  border-color: #d5f5df;
}

.imgtool-benefit-icon-purple {
  color: #7c3aed;
  background: #f5f0ff;
  border-color: #eadcff;
}

.imgtool-benefit-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.imgtool-benefit-card p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .imgtool-stage {
    padding: 32px 10px 48px;
  }

  .imgtool-hero {
    margin-bottom: 28px;
    padding: 0 10px;
  }

  .imgtool-handwriting {
     width: min(160px, 50vw);
    margin-bottom: 6px;
  }

  .imgtool-hero h1 {
    font-size: 24px;
  }
      .imgtool-benefits {
    padding: 44px 18px;
  }

 .imgtool-benefits .imgtool-benefits-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .imgtool-benefit-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  
}

@media (max-height: 750px) and (min-width: 769px) {
  .imgtool-stage {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .imgtool-hero {
    margin-bottom: 28px;
  }
}
    
.pngjpg-upload-card {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 30px 34px;
  background: #ffffff;
  border: 1px solid #e5edf7;
  border-radius: 22px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #172033;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
}

.pngjpg-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pngjpg-upload-zone {
  min-height: 280px;
  padding: 32px 22px;
  border: 3px dashed #68b5ff;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.pngjpg-upload-zone:hover,
.pngjpg-upload-zone.pngjpg-dragover {
  border-color: #1787fa;
  background: #f1f9ff;
}

.pngjpg-upload-zone.pngjpg-dragover {
  transform: translateY(-2px);
}

.pngjpg-upload-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #0b96ef;
  background: #ecf6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pngjpg-upload-icon svg {
  width: 38px;
  height: 38px;
}

.pngjpg-upload-btn {
  min-width: 210px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 13px;
  background: #238af5;
  color: #ffffff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .2s ease, transform .2s ease;
}

.pngjpg-upload-btn:hover {
  background: #127deb;
  transform: translateY(-1px);
}

.pngjpg-upload-btn:active {
  transform: translateY(0);
}

.pngjpg-upload-note {
  font-size: 16px;
  line-height: 1.4;
  color: #7b8798;
}

.pngjpg-upload-status {
  font-size: 15px;
  color: #0b96ef;
  background: #eef7ff;
  border: 1px solid #d5ecff;
  border-radius: 999px;
  padding: 8px 14px;
}

.pngjpg-upload-status.is-error {
  width: min(100%, 560px);
  margin-top: 10px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid #bfe0ff;
  background: #f8fbff;
  color: #172033;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  box-sizing: border-box;
}

.pngjpg-upload-status.is-error .pngjpg-status-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 42px;
  color: #0b96ef;
  border: 3px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  box-sizing: border-box;
}

.pngjpg-upload-status.is-error .pngjpg-status-title {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #172033;
}

.pngjpg-upload-status.is-error .pngjpg-status-desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #69758a;
}

.pngjpg-upload-info {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8eef6;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #69758a;
}



@media (max-width: 768px) {

  .pngjpg-upload-card {
    padding: 18px;
    border-radius: 18px;
       width: auto;
  }

.pngjpg-upload-zone {
  min-height: 200px;
  padding: 26px 18px;
  border-radius: 18px;
  gap: 14px;
}

.pngjpg-upload-icon {
  display: none;
}

  .pngjpg-upload-btn {
    width: 200px;
    min-width: 0;
    min-height: 62px;
    font-size: 22px;
  }

  .pngjpg-upload-note {
    font-size: 15px;
  }

  .pngjpg-upload-status.is-error {
    width: 100%;
    padding: 15px 16px;
    gap: 12px;
  }

  .pngjpg-upload-status.is-error .pngjpg-status-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 22px;
    border-width: 2px;
  }

  .pngjpg-upload-status.is-error .pngjpg-status-title {
    font-size: 15px;
  }

  .pngjpg-upload-status.is-error .pngjpg-status-desc {
    font-size: 13px;
  }

.pngjpg-upload-info {
  margin-top: 22px;
  padding-top: 18px;
  font-size: 13.5px;
  line-height: 1.6;
}
}

.pngjpg-convert-ui {
  --pngjpg-blue: #075cff;
  
  --pngjpg-text: #0f172a;
  --pngjpg-muted: #64748b;
  --pngjpg-border: #e2e8f0;
 

  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--pngjpg-text);
}

.pngjpg-convert-ui *,
.pngjpg-convert-ui *::before,
.pngjpg-convert-ui *::after {
  box-sizing: border-box;
}

.pngjpg-convert-ui button {
  -webkit-tap-highlight-color: transparent;
}

.pngjpg-file-input {
  display: none;
}

.pngjpg-convert-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  height: clamp(600px, calc(100vh - 120px), 800px);
  overflow: hidden;
  border: 1px solid var(--pngjpg-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.02);
}

.pngjpg-main-panel,
.pngjpg-options-panel {
  height: 100%;
  min-height: 0;
  background: #ffffff;
}

.pngjpg-main-panel {
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.pngjpg-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.pngjpg-upload-summary {
  margin: 0;
  color: var(--pngjpg-muted);
  font-size: 14px;
  font-weight: 400;
}

.pngjpg-upload-summary strong {
  color: #393939;
  font-weight: 600;
}

.pngjpg-add-btn {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
    box-shadow: none;
}

.pngjpg-add-btn:hover {
  background: #f8fafc;
  border-color: #d8dce1;
  color: var(--pngjpg-text);
}
.pngjpg-convert-notice {
  width: min(100%, 760px);
  margin: -6px auto 20px;
  padding: 13px 16px;
  border: 1px solid #e0f2fe;
  border-radius: 12px;
  background: #f0f9ff;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  box-sizing: border-box;
}

.pngjpg-convert-notice[hidden] {
  display: none !important;
}

/* Không dùng warning cũ trong header nữa */
#pngjpgUploadWarning {
  display: none !important;
}
    @media (max-width: 860px) {
  .pngjpg-convert-notice {
    width: auto;
    margin: 0 6px 14px;
    padding: 11px 12px;
    font-size: 13.5px;
    text-align: left;
  }
}
.pngjpg-gallery-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
}

.pngjpg-gallery-wrap::-webkit-scrollbar,
.pngjpg-options-scroll::-webkit-scrollbar {
  width: 6px;
}

.pngjpg-gallery-wrap::-webkit-scrollbar-track,
.pngjpg-options-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.pngjpg-gallery-wrap::-webkit-scrollbar-thumb,
.pngjpg-options-scroll::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 999px;
}

.pngjpg-gallery-wrap::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

.pngjpg-image-grid {
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  gap: 16px;
  width: 100%;
  align-content: start;
  justify-content: center;
}

.pngjpg-file-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  background: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pngjpg-file-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.08);

}

.pngjpg-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: #f8fafc;

}

.pngjpg-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(12%) brightness(0.97) contrast(0.98);
}

.pngjpg-file-card:hover .pngjpg-thumb img {
  filter: grayscale(0%) brightness(1) contrast(1);
  transform: none;
}

.pngjpg-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #64748b;
  cursor: pointer;
  opacity: 1;
  padding: 0;
}

.pngjpg-file-card:hover .pngjpg-remove {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.pngjpg-remove:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.pngjpg-file-info {
  margin-top: 10px;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pngjpg-file-name {
  margin: 0 0 5px;
  color: var(--pngjpg-text);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pngjpg-file-meta {
  margin: 0;
  color: var(--pngjpg-muted);
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pngjpg-file-meta-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
}
.pngjpg-file-card.is-read-error {
  border-color: #dbeafe;
  background: #fbfdff;
}

.pngjpg-file-card.is-read-error .pngjpg-thumb {
  display: grid;
  place-items: center;
  background: #f8fbff;
}

.pngjpg-read-error-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #0b96ef;
  color: #0b96ef;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.pngjpg-file-meta.is-read-error {
  color: #64748b;
}
.pngjpg-options-panel {
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--pngjpg-border);
  background: #F9FAFB;
}

.pngjpg-options-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
     justify-content: center;
  gap: 8px;
  height: 38px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pngjpg-border);
}

.pngjpg-options-title {
  margin: 0;
  color: var(--pngjpg-text);
  font-size: 20px;
  font-weight: 700;
}

.pngjpg-options-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.pngjpg-option-group {
  margin-bottom: 24px;
}

.pngjpg-option-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pngjpg-option-label {
  color: #555;
  font-size: 14px;
  font-weight: 600;
}
.pngjpg-option-desc {
  margin: 8px 0 0;
  color: #7b8798;
  font-size: 13px;
  line-height: 1.45;
}


.pngjpg-convert-btn {
  flex: 0 0 auto;
  width: 100%;
  min-height: 65px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #238af5;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pngjpg-convert-btn:hover {
  background: #127deb;
}

.pngjpg-convert-btn:active {
  background: #0976e6;
}

.pngjpg-mobile-nav-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pngjpg-border);
  background: #ffffff;
  box-shadow: none;
}

.pngjpg-mob-nav-btn {
  flex: 0 0 62px;
  width: 62px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.pngjpg-mob-nav-btn svg {
  color: #1e293b;
  transition: transform 0.2s ease;
}

.pngjpg-mob-nav-btn:active svg {
  transform: scale(0.9);
}

.pngjpg-mob-convert-btn {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #238af5;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.pngjpg-mob-convert-btn:active {
  background: #127deb;
}

.pngjpg-bottom-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pngjpg-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px 24px 40px;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.pngjpg-sheet-handle {
  width: 38px;
  height: 5px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #cbd5e1;
}

.pngjpg-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pngjpg-sheet-title {
  margin: 0;
  color: var(--pngjpg-text);
  font-size: 20px;
  font-weight: 700;
}

.pngjpg-sheet-close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.pngjpg-sheet-close:hover,
.pngjpg-sheet-close:focus,
.pngjpg-sheet-close:active {
  outline: none;
  box-shadow: none !important;
}

.pngjpg-sheet-close svg {
  width: 14px;
  height: 14px;
  display: block;
}

.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:hover,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:focus,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:active {
  box-shadow: none !important;
  outline: none;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #64748b !important;
  opacity: 1 !important;
  -webkit-tap-highlight-color: transparent;
}

.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn span,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:hover span,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:focus span,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:active span {
  color: #64748b !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn svg,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:hover svg,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:focus svg,
.pngjpg-mobile-nav-bar .pngjpg-mob-nav-btn:active svg {
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.pngjpg-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  justify-content: stretch;
}

.pngjpg-format-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pngjpg-format-card {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #ffffff;
  color: #555;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.pngjpg-format-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.pngjpg-format-input:checked + .pngjpg-format-card,
.pngjpg-format-card.is-active {
  border-color: var(--pngjpg-blue);
  background: #f8fbff;
  color: var(--pngjpg-blue);
font-weight:700;
}

.pngjpg-format-input:checked + .pngjpg-format-card::after,
.pngjpg-format-card.is-active::after {
  content: "✓";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pngjpg-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.pngjpg-bg-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.pngjpg-convert-ui .pngjpg-color-input {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
}

.pngjpg-convert-ui .pngjpg-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

.pngjpg-convert-ui .pngjpg-color-input::-webkit-color-swatch {
  border: 1px solid #cbd5e1;
  border-radius: 50%;
}

.pngjpg-convert-ui .pngjpg-color-input::-moz-color-swatch {
  border: 1px solid #cbd5e1;
  border-radius: 50%;
}

.pngjpg-text-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--pngjpg-text);
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.pngjpg-text-input:focus {
  border-color: var(--pngjpg-blue);
}



@media (max-width: 860px) {
    .pngjpg-option-label{
        font-size:15px;
    }
    .pngjpg-format-card {
  min-height: 58px;
  font-size: 16px;
}
    .pngjpg-text-input{font-size:16px;}
  .pngjpg-convert-ui {
    padding: 0 0 130px;
  }

.pngjpg-convert-shell {
  grid-template-columns: 1fr;
  min-height: calc(100svh - 110px);
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  border: none;
}

.pngjpg-main-panel {
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  background: #fefefe;
}

  .pngjpg-options-panel {
    display: none;
  }

  .pngjpg-main-head .pngjpg-add-btn {
    display: none;
  }

  .pngjpg-mobile-nav-bar {
    display: flex;
  }

  .pngjpg-image-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pngjpg-file-card {
    display: grid;
    grid-template-columns: clamp(96px, 30vw, 116px) minmax(0, 1fr) 40px;
    align-items: stretch;
    gap: 0;
    min-height: 102px;
    padding: 0;
    overflow: hidden;
    border-color: #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow:
        0 0 18px -10px rgba(15, 23, 42, 0.28),
  0 0 4px -2px rgba(15, 23, 42, 0.14);
    transform: none;
border:none;
  }

  .pngjpg-file-card:hover {
    transform: none;
    box-shadow:
      0 8px 18px -12px rgba(15, 23, 42, 0.26),
      0 1px 4px -2px rgba(15, 23, 42, 0.12);
  }

  .pngjpg-thumb {
    order: 1;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 10px 0 0 10px;
    background: #ffffff;
    flex-shrink: 0;
  }

  .pngjpg-thumb img,
  .pngjpg-file-card:hover .pngjpg-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transform: none;
  }

  .pngjpg-file-info {
    order: 2;
    min-width: 0;
    margin-top: 0;
    padding: 14px 10px 14px 12px;
    justify-content: center;
  }

  .pngjpg-file-name {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.28;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pngjpg-file-meta {
    display: block;
    max-width: 100%;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pngjpg-file-meta-separator {
    margin: 0 6px;
    vertical-align: middle;
  }

  .pngjpg-remove {
    order: 3;
    position: static;
    align-self: center;
    justify-self: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin-left: 0;
    border-radius: 50%;
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
    opacity: 1;
    transform: none;
  }

  .pngjpg-file-card:hover .pngjpg-remove {
    transform: none;
  }

  .pngjpg-format-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


.pngjpg-gallery-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 6px 6px;
}


.pngjpg-main-head {border-bottom:0}
.pngjpg-upload-summary {
   display: inline-block;
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
    background: #f3f4f6;
    line-height: 1.35;
    margin-top:20px;
  }
}

@media (max-width: 480px) {
  .pngjpg-mobile-nav-bar {
    left: 0;
    right: 0;
    bottom: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 380px) {
  .pngjpg-format-grid {
    gap: 6px;
  }

  .pngjpg-format-card {
    min-height: 52px;
    border-radius: 9px;
    font-size: 14px;
  }

  .pngjpg-format-input:checked + .pngjpg-format-card::after,
  .pngjpg-format-card.is-active::after {
    right: 4px;
    bottom: 4px;
    width: 13px;
    height: 13px;
    font-size: 8px;
  }
}

@media (max-width: 340px) {
  .pngjpg-file-card {
    grid-template-columns: 82px minmax(0, 1fr) 32px;
    min-height: 100px;
  }

  .pngjpg-remove {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .pngjpg-file-name {
    font-size: 15px;
  }

  .pngjpg-file-meta {
    font-size: 13px;
  }
}
.pngjpg-add-btn:focus,
.pngjpg-add-btn:focus-visible,
.pngjpg-add-btn:active {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
  outline: none;
  box-shadow: none;
}

.pngjpg-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }

  /* Desktop: không có lớp phủ chặn màn hình — người dùng vẫn thao tác được với khu vực phía sau */
  .pngjpg-success-backdrop {
    display: none;
  }

  @keyframes pngjpgSuccessPanelIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .pngjpg-success-panel {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: min(380px, calc(100vw - 40px));
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    pointer-events: auto;
    box-sizing: border-box;
    box-shadow:
      0 24px 60px rgba(15, 23, 42, 0.18),
      0 6px 18px rgba(15, 23, 42, 0.08);
    animation: pngjpgSuccessPanelIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      
  }

  .pngjpg-success-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .pngjpg-success-close:hover,
  .pngjpg-success-close:focus {
    background: #e2e8f0;
    outline: none;
  }

  .pngjpg-success-close svg {
    width: 14px;
    height: 14px;
    display: block;
  }

  .pngjpg-success-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-right: 26px;
  }

  .pngjpg-success-icon-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(34, 197, 94, 0.2) 0%,
      rgba(34, 197, 94, 0.1) 50%,
      rgba(34, 197, 94, 0) 72%
    );
  }

  .pngjpg-success-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #16a34a;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
  }

  .pngjpg-success-copy {
    min-width: 0;
    padding-top: 2px;
  }

  .pngjpg-success-title {
    margin: 0 0 3px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .pngjpg-success-desc {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
  }

 

  .pngjpg-success-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
  }

  .pngjpg-success-download {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.24);
  }

  .pngjpg-success-download:hover {
    filter: brightness(1.05);
  }

  .pngjpg-success-download svg {
    flex: 0 0 auto;
  }

  .pngjpg-success-more {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #515653;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
box-shadow:none;
  }

  .pngjpg-success-more:hover {
    background: #f8fafc;
color:#333;
  }

  /* Mobile: bottom sheet vừa phải, không chiếm trọn màn hình, luôn còn thấy được phần trên của trang */
  @media (max-width: 860px) {
    .pngjpg-success-modal {
      pointer-events: auto;
    }

    .pngjpg-success-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.38);
    }

    @keyframes pngjpgSuccessPanelIn {
      from { opacity: 0.4; transform: translateY(100%); }
      to { opacity: 1; transform: translateY(0); }
    }

    .pngjpg-success-panel {
      left: 0;
      right: 0;
      bottom: 0;
      width: auto;
      max-width: none;
      max-height: min(70vh, 560px);
      border-radius: 22px 22px 0 0;
      padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px));
      animation-duration: 0.32s;
    }

    .pngjpg-success-panel::before {
      content: '';
      display: block;
      width: 38px;
      height: 5px;
      margin: 0 auto 16px;
      border-radius: 999px;
      background: #cbd5e1;
    }

    .pngjpg-success-close {
      top: 14px;
      right: 14px;
    }

    .pngjpg-success-actions {
      position: sticky;
      bottom: 0;
      background: #ffffff;
      padding-top: 12px;
      margin-top: 14px;
    }

    .pngjpg-success-download {
      min-height: 52px;
      font-size: 20px;
    }
  }
.pngjpg-progress-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.pngjpg-progress-panel {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: min(380px, calc(100vw - 40px));
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  box-sizing: border-box;
  pointer-events: auto;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 6px 18px rgba(15, 23, 42, 0.08);
}
.pngjpg-progress-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.pngjpg-progress-close:hover,
.pngjpg-progress-close:focus {
  background: #e2e8f0;
  outline: none;
}

.pngjpg-progress-close svg {
  width: 14px;
  height: 14px;
  display: block;
}
.pngjpg-progress-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pngjpg-progress-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #075cff;
  background: #eef5ff;
}

.pngjpg-progress-copy {
  min-width: 0;
}

.pngjpg-progress-title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pngjpg-progress-text {
  margin: 0;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.5;
}

.pngjpg-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.pngjpg-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.pngjpg-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #075cff 0%, #00a8ff 100%);
  transition: width 0.2s ease;
}

.pngjpg-progress-percent {
  color: #075cff;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.pngjpg-progress-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .pngjpg-progress-modal {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.34);
  }

  .pngjpg-progress-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
  }

  .pngjpg-progress-panel::before {
    content: "";
    display: block;
    width: 38px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #cbd5e1;
  }

  .pngjpg-progress-row {
    margin-top: 16px;
  }
}

#pngjpgUploadSummaryText {
  line-height: 1.4;
}

#pngjpgUploadWarning {
  margin-top: 6px;
    margin-bottom:6px;
  line-height: 1.45;
}
 @media (min-width: 861px) {
  .pngjpg-convert-ui.is-desktop-processing,
  .pngjpg-convert-ui.is-desktop-success {
    padding: 0;
  }

  .pngjpg-convert-ui.is-desktop-processing .pngjpg-convert-shell,
  .pngjpg-convert-ui.is-desktop-success .pngjpg-convert-shell {
    display: none;
  }

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) #pngjpgProgressModal,
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) #pngjpgSuccessModal {
  position: static;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: 660px;
  min-height: 340px;
  margin: 0 auto;
  padding: 0;
  pointer-events: auto;
  background: transparent;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-panel,
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-panel {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: 660px;
  min-height: 340px;
  height: auto;
  max-height: none;
  padding: 38px 32px 30px;
  border: 1px solid #e5edf7;
  border-radius: 22px;
  background: #ffffff;
  color: #172033;
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: none;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-head,
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-head {
  width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
    padding-right: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-copy {
  padding-top: 0;
}


.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-icon-wrap {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  margin-left: auto;
  margin-right: auto;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-icon {
  width: 72px;
  height: 72px;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-icon svg {
  width: 34px;
  height: 34px;
}
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-actions {
  width: min(100%, 540px);
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-download,
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-more {
  width: min(100%, 340px);
  margin-left: auto;
  margin-right: auto;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-download {
  min-height: 62px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 600;
}
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-download svg {
  width: 22px;
  height: 22px;
}
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-more {
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-row {
  width: min(100%, 540px);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 16px;
  margin-top: 34px;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-note {
  width: min(100%, 540px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
    color: #7b8798;
}
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-bar {
  height: 16px;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-percent {
  font-size: 17px;
  font-weight: 800;
}
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-title,
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-title {
  color: #172033;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-text,
.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-success) .pngjpg-success-desc {
  color: #7b8798;
  font-size: 15.5px;
  line-height: 1.45;
}



.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  margin-left: auto;
  margin-right: auto;
  color: #0b96ef;
  background: #eef7ff;
}

.pngjpg-tool:has(.pngjpg-convert-ui.is-desktop-processing) .pngjpg-progress-icon svg {
  width: 34px;
  height: 34px;
}


}
 


        #pngjpgUploadWarning:not([hidden]) {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #bfe0ff;
  border-radius: 10px;
  background: #f8fbff;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.45;
}
    .pngjpg-tool [hidden] {
  display: none !important;
}
 @media (min-width: 600px) and (max-width: 860px) {
      .pngjpg-upload-icon {
    display: flex;
 
  }

  .pngjpg-upload-zone {
    min-height: 265px;
  }

  .pngjpg-mob-convert-btn {
    flex: 0 1 230px;
    max-width: 230px;
    margin-left: auto;
      font-size: 18px;
  }
       .pngjpg-mob-nav-btn {
    flex: 0 0 82px;
    width: 82px;
    height: 64px;
    font-size: 13px;
  }

  .pngjpg-mob-nav-btn svg {
    width: 26px;
    height: 26px;
  }
     /* Success modal trên tablet */
  .pngjpg-success-panel {
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: min(calc(100vw - 48px), 560px);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 28px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
  }

  .pngjpg-success-head {
    width: min(100%, 430px);
    margin-left: auto;
    margin-right: auto;
    padding-right: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
.pngjpg-success-icon-wrap {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  margin-left: auto;
  margin-right: auto;
}

.pngjpg-success-icon {
  width: 68px;
  height: 68px;
}

.pngjpg-success-icon svg {
  width: 32px;
  height: 32px;
}

.pngjpg-success-download svg {
  width: 22px;
  height: 22px;
}
  .pngjpg-success-copy {
    padding-top: 0;
  }

  .pngjpg-success-title {
    font-size: 20px;
  }

  .pngjpg-success-desc {
    font-size: 16px;
  }

  .pngjpg-success-actions {
    width: min(100%, 400px);
    margin-left: auto;
    margin-right: auto;
    align-items: center;
  }

  .pngjpg-success-download,
  .pngjpg-success-more {
    width: min(100%, 380px);
    margin-left: auto;
    margin-right: auto;
  }

  .pngjpg-success-download {
    min-height: 56px;
    font-size: 20px;
  }

  .pngjpg-success-more {
    font-size: 15px;
  }
     /* Process modal trên tablet */
.pngjpg-progress-panel {
  left: 24px;
  right: 24px;
  bottom: 24px;
  width: min(calc(100vw - 48px), 560px);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 28px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px;
}

.pngjpg-progress-panel::before {
  display: none;
}

.pngjpg-progress-head {
  width: min(100%, 430px);
  margin-left: auto;
  margin-right: auto;
  padding-right: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.pngjpg-progress-copy {
  padding-top: 0;
}

.pngjpg-progress-title {
  font-size: 20px;
}

.pngjpg-progress-text {
  font-size: 16px;
}

.pngjpg-progress-row {
  width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 12px;
}

.pngjpg-progress-bar {
  height: 12px;
}

.pngjpg-progress-percent {
  font-size: 15px;
}

.pngjpg-progress-note {
  width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  font-size: 15px;
  text-align: center;
}
}   
    @media (max-width: 599px) {
  .pngjpg-success-panel,
  .pngjpg-progress-panel {
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: min(82svh, 560px);
  }

  .pngjpg-success-panel::before,
  .pngjpg-progress-panel::before {
    display: none;
  }

  .pngjpg-success-head,
  .pngjpg-progress-head {
    width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
    padding-right: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .pngjpg-success-copy,
  .pngjpg-progress-copy {
    width: 100%;
    padding-top: 0;
    text-align: center;
  }

  .pngjpg-success-icon-wrap,
  .pngjpg-progress-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    margin-left: auto;
    margin-right: auto;
  }

  .pngjpg-success-icon {
    width: 64px;
    height: 64px;
  }

  .pngjpg-success-icon svg,
  .pngjpg-progress-icon svg {
    width: 30px;
    height: 30px;
  }

  .pngjpg-success-title,
  .pngjpg-progress-title {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .pngjpg-success-desc,
  .pngjpg-progress-text {
    font-size: 15.5px;
    line-height: 1.45;
  }

  .pngjpg-success-actions {
    position: static;
    width: min(100%, 340px);
    margin: 24px auto 0;
    padding-top: 0;
    align-items: center;
  }

  .pngjpg-success-download,
  .pngjpg-success-more {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .pngjpg-success-download {
    min-height: 56px;
    border-radius: 14px;
    font-size: 18px;
  }

  .pngjpg-success-more {
    min-height: 44px;
    font-size: 15px;
  }

  .pngjpg-progress-row {
    width: min(100%, 340px);
    margin: 22px auto 0;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 12px;
  }

  .pngjpg-progress-bar {
    height: 12px;
  }

  .pngjpg-progress-percent {
    font-size: 15px;
  }

  .pngjpg-progress-note {
    width: min(100%, 340px);
    margin: 16px auto 0;
    font-size: 14.5px;
    text-align: center;
  }
}

