.wc-apf-form-wrapper {
  margin: 0px 0;
}

.wc-apf-form-title {
  margin: 0 0 10px 0;
  font-size: 11px;
}

.wc-apf-form-description {
  margin: 0 0 15px 0;
  color: #666;
}

.wc-apf-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 20px;
}

.wc-apf-field {
  display: flex;
  flex-direction: column;
}
.woocommerce div.product form.cart {
  margin-bottom: 0px !important;
}
.summary.entry-summary button.single_add_to_cart_button {
  margin-bottom: 23px !important;
}

.wc-apf-field-label {
  margin-bottom: 5px;
  font-weight: 600;
}

.wc-apf-field-label .required {
  color: #f00;
}

.wc-apf-input,
.wc-apf-textarea,
.wc-apf-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.wc-apf-textarea {
  resize: vertical;
}

.wc-apf-radio-group,
.wc-apf-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-apf-radio-label,
.wc-apf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-apf-price {
  color: #666;
  font-size: 14px;
}

.wc-apf-file-upload {
  max-width: 100%;
}

.wc-apf-file-input {
  display: none; /* Hide the default file input */
}

.wc-apf-upload-area {
  background: #e2f6ff !important;
  border: 1px solid #28a4d9 !important;
  box-shadow: 0px 1px 5px 1px #28a4d9 !important;
  border-radius: 10px !important;

  /* border: 2px dashed #ddd;
    border-radius: 8px; */
  padding: 40px 20px;
  text-align: center;
  /* background: #fafafa; */
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.wc-apf-upload-area:hover {
  border-color: #999;
  background: #f5f5f5;
  box-shadow: 0px 1px 10px 5px #28a4d9c7 !important;
}

.wc-apf-upload-area.drag-over {
  border-color: #2ea2cc;
  background: #e8f4f8;
}

.wc-apf-upload-area .dashicons {
  font-size: 60px;
  width: 60px;
  height: 60px;
  color: #999;
  margin-bottom: 10px;
}

.wc-apf-upload-area p {
  margin: 10px 0 5px 0;
  color: #666;
  font-size: 14px;
}

.wc-apf-upload-area .upload-button {
  display: inline-block;

  color: #06f;
  text-decoration: underline;

  font-weight: 800;
  transition: background 0.3s ease;
}

.wc-apf-upload-area:hover .upload-button {
  color: rgb(16, 81, 112);
}

.wc-apf-upload-area small {
  display: block;
  margin-top: 10px;
  color: #999;
  font-size: 12px;
}

.wc-apf-upload-progress {
  margin: 15px 0;
}

.wc-apf-progress-bar {
  width: 100%;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.wc-apf-progress-fill {
  height: 100%;
  background: #2ea2cc;
  transition: width 0.3s ease;
  width: 0%;
}

.wc-apf-progress-text {
  display: block;
  text-align: center;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.wc-apf-uploaded-files {
  margin-top: 10px;
  position: relative;
}

.wc-apf-uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.wc-apf-uploaded-file:hover {
  border-color: #999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wc-apf-uploaded-file .file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.wc-apf-uploaded-file .dashicons-yes {
  color: #46b450;
  flex-shrink: 0;
}

.wc-apf-uploaded-file .file-remove {
  cursor: pointer;
  color: #dc3232;
  padding: 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wc-apf-uploaded-file .file-remove:hover {
  background: #dc3232;
  color: #fff;
  max-height: 25px;
}

.wc-apf-uploaded-file .file-remove .dashicons {
  font-size: 13px;
  width: 16px;
  height: 16px;
}

.wc-apf-uploaded-file .dashicons {
  color: #46b450;
}

.wc-apf-field-error {
  color: #f00;
  font-size: 12px;
  margin-top: 5px;
}
.wc-apf-field select,
.wc-apf-field input[type="text"],
.wc-apf-field input[type="email"],
.wc-apf-field input[type="url"],
.wc-apf-field input[type="tel"],
.wc-apf-field input[type="password"],
.wc-apf-field textarea {
  box-shadow: none;

  line-height: 25px;
  padding: 5px 10px;
  outline: 0;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  background-color: #fff !important;
  border: 1px solid #918e8e;
  border-radius: 7px !important;
}
.wc-apf-field input[type="number"] {
  box-shadow: none;

  line-height: 25px;
  padding: 5px 10px;
  outline: 0;
  box-sizing: border-box;
  margin: 0;
  width: 100%;

  border-radius: 7px !important;
}

.wc-apf-uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.wc-apf-uploaded-file:hover {
  border-color: #999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wc-apf-uploaded-file .file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.wc-apf-uploaded-file .file-thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.wc-apf-uploaded-file .file-icon {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #666;
}

.wc-apf-uploaded-file .dashicons-yes {
  color: #46b450;
  flex-shrink: 0;
}

.wc-apf-uploaded-file .file-remove {
  cursor: pointer;
  color: #dc3232;
  padding: 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wc-apf-uploaded-file .file-remove:hover {
  background: #dc3232;
  color: #fff;
}

.wc-apf-uploaded-file .file-remove .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}
.wc-apf-dim-minus {
  background-color: #f8f9fa;
  border: none;
  padding: 7px 3px;
  cursor: pointer;
  box-shadow: 0px 0px 2px 1px #28a4d9 !important;
  position: relative;

  border-radius: 5px 0px 0px 5px;
}

.wc-apf-dim-plus {
  background-color: #f8f9fa;
  border: none;
  padding: 7px 3px;
  cursor: pointer;
  box-shadow: 0px 0px 2px 1px #28a4d9 !important;
  position: relative;
  border-radius: 0px 5px 5px 0px;
}

input[type="number"].wc-apf-dimension-input::-webkit-inner-spin-button,
input[type="number"].wc-apf-dimension-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"].wc-apf-dimension-input {
  -moz-appearance: textfield;
  text-align: center;
}

button.wc-apf-dim-minus:focus,
button.wc-apf-dim-plus:focus {
  outline: none;
}

.wc-apf-designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.wc-apf-design-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px;
}

.wc-apf-design-card:hover {
  /* border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  border-color: #929292;
  box-shadow: 0 2px 4px rgb(0 0 0 / 64%);
}

.wc-apf-design-card.active {
  border-color: rgb(255 0 0 / 70%);
  background: #f0f8ff;
}

.wc-apf-design-preview {
  cursor: pointer;
  text-align: center;
  width: 80px;
  height: 80px;
}

.wc-apf-remove-design {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.wc-apf-remove-design:hover {
  background: #c82333;
}
.wc-apf-design-quantity button {
  font-family: "PT Sans";
  text-transform: uppercase;
  height: 22px;
  width: 22px;
  font-size: 12px;
  box-shadow: 0px 0px 3px #4d4d4d;
  border-radius: 5px;
  display: flex;
  align-content: center;
  align-items: center;
  text-decoration: none;
  text-align: center;
  color: #119948;
  font-weight: 900;
  background: #66f7a1;
  border: 2px solid #119948;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.wc-apf-design-quantity button:hover {
  background: #0b5f2c;
  color: #ffffff !important;
}
button.single_add_to_cart_button {
  display: none !important;
}
button.single_add_to_cart_button.buttonaddcarttoggle {
  display: block !important;
}

.modal-dialog.modal-dialog-centered.modal-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - (0.5 * 2));
  height: 100%;
  width: 100%;
}

.wc-apf-ai-example-image,
wc-apf-ai-example-image- {
  display: inline-block;
  box-shadow: 0 0 3px rgb(221, 221, 221);
  overflow: hidden;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

@media (max-width: 600px) {
  .modal-dialog.modal-dialog-centered.modal-lg {
    height: 100%;
    width: 98%;
    margin: auto;
  }
}

/* === AI Tools: Tooltip + Disclaimer (custom) === */
.ai-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  cursor: help;
}
.ai-tooltip-icon {
  font-size: 13px;
  line-height: 1;
  color: #1a89b8;
  user-select: none;
}
.ai-tooltiptext {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  z-index: 999999;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.ai-tooltiptext:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(17, 17, 17, 0.92) transparent transparent transparent;
}
.ai-tooltip:hover .ai-tooltiptext,
.ai-tooltip:focus .ai-tooltiptext,
.ai-tooltip.ai-tooltip-show .ai-tooltiptext {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Prevent clipping inside the AI tools box */
.ai-tools-box,
.ai-tools-box * {
  overflow: visible;
}

/* Modern disclaimer */
.ai-disclaimer {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  /* Match the left/right gutters of the blue AI rows (10px left, 14px right) */
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  background: #f3f4f6; /* light grey */
  border: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-disclaimer-icon {
  color: #f59e0b; /* orange */
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
}
.ai-disclaimer-text {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.1px;
  color: #374151;
}

/* Ensure tooltip isn't clipped by tables/rows */
.wc-apf-file-upload table,
.wc-apf-file-upload thead,
.wc-apf-file-upload tbody,
.wc-apf-file-upload tfoot,
.wc-apf-file-upload tr,
.wc-apf-file-upload th,
.wc-apf-file-upload td {
  overflow: visible !important;
}

/* --- Halftone Controls (Density / Angle) --- */
.wc-apf-halftone-controls-row {
  box-sizing: border-box;
}
.wc-apf-halftone-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.wc-apf-halftone-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.wc-apf-halftone-control-label {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  min-width: 70px;
}

.wc-apf-halftone-control-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.wc-apf-halftone-control-inputs input[type="number"] {
  width: 80px;
  max-width: 90px;
  padding: 8px 10px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.wc-apf-halftone-control-inputs input[type="range"] {
  flex: 1;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Dimension locking (multi-design uploads / AI tool toggles)
   -------------------------------------------------------------------------- */
.wc-apf-dimensions-wrapper.wc-apf-dim-locked {
  opacity: 0.55;
}

.wc-apf-dimensions-wrapper.wc-apf-dim-locked input,
.wc-apf-dimensions-wrapper.wc-apf-dim-locked button {
  cursor: not-allowed !important;
}

.wc-apf-dimensions-wrapper.wc-apf-dim-locked input:disabled,
.wc-apf-dimensions-wrapper.wc-apf-dim-locked button:disabled {
  pointer-events: none;
}

/* Optional: any nearby "type" field we lock gets the same treatment */
.wc-apf-dim-locked-field {
  opacity: 0.55;
  cursor: not-allowed !important;
}

/* Ensure tooltips/controls aren't clipped by parent table rows */
.drop-shipping-select,
.drop-shipping-select td,
.drop-shipping-select th {
  overflow: visible !important;
}

/* === FIX: AI disclaimer container & frame === */
.ai-tools-box {
  border: 2px solid #000000 !important;
  border-radius: 12px;
}

.ai-disclaimer {
  background: #e2f6ff !important;
  border: none !important;
  border-radius: 0 !important;
}

/* === FIX v4: Force AI tools outer frame + consistent spacing === */

/* Force outer frame (higher specificity + fallback selectors) */
.wc-apf-file-upload .ai-tools-box,
.ai-tools-box,
.ai-tools-container {
  border: 2px solid #000000 !important;
  border-radius: 12px;
}

/* Match spacing between all AI rows */
.ai-tools-box > * {
  margin-bottom: 10px !important;
}

/* Disclaimer: same spacing + square edges */
.ai-disclaimer {
  background: #e2f6ff !important;
  border-radius: 0 !important;
  margin-bottom: 10px !important;
}

/* ==============================
 * Upload area: NEW Multiple File Uploads badge
 * Reuses existing .uts-new-mockups-badge styles for font/background.
 * ============================== */
.wc-apf-upload-area .uts-multi-upload-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation:
    uts-pill-pop 0.35s ease-out both,
    uts-pill-pulse 2.8s ease-in-out infinite 1.1s;
}

@keyframes uts-pill-pop {
  from {
    transform: translateY(4px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes uts-pill-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* --- Font match for upload-pill (reuse guide badge typography) --- */
.wc-apf-upload-area .uts-new-mockups-badge {
  font-size: 11px;
  line-height: 1;
  font-family: inherit;
}
.wc-apf-upload-area .uts-new-mockups-badge__new {
  font-size: 10px;
}

/* --- Upload Transfers Studio tweaks: guide vs upload pill typography --- */
/* Guide pill: keep smaller typography (NEW 8px / text 9px) */
.uts-new-mockups-badge:not(.uts-multi-upload-pill) {
  font-size: 9px;
}
.uts-new-mockups-badge:not(.uts-multi-upload-pill) .uts-new-mockups-badge__new {
  font-size: 8px;
}
.uts-new-mockups-badge:not(.uts-multi-upload-pill)
  .uts-new-mockups-badge__text {
  font-size: 9px;
}

@media (max-width: 767px) {
  /* Upload pill: do NOT hide NEW on mobile */
  .uts-multi-upload-pill .uts-new-mockups-badge__new {
    display: inline-block !important;
  }
}

.namefile {
  display: block !important;
}

.wc-apf-form-wrapper .wc-apf-image-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.wc-apf-form-wrapper .wc-apf-image-option {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-width: var(--wc-apf-image-width, 120px);
  max-width: var(--wc-apf-image-width, 120px);
}

.wc-apf-form-wrapper .wc-apf-image-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

.wc-apf-form-wrapper .wc-apf-image-thumb {
  position: relative;
  width: var(--wc-apf-image-width, 120px);
  height: var(--wc-apf-image-height, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-radius 0.2s ease;
}

.wc-apf-form-wrapper .wc-apf-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wc-apf-form-wrapper .wc-apf-image-option:hover .wc-apf-image-thumb {
  transform: translateY(-1px);
}

.wc-apf-form-wrapper .wc-apf-image-option input:focus + .wc-apf-image-thumb {
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
  border-radius: 10px;
}

.wc-apf-form-wrapper .wc-apf-image-option input:checked + .wc-apf-image-thumb {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.wc-apf-form-wrapper
  .wc-apf-image-option
  input:checked
  + .wc-apf-image-thumb::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.wc-apf-form-wrapper .wc-apf-option-text {
  text-align: center;
  line-height: 1.2;
  font-weight: 600;
}

.wc-apf-max-selection-warning {
  display: none;
  margin-top: 8px;
  color: #d86b78;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wc-apf-max-selection-warning.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .wc-apf-max-selection-warning {
    font-size: 18px;
  }
}

.wc-apf-selected-option-images {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 10px !important;
  white-space: normal !important;
  line-height: 1 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.wc-apf-selected-option-images .wc-apf-selected-option-image {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 88px !important;
  max-width: 88px !important;
  margin: 0 !important;
}

/* Upload Studio Preprint Quality Check - compact horizontal report */
.wc-apf-quality-check {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 14px;
  font-family: inherit;
  clear: both;
}
.wc-apf-quality-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.wc-apf-quality-banner > span {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
}
.wc-apf-quality-banner strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
  color: #111827;
}
.wc-apf-quality-banner em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: #4b5563;
  font-size: 13px;
}
.wc-apf-quality-banner b {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
  color: #374151;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 6px 10px;
}
.wc-apf-quality-banner-warning {
  background: #fff4c7;
  border: 1px solid #ffe08a;
}
.wc-apf-quality-banner-warning > span {
  background: #f59e0b;
}
.wc-apf-quality-banner-pass {
  background: #e9fbf0;
  border: 1px solid #b6efc7;
}
.wc-apf-quality-banner-pass > span {
  background: #16a34a;
}
.wc-apf-quality-panel {
  overflow: visible;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}
.wc-apf-quality-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 11px;
  border-bottom: 1px solid #eef0f3;
  color: #9ca3af;
  letter-spacing: 1.4px;
  font-weight: 800;
  font-size: 12px;
}
.wc-apf-quality-head span {
  letter-spacing: 0;
  color: #6b7280;
  font-weight: 700;
  font-size: 11px;
  text-transform: none;
}
.wc-apf-quality-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.wc-apf-quality-banner-loading {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
  gap: 12px;
  padding: 12px 14px;
}
.wc-apf-quality-banner-loading strong {
  color: #0369a1;
  font-size: 13px;
}
.wc-apf-quality-banner-loading em {
  color: #0ea5e9;
  font-size: 12px;
}
.wc-apf-quality-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #bae6fd;
  border-top-color: #0369a1;
  border-radius: 50%;
  animation: wc-apf-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes wc-apf-spin {
  to {
    transform: rotate(360deg);
  }
}
.wc-apf-quality-chip-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
}
.wc-apf-quality-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
}
.wc-apf-quality-chip[open] {
  border-radius: 14px;
  flex-basis: 100%;
  background: #fff;
}
.wc-apf-quality-chip summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  line-height: 1;
}
.wc-apf-quality-chip summary::-webkit-details-marker {
  display: none;
}
.wc-apf-quality-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}
.wc-apf-quality-pass .wc-apf-quality-icon {
  background: #16a34a;
}
.wc-apf-quality-warning .wc-apf-quality-icon {
  background: #f59e0b;
}
.wc-apf-quality-info .wc-apf-quality-icon {
  background: #475569;
  font-family: Georgia, serif;
  font-style: italic;
}
.wc-apf-quality-chip strong {
  display: inline-block;
  color: #111827;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.wc-apf-quality-chip-detail {
  padding: 0 12px 11px 36px;
}
.wc-apf-quality-chip-detail p {
  margin: 0 0 5px;
  color: #4b5563;
  line-height: 1.35;
  font-size: 12px;
}
.wc-apf-quality-chip-detail code {
  display: inline-block;
  background: #f3f4f6;
  border-radius: 6px;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  padding: 3px 6px;
}
@media (max-width: 640px) {
  .wc-apf-quality-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .wc-apf-quality-banner b {
    margin-left: 42px;
  }
  .wc-apf-quality-chip {
    flex: 1 1 calc(50% - 8px);
  }
  .wc-apf-quality-chip strong {
    white-space: normal;
    line-height: 1.15;
  }
  .wc-apf-quality-chip[open] {
    flex-basis: 100%;
  }
}

/* Upload Studio modern circular upload progress - card under upload field */
.wc-apf-upload-area.wc-apf-uploading-dim {
  pointer-events: none;
  opacity: 0.36;
  filter: grayscale(1);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}
.wc-apf-file-upload > .wc-apf-modern-progress {
  display: none;
  width: 100%;
  margin: 14px 0 16px;
  box-sizing: border-box;
}
.wc-apf-file-upload > .wc-apf-modern-progress[style*="display: block"] {
  display: block !important;
}
.wc-apf-modern-progress-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  min-height: 150px;
  padding: 22px 26px;
  border: 1px solid rgba(17, 136, 223, 0.14);
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(232, 247, 255, 0.92),
    rgba(247, 252, 255, 0.96)
  );
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}
.wc-apf-progress-circle {
  --wc-apf-progress: 0%;
  flex: 0 0 auto;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: conic-gradient(
    #1188df var(--wc-apf-progress),
    #ffffff var(--wc-apf-progress)
  );
  padding: 7px;
  box-shadow: 0 8px 20px rgba(17, 136, 223, 0.2);
  box-sizing: border-box;
}
.wc-apf-progress-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #fff;
  box-sizing: border-box;
}
.wc-apf-progress-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wc-apf-progress-fallback {
  font-size: 54px;
  width: 54px;
  height: 54px;
  color: #1188df;
}
.wc-apf-modern-progress-copy {
  min-width: 240px;
  max-width: 620px;
  text-align: left;
}
.wc-apf-progress-kicker {
  font-size: 15px;
  line-height: 1.25;
  color: #283445;
  margin-bottom: 2px;
}
.wc-apf-progress-title {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #1188df;
}
.wc-apf-progress-percent {
  margin-top: 4px;
  font-size: 43px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
}
.wc-apf-progress-percent-sign {
  font-size: 24px;
  margin-left: 3px;
}
.wc-apf-progress-subtext {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #283445;
}
.wc-apf-modern-progress .wc-apf-progress-bar,
.wc-apf-modern-progress .wc-apf-progress-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wc-apf-cancel-upload {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1188df;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 640px) {
  .wc-apf-modern-progress-card {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 0;
    padding: 16px 14px;
    text-align: center;
  }
  .wc-apf-modern-progress-copy {
    min-width: 0;
    text-align: center;
  }
  .wc-apf-progress-circle {
    width: 102px;
    height: 102px;
  }
}

