.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;
}

/* Live per-design cost equation */
.wc-apf-design-cost {
    box-sizing: border-box;
    width: 80px;
    margin: 6px auto 0;
    padding: 5px 3px 6px;
    border: 1px solid rgba(40, 164, 217, 0.34);
    border-radius: 7px;
    background: linear-gradient(145deg, #f2fbff 0%, #e8f5ff 100%);
    box-shadow: 0 3px 9px rgba(40, 164, 217, 0.10);
    color: #274154;
    text-align: center;
    line-height: 1.15;
}

.wc-apf-design-cost-equation,
.wc-apf-design-line-total {
    display: block;
    white-space: nowrap;
}

.wc-apf-design-cost-equation {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wc-apf-design-line-total {
    margin-top: 2px;
    color: #087daf;
    font-size: 11.5px;
    font-weight: 900;
}

/* Standalone combined price card beside the independent Add More card */
.wc-apf-design-grand-total {
    box-sizing: border-box;
    display: flex;
    position: relative;
    overflow: hidden;
    flex: 0 0 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 86px;
    min-height: 0;
    gap: 4px;
    margin: 0;
    padding: 8px 5px 7px;
    border: 1px solid rgba(40, 164, 217, 0.42);
    border-radius: 10px;
    background: linear-gradient(160deg, #f8fdff 0%, #eaf6ff 100%);
    box-shadow: 0 6px 15px rgba(40, 164, 217, 0.14);
    font-family: 'PT Sans', Arial, sans-serif;
    text-align: center;
}

.wc-apf-grand-total-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(40, 164, 217, 0.17);
    color: #28a4d9;
    font-size: 14px;
    line-height: 24px;
}

.wc-apf-grand-total-copy {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2px;
}

.wc-apf-grand-total-label {
    color: #142c3c;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wc-apf-grand-total-meta {
    margin-top: 2px;
    color: #617586;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.wc-apf-grand-total-breakdown {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    margin-top: 4px;
    padding: 5px 4px;
    border: 1px solid rgba(40, 164, 217, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    flex-direction: column;
    gap: 4px;
}

.wc-apf-grand-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    color: #5b7080;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.wc-apf-grand-total-row + .wc-apf-grand-total-row {
    padding-top: 4px;
    border-top: 1px solid rgba(40, 164, 217, 0.12);
}

.wc-apf-grand-total-row strong {
    color: #17384c;
    font-size: 8.5px;
    font-weight: 900;
}

/* Compact live rewards estimate inside the By Size / Regular grand total. */
.wc-apf-grand-total-rewards {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 4px 3px;
    border: 1px solid rgba(229, 159, 28, 0.35);
    border-radius: 6px;
    background: linear-gradient(145deg, #fffaf0 0%, #fff1c8 100%);
    box-shadow: 0 3px 8px rgba(180, 116, 0, 0.10);
    color: #76500b;
    gap: 2px;
    line-height: 1;
    text-align: center;
    overflow: hidden;
}

.wc-apf-rewards-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 2px;
    color: #72500f;
    font-size: 7.5px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wc-apf-rewards-star {
    flex: 0 0 auto;
    color: #e9a20b;
    font-size: 8px;
    line-height: 1;
}

.wc-apf-rewards-value {
    display: block;
    width: 100%;
    min-width: 0;
    color: #7f5200;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
}

.wc-apf-grand-total-rewards.wc-apf-rewards-guest {
    border-color: rgba(40, 164, 217, 0.28);
    background: linear-gradient(145deg, #f5fbff 0%, #e5f5ff 100%);
    box-shadow: 0 3px 8px rgba(40, 164, 217, 0.10);
}

.wc-apf-rewards-guest .wc-apf-rewards-heading,
.wc-apf-rewards-guest .wc-apf-rewards-value {
    color: #116b92;
}

.wc-apf-rewards-guest .wc-apf-rewards-star {
    color: #28a4d9;
}

.wc-apf-grand-total-rewards.wc-apf-rewards-ineligible {
    border-color: rgba(100, 116, 139, 0.25);
    background: #f5f7f9;
    box-shadow: none;
}

.wc-apf-rewards-ineligible .wc-apf-rewards-heading,
.wc-apf-rewards-ineligible .wc-apf-rewards-value,
.wc-apf-rewards-ineligible .wc-apf-rewards-star {
    color: #64748b;
}

.wc-apf-grand-total-value {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    padding: 7px 2px;
    border-radius: 6px;
    background: linear-gradient(135deg, #28a4d9 0%, #3978e8 100%);
    box-shadow: 0 4px 9px rgba(40, 164, 217, 0.22);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
}

.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 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px !important;
}

/*
 * Preserve the original quantity-control appearance while making its glyphs
 * and value independent from theme, browser and accessibility color rules.
 */
.wc-apf-design-quantity button {
    font-family: "PT Sans", Arial, Helvetica, sans-serif !important;
    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 !important;
    -webkit-text-fill-color: #119948 !important;
    font-weight: 900;
    background: #66F7A1;
    border: 2px solid #119948;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
}

.wc-apf-design-quantity .wc-apf-design-qty {
    display: block !important;
    width: 80px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 10px 25px !important;
    box-sizing: border-box !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    caret-color: #111111 !important;
    font-family: "PT Sans", Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wc-apf-design-quantity .wc-apf-qty-minus:hover,
.wc-apf-design-quantity .wc-apf-qty-plus:hover {
    background: #000000 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.wc-apf-design-quantity .wc-apf-qty-minus:focus-visible,
.wc-apf-design-quantity .wc-apf-qty-plus:focus-visible,
.wc-apf-design-quantity .wc-apf-design-qty:focus-visible {
    outline: 2px solid #168fbd !important;
    outline-offset: 2px;
}
 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% - (.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;
}

/* =============================
   Canva Import Modal
   ============================= */

body.wc-apf-canva-modal-open {
    overflow: hidden;
}

.wc-apf-canva-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.wc-apf-canva-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.wc-apf-canva-modal__panel {
    position: relative;
    width: min(920px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    margin: 12px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.wc-apf-canva-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wc-apf-canva-modal__close {
    appearance: none;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.wc-apf-canva-modal__body {
    padding: 14px 16px;
    overflow: auto;
}

.wc-apf-canva-modal__search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px 0;
}

.wc-apf-canva-modal__search input {
    flex: 1;
    min-width: 180px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.wc-apf-canva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.wc-apf-canva-item {
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.wc-apf-canva-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-apf-canva-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-apf-canva-thumb--empty {
    opacity: 0.7;
    font-size: 12px;
}

.wc-apf-canva-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
}


.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,.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,.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-banner-info {
    background: #eef8ff;
    border: 1px solid #b9e2f6;
}
.wc-apf-quality-banner-info > span {
    background: #1688b8;
    font-family: Georgia, serif;
    font-style: italic;
}
.wc-apf-quality-panel {
    overflow: visible;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .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;
    white-space: pre-wrap;
}
.wc-apf-dtf-replacement-box {
    margin: 0 0 12px;
    padding: 12px 11px;
    border-top: 1px solid #eef0f3;
    background: #fbfdff;
    text-align: left;
}
.wc-apf-dtf-replacement-box strong {
    display: block;
    color: #111827;
    font-size: 13px;
    margin-bottom: 4px;
}
.wc-apf-dtf-replacement-box p {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
}
.wc-apf-dtf-replacement-box .wc-apf-dtf-replacement-download {
    min-height: 36px;
}
.wc-apf-dtf-replacement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}
.wc-apf-dtf-replacement-actions .button {
    min-height: 38px;
}
body.wc-apf-dtf-modal-open {
    overflow: hidden;
}
.wc-apf-dtf-color-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wc-apf-dtf-color-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
}
.wc-apf-dtf-color-dialog {
    position: relative;
    width: min(1180px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .32);
}
.wc-apf-dtf-color-close {
    position: absolute;
    right: 13px;
    top: 11px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.wc-apf-dtf-color-header {
    padding: 18px 60px 15px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.wc-apf-dtf-color-header strong {
    display: block;
    color: #111827;
    font-size: 20px;
    line-height: 1.15;
}
.wc-apf-dtf-color-header span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}
.wc-apf-dtf-color-body {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 18px;
    padding: 18px;
}
.wc-apf-dtf-color-preview,
.wc-apf-dtf-color-list {
    min-width: 0;
}
.wc-apf-dtf-canvas-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 14px;
    border: 1px solid #dbe1e8;
    border-radius: 12px;
    overflow: auto;
    background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f5f9 75%), linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
.wc-apf-dtf-color-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}
.wc-apf-dtf-preview-note {
    margin: 9px 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}
.wc-apf-dtf-preview-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.wc-apf-dtf-gamut-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.wc-apf-dtf-gamut-card {
    min-width: 0;
    padding: 9px;
    border: 1px solid #dbe1e8;
    border-radius: 11px;
    background: #f8fafc;
}
.wc-apf-dtf-gamut-card > strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-size: 11px;
}
.wc-apf-dtf-mini-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 6px;
    overflow: hidden;
    border-radius: 8px;
    background-image: linear-gradient(45deg, #eef2f7 25%, transparent 25%), linear-gradient(-45deg, #eef2f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef2f7 75%), linear-gradient(-45deg, transparent 75%, #eef2f7 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.wc-apf-dtf-mini-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
}
.wc-apf-dtf-gamut-card > small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.3;
}
.wc-apf-dtf-color-list h4 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #111827;
}
.wc-apf-dtf-color-list > p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}
.wc-apf-dtf-color-row {
    padding: 11px;
    margin-bottom: 9px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.wc-apf-dtf-color-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}
.wc-apf-dtf-color-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}
.wc-apf-dtf-color-side {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.wc-apf-dtf-swatch,
.wc-apf-dtf-replacement-picker {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 9px;
    border: 1px solid rgba(15, 23, 42, .18);
    padding: 0;
    overflow: hidden;
}
.wc-apf-dtf-replacement-picker {
    cursor: pointer;
    background: transparent;
}
.wc-apf-dtf-color-side b,
.wc-apf-dtf-color-side small,
.wc-apf-dtf-color-side em {
    display: block;
    min-width: 0;
}
.wc-apf-dtf-color-side b {
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}
.wc-apf-dtf-color-side small {
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
}
.wc-apf-dtf-color-side em {
    margin-top: 2px;
    color: #15803d;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}
.wc-apf-dtf-color-side em.is-warning {
    color: #b45309;
}
.wc-apf-dtf-color-arrow {
    text-align: center;
    color: #94a3b8;
    font-weight: 800;
}
.wc-apf-dtf-open-gamut-wheel {
    width: 100%;
    margin-top: 10px;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.wc-apf-dtf-open-gamut-wheel:hover,
.wc-apf-dtf-open-gamut-wheel.is-open {
    background: #eef8ff;
    border-color: #7dd3fc;
    color: #0369a1;
}
.wc-apf-dtf-gamut-wheel-panel[hidden] {
    display: none !important;
}
.wc-apf-dtf-gamut-wheel-panel {
    margin-top: 9px;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}
.wc-apf-dtf-gamut-wheel-head strong,
.wc-apf-dtf-gamut-wheel-head small {
    display: block;
}
.wc-apf-dtf-gamut-wheel-head strong {
    color: #0f172a;
    font-size: 12px;
}
.wc-apf-dtf-gamut-wheel-head small {
    margin-top: 2px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.35;
}
.wc-apf-dtf-gamut-wheel-wrap {
    width: 194px;
    height: 194px;
    max-width: 100%;
    margin: 9px auto;
    padding: 2px;
    border-radius: 50%;
    background: repeating-conic-gradient(#e5e7eb 0 25%, #f8fafc 0 50%) 50% / 14px 14px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}
.wc-apf-dtf-gamut-wheel {
    display: block;
    width: 190px;
    height: 190px;
    max-width: 100%;
    border-radius: 50%;
    cursor: crosshair;
    touch-action: none;
}
.wc-apf-dtf-gamut-wheel-brightness {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 10px;
    font-weight: 700;
}
.wc-apf-dtf-gamut-wheel-brightness input[type=range] {
    width: 100%;
    margin: 0;
}
.wc-apf-dtf-gamut-wheel-brightness b {
    min-width: 34px;
    text-align: right;
    color: #0f172a;
    font-size: 10px;
}
.wc-apf-dtf-gamut-wheel-message {
    display: block;
    margin-top: 7px;
    color: #15803d;
    font-size: 9px;
    line-height: 1.35;
}
.wc-apf-dtf-gamut-wheel-message[data-error] {
    color: #b45309;
    font-weight: 700;
}
.wc-apf-dtf-gamut-wheel-hex {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #dbeafe;
}
.wc-apf-dtf-gamut-wheel-hex > span {
    color: #475569;
    font-size: 9px;
    font-weight: 800;
}
.wc-apf-dtf-gamut-wheel-hex-value {
    min-width: 0;
    height: 30px;
    padding: 4px 7px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.wc-apf-dtf-copy-gamut-hex {
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid #7dd3fc;
    border-radius: 7px;
    background: #eef8ff;
    color: #0369a1;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}
.wc-apf-dtf-copy-gamut-hex:hover {
    background: #e0f2fe;
}
.wc-apf-dtf-color-percent {
    margin-top: 7px;
    color: #64748b;
    font-size: 10px;
}
.wc-apf-dtf-color-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}
.wc-apf-dtf-color-footer .button {
    width: 100%;
    min-height: 42px;
}
.wc-apf-dtf-color-footer small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.35;
}
@media (max-width: 640px) {
    .wc-apf-dtf-color-modal { padding: 8px; }
    .wc-apf-dtf-color-dialog { width: 100%; max-height: 96vh; border-radius: 12px; }
    .wc-apf-dtf-color-body { grid-template-columns: 1fr; padding: 11px; gap: 12px; }
    .wc-apf-dtf-canvas-wrap { min-height: 240px; padding: 8px; }
    .wc-apf-dtf-color-pair { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); }
    .wc-apf-dtf-swatch, .wc-apf-dtf-replacement-picker { width: 36px; height: 36px; min-width: 36px; }
    .wc-apf-dtf-preview-controls .button { flex: 1 1 calc(50% - 7px); }
    .wc-apf-dtf-gamut-comparison { grid-template-columns: 1fr; }

    .wc-apf-quality-banner {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        align-items: center;
        gap: 7px;
        padding: 8px 9px;
    }
    .wc-apf-quality-banner > span {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 17px;
    }
    .wc-apf-quality-banner > div {
        min-width: 0;
    }
    .wc-apf-quality-banner strong {
        font-size: 14px;
        line-height: 1.1;
        white-space: nowrap;
    }
    .wc-apf-quality-banner em {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.2;
    }
    .wc-apf-quality-banner b {
        max-width: 96px;
        margin-left: 0;
        padding: 5px 7px;
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }
    .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 .2s ease, filter .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, .14);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(232, 247, 255, .92), rgba(247, 252, 255, .96));
    box-shadow: 0 10px 26px rgba(15, 23, 42, .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, .20);
    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: .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.10);
    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.20);
}
.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;
}