/* Upload Studio: small Add More upload progress */
.wc-apf-mini-progress {
  width: 80px;
  min-width: 80px;
  margin: 2px 0 0 0;
  display: none;
}
.wc-apf-mini-progress[style*="display: block"] {
  display: flex !important;
}
.wc-apf-mini-progress-card {
  width: 80px;
  min-height: 80px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(17, 136, 223, 0.18);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  box-sizing: border-box;
}
.wc-apf-mini-progress .wc-apf-progress-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  box-shadow: 0 4px 12px rgba(17, 136, 223, 0.2);
}
.wc-apf-mini-progress .wc-apf-progress-circle-inner {
  width: 38px;
  height: 38px;
}
.wc-apf-mini-progress .wc-apf-progress-image {
  width: 32px;
  height: 32px;
}
.wc-apf-mini-progress .wc-apf-progress-fallback {
  font-size: 20px;
}
.wc-apf-mini-progress .wc-apf-mini-progress-percent {
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
  font-family: "PT Sans", Arial, sans-serif;
}
.wc-apf-mini-progress .wc-apf-progress-percent-sign {
  font-size: 10px;
  margin-left: 1px;
}
.wc-apf-mini-progress .wc-apf-progress-bar,
.wc-apf-mini-progress .wc-apf-progress-text,
.wc-apf-mini-progress .wc-apf-modern-progress-copy,
.wc-apf-mini-progress .wc-apf-cancel-upload {
  display: none !important;
}