/* Quote Calculator ------------------------------------------------------- */
.wc-apf-regular-quote-calculator {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}
.wc-apf-regular-quote-calculator .wc-apf-calculator-toggle {
    text-align: center;
}
.wc-apf-regular-quote-calculator .wc-apf-toggle-calculator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}
.wc-apf-regular-quote-calculator .wc-apf-toggle-calculator:hover,
.wc-apf-regular-quote-calculator .wc-apf-toggle-calculator:focus {
    color: #087daf;
    text-decoration: none;
}
.wc-apf-regular-quote-calculator .wc-apf-toggle-calculator img {
    width: 25px;
    height: 25px;
    margin: 0;
    object-fit: contain;
}
.wc-apf-regular-quote-calculator .wc-apf-calculator-content {
    margin-top: 18px;
    padding: 17px;
    border: 1px solid #c8e5f2;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #f6fbfe 100%);
    box-shadow: 0 7px 22px rgba(20, 131, 181, .08);
    box-sizing: border-box;
}
.wc-apf-regular-quote-calculator .wc-apf-calculator-inputs {
    display: flex;
    gap: 12px;
    margin: 0 0 13px;
}
.wc-apf-regular-quote-calculator .wc-apf-calculator-inputs label {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}
.wc-apf-regular-quote-calculator .wc-apf-calculator-inputs label > span {
    display: block;
    margin: 0 0 5px;
    color: #476274;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}
.wc-apf-regular-quote-calculator .wc-apf-calculator-inputs input {
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #9dcadd;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 102, 142, .08);
    color: #173e56;
    font-size: 15px;
    font-weight: 800;
    box-sizing: border-box;
}
.wc-apf-regular-quote-calculator .wc-apf-calculator-inputs input:focus {
    border-color: #1598ce;
    outline: 3px solid rgba(21, 152, 206, .14);
    box-shadow: none;
}
.wc-apf-regular-quote-calculator .wc-apf-calculator-inputs input.has-error {
    border-color: #dc8a20;
    background: #fffaf0;
}
.wc-apf-regular-quote-allowed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 13px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eaf7fd;
    color: #31566c;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}
.wc-apf-regular-quote-allowed .dashicons {
    width: 16px;
    height: 16px;
    color: #1389bc;
    font-size: 16px;
}
.wc-apf-regular-quote-error {
    margin: 0 0 12px;
    padding: 9px 11px;
    border: 1px solid #f0cf76;
    border-radius: 8px;
    background: #fff7dc;
    color: #6f4a00;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}
.wc-apf-regular-quote-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}
.wc-apf-regular-quote-table thead tr {
    background: #0f172a;
    color: #ffffff;
}
.wc-apf-regular-quote-table th,
.wc-apf-regular-quote-table td {
    width: 50%;
    padding: 11px 10px;
    border: 1px solid #d7e5ec;
    text-align: center;
    vertical-align: middle;
}
.wc-apf-regular-quote-table th {
    border-color: #273449;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}
.wc-apf-regular-quote-table td:first-child {
    color: #173e56;
    font-size: 13px;
    font-weight: 800;
}
.wc-apf-regular-quote-table .wc-apf-calc-price-amount {
    color: #087daf;
    font-size: 20px;
    font-weight: 900;
}
.wc-apf-regular-quote-table tr.wc-apf-regular-quote-unavailable td {
    background: #f7f8f9;
    color: #75828c;
}
.wc-apf-regular-quote-table tr.wc-apf-regular-quote-unavailable .wc-apf-calc-price-amount {
    color: #75828c;
    font-size: 13px;
}
.wc-apf-regular-quote-price-note {
    display: block;
    margin-top: 4px;
    color: #60788a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}
.wc-apf-regular-quote-footnote {
    margin: 10px 0 0;
    color: #667985;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

/* Optional product-aware Machine Pre-cut comparison for Transfers By Size. */
.wc-apf-calculator-precut-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #b9e1f3;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5fbff 0%, #eaf7ff 100%);
    box-shadow: 0 5px 16px rgba(17, 136, 223, 0.08);
    box-sizing: border-box;
}
.wc-apf-calculator-precut-copy {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.wc-apf-calculator-precut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.10);
    font-size: 22px;
}
.wc-apf-calculator-precut-copy strong,
.wc-apf-calculator-precut-copy small {
    display: block;
}
.wc-apf-calculator-precut-copy strong {
    color: #102f46;
    font-size: 15px;
    line-height: 1.2;
}
.wc-apf-calculator-precut-copy small {
    margin-top: 3px;
    color: #526779;
    font-size: 12px;
    line-height: 1.3;
}
.wc-apf-calculator-precut-control {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 0 0 auto;
}
.wc-apf-calculator-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}
.wc-apf-calculator-switch input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
}
.wc-apf-calculator-switch-track {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
    border-radius: 999px;
    background: #aab7c2;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.10);
    transition: background-color 0.2s ease;
}
.wc-apf-calculator-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.24);
    transition: transform 0.2s ease;
}
.wc-apf-calculator-switch input:checked + .wc-apf-calculator-switch-track {
    background: #16a765;
}
.wc-apf-calculator-switch input:checked + .wc-apf-calculator-switch-track::after {
    transform: translateX(18px);
}
.wc-apf-calculator-switch input:focus-visible + .wc-apf-calculator-switch-track {
    outline: 3px solid rgba(17, 136, 223, 0.28);
    outline-offset: 2px;
}
.wc-apf-calculator-switch-label {
    color: #172b3a;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.wc-apf-calculator-precut-status {
    color: #647585;
    font-size: 11px;
    font-weight: 700;
}
.wc-apf-calculator-precut-selected .wc-apf-calculator-precut-status {
    color: #087742;
}
.wc-apf-calculator-table-scroll {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}
.wc-apf-calculator-table.wc-apf-has-precut-columns {
    min-width: 0;
}
.wc-apf-calc-heading-mobile {
    display: none;
}
.wc-apf-calculator-current-row > td {
    background: #eaf8ff;
}
.wc-apf-calc-product-name {
    display: block;
}
.wc-apf-calc-product-precut-note,
.wc-apf-calc-fee-note {
    display: block;
    margin-top: 3px;
    color: #087742;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}
.wc-apf-calc-price-amount {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}
.wc-apf-calc-standard-heading,
.wc-apf-calc-precut-heading,
.wc-apf-calc-standard-price,
.wc-apf-calc-precut-price {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.wc-apf-calc-standard-heading.is-selected {
    background: #147fbc;
    box-shadow: inset 0 -4px 0 #5cc5f4;
}
.wc-apf-calc-precut-heading.is-selected {
    background: #087742;
    box-shadow: inset 0 -4px 0 #55d99a;
}
.wc-apf-calc-standard-price.is-selected {
    background: #eaf8ff !important;
    box-shadow: inset 3px 0 0 #28a4d9;
}
.wc-apf-calc-precut-price.is-selected {
    background: #eafaf2 !important;
    box-shadow: inset 3px 0 0 #16a765;
}
.wc-apf-calc-precut-price.is-unavailable {
    background: #f6f7f8;
    color: #7a8791;
}
.wc-apf-calc-not-available {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .wc-apf-calculator-inputs {
        flex-direction: row !important;
        gap: 8px !important;
        margin: 18px 0 !important;
    }
    .wc-apf-calculator-inputs input {
        flex: 1 1 0;
        min-width: 0;
        width: calc(50% - 4px) !important;
        padding: 10px 8px !important;
        box-sizing: border-box;
        font-size: 14px !important;
    }
    .wc-apf-calculator-precut-panel {
        align-items: center;
        flex-direction: row;
        gap: 9px;
        padding: 10px 12px;
        text-align: left;
    }
    .wc-apf-calculator-precut-copy {
        flex: 1 1 auto;
        justify-content: flex-start;
        width: auto;
        gap: 8px;
        text-align: left;
    }
    .wc-apf-calculator-precut-copy > span:last-child {
        min-width: 0;
    }
    .wc-apf-calculator-precut-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 9px;
        font-size: 20px;
    }
    .wc-apf-calculator-precut-copy strong {
        font-size: 14px;
    }
    .wc-apf-calculator-precut-copy small {
        font-size: 11px;
        line-height: 1.2;
    }
    .wc-apf-calculator-precut-control {
        align-items: center;
        justify-content: center;
        flex: 0 0 108px;
        width: 108px;
        min-width: 0;
        gap: 3px;
    }
    .wc-apf-calculator-switch {
        justify-content: center;
        gap: 6px;
        width: 100%;
    }
    .wc-apf-calculator-switch-label {
        max-width: 58px;
        font-size: 11px;
        line-height: 1.05;
        white-space: normal;
    }
    .wc-apf-calculator-precut-status {
        max-width: 108px;
        font-size: 10px;
        line-height: 1.1;
        text-align: center;
    }
    .wc-apf-calculator-table-scroll {
        overflow-x: hidden;
    }
    .wc-apf-calculator-table.wc-apf-has-precut-columns {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed;
    }
    .wc-apf-calculator-table.wc-apf-has-precut-columns thead,
    .wc-apf-calculator-table.wc-apf-has-precut-columns thead tr {
        height: auto !important;
    }
    .wc-apf-calculator-table.wc-apf-has-precut-columns th,
    .wc-apf-calculator-table.wc-apf-has-precut-columns td {
        min-width: 0 !important;
        padding: 8px 4px !important;
        vertical-align: middle;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .wc-apf-calculator-table.wc-apf-has-precut-columns th:first-child,
    .wc-apf-calculator-table.wc-apf-has-precut-columns td:first-child {
        width: 52%;
    }
    .wc-apf-calculator-table.wc-apf-has-precut-columns th:nth-child(2),
    .wc-apf-calculator-table.wc-apf-has-precut-columns td:nth-child(2),
    .wc-apf-calculator-table.wc-apf-has-precut-columns th:nth-child(3),
    .wc-apf-calculator-table.wc-apf-has-precut-columns td:nth-child(3) {
        width: 24%;
    }
    .wc-apf-calculator-table.wc-apf-has-precut-columns th {
        font-size: 12px;
        line-height: 1.15;
    }
    .wc-apf-calc-heading-desktop {
        display: none;
    }
    .wc-apf-calc-heading-mobile {
        display: inline;
    }
    .wc-apf-calc-product-name {
        font-size: 13px;
        line-height: 1.2;
    }
    .wc-apf-calc-product-precut-note,
    .wc-apf-calc-fee-note {
        font-size: 10px;
        line-height: 1.15;
    }
    .wc-apf-calc-price-amount {
        font-size: 14px;
    }
    .wc-apf-calc-not-available {
        font-size: 10px;
        line-height: 1.1;
        white-space: normal;
    }
    .wc-apf-regular-quote-calculator .wc-apf-calculator-content {
        padding: 13px;
    }
    .wc-apf-regular-quote-calculator .wc-apf-calculator-inputs {
        margin: 0 0 11px !important;
    }
    .wc-apf-regular-quote-calculator .wc-apf-calculator-inputs input {
        width: 100% !important;
    }
    .wc-apf-regular-quote-table th,
    .wc-apf-regular-quote-table td {
        padding: 9px 7px;
    }
    .wc-apf-regular-quote-table .wc-apf-calc-price-amount {
        font-size: 17px;
    }
}

/* Logged-in previous-design picker shown before the first upload */
.wc-apf-open-previous-designs {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin: 14px 0 0 !important;
    padding: 9px 16px !important;
    border: 1px solid #1685bd !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 5px 14px rgba(17, 136, 223, 0.16) !important;
    color: #126b99 !important;
    cursor: pointer;
    float: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.wc-apf-open-previous-designs .dashicons {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    color: currentColor !important;
    font-size: 18px !important;
    line-height: 18px !important;
}
.wc-apf-open-previous-designs:hover,
.wc-apf-open-previous-designs:focus-visible {
    background: #eef9ff !important;
    box-shadow: 0 7px 18px rgba(17, 136, 223, 0.24) !important;
    color: #0b5b84 !important;
    transform: translateY(-1px);
}
body.wc-apf-previous-picker-open {
    overflow: hidden !important;
}
.wc-apf-previous-picker-modal {
    position: fixed;
    z-index: 10000000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.wc-apf-previous-picker-modal.is-open {
    display: flex;
}
.wc-apf-previous-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 31, 0.72);
    backdrop-filter: blur(3px);
}
.wc-apf-previous-picker-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(880px, 100%);
    max-height: min(86vh, 760px);
    overflow: hidden;
    border: 1px solid rgba(17, 136, 223, 0.24);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(5, 19, 31, 0.34);
    box-sizing: border-box;
    outline: none;
    animation: wc-apf-previous-picker-in 0.2s ease-out both;
}
@keyframes wc-apf-previous-picker-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.wc-apf-previous-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #dce8ef;
    background: linear-gradient(135deg, #f6fcff 0%, #eaf7ff 100%);
}
.wc-apf-previous-picker-kicker {
    display: block;
    margin: 0 0 3px;
    color: #1685bd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}
.wc-apf-previous-picker-header h2 {
    margin: 0 !important;
    color: #112d40;
    font-size: 23px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}
.wc-apf-previous-picker-header p {
    margin: 5px 0 0 !important;
    color: #526979 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}
.wc-apf-previous-picker-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #c9d9e3 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #1a374a !important;
    cursor: pointer;
    float: none !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}
.wc-apf-previous-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    min-height: 160px;
    padding: 18px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f7fafc;
    overscroll-behavior: contain;
}
.wc-apf-previous-picker-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 2px solid #d8e2e9;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.wc-apf-previous-picker-card:hover {
    border-color: #98cde7;
    box-shadow: 0 8px 18px rgba(17, 136, 223, 0.12);
    transform: translateY(-1px);
}
.wc-apf-previous-picker-card.is-selected {
    border-color: #16a765;
    box-shadow: 0 0 0 3px rgba(22, 167, 101, 0.13), 0 8px 18px rgba(22, 167, 101, 0.12);
}
.wc-apf-previous-picker-card.is-existing {
    border-color: #94a3ad;
    opacity: 0.68;
}
.wc-apf-previous-picker-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    border-bottom: 1px solid #e3ebf0;
    background: #ffffff;
}
.wc-apf-previous-picker-preview img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
    box-sizing: border-box;
}
.wc-apf-previous-picker-preview > .dashicons {
    width: 44px;
    height: 44px;
    color: #6c7c87;
    font-size: 44px;
}
.wc-apf-previous-picker-check {
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #16a765;
    box-shadow: 0 3px 8px rgba(8, 91, 51, 0.28);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.wc-apf-previous-picker-card.is-selected .wc-apf-previous-picker-check,
.wc-apf-previous-picker-card.is-existing .wc-apf-previous-picker-check {
    opacity: 1;
    transform: scale(1);
}
.wc-apf-previous-picker-card-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px 8px;
    text-align: left;
}
.wc-apf-previous-picker-card-copy strong {
    display: block;
    overflow: hidden;
    color: #152f40;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wc-apf-previous-picker-card-copy small,
.wc-apf-previous-picker-card-copy span {
    display: block;
    color: #657786;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}
.wc-apf-previous-picker-toggle {
    width: 100% !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #172b38 !important;
    color: #ffffff !important;
    cursor: pointer;
    float: none !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center;
}
.wc-apf-previous-picker-card.is-selected .wc-apf-previous-picker-toggle {
    background: #dff7eb !important;
    color: #087742 !important;
}
.wc-apf-previous-picker-card.is-existing .wc-apf-previous-picker-toggle {
    background: #dde4e8 !important;
    color: #52636e !important;
    cursor: default;
}

/* Regular Uploader history cards use a true thumbnail panel. Keep these
 * overrides scoped so the existing By Size picker is unchanged. */
.wc-apf-regular-previous-picker .wc-apf-previous-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    grid-auto-rows: max-content !important;
    align-items: start;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 218px !important;
    min-height: 218px !important;
    max-height: none !important;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-preview {
    flex: 0 0 108px !important;
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
    aspect-ratio: auto !important;
    background-color: #f7fafb;
    background-image: linear-gradient(45deg, #e7ecef 25%, transparent 25%), linear-gradient(-45deg, #e7ecef 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e7ecef 75%), linear-gradient(-45deg, transparent 75%, #e7ecef 75%);
    background-position: 0 0, 0 7px, 7px -7px, -7px 0;
    background-size: 14px 14px;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-preview img {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain !important;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-preview-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(247, 250, 251, .92);
    color: #6a7e8b;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-preview-fallback .dashicons {
    width: 34px;
    height: 34px;
    font-size: 34px;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-preview-fallback small {
    font-size: 10px;
    font-weight: 800;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-preview.is-preview-unavailable .wc-apf-previous-picker-preview-fallback {
    display: flex;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-preview.is-preview-unavailable img {
    display: none !important;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-card-copy {
    position: static !important;
    z-index: 3;
    display: flex !important;
    flex: 1 1 76px !important;
    min-height: 76px !important;
    max-height: none !important;
    padding: 8px 10px 7px !important;
    overflow: hidden !important;
    box-sizing: border-box;
    opacity: 1 !important;
    visibility: visible !important;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-toggle {
    position: static !important;
    z-index: 4;
    display: block !important;
    flex: 0 0 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-check {
    top: 9px;
    right: 9px;
    z-index: 8;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    overflow: visible;
    border: 3px solid #ffffff;
    background: #0f9f5b;
    box-shadow: 0 4px 12px rgba(4, 90, 49, .38);
    font-size: 0;
    line-height: 1;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-check::after {
    width: 7px;
    height: 13px;
    margin: -2px 0 0 -1px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    content: '';
    transform: rotate(45deg);
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-card.is-selected .wc-apf-previous-picker-check,
.wc-apf-regular-previous-picker .wc-apf-previous-picker-card.is-existing .wc-apf-previous-picker-check {
    opacity: 1 !important;
    transform: scale(1) !important;
}
.wc-apf-regular-previous-picker .wc-apf-previous-picker-card.is-selected .wc-apf-previous-picker-preview {
    box-shadow: inset 0 0 0 3px rgba(15, 159, 91, .35);
}
.wc-apf-previous-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    border-top: 1px solid #dce8ef;
    background: #ffffff;
}
.wc-apf-previous-picker-count {
    color: #526979;
    font-size: 12px;
    font-weight: 800;
}
.wc-apf-previous-picker-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}
.wc-apf-previous-picker-cancel,
.wc-apf-previous-picker-finish {
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 15px !important;
    border-radius: 8px !important;
    cursor: pointer;
    float: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}
.wc-apf-previous-picker-cancel {
    border: 1px solid #cbd9e2 !important;
    background: #ffffff !important;
    color: #405766 !important;
}
.wc-apf-previous-picker-finish {
    border: 1px solid #0d8a50 !important;
    background: #16a765 !important;
    box-shadow: 0 5px 13px rgba(22, 167, 101, 0.2) !important;
    color: #ffffff !important;
}
.wc-apf-previous-picker-finish:disabled {
    border-color: #b8c3ca !important;
    background: #cbd3d8 !important;
    box-shadow: none !important;
    color: #667780 !important;
    cursor: not-allowed;
}
@media (max-width: 640px) {
    .wc-apf-open-previous-designs {
        min-height: 38px;
        padding: 8px 13px !important;
        font-size: 12px !important;
    }
    .wc-apf-previous-picker-modal {
        align-items: flex-end;
        padding: 0;
    }
    .wc-apf-previous-picker-dialog {
        width: 100%;
        max-height: 92vh;
        border-width: 1px 0 0;
        border-radius: 18px 18px 0 0;
    }
    .wc-apf-previous-picker-header {
        gap: 10px;
        padding: 16px 15px 13px;
    }
    .wc-apf-previous-picker-header h2 {
        font-size: 19px !important;
    }
    .wc-apf-previous-picker-header p {
        font-size: 12px !important;
    }
    .wc-apf-previous-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 12px;
    }
    .wc-apf-previous-picker-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
    }
    .wc-apf-previous-picker-count {
        text-align: center;
    }
    .wc-apf-previous-picker-actions {
        width: 100%;
    }
    .wc-apf-previous-picker-cancel,
    .wc-apf-previous-picker-finish {
        flex: 1 1 auto;
    }
}

/* Regular Uploader -------------------------------------------------------- */
.wc-apf-regular-uploader-product form.cart div.quantity {
    display: none !important;
}
.wc-apf-regular-uploader-product .summary.entry-summary form.cart {
    width: 100% !important;
    max-width: none !important;
}
.wc-apf-regular-uploader-product form.cart .single_add_to_cart_button.buttonaddcarttoggle,
.wc-apf-regular-uploader-product .summary.entry-summary form.cart .single_add_to_cart_button.buttonaddcarttoggle {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    align-self: stretch !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
    min-height: 54px !important;
    margin-top: 18px !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    border: 1px solid #111111 !important;
    border-radius: 7px !important;
    background: #111111 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}
.wc-apf-regular-uploader-product form.cart .single_add_to_cart_button.buttonaddcarttoggle:hover,
.wc-apf-regular-uploader-product form.cart .single_add_to_cart_button.buttonaddcarttoggle:focus-visible,
.wc-apf-regular-uploader-product .summary.entry-summary form.cart .single_add_to_cart_button.buttonaddcarttoggle:hover,
.wc-apf-regular-uploader-product .summary.entry-summary form.cart .single_add_to_cart_button.buttonaddcarttoggle:focus-visible {
    border-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.wc-apf-regular-form {
    margin-top: 32px;
}
.wc-apf-regular-intro {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #b9e4f5;
    border-radius: 10px;
    background: linear-gradient(135deg, #eefaff 0%, #f8fcff 100%);
    color: #153a52;
}
.wc-apf-regular-intro-copy {
    min-width: 0;
    flex: 1 1 auto;
}
.wc-apf-regular-intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(20, 131, 181, .12);
    color: #148cc4;
    font-size: 22px;
}
.wc-apf-regular-intro strong,
.wc-apf-regular-intro small {
    display: block;
}
.wc-apf-regular-intro strong {
    font-size: 16px;
    line-height: 1.2;
}
.wc-apf-regular-intro small {
    margin-top: 2px;
    color: #587285;
    font-size: 12px;
    line-height: 1.35;
}
.wc-apf-regular-rate-card {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: end;
    column-gap: 5px;
    min-width: 118px;
    margin-left: auto;
    padding: 8px 11px;
    border: 1px solid rgba(20, 140, 196, .2);
    border-radius: 9px;
    background: linear-gradient(135deg, #ffffff 0%, #e7f7ff 100%);
    box-shadow: 0 4px 13px rgba(20, 131, 181, .12);
    color: #153a52;
    text-align: left;
}
.wc-apf-regular-rate-card .wc-apf-regular-rate-label {
    grid-column: 1 / -1;
    color: #5d7888;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.1;
    text-transform: uppercase;
}
.wc-apf-regular-rate-card strong {
    display: inline-flex;
    align-items: baseline;
    color: #087daf;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}
.wc-apf-regular-rate-card small {
    display: inline;
    margin: 0 0 1px;
    color: #587285;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}
.wc-apf-regular-options-panel {
    display: grid;
    gap: 8px;
    margin: 10px 0 12px;
}
.wc-apf-regular-upload-title {
    margin: 0;
    color: #515f8e;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}
.wc-apf-regular-upload-copy {
    margin: 1px 0 5px;
}
.wc-apf-regular-formats {
    margin-top: 20px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}
.wc-apf-regular-allowed-size {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    color: #15769f;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.wc-apf-regular-allowed-size .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}
.wc-apf-regular-has-size-error .wc-apf-upload-area {
    display: none !important;
}
.wc-apf-regular-size-error {
    margin: 14px 0;
    padding: 30px 22px;
    border: 1px solid #f0cf76;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff9e8 0%, #fff3cc 100%);
    box-shadow: 0 7px 22px rgba(174, 123, 0, .12);
    color: #3f3420;
    text-align: center;
}
.wc-apf-regular-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f5b942;
    color: #fff;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(207, 139, 0, .22);
}
.wc-apf-regular-size-error h3 {
    margin: 13px 0 7px;
    color: #302819;
    font-size: 22px;
    line-height: 1.2;
}
.wc-apf-regular-size-error p {
    max-width: 660px;
    margin: 0 auto;
    color: #66583c;
    font-size: 14px;
    line-height: 1.45;
}
.wc-apf-regular-error-details {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px auto 0;
}
.wc-apf-regular-error-details span {
    min-width: 145px;
    padding: 8px 11px;
    border: 1px solid rgba(166, 116, 0, .17);
    border-radius: 8px;
    background: rgba(255, 255, 255, .64);
}
.wc-apf-regular-error-details small,
.wc-apf-regular-error-details strong {
    display: block;
}
.wc-apf-regular-error-details small {
    color: #8a744b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.wc-apf-regular-error-details strong {
    margin-top: 2px;
    color: #41351f;
    font-size: 13px;
}
.wc-apf-regular-error-retry {
    margin-top: 16px;
    padding: 9px 18px;
    border: 0;
    border-radius: 7px;
    background: #173e56;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(23, 62, 86, .18);
}
.wc-apf-regular-error-retry:hover {
    background: #0d8bbf;
    color: #fff;
}
.wc-apf-regular-large-preview {
    width: 100%;
    min-width: 0;
    margin: 16px 0 10px;
    box-sizing: border-box;
}
.wc-apf-regular-preview-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 19px 18px 15px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #d8e7ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(27, 74, 99, .08);
    text-align: center;
}
.wc-apf-regular-preview-width {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: #1a88b7;
}
.wc-apf-regular-preview-width i {
    position: relative;
    flex: 1 1 auto;
    height: 1px;
    background: currentColor;
}
.wc-apf-regular-preview-width i::before {
    position: absolute;
    top: -6px;
    width: 1px;
    height: 13px;
    background: currentColor;
    content: '';
}
.wc-apf-regular-preview-width i:first-child::before { left: 0; }
.wc-apf-regular-preview-width i:last-child::before { right: 0; }
.wc-apf-regular-preview-width strong {
    padding: 0 9px;
    color: #173e56;
    font-size: 15px;
    line-height: 1;
}
.wc-apf-regular-preview-body {
    display: grid;
    grid-template-columns: 33px auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: center;
    gap: 7px 9px;
    width: max-content;
    max-width: 100%;
    min-height: 0;
    margin: 0 auto;
}
.wc-apf-regular-preview-guide-corner {
    grid-column: 1;
    grid-row: 1;
    width: 33px;
    height: 1px;
}
.wc-apf-regular-preview-length {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 1;
    grid-row: 2;
    width: 33px;
    min-height: 0;
    align-self: center;
    color: #1a88b7;
}
.wc-apf-regular-preview-length i {
    position: relative;
    width: 1px;
    flex: 1 1 auto;
    background: currentColor;
}
.wc-apf-regular-preview-length i::before {
    position: absolute;
    left: -6px;
    width: 13px;
    height: 1px;
    background: currentColor;
    content: '';
}
.wc-apf-regular-preview-length i:first-child::before { top: 0; }
.wc-apf-regular-preview-length i:last-child::before { bottom: 0; }
.wc-apf-regular-preview-length strong {
    padding: 9px 0;
    color: #173e56;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.wc-apf-regular-preview-enlarge {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    max-width: none;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #dce8ee;
    border-radius: 6px;
    background-color: #f7fafb;
    background-image: linear-gradient(45deg, #e7ecef 25%, transparent 25%), linear-gradient(-45deg, #e7ecef 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e7ecef 75%), linear-gradient(-45deg, transparent 75%, #e7ecef 75%);
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    background-size: 12px 12px;
    cursor: zoom-in;
}
.wc-apf-regular-preview-enlarge img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: contain;
    box-shadow: none;
}
.wc-apf-regular-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 6px;
    background: linear-gradient(180deg, #f7fbfd 0%, #edf6fa 100%);
    color: #173e56;
}
.wc-apf-regular-preview-placeholder .dashicons {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
    color: #e34b4b;
    font-size: 42px;
}
.wc-apf-regular-preview-placeholder strong {
    font-size: 13px;
    line-height: 1.2;
}
.wc-apf-regular-preview-placeholder small {
    margin-top: 3px;
    color: #647985;
    font-size: 10px;
}
.wc-apf-regular-preview-card > p {
    max-width: 720px;
    margin: 11px auto 1px;
    padding: 0 4px;
    color: #465b68;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.wc-apf-regular-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 3px 0 0;
    padding: 3px 6px;
    border: 0;
    background: transparent;
    color: #1389bc;
    font-size: 13px;
    font-weight: 800;
    cursor: zoom-in;
}
.wc-apf-regular-preview-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}
.wc-apf-regular-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(6, 18, 26, .94);
}
.wc-apf-regular-preview-modal.is-open {
    display: flex;
}
.wc-apf-regular-preview-modal-inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    width: min(98vw, 1900px);
    height: 96vh;
    min-height: 0;
}
.wc-apf-regular-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 5px 58px 5px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    background: rgba(9, 31, 43, .82);
    color: #fff;
}
.wc-apf-regular-preview-zoom-hint,
.wc-apf-regular-preview-zoom-buttons {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.wc-apf-regular-preview-zoom-hint {
    font-size: 13px;
    font-weight: 700;
}
.wc-apf-regular-preview-zoom-hint .dashicons {
    color: #64caef;
}
.wc-apf-regular-preview-zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.wc-apf-regular-preview-zoom:hover,
.wc-apf-regular-preview-zoom:focus-visible {
    border-color: #64caef;
    background: rgba(100, 202, 239, .22);
}
.wc-apf-regular-preview-zoom-level {
    width: 61px;
    font-size: 12px;
}
.wc-apf-regular-preview-viewport {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 10px;
    background-color: #dfe3e6;
    background-image: linear-gradient(45deg, #bfc6ca 25%, transparent 25%), linear-gradient(-45deg, #bfc6ca 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bfc6ca 75%), linear-gradient(-45deg, transparent 75%, #bfc6ca 75%);
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
    scrollbar-color: #66808d rgba(255, 255, 255, .55);
    cursor: grab;
}
.wc-apf-regular-preview-viewport:active {
    cursor: grabbing;
}
.wc-apf-regular-preview-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    min-height: 100%;
    padding: 24px;
    box-sizing: border-box;
}
.wc-apf-regular-preview-modal img {
    display: block;
    flex: 0 0 auto;
    max-width: none;
    max-height: none;
    background: transparent;
    box-shadow: 0 10px 45px rgba(0, 0, 0, .5);
    user-select: none;
}
.wc-apf-regular-preview-modal-size {
    color: #fff;
    font-size: 15px;
    line-height: 24px;
    text-align: center;
}
.wc-apf-regular-preview-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(0, 0, 0, .36);
    color: #fff;
    font-size: 31px;
    line-height: 36px;
    cursor: pointer;
}
body.wc-apf-preview-modal-open {
    overflow: hidden;
}
.wc-apf-regular-option-field {
    padding: 11px 13px;
    border: 1px solid #d9e7ef;
    border-radius: 8px;
    background: #f9fcfe;
}
.wc-apf-regular-option-field .wc-apf-field-label {
    color: #183b51;
    font-size: 13px;
}
.wc-apf-regular-option-select {
    min-height: 43px;
    border-color: #b8d7e7;
    background: #fff;
    color: #183b51;
    font-weight: 700;
}
.wc-apf-regular-sheet-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 11px;
    border: 1px solid #b7deef;
    border-radius: 10px;
    background: linear-gradient(135deg, #edf9ff, #f8fcff);
    box-shadow: 0 4px 14px rgba(30, 139, 190, .08);
}
.wc-apf-regular-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    padding: 9px 8px;
    box-sizing: border-box;
    border: 1px solid rgba(40, 164, 217, .16);
    border-radius: 7px;
    background: #ffffff;
    text-align: center;
}
.wc-apf-regular-detail span,
.wc-apf-regular-detail strong {
    display: block;
}
.wc-apf-regular-detail span {
    color: #6b7f8c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.15;
    text-transform: uppercase;
}
.wc-apf-regular-detail strong {
    margin-top: 3px;
    color: #173e56;
    font-size: 14px;
    line-height: 1.2;
}
.wc-apf-regular-price-detail strong {
    color: #0d8bbf;
    font-size: 17px;
}
.wc-apf-regular-billing-note {
    grid-column: 1 / -1;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(26, 145, 194, .08);
    color: #527083;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.wc-apf-regular-billing-note.is-minimum {
    background: #fff4cf;
    color: #8a6400;
}
.wc-apf-regular-allowed-note {
    grid-column: 1 / -1;
    margin-top: -3px;
    color: #4c6d7e;
    font-size: 10px;
    text-align: center;
}
.wc-apf-regular-card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    width: 80px;
    margin: 3px auto;
    color: #48616f;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .wc-apf-regular-form {
        margin-top: 28px;
    }
    .wc-apf-regular-uploader-product form.cart .single_add_to_cart_button.buttonaddcarttoggle,
    .wc-apf-regular-uploader-product .summary.entry-summary form.cart .single_add_to_cart_button.buttonaddcarttoggle {
        margin-top: 16px !important;
        margin-bottom: 0 !important;
    }
    .wc-apf-regular-intro {
        gap: 8px;
        padding: 10px 11px;
    }
    .wc-apf-regular-intro strong {
        font-size: 14px;
    }
    .wc-apf-regular-intro small {
        font-size: 11px;
    }
    .wc-apf-regular-rate-card {
        min-width: 102px;
        padding: 7px 8px;
    }
    .wc-apf-regular-rate-card .wc-apf-regular-rate-label {
        font-size: 8px;
    }
    .wc-apf-regular-rate-card strong {
        font-size: 15px;
    }
    .wc-apf-regular-rate-card small {
        font-size: 8px;
    }
    .wc-apf-regular-sheet-details {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        padding: 7px;
    }
    .wc-apf-regular-detail {
        padding: 7px 3px;
    }
    .wc-apf-regular-detail span {
        font-size: 8px;
    }
    .wc-apf-regular-detail strong {
        font-size: 11px;
    }
    .wc-apf-regular-price-detail strong {
        font-size: 13px;
    }
    .wc-apf-regular-billing-note {
        font-size: 10px;
    }
    .wc-apf-regular-size-error {
        padding: 22px 13px;
    }
    .wc-apf-regular-size-error h3 {
        font-size: 18px;
    }
    .wc-apf-regular-size-error p {
        font-size: 12px;
    }
    .wc-apf-regular-error-details {
        gap: 5px;
    }
    .wc-apf-regular-error-details span {
        min-width: 0;
        flex: 1 1 50%;
        padding: 7px 5px;
    }
    .wc-apf-regular-preview-card {
        padding: 11px 8px 12px;
    }
    .wc-apf-regular-preview-width {
        width: 88%;
    }
    .wc-apf-regular-preview-body {
        min-height: 0;
        gap: 4px;
    }
    .wc-apf-regular-preview-length {
        width: 27px;
        min-height: 0;
    }
    .wc-apf-regular-preview-enlarge {
        min-width: 0;
        min-height: 0;
        max-width: none;
        padding: 0;
    }
    .wc-apf-regular-preview-enlarge img {
        max-height: none;
    }
    .wc-apf-regular-preview-modal {
        padding: 6px;
    }
    .wc-apf-regular-preview-modal-inner {
        width: 100%;
        height: 98vh;
    }
    .wc-apf-regular-preview-toolbar {
        padding: 4px 48px 4px 8px;
    }
    .wc-apf-regular-preview-zoom-hint {
        font-size: 11px;
    }
    .wc-apf-regular-preview-canvas {
        padding: 14px;
    }
    .wc-apf-regular-preview-close {
        top: 8px;
        right: 8px;
    }
}

/* DTF gamut viewer: keep "Show me the colors" visually distinct from the editor. */
.wc-apf-dtf-color-modal.is-viewer-mode .wc-apf-dtf-color-dialog {
    width: min(1080px, 96vw);
}
.wc-apf-dtf-viewer-color {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}
.wc-apf-dtf-viewer-row .wc-apf-dtf-color-side em.is-warning {
    color: #b45309;
}
.wc-apf-dtf-color-modal.is-viewer-mode .wc-apf-dtf-color-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}
.wc-apf-dtf-color-modal.is-viewer-mode .wc-apf-dtf-color-footer .button {
    min-height: 44px;
}
@media (max-width: 640px) {
    .wc-apf-dtf-viewer-color {
        grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    }
}

/* Color gamut advisory note */
.wc-apf-dtf-suggestion-note {
    margin-top: 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #5f6368 !important;
}
.wc-apf-dtf-suggestion-note strong {
    color: #374151 !important;
}