/* === UploadTransfers By Size: theme-safe full-width modal + AI dropdown === */
.uts-by-size-launch-wrap {
  width: 100%;
  margin: 18px 0;
  text-align: center;
  clear: both;
}
.uts-by-size-open-modal {
  width: 100%;
  max-width: 520px;
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f06, #1b00ff);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(27, 0, 255, 0.18);
}
.uts-by-size-open-modal:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}
body.uts-by-size-modal-open {
  overflow: hidden !important;
}
.uts-by-size-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
}
.uts-by-size-modal__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.64) !important;
}

.uts-by-size-modal__dialog {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 96vw !important;
  max-width: 1600px !important;
  height: 92vh;
  max-height: 92vh !important;
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden !important;
}
.uts-by-size-modal__content {
  height: 100% !important;
  overflow: auto !important;
  padding: 28px !important;
  box-sizing: border-box !important;
}
.uts-by-size-modal__close {
  position: absolute !important;
  right: 6px !important;
  top: 6px !important;
  z-index: 3 !important;
  width: 25px !important;
  height: 25px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 30px !important;
  line-height: 38px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}
.uts-by-size-modal .wc-apf-form-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.uts-by-size-modal .wc-apf-fields {
  display: block !important;
  width: 100% !important;
}
.uts-by-size-modal .wc-apf-field {
  max-width: none !important;
}
.uts-by-size-modal .wc-apf-file-upload,
.uts-by-size-modal .wc-apf-upload-area {
  max-width: none !important;
}
.uts-by-size-modal .uts-size-guide,
.uts-by-size-modal [class*="guide"],
.uts-by-size-modal [class*="mockup"] {
  visibility: visible !important;
  opacity: 1 !important;
}
.wc-apf-ai-generator-btn.uts-ai-dropdown-toggle {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  width: 100% !important;
  padding: 10px 20px;
  margin: 14px auto 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f06, #1b00ff);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 64px;
  gap: 8px;
}
.wc-apf-ai-generator-btn.uts-ai-dropdown-toggle img {
  width: 24px;
  height: auto;
  display: inline-block;
}
.wc-apf-ai-generator-btn.uts-ai-dropdown-toggle:hover {
  background: linear-gradient(135deg, #1b00ff, #f06) !important;
  box-shadow: none !important;
}
.uts-ai-dropdown-panel {
  width: 100%;
  margin: 12px 0 0;
  padding: 18px;
  border: 1px solid #e6e7ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.uts-ai-generator-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}
.uts-ai-generate-button {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f06, #1b00ff);
  color: #fff;
  height: 58px;
  padding: 0 22px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.uts-ai-example-grid,
.uts-ai-result-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 500px;
  overflow: auto;
  padding: 2px;
}
.uts-ai-result-grid[style*="display: grid"] {
  display: grid !important;
}
.uts-ai-generator-inline .wc-apf-ai-example-image,
.uts-ai-generator-inline .wc-apf-ai-image-link {
  display: inline-block;
  box-shadow: 0 0 3px #ddd;
  overflow: hidden;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}
.uts-ai-generator-inline .wc-apf-ai-example-image img,
.uts-ai-generator-inline .wc-apf-ai-image-link img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  transition: transform 0.3s ease !important;
}
.uts-ai-generator-inline .wc-apf-ai-example-image:hover img,
.uts-ai-generator-inline .wc-apf-ai-image-link:hover img {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .uts-by-size-modal__dialog {
    width: 98vw !important;
    height: auto !important;
    border-radius: 12px !important;
  }
  .uts-by-size-modal__content {
    padding: 18px 12px !important;
  }
  /* .uts-ai-generator-row {
    flex-direction: column;
  } */
  /* .uts-ai-generate-button {
    width: 100%;
  } */
  .uts-ai-example-grid,
  .uts-ai-result-grid {
    grid-template-columns: 1fr 1fr 1fr;
    max-height: none;
  }
  .uts-by-size-open-modal {
    max-width: none;
  }
}

/* === UploadTransfers By Size final modal layout repair === */
body.uts-by-size-product-active form.cart button.single_add_to_cart_button,
body.uts-by-size-product-active form.cart .quantity {
  display: none !important;
}
.uts-by-size-modal__columns {
  display: grid !important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100% !important;
  min-height: 100% !important;
  box-sizing: border-box !important;
}
.uts-by-size-guide-panel {
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
  width: 100% !important;
  box-sizing: border-box !important;
  will-change: transform;
}
.uts-by-size-guide-card {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08) !important;
  padding: 24px !important;
  color: #111827 !important;
}
.uts-by-size-guide-kicker {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 999px !important;
  background: #eaf7fd !important;
  color: #0b82b1 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 8px 11px !important;
  margin-bottom: 14px !important;
}
.uts-by-size-guide-card h3 {
  margin: 0 0 10px !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  color: #111827 !important;
}
.uts-by-size-guide-intro {
  margin: 0 0 18px !important;
  color: #4b5563 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.uts-by-size-guide-list {
  display: grid !important;
  gap: 12px !important;
}
.uts-by-size-guide-list div {
  display: grid !important;
  gap: 4px !important;
  padding: 13px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid #eef2f7 !important;
}
.uts-by-size-guide-list strong {
  display: block !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
.uts-by-size-guide-list span {
  color: #6b7280 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.uts-by-size-guide-warning {
  margin-top: 16px !important;
  border-radius: 14px !important;
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #9a3412 !important;
  padding: 12px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}
.uts-by-size-builder-panel {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.uts-by-size-builder-panel .wc-apf-form-wrapper {
  width: 100% !important;
  max-width: none !important;
}
.uts-by-size-builder-panel .wc-apf-fields {
  width: 100% !important;
}
.uts-by-size-builder-panel .wc-apf-ai-generator-btn.uts-ai-dropdown-toggle,
.uts-by-size-builder-panel .uts-modal-add-to-cart-trigger {
  width: 100% !important;
  max-width: none !important;
  min-height: 58px !important;
  margin: 16px 0 0 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
.uts-by-size-builder-panel .uts-modal-add-to-cart-trigger {
  border: 0 !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18) !important;
}
.uts-by-size-builder-panel .uts-modal-add-to-cart-trigger:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}
.uts-by-size-builder-panel .uts-modal-add-to-cart-trigger.is-loading {
  opacity: 0.7 !important;
  pointer-events: none !important;
}
@media (max-width: 900px) {
  .uts-by-size-modal__columns {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .uts-by-size-guide-panel {
    position: static !important;
  }
  .uts-by-size-guide-card {
    padding: 18px !important;
  }
  .uts-by-size-guide-card h3 {
    font-size: 22px !important;
  }
}

/* === Move preprint report into left guide panel === */
.uts-by-size-guide-preprint-slot {
  margin-top: 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.uts-by-size-guide-preprint-slot:empty {
  display: none !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-check {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-check-horizontal {
  display: block !important;
  overflow: visible !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  margin: 0 0 12px !important;
  white-space: normal !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner > span {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  line-height: 24px !important;
  text-align: center !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner div {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner strong,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner em,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner b {
  white-space: normal !important;
  line-height: 1.25 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner b {
  display: none !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #334155 !important;
}
.uts-by-size-guide-preprint-slot
  .wc-apf-quality-head
  span:not(.wc-apf-quality-ai-badge) {
  display: none !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 10px !important;
  white-space: normal !important;
  cursor: pointer !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary strong {
  font-size: 12px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip-detail {
  padding: 0 10px 10px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip-detail code {
  white-space: normal !important;
  word-break: break-word !important;
}

/* === UploadTransfers: larger, modern preprint report cards === */
.uts-by-size-modal__columns {
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr) !important;
  gap: 32px !important;
}
.uts-by-size-guide-card {
  padding: 28px !important;
  border-radius: 24px !important;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fbff 58%,
    #eef8ff 100%
  ) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14) !important;
}
.uts-by-size-guide-preprint-slot {
  margin-top: 0 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner {
  padding: 18px !important;
  gap: 14px !important;
  border-radius: 20px !important;
  margin-bottom: 22px !important;
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner > span {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  line-height: 38px !important;
  border-radius: 999px !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner strong {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  margin-bottom: 4px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner em {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-style: normal !important;
  color: #7c2d12 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-head {
  margin-bottom: 16px !important;
  padding: 0 2px !important;
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  color: #334155 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-head strong {
  font-size: 13px !important;
  font-weight: 950 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip-row {
  gap: 12px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip {
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1) !important;
  border-color: rgba(40, 164, 217, 0.35) !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary {
  min-height: 58px !important;
  gap: 13px !important;
  padding: 15px 16px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-icon {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-pass .wc-apf-quality-icon {
  background: #dcfce7 !important;
  color: #15803d !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-warning .wc-apf-quality-icon {
  background: #ffedd5 !important;
  color: #ea580c !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-info .wc-apf-quality-icon {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary strong {
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  color: #1f2937 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip-detail {
  padding: 0 16px 16px 61px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #475569 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip-detail p {
  margin: 0 0 8px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip-detail code {
  display: inline-block !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  padding: 5px 9px !important;
  font-size: 12px !important;
}
@media (max-width: 900px) {
  .uts-by-size-modal__columns {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .uts-by-size-guide-card {
    padding: 20px !important;
    border-radius: 20px !important;
  }
  .uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary {
    min-height: 54px !important;
    padding: 13px 14px !important;
  }
  .uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary strong {
    font-size: 14px !important;
  }
}

/* === UploadTransfers: preprint-only left panel (remove Size & Color Guide) === */
.uts-preprint-only-panel .uts-by-size-guide-card,
.uts-by-size-guide-card.uts-preprint-only-card {
  padding: 22px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1) !important;
}
.uts-preprint-only-panel .uts-by-size-guide-kicker,
.uts-preprint-only-panel .uts-by-size-guide-card h3,
.uts-preprint-only-panel .uts-by-size-guide-intro,
.uts-preprint-only-panel .uts-by-size-guide-list,
.uts-preprint-only-panel .uts-by-size-guide-warning {
  display: none !important;
}
.uts-preprint-only-panel .uts-by-size-guide-preprint-slot {
  margin-top: 0 !important;
}
.uts-preprint-only-panel .uts-by-size-guide-preprint-slot:empty::before {
  content: "Upload a file to see the Preprint Report.";
  display: block;
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  text-align: center;
}

/* === UploadTransfers blue branded preprint report + before-upload placeholder === */
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-warning,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-pass,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-info,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-loading {
  background: linear-gradient(
    135deg,
    #eaf7fd 0%,
    #ffffff 56%,
    #dff3fb 100%
  ) !important;
  border: 1px solid rgba(40, 164, 217, 0.34) !important;
  box-shadow: 0 16px 38px rgba(40, 164, 217, 0.16) !important;
  color: #0f3f56 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner > span,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-warning > span,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-pass > span,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-info > span {
  background: #fff !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(40, 164, 217, 0.28) !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner strong {
  color: #0f172a !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner em,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner b {
  color: #256178 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(240, 249, 255, 0.62)
  ) !important;
  border: 1px solid rgba(40, 164, 217, 0.16) !important;
  border-radius: 22px !important;
  padding: 16px 14px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06) !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-head strong {
  color: #0f3f56 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-head span {
  color: #28a4d9 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip {
  border-color: rgba(40, 164, 217, 0.18) !important;
  box-shadow: 0 10px 24px rgba(40, 164, 217, 0.07) !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip:hover {
  border-color: rgba(40, 164, 217, 0.45) !important;
  box-shadow: 0 18px 36px rgba(40, 164, 217, 0.13) !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-info .wc-apf-quality-icon {
  background: #eaf7fd !important;
  color: #28a4d9 !important;
}
.uts-by-size-guide-preprint-slot
  .wc-apf-quality-empty
  .wc-apf-quality-chip
  summary
  strong {
  color: #334155 !important;
}
.uts-by-size-guide-preprint-slot:empty::before {
  content: "" !important;
  display: none !important;
}

/* === UploadTransfers: move product Size & Color Guide into small modal === */
.uts-size-guide-source {
  display: none !important;
}
.uts-size-guide-open-small {
  width: 100%;
  margin: 14px 0 10px !important;
  padding: 13px 18px !important;
  border: 1px solid rgba(40, 164, 217, 0.35) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #eaf7fd, #ffffff) !important;
  color: #0b5f82 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px !important;
  box-shadow: 0 10px 24px rgba(40, 164, 217, 0.14) !important;
  cursor: pointer !important;
  text-align: center !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease !important;
}
.uts-size-guide-open-small:hover {
  transform: translateY(-1px) !important;
  border-color: #28a4d9 !important;
  box-shadow: 0 14px 30px rgba(40, 164, 217, 0.22) !important;
}
.uts-size-guide-small-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000002 !important;
}
.uts-size-guide-small-modal__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(12, 23, 34, 0.58) !important;
  backdrop-filter: blur(4px) !important;
}
.uts-size-guide-small-modal__dialog {
  position: relative !important;
  width: min(94vw, 980px) !important;
  max-height: 88vh !important;
  margin: 5vh auto !important;
  background: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32) !important;
  overflow: auto !important;
  padding: 22px !important;
}
.uts-size-guide-small-modal__close {
  position: sticky !important;
  top: 0 !important;
  float: right !important;
  z-index: 3 !important;
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0e1726 !important;
  color: #fff !important;
  font-size: 25px !important;
  line-height: 38px !important;
  cursor: pointer !important;
}
.uts-size-guide-in-small-modal {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.uts-size-guide-in-small-modal .inner-global-cont {
  position: relative !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}
.uts-size-guide-in-small-modal .container-color-image {
  max-height: none !important;
}
.uts-size-guide-in-small-modal .product-variant__container {
  margin-top: 18px !important;
}
.uts-size-guide-empty {
  padding: 35px !important;
  text-align: center !important;
  color: #243647 !important;
}
@media (max-width: 768px) {
  .uts-size-guide-small-modal__dialog {
    width: 96vw !important;
    max-height: 92vh !important;
    margin: 3vh auto !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }
}

/* === Fix Size & Color Guide button placement + top modal layer === */
.uts-by-size-modal .fileupload_preview {
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
}
.uts-by-size-modal .fileupload_preview .uts-size-guide-open-small {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 14px auto 8px !important;
  display: block !important;
  order: 99 !important;
  min-height: 46px !important;
  white-space: normal !important;
}
.uts-size-guide-small-modal {
  z-index: 2147483600 !important;
}
.uts-size-guide-small-modal__overlay {
  z-index: 2147483601 !important;
}
.uts-size-guide-small-modal__dialog {
  position: relative !important;
  z-index: 2147483602 !important;
  width: min(90vw, 780px) !important;
  max-height: 82vh !important;
  margin: 7vh auto !important;
}
@media (max-width: 768px) {
  .uts-size-guide-small-modal__dialog {
    width: 94vw !important;
    max-height: 86vh !important;
    margin: 5vh auto !important;
  }
}

/* === UploadTransfers repair: guide button under preview without affecting preview geometry === */
.uts-by-size-modal .fileupload_preview {
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}
.uts-by-size-modal .fileupload_preview > .uts-size-guide-open-small {
  display: none !important;
}
.uts-by-size-modal .uts-size-guide-open-small.uts-guide-under-preview {
  width: 100% !important;
  max-width: 620px !important;
  margin: 12px auto 18px !important;
  display: block !important;
  min-height: 46px !important;
  position: relative !important;
  z-index: 2 !important;
}
.uts-by-size-modal .inner-hold {
  margin-left: auto !important;
  margin-right: auto !important;
}
.uts-by-size-modal .easyzoom.zoom-box .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box .hover_textos * {
  pointer-events: none !important;
}
.uts-by-size-modal .easyzoom.zoom-box:hover .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box.is-hovering .hover_textos {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.uts-by-size-modal .easyzoom.zoom-box:not(:hover) .hover_textos {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* Make mockup hover dimming self-clean: only dim while actually hovering the guide tile. */
.container-color-image .child-color-image.uts-hover-download:not(:hover) > img,
.container-color-image
  .child-color-image.uts-hover-download:not(:hover)
  .child-image-wrapper
  > img {
  filter: none !important;
  opacity: 1 !important;
}
.container-color-image
  .child-color-image.uts-hover-download:not(:hover)
  .uts-mockup-download-btn {
  display: none !important;
}

/* === UploadTransfers final repair: stable guide trigger and preview hover === */
.uts-by-size-modal .fileupload_preview {
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.uts-by-size-modal .fileupload_preview > .uts-size-guide-open-small,
.uts-by-size-modal .fileupload_preview > .uts-size-guide-button-slot {
  display: none !important;
}
.uts-by-size-modal .uts-size-guide-button-slot {
  display: block !important;
  width: 100% !important;
  max-width: 620px !important;
  margin: 12px auto 24px !important;
  padding: 0 !important;
  clear: both !important;
  position: relative !important;
  z-index: 5 !important;
}
.uts-by-size-modal .uts-size-guide-button-slot .uts-size-guide-open-small,
.uts-by-size-modal .uts-size-guide-open-small.uts-guide-under-preview {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 18px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(40, 164, 217, 0.45) !important;
  background: linear-gradient(180deg, #f3fbff, #e6f7ff) !important;
  color: #126f96 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
  box-shadow: 0 8px 20px rgba(40, 164, 217, 0.12) !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 6 !important;
}
.uts-by-size-modal
  .uts-size-guide-button-slot
  .uts-size-guide-open-small:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 26px rgba(40, 164, 217, 0.18) !important;
}
.uts-by-size-modal .inner-hold {
  margin-left: auto !important;
  margin-right: auto !important;
}
.uts-by-size-modal .easyzoom.zoom-box .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box .hover_textos * {
  pointer-events: none !important;
}
.uts-by-size-modal .easyzoom.zoom-box:hover .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box.is-hovering .hover_textos {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}
.uts-by-size-modal .easyzoom.zoom-box:not(:hover) .hover_textos {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}
#uts-size-guide-small-modal,
.uts-size-guide-small-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483640 !important;
}
.uts-size-guide-small-modal__overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2147483641 !important;
  background: rgba(9, 18, 28, 0.62) !important;
  backdrop-filter: blur(5px) !important;
}
.uts-size-guide-small-modal__dialog {
  position: relative !important;
  z-index: 2147483642 !important;
  width: min(92vw, 820px) !important;
  max-height: 84vh !important;
  margin: 7vh auto !important;
  background: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38) !important;
  overflow: auto !important;
  padding: 20px !important;
}
.uts-size-guide-small-modal__close {
  position: sticky !important;
  top: 0 !important;
  float: right !important;
  z-index: 2147483643 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #0e1726 !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 40px !important;
  cursor: pointer !important;
}
.uts-size-guide-in-small-modal {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 768px) {
  .uts-by-size-modal .uts-size-guide-button-slot {
    max-width: 100% !important;
    margin: 10px auto 18px !important;
  }
  .uts-size-guide-small-modal__dialog {
    width: 95vw !important;
    max-height: 88vh !important;
    margin: 5vh auto !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }
}

/* === UploadTransfers final fix: keep preview clean and stable === */
.uts-by-size-modal .easyzoom.zoom-box,
.uts-by-size-modal .fileupload_preview {
  overflow: visible !important;
}
.uts-by-size-modal .easyzoom.zoom-box .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box:hover .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box.is-hovering .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box:not(:hover) .hover_textos {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: transparent !important;
}
.uts-by-size-modal .easyzoom.zoom-box:before,
.uts-by-size-modal .easyzoom.zoom-box:after,
.uts-by-size-modal .fileupload_preview:before,
.uts-by-size-modal .fileupload_preview:after {
  pointer-events: none !important;
}
.uts-by-size-modal .previewFullWidth,
.uts-by-size-modal .xzoom.previewFullWidth,
.uts-by-size-modal #fileupload_hero {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
}
.uts-by-size-modal .viewer-box,
.uts-by-size-modal .zoom-selector {
  pointer-events: none !important;
}
.uts-by-size-modal .horizontal_direction,
.uts-by-size-modal .fileupload_preview,
.uts-by-size-modal .easyzoom.zoom-box {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.uts-by-size-modal .uts-size-guide-button-slot {
  clear: both !important;
}
@media (min-width: 901px) {
  .uts-by-size-modal__columns {
    grid-template-columns: minmax(300px, 340px) minmax(620px, 1fr) !important;
    gap: 22px !important;
  }
  .uts-by-size-modal__content {
    padding: 24px !important;
  }
}
@media (min-width: 1200px) {
  .uts-by-size-modal__columns {
    grid-template-columns: minmax(300px, 340px) minmax(760px, 1fr) !important;
  }
}

/* === UploadTransfers final repair: preview rulers + hover zoom overlay === */
.uts-by-size-modal .fileupload_preview {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.uts-by-size-modal .fileupload_preview .verticle_direction {
  width: 58px !important;
  min-width: 58px !important;
  flex: 0 0 58px !important;
  box-sizing: border-box !important;
  margin-right: 12px !important;
  margin-bottom: 0 !important;
}
.uts-by-size-modal .fileupload_preview .verticle_direction_text {
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
  line-height: 1.1 !important;
  padding: 4px 0 !important;
  background: #fff !important;
}
.uts-by-size-modal .fileupload_preview .inner-hold {
  flex: 1 1 auto !important;
  max-width: 760px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
.uts-by-size-modal .fileupload_preview .horizontal_direction {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.uts-by-size-modal .fileupload_preview .easyzoom.zoom-box {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.uts-by-size-modal .fileupload_preview .xzoom.previewFullWidth,
.uts-by-size-modal .fileupload_preview #fileupload_hero {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
}
.uts-by-size-modal .easyzoom.zoom-box .hover_textos {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  background: rgba(0, 0, 0, 0.72) !important;
  color: #fff !important;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease !important;
}
.uts-by-size-modal .easyzoom.zoom-box:hover .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box.is-hovering .hover_textos {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.uts-by-size-modal .viewer-box,
.uts-by-size-modal .zoom-selector {
  pointer-events: auto !important;
}
.uts-by-size-modal .uts-size-guide-button-slot {
  width: 100% !important;
  max-width: 760px !important;
  margin: 12px auto 22px !important;
  clear: both !important;
}
@media (max-width: 900px) {
  .uts-by-size-modal .fileupload_preview {
    justify-content: flex-start !important;
  }
  .uts-by-size-modal .fileupload_preview .verticle_direction {
    width: 46px !important;
    min-width: 46px !important;
    flex-basis: 46px !important;
    margin-right: 8px !important;
  }
}

/* === UploadTransfers FINAL: restore hover overlay and zoom preview === */
.uts-by-size-modal .fileupload_preview .easyzoom.zoom-box {
  position: relative !important;
  overflow: visible !important;
  background-color: #fff !important;
  background-image:
    linear-gradient(45deg, #e7e7e7 25%, transparent 25%),
    linear-gradient(-45deg, #e7e7e7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7e7e7 75%),
    linear-gradient(-45deg, transparent 75%, #e7e7e7 75%) !important;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0 !important;
  background-size: 16px 16px !important;
}
.uts-by-size-modal .easyzoom.zoom-box .hover_textos {
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.7) !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: clamp(18px, 2.2vw, 30px) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease !important;
}
.uts-by-size-modal .easyzoom.zoom-box:hover .hover_textos,
.uts-by-size-modal .easyzoom.zoom-box.is-hovering .hover_textos {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.uts-by-size-modal .easyzoom.zoom-box .viewer-box {
  position: absolute !important;
  top: 0 !important;
  left: calc(100% + 16px) !important;
  width: min(390px, 34vw) !important;
  height: 100% !important;
  min-height: 220px !important;
  display: none;
  overflow: hidden !important;
  border: 2px solid #28a4d9 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22) !important;
  z-index: 999999 !important;
  pointer-events: none !important;
}
.uts-by-size-modal .easyzoom.zoom-box .viewer-box img {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  max-width: none !important;
  transform-origin: 0 0 !important;
}
.uts-by-size-modal .easyzoom.zoom-box .zoom-selector {
  position: absolute !important;
  width: 42px !important;
  height: 42px !important;
  border: 2px solid rgba(40, 164, 217, 0.95) !important;
  background: rgba(40, 164, 217, 0.16) !important;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.08) !important;
  border-radius: 8px !important;
  display: none;
  z-index: 25 !important;
  pointer-events: none !important;
}
@media (max-width: 1100px) {
  .uts-by-size-modal .easyzoom.zoom-box .viewer-box {
    left: 0 !important;
    top: calc(100% + 12px) !important;
    width: 100% !important;
    height: 260px !important;
  }
}

/* === UploadTransfers final: wider centered Preprint Report left column === */
.uts-by-size-modal__columns {
  grid-template-columns: minmax(460px, 560px) minmax(0, 1fr) !important;
  gap: 34px !important;
  align-items: start !important;
}
.uts-by-size-guide-panel,
.uts-preprint-only-panel {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}
.uts-by-size-guide-card.uts-preprint-only-card,
.uts-preprint-only-panel .uts-by-size-guide-card {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 28px !important;
  box-sizing: border-box !important;
}
.uts-by-size-guide-preprint-slot {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-check,
.uts-by-size-guide-preprint-slot .wc-apf-quality-panel,
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip-row,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-panel {
  padding: 20px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-head {
  justify-content: center !important;
  text-align: center !important;
  margin-bottom: 18px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary {
  justify-content: flex-start !important;
  min-height: 66px !important;
  padding: 18px 20px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary strong {
  font-size: 16px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner {
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 20px !important;
  min-height: 92px !important;
}
@media (max-width: 1100px) {
  .uts-by-size-modal__columns {
    grid-template-columns: minmax(390px, 460px) minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  .uts-by-size-guide-card.uts-preprint-only-card,
  .uts-preprint-only-panel .uts-by-size-guide-card {
    max-width: 440px !important;
    padding: 24px !important;
  }
}
@media (max-width: 900px) {
  .uts-by-size-modal__columns {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .uts-by-size-guide-card.uts-preprint-only-card,
  .uts-preprint-only-panel .uts-by-size-guide-card {
    max-width: none !important;
    width: 100% !important;
  }
}

/* === UploadTransfers correction: restore builder width and equalize dimension/price controls === */
@media (min-width: 901px) {
  .uts-by-size-modal__columns {
    grid-template-columns: minmax(300px, 340px) minmax(760px, 1fr) !important;
    gap: 24px !important;
  }
  .uts-by-size-guide-card.uts-preprint-only-card,
  .uts-preprint-only-panel .uts-by-size-guide-card {
    max-width: 340px !important;
    padding: 24px !important;
  }
}
@media (min-width: 1200px) {
  .uts-by-size-modal__columns {
    grid-template-columns: minmax(310px, 350px) minmax(820px, 1fr) !important;
  }
}

.uts-by-size-modal .wc-apf-dimension-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 18px !important;
  align-items: end !important;
  width: 100% !important;
  grid-auto-flow: column;
  justify-content: stretch !important;
}
.uts-by-size-modal .wc-apf-dimension-control,
.uts-by-size-modal .wc-apf-dimension-control.width,
.uts-by-size-modal .wc-apf-dimension-control.height,
.uts-by-size-modal .wc-apf-dimension-price {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.uts-by-size-modal .wc-apf-dimension-control > div {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}
.uts-by-size-modal .wc-apf-dim-minus,
.uts-by-size-modal .wc-apf-dim-plus {
  width: 22px !important;
  height: 48px !important;
  min-width: 22px !important;
  color: #0d6f96 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.uts-by-size-modal .wc-apf-dim-minus {
  background-color: #f8f9fa;
  border: none;
  padding: 7px 3px;
  cursor: pointer;
  box-shadow: 0px 0px 2px 1px #28a4d9 !important;
  position: relative;
  border-radius: 5px 0px 0px 5px;
}
.uts-by-size-modal .wc-apf-dim-plus {
  background-color: #f8f9fa;
  border: none;
  padding: 7px 3px;
  cursor: pointer;
  box-shadow: 0px 0px 2px 1px #28a4d9 !important;
  position: relative;
  border-radius: 0px 5px 5px 0px;
}
.uts-by-size-modal input.wc-apf-dimension-input {
  height: 48px !important;
  min-height: 48px !important;
  width: 100% !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #222 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.uts-by-size-modal .wc-apf-file-price {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  box-shadow: 0 8px 18px rgba(40, 164, 217, 0.22) !important;
}
.uts-by-size-modal .wc-apf-dimension-control label,
.uts-by-size-modal .wc-apf-dimension-price label {
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
/* @media (max-width: 900px) {
  .uts-by-size-modal .wc-apf-dimension-row {
    grid-template-columns: 1fr !important;
  }
} */

/* === UploadTransfers requested fix: left Preprint Report panel 500px wide === */
@media (min-width: 901px) {
  .uts-by-size-modal__columns {
    grid-template-columns: 500px minmax(760px, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
  }
  .uts-by-size-guide-panel,
  .uts-preprint-only-panel {
    width: 500px !important;
    min-width: 500px !important;
    max-width: 500px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
  }
  .uts-by-size-guide-card.uts-preprint-only-card,
  .uts-preprint-only-panel .uts-by-size-guide-card {
    width: 500px !important;
    min-width: 500px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 26px !important;
    box-sizing: border-box !important;
  }
  .uts-by-size-guide-preprint-slot,
  .uts-by-size-guide-preprint-slot .wc-apf-quality-check,
  .uts-by-size-guide-preprint-slot .wc-apf-quality-panel,
  .uts-by-size-guide-preprint-slot .wc-apf-quality-chip-row,
  .uts-by-size-guide-preprint-slot .wc-apf-quality-banner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  .uts-by-size-guide-preprint-slot .wc-apf-quality-panel {
    padding: 22px !important;
  }
  .uts-by-size-guide-preprint-slot .wc-apf-quality-head {
    justify-content: center !important;
    text-align: center !important;
  }
  .uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary {
    min-height: 64px !important;
    padding: 16px 18px !important;
    align-items: center !important;
  }
  .uts-by-size-guide-preprint-slot .wc-apf-quality-chip summary strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }
  .uts-by-size-guide-preprint-slot .wc-apf-quality-banner {
    min-height: 90px !important;
    padding: 18px 20px !important;
    align-items: center !important;
  }
}
@media (max-width: 900px) {
  .uts-by-size-guide-panel,
  .uts-preprint-only-panel,
  .uts-by-size-guide-card.uts-preprint-only-card,
  .uts-preprint-only-panel .uts-by-size-guide-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* === Mobile only: Preprint Report panel hidden until the first file is uploaded === */
@media (max-width: 900px) {
  .uts-by-size-guide-panel.uts-preprint-only-panel {
    display: none !important;
  }
  .uts-by-size-guide-panel.uts-preprint-only-panel.uts-preprint-has-files {
    display: flex !important;
  }
  .uts-by-size-modal__dialog.uts-dialog-grow {
    height: 92vh !important;
  }
}

/* Modern one-line Machine Pre-cut row */
table.wc-apf-precut-table,
table.wc-apf-precut-table.wc-apf-precut-clone {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-top: 16px !important;
  margin-bottom: 22px !important;
}
table.wc-apf-precut-table tfoot,
table.wc-apf-precut-table.wc-apf-precut-clone tfoot {
  display: block !important;
  width: 100% !important;
}
table.wc-apf-precut-table .precut-row,
table.wc-apf-precut-table .wc-apf-precut-modern-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 62px !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
  background: #e2f6ff !important;
  border: 1px dashed #111 !important;
  border-radius: 8px !important;
}
table.wc-apf-precut-table .precut-row th,
table.wc-apf-precut-table .wc-apf-precut-modern-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  font-weight: 600 !important;
}
table.wc-apf-precut-table .precut-row th img,
table.wc-apf-precut-table .wc-apf-precut-scissors {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  display: block !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
table.wc-apf-precut-table .wc-apf-precut-text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1.2 !important;
  font-size: 14px !important;
  color: #111827 !important;
}
table.wc-apf-precut-table .wc-apf-precut-price,
table.wc-apf-precut-table .precut-row th span {
  color: #28a4d9 !important;
  font-weight: 800 !important;
}
table.wc-apf-precut-table .precut-row td,
table.wc-apf-precut-table .wc-apf-precut-modern-switch {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 0 0 16px !important;
  width: auto !important;
}
table.wc-apf-precut-table .toggle,
table.wc-apf-precut-table .wc-apf-precut-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  margin: 0 !important;
}
table.wc-apf-precut-table input.precut-checkbox[type="checkbox"] {
  margin: 0 !important;
}
@media (max-width: 640px) {
  table.wc-apf-precut-table .precut-row,
  table.wc-apf-precut-table .wc-apf-precut-modern-row {
    padding: 0 12px !important;
    min-height: 58px !important;
  }
  table.wc-apf-precut-table .wc-apf-precut-text {
    font-size: 12px !important;
  }
}

/* === UploadTransfers final fix: only the Price box is blue === */
.uts-by-size-modal .wc-apf-file-price,
.uts-by-size-modal .wc-apf-dimension-price .wc-apf-file-price,
.uts-by-size-modal .wc-apf-dimension-row .wc-apf-file-price {
  background: #28a4d9 !important;
  background-color: #28a4d9 !important;
  color: #ffffff !important;
  border: 2px solid #28a4d9 !important;
  box-shadow: 0 8px 18px rgba(40, 164, 217, 0.22) !important;
}
.uts-by-size-modal .wc-apf-file-price * {
  color: #ffffff !important;
}
.uts-by-size-modal .wc-apf-dim-minus,
.uts-by-size-modal .wc-apf-dim-plus,
.uts-by-size-modal input.wc-apf-dimension-input {
  background: #f8f8f8 !important;
  background-color: #f8f8f8 !important;
  color: #1f2937 !important;
}
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-text,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-price,
.uts-by-size-modal table.wc-apf-precut-table .precut-row th span,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-label,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-label * {
  color: #1f2937 !important;
}

/* === Final customer requested fixes: Pre-cut price blue + preprint banner icon visible === */
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-text,
.uts-by-size-modal table.wc-apf-precut-table .precut-row th,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-label,
.uts-by-size-modal
  table.wc-apf-precut-table
  .wc-apf-precut-modern-label
  span:not(.wc-apf-precut-price) {
  color: #1f2937 !important;
}
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-price,
.uts-by-size-modal
  table.wc-apf-precut-table
  .precut-row
  th
  span.wc-apf-precut-price {
  color: #28a4d9 !important;
  font-weight: 900 !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner > span,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-warning > span,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-pass > span,
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-info > span {
  background: #28a4d9 !important;
  color: #ffffff !important;
  border: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 18px !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-pass > span {
  background: #16a34a !important;
}
.uts-by-size-guide-preprint-slot .wc-apf-quality-banner-warning > span {
  background: #28a4d9 !important;
}

/* === UploadTransfers AI Tools cleanup: white cards + toggle switches === */
.uts-by-size-modal table.aitools,
.uts-by-size-modal .aitools {
  border: 1px solid #d9e2ea !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}
.uts-by-size-modal table.aitools tfoot {
  display: grid !important;
  row-gap: 10px !important;
  padding: 14px !important;
  background: #ffffff !important;
}
.uts-by-size-modal table.aitools tr:not(.ai-disclaimer-row):not(.wc-apf-halftone-controls-row),
.uts-by-size-modal table.aitools tr.drop-shipping-select,
.uts-by-size-modal table.aitools tr.wc-apf-halftone-controls-row {
  background: #e2f6ff !important;
  border: 1px solid #d8e1e8 !important;
  border-radius: 12px !important;
  min-height: 58px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.uts-by-size-modal table.aitools tfoot > tr:not(.ai-disclaimer-row) {
  background: #e2f6ff !important;
}
.uts-by-size-modal
  table.aitools
  tr:not(:first-child):not(.ai-disclaimer-row):hover {
  background: #f8fbfd !important;
  border-color: #28a4d9 !important;
}
.uts-by-size-modal table.aitools th {
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  padding: 0 !important;
}
.uts-by-size-modal table.aitools td.switchat {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 56px !important;
}
.uts-by-size-modal table.aitools .toggle {
  position: relative !important;
  width: 48px !important;
  height: 28px !important;
  display: inline-block !important;
  margin: 0 !important;
}
.uts-by-size-modal table.aitools .toggle input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.uts-by-size-modal table.aitools .toggle label {
  display: block !important;
  width: 48px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  background: #cfd8df !important;
  border: 1px solid #b8c5ce !important;
  border-radius: 999px !important;
  position: relative !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12) !important;
}
.uts-by-size-modal table.aitools .toggle label:before {
  content: "" !important;
  position: absolute !important;
  width: 22px !important;
  height: 22px !important;
  left: 2px !important;
  top: 2px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25) !important;
  transition: transform 0.2s ease !important;
}
.uts-by-size-modal
  table.aitools
  .toggle
  input[type="checkbox"]:checked
  + label {
  background: #28a4d9 !important;
  border-color: #28a4d9 !important;
}
.uts-by-size-modal
  table.aitools
  .toggle
  input[type="checkbox"]:checked
  + label:before {
  transform: translateX(20px) !important;
}
.uts-by-size-modal table.aitools .ai-disclaimer,
.uts-by-size-modal table.aitools .ai-disclaimer-row .ai-disclaimer {
  background: #f8fbfd !important;
  border: 1px solid #d8e1e8 !important;
  border-radius: 12px !important;
  padding: 12px !important;
}

/* === UploadTransfers fix: AI tools panel not clipped + restore blue row colors === */
.uts-by-size-modal .ai-container,
.uts-by-size-modal .ai-tools-box,
.uts-by-size-modal table.aitools,
.uts-by-size-modal table.aitools *,
.uts-by-size-modal .aitools,
.uts-by-size-modal .aitools * {
  box-sizing: border-box !important;
}
.uts-by-size-modal .ai-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
.uts-by-size-modal table.aitools,
.uts-by-size-modal .aitools {
  width: 100% !important;
  max-width: calc(100% - 10px) !important;
  margin-right: 10px !important;
  border: 1px solid #d7e6ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
  overflow: visible !important;
}
.uts-by-size-modal table.aitools tfoot {
  width: 100% !important;
  max-width: 100% !important;
  padding: 14px 18px 14px 14px !important;
  display: grid !important;
  row-gap: 10px !important;
  background: #ffffff !important;
  overflow: visible !important;
}
.uts-by-size-modal table.aitools tr:not(:first-child):not(.ai-disclaimer-row),
.uts-by-size-modal table.aitools tr.drop-shipping-select,
.uts-by-size-modal table.aitools tr.wc-apf-halftone-controls-row {
  width: 100% !important;
  max-width: 100% !important;
  background: #e2f6ff !important;
  border: 1px solid #cfeaf6 !important;
  border-radius: 8px !important;
  min-height: 58px !important;
  padding: 0 12px !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: visible !important;
}
.uts-by-size-modal
  table.aitools
  tr:not(:first-child):not(.ai-disclaimer-row):hover {
  background: #d8f2fc !important;
  border-color: #28a4d9 !important;
}
.uts-by-size-modal table.aitools th {
  color: #1f2937 !important;
  font-weight: 700 !important;
  padding: 0 10px 0 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.uts-by-size-modal table.aitools td.switchat {
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  flex: 0 0 62px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  overflow: visible !important;
}
.uts-by-size-modal table.aitools .toggle {
  width: 54px !important;
  min-width: 54px !important;
  height: 30px !important;
  margin: 0 !important;
  position: relative !important;
  overflow: visible !important;
}
.uts-by-size-modal table.aitools .toggle label {
  width: 54px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #c8d1d8 !important;
  border: 1px solid #aebbc5 !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.15) !important;
  margin: 0 !important;
  display: block !important;
}
.uts-by-size-modal table.aitools .toggle label:before {
  width: 24px !important;
  height: 24px !important;
  left: 2px !important;
  top: 2px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25) !important;
}
.uts-by-size-modal
  table.aitools
  .toggle
  input[type="checkbox"]:checked
  + label {
  background: #28a4d9 !important;
  border-color: #28a4d9 !important;
}
.uts-by-size-modal
  table.aitools
  .toggle
  input[type="checkbox"]:checked
  + label:before {
  transform: translateX(24px) !important;
}
.uts-by-size-modal table.aitools .wc-apf-halftone-controls-row {
  padding: 12px !important;
  flex-direction: column !important;
}
.uts-by-size-modal table.aitools .ai-disclaimer,
.uts-by-size-modal table.aitools .ai-disclaimer-row .ai-disclaimer {
  background: #e2f6ff !important;
  border: 1px solid #cfeaf6 !important;
  border-radius: 8px !important;
}

/* === UploadTransfers final requested tweak: AI tools panel narrower, same colors === */
@media (min-width: 901px) {
  .uts-by-size-modal .ai-container {
    width: 430px !important;
    max-width: 430px !important;
    flex: 0 0 430px !important;
    padding-right: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  .uts-by-size-modal table.aitools,
  .uts-by-size-modal .aitools {
    width: 430px !important;
    max-width: 430px !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }
  .uts-by-size-modal table.aitools tfoot {
    padding: 14px !important;
  }
  .uts-by-size-modal table.aitools tr:not(:first-child):not(.ai-disclaimer-row),
  .uts-by-size-modal table.aitools tr.drop-shipping-select,
  .uts-by-size-modal table.aitools tr.wc-apf-halftone-controls-row {
    padding: 0 10px !important;
  }
  .uts-by-size-modal table.aitools td.switchat {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    flex-basis: 58px !important;
  }
}
@media (max-width: 900px) {
  .uts-by-size-modal .ai-container,
  .uts-by-size-modal table.aitools,
  .uts-by-size-modal .aitools {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: auto !important;
  }
}

/* === UploadTransfers final: Machine Pre-cut full preview width, no inner white card === */
.uts-by-size-modal table.wc-apf-precut-table,
.uts-by-size-modal table.wc-apf-precut-table.wc-apf-precut-clone {
  width: 100% !important;
  max-width: 760px !important;
  margin: 16px auto 22px !important;
  display: block !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.uts-by-size-modal table.wc-apf-precut-table tfoot,
.uts-by-size-modal table.wc-apf-precut-table tbody,
.uts-by-size-modal table.wc-apf-precut-table tr {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  background: transparent !important;
}
.uts-by-size-modal table.wc-apf-precut-table .precut-row,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-row {
  width: 100% !important;
  max-width: 760px !important;
  min-height: 62px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 18px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px dashed #111827 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.uts-by-size-modal table.wc-apf-precut-table .precut-row th,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: #1f2937 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.uts-by-size-modal table.wc-apf-precut-table .precut-row th img,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-scissors {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
}
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-text,
.uts-by-size-modal table.wc-apf-precut-table .precut-row th {
  color: #1f2937 !important;
  font-weight: 700 !important;
}
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-price,
.uts-by-size-modal
  table.wc-apf-precut-table
  .precut-row
  th
  span.wc-apf-precut-price {
  color: #28a4d9 !important;
  font-weight: 900 !important;
}
.uts-by-size-modal table.wc-apf-precut-table .precut-row td,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-switch {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  margin-left: 16px !important;
  padding: 0 !important;
  background: transparent !important;
}
@media (max-width: 900px) {
  .uts-by-size-modal table.wc-apf-precut-table,
  .uts-by-size-modal table.wc-apf-precut-table .precut-row,
  .uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-row {
    max-width: 100% !important;
  }
}

/* === Customer final fix: blue full-width Machine Pre-cut bar === */
.uts-by-size-modal table.wc-apf-precut-table,
.uts-by-size-modal table.wc-apf-precut-table.wc-apf-precut-clone {
  width: 100% !important;
  max-width: none !important;
  margin: 16px 0 22px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.uts-by-size-modal table.wc-apf-precut-table .precut-row,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-row {
  width: 100% !important;
  max-width: none !important;
  min-height: 62px !important;
  background: #eaf7fd !important;
  background-color: #eaf7fd !important;
  border: 1px dashed #111827 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.uts-by-size-modal table.wc-apf-precut-table .precut-row th,
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-modern-label {
  background: transparent !important;
}
.uts-by-size-modal table.wc-apf-precut-table .wc-apf-precut-price,
.uts-by-size-modal
  table.wc-apf-precut-table
  .precut-row
  th
  span.wc-apf-precut-price {
  color: #28a4d9 !important;
  font-weight: 900 !important;
}

/* === Final fix: Machine Pre-cut bar matches the full width of the size/price controls === */
.uts-by-size-modal table.wc-apf-precut-table.aitools,
.uts-by-size-modal table.wc-apf-precut-table.wc-apf-precut-clone.aitools {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin: 16px 0 22px !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.uts-by-size-modal table.wc-apf-precut-table.aitools tfoot,
.uts-by-size-modal table.wc-apf-precut-table.wc-apf-precut-clone.aitools tfoot,
.uts-by-size-modal table.wc-apf-precut-table.aitools tbody {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.uts-by-size-modal table.wc-apf-precut-table.aitools .precut-row,
.uts-by-size-modal table.wc-apf-precut-table.aitools .wc-apf-precut-modern-row,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  .precut-row,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  .wc-apf-precut-modern-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  background: #eaf7fd !important;
  background-color: #eaf7fd !important;
  border: 1px dashed #111827 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.uts-by-size-modal table.wc-apf-precut-table.aitools .precut-row th,
.uts-by-size-modal
  table.wc-apf-precut-table.aitools
  .wc-apf-precut-modern-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.uts-by-size-modal table.wc-apf-precut-table.aitools .wc-apf-precut-price {
  color: #28a4d9 !important;
  font-weight: 900 !important;
}

/* === Final fix: restore visible Machine Pre-cut enable checkbox === */
.uts-by-size-modal table.wc-apf-precut-table.aitools .precut-row,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  .precut-row,
.uts-by-size-modal table.wc-apf-precut-table.aitools .wc-apf-precut-modern-row,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  .wc-apf-precut-modern-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
.uts-by-size-modal table.wc-apf-precut-table.aitools .precut-row td,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  .precut-row
  td,
.uts-by-size-modal
  table.wc-apf-precut-table.aitools
  .wc-apf-precut-modern-switch,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  .wc-apf-precut-modern-switch {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 24px !important;
  margin-left: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}
.uts-by-size-modal table.wc-apf-precut-table.aitools .wc-apf-precut-toggle,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  .wc-apf-precut-toggle,
.uts-by-size-modal table.wc-apf-precut-table.aitools .toggle,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  .toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}
.uts-by-size-modal
  table.wc-apf-precut-table.aitools
  input.precut-checkbox[type="checkbox"],
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  input.precut-checkbox[type="checkbox"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #8b95a1 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  color: #111827 !important;
  pointer-events: auto !important;
  z-index: 3 !important;
  flex: 0 0 16px !important;
}
.uts-by-size-modal
  table.wc-apf-precut-table.aitools
  input.precut-checkbox[type="checkbox"]:checked,
.uts-by-size-modal
  table.wc-apf-precut-table.wc-apf-precut-clone.aitools
  input.precut-checkbox[type="checkbox"]:checked {
  accent-color: #28a4d9 !important;
}

/* UploadTransfers fix: make Size & Color Guide modal wider so mockups/swatches fit */
.uts-guide-modal {
  width: min(1280px, 96vw) !important;
  max-width: 1280px !important;
}
.uts-guide-modal__body {
  grid-template-columns: minmax(760px, 1fr) 260px !important;
}
.uts-guide-modal__mockup {
  max-width: 860px !important;
}
@media (max-width: 980px) {
  .uts-guide-modal {
    width: 96vw !important;
  }
  .uts-guide-modal__body {
    grid-template-columns: 1fr !important;
  }
  .uts-guide-modal__mockup {
    max-width: 100% !important;
  }
}

/* === UploadTransfers FIX: make Size & Color Guide popup truly wider === */
#uts-size-guide-small-modal.uts-size-guide-small-modal
  .uts-size-guide-small-modal__dialog,
.uts-size-guide-small-modal .uts-size-guide-small-modal__dialog {
  width: min(96vw, 1320px) !important;
  max-width: 1320px !important;
  min-width: 1080px !important;
  max-height: 90vh !important;
  margin: 4vh auto !important;
  padding: 24px 34px 24px 34px !important;
  box-sizing: border-box !important;
}
#uts-size-guide-small-modal .uts-size-guide-small-modal__content,
.uts-size-guide-small-modal .uts-size-guide-small-modal__content {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
#uts-size-guide-small-modal .uts-size-guide-in-small-modal,
#uts-size-guide-small-modal .uts-size-guide-in-small-modal .global-cont,
#uts-size-guide-small-modal .uts-size-guide-in-small-modal .inner-global-cont,
#uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .container-color-image {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
#uts-size-guide-small-modal .uts-size-guide-in-small-modal .inner-global-cont {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
#uts-size-guide-small-modal .uts-size-guide-in-small-modal img {
  max-width: 100% !important;
}
@media (max-width: 1120px) {
  #uts-size-guide-small-modal.uts-size-guide-small-modal
    .uts-size-guide-small-modal__dialog,
  .uts-size-guide-small-modal .uts-size-guide-small-modal__dialog {
    width: 96vw !important;
    min-width: 0 !important;
    max-width: 96vw !important;
    padding: 16px !important;
    margin: 3vh auto !important;
  }
}

/* === UploadTransfers REAL FIX: larger Size & Color Guide modal without clipping ===
   Keeps the original mockup guide look, but gives the guide more room and prevents the right side from being cut off. */
body
  #uts-size-guide-small-modal.uts-size-guide-small-modal
  .uts-size-guide-small-modal__dialog,
body .uts-size-guide-small-modal .uts-size-guide-small-modal__dialog {
  width: min(98vw, 1180px) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  max-height: 92vh !important;
  margin: 4vh auto !important;
  padding: 26px 34px 28px !important;
  box-sizing: border-box !important;
  overflow: auto !important;
}
body #uts-size-guide-small-modal .uts-size-guide-small-modal__content,
body .uts-size-guide-small-modal .uts-size-guide-small-modal__content {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
body #uts-size-guide-small-modal .uts-size-guide-in-small-modal,
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .inner-global-cont {
  width: 1040px !important;
  max-width: calc(100% - 18px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .inner-global-cont {
  padding: 22px !important;
  overflow: visible !important;
  border-radius: 20px !important;
}
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .container-color-image {
  width: 90% !important;
  max-width: 90% !important;
  margin: 30px auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .child-color-image {
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .child-color-image
  img {
  max-width: 100% !important;
  height: auto !important;
}
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .product-variant__container {
  width: 1040px !important;
  max-width: calc(100% - 18px) !important;
  margin: 18px auto 0 !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
body #uts-size-guide-small-modal .uts-size-guide-small-modal__close {
  right: 8px !important;
  top: 0 !important;
}
@media (max-width: 900px) {
  body
    #uts-size-guide-small-modal.uts-size-guide-small-modal
    .uts-size-guide-small-modal__dialog,
  body .uts-size-guide-small-modal .uts-size-guide-small-modal__dialog {
    width: 96vw !important;
    max-width: 96vw !important;
    padding: 16px !important;
    margin: 3vh auto !important;
  }
  body #uts-size-guide-small-modal .uts-size-guide-in-small-modal,
  body
    #uts-size-guide-small-modal
    .uts-size-guide-in-small-modal
    .inner-global-cont,
  body
    #uts-size-guide-small-modal
    .uts-size-guide-in-small-modal
    .product-variant__container {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* === UploadTransfers FIX: guide modal color label should not overlap swatches === */
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .inner-global-cont {
  margin-bottom: 58px !important;
}
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .inner-global-cont
  > span {
  bottom: -44px !important;
  z-index: 5 !important;
  max-width: calc(100% - 40px) !important;
  white-space: nowrap !important;
}
body
  #uts-size-guide-small-modal
  .uts-size-guide-in-small-modal
  .product-variant__container {
  margin-top: 0 !important;
}
@media (max-width: 768px) {
  body
    #uts-size-guide-small-modal
    .uts-size-guide-in-small-modal
    .inner-global-cont
    > span {
    bottom: -48px !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 35px !important;
    padding: 6px 10px !important;
  }
}

/* UploadTransfers fix: direct mockup download uses the existing modal renderer invisibly. */
.uts-guide-modal-backdrop.uts-silent-download {
  display: flex !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mockup download button — loading & error states */
/* Keep the hover-tile button visible while generating so the user sees progress. */
.container-color-image
  .child-color-image
  .uts-mockup-download-btn.uts-btn--loading,
.container-color-image
  .child-color-image
  .uts-mockup-download-btn.uts-btn--error {
  display: block !important;
}

/* Shared loading animation: pulsing opacity */
.uts-btn--loading {
  opacity: 0.75;
  cursor: wait !important;
  animation: uts-btn-pulse 1s ease-in-out infinite;
}
@keyframes uts-btn-pulse {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 0.45;
  }
}

/* Error state: red tint, no animation */
.uts-btn--error {
  background-color: #b91c1c !important;
  border-color: #991b1b !important;
  color: #fff !important;
  cursor: pointer !important;
  animation: none !important;
  opacity: 1 !important;
}

/* Modal download button states */
.uts-guide-modal__btn.uts-btn--loading,
.uts-guide-modal__btn.uts-btn--error {
  transition:
    background-color 0.2s,
    opacity 0.2s;
}

#wc-apf-prompt-result {
  padding: 20px 0px !important;
}
.col-form-label {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.71;
  letter-spacing: 1px;
  color: #000;
  padding-top: calc(0.375rem + 1px);
  padding-bottom: calc(0.375rem + 1px);
}

#wc-apf-ai-text{
font-size: 16px;
}

/* === Twenty Twenty-Five / block-theme compatibility ========================
   Keep theme typography and intrinsic block widths from leaking into the
   Upload Studio modal. These rules are intentionally scoped to this modal. */
.uts-by-size-modal,
.uts-by-size-modal * {
  box-sizing: border-box !important;
}

.uts-by-size-modal {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #1f2937 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.uts-by-size-modal__content,
.uts-by-size-modal__columns,
.uts-by-size-modal__columns > *,
.uts-by-size-modal .wc-apf-form-wrapper,
.uts-by-size-modal .wc-apf-fields,
.uts-by-size-modal .wc-apf-field,
.uts-by-size-modal .wc-apf-file-upload,
.uts-by-size-modal .fileupload_preview,
.uts-by-size-modal .inner-hold {
  min-width: 0 !important;
  max-width: 100% !important;
}

.uts-by-size-modal__content {
  overflow-x: hidden !important;
}

.uts-by-size-modal .wc-apf-field-label {
  display: block !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-transform: none !important;
  word-break: normal !important;
}

.uts-by-size-modal .wc-apf-field-label .required {
  display: inline !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.uts-by-size-modal .wc-apf-select,
.uts-by-size-modal .wc-apf-input,
.uts-by-size-modal .wc-apf-textarea,
.uts-by-size-modal select,
.uts-by-size-modal input,
.uts-by-size-modal textarea,
.uts-by-size-modal button {
  font-family: inherit !important;
  letter-spacing: normal !important;
}

.uts-by-size-modal .wc-apf-select,
.uts-by-size-modal .wc-apf-input,
.uts-by-size-modal .wc-apf-textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

.uts-by-size-modal .wc-apf-size-help {
  width: 100% !important;
  max-width: 100% !important;
  margin: 8px auto !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.uts-by-size-modal .wc-apf-size-help a {
  display: inline !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
}

.uts-by-size-modal img {
  max-width: 100% !important;
}

.uts-by-size-modal .ai-container,
.uts-by-size-modal table.aitools,
.uts-by-size-modal .aitools {
  width: min(430px, 100%) !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.uts-by-size-modal table.aitools th,
.uts-by-size-modal table.aitools td,
.uts-by-size-modal table.aitools label,
.uts-by-size-modal .ai-disclaimer,
.uts-by-size-modal .ai-disclaimer * {
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.uts-by-size-modal table.aitools th {
  font-size: 14px !important;
  line-height: 1.3 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.uts-by-size-modal .ai-disclaimer,
.uts-by-size-modal .ai-disclaimer * {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

@media (max-width: 900px) {
  .uts-by-size-modal__dialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }

  .uts-by-size-modal__content {
    padding: 18px 12px !important;
  }
}

/* === Screen-fit repair ======================================================
   Use viewport insets instead of centering a width that large theme/block
   children can expand. This guarantees that neither modal edge can leave the
   visible browser area. */
.uts-by-size-modal__dialog {
  left: 12px !important;
  right: 12px !important;
  top: 12px !important;
  bottom: 12px !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.uts-by-size-modal__content {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.uts-by-size-modal .wc-apf-size-help {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  column-gap: 5px !important;
  row-gap: 2px !important;
}

.uts-by-size-modal .wc-apf-size-help > img {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
}

.uts-by-size-modal .wc-apf-size-help .red-tooltip-container {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  word-break: keep-all !important;
}

.uts-by-size-modal a.imageedit svg {
  display: block !important;
  flex: 0 0 12px !important;
  width: 12px !important;
  height: 12px !important;
  overflow: visible !important;
}

/* Keep the desktop interface in two columns without fixed minimums that can
   push the right side outside the viewport. Only phone/tablet widths stack. */
@media (min-width: 981px) and (max-width: 1399px) {
  .uts-by-size-modal__columns {
    display: grid !important;
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .uts-by-size-guide-panel,
  .uts-preprint-only-panel,
  .uts-by-size-guide-card.uts-preprint-only-card,
  .uts-preprint-only-panel .uts-by-size-guide-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .uts-by-size-builder-panel,
  .uts-by-size-builder-panel .wc-apf-form-wrapper,
  .uts-by-size-modal .wc-apf-file-upload,
  .uts-by-size-modal .table-holder-preview,
  .uts-by-size-modal .table-holder-preview-inner-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .uts-by-size-modal .table-holder-preview-inner-container {
    flex: 1 1 auto !important;
  }

  .uts-by-size-modal .ai-container,
  .uts-by-size-modal table.aitools,
  .uts-by-size-modal .aitools {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }
}

@media (max-width: 980px) {
  .uts-by-size-modal__columns {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .uts-by-size-guide-panel,
  .uts-preprint-only-panel,
  .uts-by-size-guide-card.uts-preprint-only-card,
  .uts-preprint-only-panel .uts-by-size-guide-card {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (min-width: 1400px) {
  .uts-by-size-modal__columns {
    grid-template-columns: minmax(360px, 500px) minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  .uts-by-size-guide-panel,
  .uts-preprint-only-panel,
  .uts-by-size-guide-card.uts-preprint-only-card,
  .uts-preprint-only-panel .uts-by-size-guide-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 500px !important;
  }
}

@media (max-width: 600px) {
  .uts-by-size-modal__dialog {
    left: 6px !important;
    right: 6px !important;
    top: 6px !important;
    bottom: 6px !important;
    border-radius: 12px !important;
  }

  .uts-by-size-modal__content {
    padding: 16px 10px !important;
  }
}
