
/* === ppw-dtf-css === */

/* DTF picker styles. ~85% of these rules are emitted by Core's picker shell
   (panda-prints-core/scripts/pp-picker-shell-block.php) via the
   ppw_picker_shell_emit_css() call below. Only DTF-specific extras live
   inline here: the per-deco WC-hide block, the lightbox, the print-ready
   disclaimer modal-row, and a couple of small overrides. */

/* DTF accent overrides on top of the shared Panda Prints design tokens.
   Core's ppw_picker_shell_emit_design_tokens() emits the universal
   --pp-* palette; DTF uses a cooler cyan-700 to differentiate from EMB/LP. */
:root {
    --pp-dtf-accent:     #0e7490;   /* cyan-700, matches the Core registry accent */
    --pp-dtf-accent-bg:  #cffafe;
}

/* Hide native WC product UI on DTF product pages.
   Belt-and-suspenders: hide the ENTIRE add-to-cart form for variable AND
   grouped products (covers the native variation dropdown, the
   "Add all to cart" grouped list, and any variations-as-list plugin
   markup) so the picker is the only purchase UI even if a product hasn't
   been converted to Simple yet. */
body.ppw-dtf-page .product.product-type-variable > form.cart,
body.ppw-dtf-page .product.product-type-variable form.variations_form,
body.ppw-dtf-page .product.product-type-grouped > form.cart,
body.ppw-dtf-page .product.product-type-grouped form.grouped_form,
body.ppw-dtf-page .product form.cart table.variations,
body.ppw-dtf-page .product form.cart table.group_table,
body.ppw-dtf-page .product form.cart .single_variation_wrap,
body.ppw-dtf-page .product > .price, body.ppw-dtf-page .summary > .price,
body.ppw-dtf-page .product form.cart > .quantity,
body.ppw-dtf-page .product form.cart > button.single_add_to_cart_button,
body.ppw-dtf-page .product .product_meta,
body.ppw-dtf-page ul#ppw-swatch-row.ppw-swatches,
body.ppw-dtf-page .ppw-swatch-label,
body.ppw-dtf-page .ppw-emb,
body.ppw-dtf-page .ppw-lp { display: none !important; }
:root {
    --pp-teal:           #00bbc8;
    --pp-teal-dark:      #00a4b0;
    --pp-teal-bg:        #e0f7fa;
    --pp-teal-bg-light:  #f0fdfe;
    --pp-text:           #1f2937;
    --pp-text-muted:     #6b7280;
    --pp-text-faint:     #9ca3af;
    --pp-border:         #d1d5db;
    --pp-border-light:   #e5e7eb;
    --pp-border-faint:   #f3f4f6;
    --pp-warn-bg:        #fff7ed;
    --pp-warn-text:      #92400e;
    --pp-warn-line:      #f59e0b;
    --pp-bad-bg:         #fee2e2;
    --pp-bad-text:       #dc2626;
}
/* ============================================================
   Panda Prints picker shell — shared rules. Source of truth:
   panda-prints-core/scripts/pp-picker-shell-block.php
   Emitted for prefix `.ppw-dtf-` with accent `var(--pp-dtf-accent)`.
   ============================================================ */

/* Page layout: 25% left (title + desc + gallery + benefits) / 75% right (picker) */
body.ppw-dtf-page .product {
    display: grid !important;
    grid-template-columns: 25% 1fr;
    gap: 28px;
    align-items: start;
}
body.ppw-dtf-page .product > .ppw-dtf-left-col {
    grid-column: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px;
    align-items: flex-end; text-align: right;
}
body.ppw-dtf-page .ppw-dtf-left-col > * { max-width: 100%; }
body.ppw-dtf-page .ppw-dtf-left-col .woocommerce-product-gallery,
body.ppw-dtf-page .ppw-dtf-left-col .ppw-dtf-left-gallery { width: 100% !important; }
body.ppw-dtf-page .product > .summary.entry-summary {
    grid-column: 2; width: 100% !important; max-width: 100% !important;
    float: none !important; margin: 0 !important; min-width: 0;
}
body.ppw-dtf-page .product > .woocommerce-tabs,
body.ppw-dtf-page .product > .upsells,
body.ppw-dtf-page .product > .related,
body.ppw-dtf-page .product > .related.products,
body.ppw-dtf-page .product > .product_meta {
    grid-column: 1 / -1; width: 100% !important; max-width: 100% !important;
    float: none !important; margin: 32px 0 0 !important;
}
body.ppw-dtf-page .ppw-dtf-left-col .product_title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; }
body.ppw-dtf-page .ppw-dtf-left-col .woocommerce-product-details__short-description { margin: 0; font-size: 13px; color: var(--pp-text-muted); line-height: 1.55; }
body.ppw-dtf-page .ppw-dtf-left-col .woocommerce-product-gallery { width: 100% !important; max-width: 100% !important; margin: 0 !important; float: none !important; }
@media (max-width: 880px) { body.ppw-dtf-page .product { grid-template-columns: 1fr; gap: 18px; } }

body.ppw-dtf-page .woocommerce-breadcrumb,
body.ppw-dtf-page nav.woocommerce-breadcrumb,
body.ppw-dtf-page .ast-breadcrumbs-wrapper,
body.ppw-dtf-page .ast-breadcrumb-bar { display: none !important; }

/* Hide the thumbnail navigation strip — the multi-color gallery replaces it */
body.ppw-dtf-page .woocommerce-product-gallery .flex-control-nav,
body.ppw-dtf-page .woocommerce-product-gallery .flex-control-thumbs,
body.ppw-dtf-page .woocommerce-product-gallery ol.flex-control-thumbs { display: none !important; }

/* WP's wp-emoji turns the magnifier glyph in the WC trigger into an <img.emoji>
   that renders as a second magnifier on top of the theme's styled icon. Keep
   the styled icon; hide the emoji duplicate. */
body.ppw-dtf-page .woocommerce-product-gallery img.emoji { display: none !important; }

/* Benefits trio/quad in left col (editable per-deco in admin → Benefits) */
body.ppw-dtf-page .ppw-dtf-benefits {
    width: 100%;
    display: grid;
    gap: 10px;
    margin-top: 6px;
    text-align: left;
}
body.ppw-dtf-page .ppw-dtf-benefits-1,
body.ppw-dtf-page .ppw-dtf-benefits-2,
body.ppw-dtf-page .ppw-dtf-benefits-3,
body.ppw-dtf-page .ppw-dtf-benefits-4 { grid-template-columns: 1fr; }
body.ppw-dtf-page .ppw-dtf-benefit-card {
    background: var(--pp-dtf-accent-bg);
    border: 1px solid var(--pp-border-light);
    border-left: 3px solid var(--pp-dtf-accent);
    border-radius: 6px;
    padding: 10px 12px;
    line-height: 1.4;
}
body.ppw-dtf-page .ppw-dtf-benefit-title { font-weight: 700; font-size: 13px; color: var(--pp-text); margin-bottom: 3px; }
body.ppw-dtf-page .ppw-dtf-benefit-desc { font-size: 12px; color: var(--pp-text-muted); }

/* Picker core */
.ppw-dtf { max-width: 980px; margin: 24px auto; font-family: inherit; color: var(--pp-text); scroll-margin-top: 80px; }
.ppw-dtf-step { background: #fff; border: 1px solid var(--pp-border-light); border-radius: 10px; padding: 20px 24px; margin-bottom: 16px; display: none; }
.ppw-dtf-step-active { display: block; }
.ppw-dtf-step-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--pp-text); display: flex; align-items: center; justify-content: space-between; }
.ppw-dtf-step-hint { font-size: 12px; color: var(--pp-text-muted); font-style: italic; margin-bottom: 14px; }
.ppw-dtf-step-back { background: transparent; border: none; color: var(--pp-dtf-accent); font-size: 13px; cursor: pointer; padding: 4px 8px; font-weight: 600; }
.ppw-dtf-step-back:hover { text-decoration: underline; }
.ppw-dtf-sub { margin-bottom: 18px; }
.ppw-dtf-sub-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--pp-text); }
.ppw-dtf-required { color: var(--pp-bad-text); }

/* Step 1 layout (picker + volume table side-by-side, stickied volume on desktop) */
.ppw-dtf-step1-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr); gap: 16px; align-items: start; margin: 14px 0; }
.ppw-dtf-step1-main { min-width: 0; }
.ppw-dtf-step1-volume { min-width: 0; }
.ppw-dtf-volume-table-step1 { position: sticky; top: 90px; }
.ppw-dtf-volume-foot { font-size: 10px; color: var(--pp-text-faint); font-style: italic; margin-top: 8px; line-height: 1.4; }
@media (max-width: 720px) {
    .ppw-dtf-step1-body { grid-template-columns: 1fr; }
    .ppw-dtf-volume-table-step1 { position: static; }
}

/* Color chips (mini front-view product thumbnails) */
.ppw-dtf-colors-grid {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
    max-height: 280px; overflow-y: auto;
    padding: 8px; border: 1px solid var(--pp-border-faint); border-radius: 8px; background: #fbfbfb;
}
.ppw-dtf-color-chip {
    background-color: #f3f4f6; background-size: cover; background-position: center; background-repeat: no-repeat;
    border: 2px solid var(--pp-border); border-radius: 8px;
    padding: 0; cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    width: 56px; height: 56px; position: relative; flex-shrink: 0;
}
.ppw-dtf-color-chip:hover { border-color: var(--pp-dtf-accent); transform: scale(1.08); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.ppw-dtf-color-chip-selected { border-color: var(--pp-dtf-accent); outline: 2px solid var(--pp-dtf-accent); outline-offset: 2px; }

/* Body-appended chip tooltip (shared name + look across pickers) */
.ppw-dtf-chip-tooltip {
    position: fixed; z-index: 999999;
    background: var(--pp-text); color: #fff;
    padding: 4px 10px; border-radius: 5px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    transform: translate(-50%, -100%);
    pointer-events: none; opacity: 0;
    transition: opacity 0.1s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.ppw-dtf-chip-tooltip.is-visible { opacity: 1; }
.ppw-dtf-chip-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--pp-text);
}

/* Selected colours area (size×qty matrix) */
.ppw-dtf-selected-wrap { padding: 14px; background: var(--pp-dtf-accent-bg); border-radius: 8px; border: 1px solid var(--pp-dtf-accent); }
.ppw-dtf-selected-title { font-weight: 700; font-size: 13px; color: var(--pp-text); margin-bottom: 10px; }
.ppw-dtf-selected-list { display: flex; flex-direction: column; gap: 8px; }
.ppw-dtf-selected-row {
    display: flex !important; flex-wrap: wrap; align-items: center !important; gap: 10px !important;
    background: #fff; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--pp-border-light);
    box-sizing: border-box;
}
.ppw-dtf-selected-row-sw { width: 28px !important; height: 28px !important; border-radius: 50%; flex-shrink: 0 !important; border: 1px solid rgba(0,0,0,0.15); background-size: cover; background-position: center; }
.ppw-dtf-selected-row-name { flex: 0 0 auto; font-size: 13px !important; font-weight: 700; color: var(--pp-text); min-width: 80px; }
.ppw-dtf-size-cells { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.ppw-dtf-size-cell { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--pp-border-light); border-radius: 5px; padding: 3px 6px; background: #f9fafb; }
.ppw-dtf-size-cell-label { font-size: 11px; font-weight: 700; color: var(--pp-text-muted); min-width: 36px; }
.ppw-dtf-size-cell-minus, .ppw-dtf-size-cell-plus { background: #fff; border: 1px solid var(--pp-border); width: 22px; height: 22px; border-radius: 4px; font-size: 14px; cursor: pointer; padding: 0; line-height: 1; color: var(--pp-text); }
.ppw-dtf-size-cell-minus:hover, .ppw-dtf-size-cell-plus:hover { background: var(--pp-dtf-accent-bg); border-color: var(--pp-dtf-accent); }
.ppw-dtf-size-cell-qty { width: 56px !important; padding: 2px 4px !important; border: 1px solid var(--pp-border) !important; border-radius: 4px !important; font-size: 12px !important; text-align: center !important; box-sizing: border-box !important; height: 22px !important; line-height: normal !important; margin: 0 !important; }
.ppw-dtf-selected-row-remove { background: var(--pp-bad-bg) !important; color: var(--pp-bad-text) !important; border: none !important; padding: 3px 9px !important; border-radius: 4px !important; font-size: 14px !important; cursor: pointer; font-weight: 700; flex-shrink: 0 !important; line-height: 1 !important; margin: 0 0 0 auto !important; min-width: auto !important; width: auto !important; }
.ppw-dtf-selected-row-remove:hover { background: #fecaca !important; }

/* Tier preview chip */
.ppw-dtf-tier-preview { margin-top: 12px; padding: 10px 14px; background: var(--pp-warn-bg); border-left: 4px solid var(--pp-warn-line); border-radius: 4px; font-size: 13px; color: var(--pp-text); line-height: 1.5; }
.ppw-dtf-tier-preview .ppw-dtf-tier-price { color: var(--pp-dtf-accent); font-size: 16px; font-weight: 700; }
.ppw-dtf-tier-preview .ppw-dtf-tier-label { font-weight: 700; color: var(--pp-warn-text); }
.ppw-dtf-tier-preview .ppw-dtf-tier-next { display: block; margin-top: 4px; font-size: 11px; color: var(--pp-warn-text); font-weight: 600; }
.ppw-dtf-tier-preview .ppw-dtf-tier-cart-note { display: block; margin-top: 4px; font-size: 11px; color: var(--pp-text-muted); font-style: italic; }

/* Gamified "unlock the next tier" nudge — money green, bold, progress bar */
.ppw-dtf-tier-unlock {
    margin-top: 10px; padding: 11px 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #34d399; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(22,163,74,0.18);
}
.ppw-dtf-tier-unlock-row { display: flex; align-items: center; gap: 9px; }
.ppw-dtf-tier-unlock-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.ppw-dtf-tier-unlock-text { font-size: 15px; font-weight: 700; color: #065f46; line-height: 1.35; }
.ppw-dtf-tier-unlock-text b { color: #15803d; font-weight: 800; }
.ppw-dtf-tier-progress { height: 9px; background: rgba(16,185,129,0.20); border-radius: 999px; overflow: hidden; margin-top: 9px; }
.ppw-dtf-tier-progress-bar { height: 100%; background: linear-gradient(90deg, #4ade80, #16a34a); border-radius: 999px; transition: width 0.45s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.ppw-dtf-tier-unlock-sub { font-size: 11px; color: #047857; margin-top: 6px; font-weight: 600; }
.ppw-dtf-tier-unlock-max { background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%); border-color: #facc15; box-shadow: 0 2px 10px rgba(202,138,4,0.18); display: flex; align-items: center; gap: 9px; }
.ppw-dtf-tier-unlock-max .ppw-dtf-tier-unlock-text { color: #854d0e; }

/* Volume table */
.ppw-dtf-volume-table { background: #f9fafb; border: 1px solid var(--pp-border-light); border-radius: 8px; padding: 12px 14px; }
.ppw-dtf-volume-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--pp-text); }
.ppw-dtf-volume-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ppw-dtf-volume-table th { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--pp-border-light); font-weight: 600; color: var(--pp-text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.ppw-dtf-volume-table td { padding: 5px 6px; border-bottom: 1px solid var(--pp-border-faint); color: var(--pp-text); }
.ppw-dtf-volume-table tr.ppw-dtf-volume-active td { background: var(--pp-dtf-accent-bg); font-weight: 700; color: var(--pp-dtf-accent); }
.ppw-dtf-volume-table tr.ppw-dtf-volume-active td:first-child::before { content: "\25B6 \00A0"; color: var(--pp-dtf-accent); }

/* Next button */
.ppw-dtf-next-btn { background: var(--pp-dtf-accent); color: #fff; border: none; padding: 12px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 14px; }
.ppw-dtf-next-btn:hover { background: #155e75; }
.ppw-dtf-next-btn:disabled { background: var(--pp-text-faint); cursor: not-allowed; }

/* Placement cards */
.ppw-dtf-placement-cards { display: grid; gap: 12px; }
.ppw-dtf-cards-1 { grid-template-columns: 1fr; }
.ppw-dtf-cards-2 { grid-template-columns: 1fr 1fr; }
.ppw-dtf-cards-3 { grid-template-columns: 1fr 1fr 1fr; }
.ppw-dtf-placement-card {
    background: #fff; border: 2px solid var(--pp-border); border-radius: 8px;
    padding: 14px; cursor: pointer; text-align: center; font-family: inherit; transition: all 0.15s;
}
.ppw-dtf-placement-card:hover { border-color: var(--pp-dtf-accent); background: var(--pp-dtf-accent-bg); }
.ppw-dtf-placement-card-selected { border-color: var(--pp-dtf-accent); background: var(--pp-dtf-accent-bg); }
.ppw-dtf-icon { width: 60px; height: 40px; margin: 0 auto 8px; }
.ppw-dtf-icon svg { width: 100%; height: 100%; }
.ppw-dtf-icon-shirt { width: 56px; height: 56px; }
.ppw-dtf-label { font-size: 14px; font-weight: 700; color: var(--pp-text); }
.ppw-dtf-label-sub { font-size: 11px; font-weight: 500; color: var(--pp-text-muted); display: block; margin-top: 2px; }
.ppw-dtf-card-upcharge { font-size: 12px; color: var(--pp-text-muted); margin-top: 4px; }
@media (max-width: 640px) { .ppw-dtf-cards-2, .ppw-dtf-cards-3 { grid-template-columns: 1fr; } }

/* Per-placement notes */
.ppw-dtf-placement-notes-list { display: flex; flex-direction: column; gap: 10px; }
.ppw-dtf-placement-note { background: #fafafa; border: 1px solid var(--pp-border-light); border-radius: 6px; padding: 10px 12px; }
.ppw-dtf-placement-note-label { font-weight: 700; font-size: 12px; color: var(--pp-text); margin-bottom: 6px; }
.ppw-dtf-placement-note textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--pp-border); border-radius: 4px; font-size: 12px; font-family: inherit; box-sizing: border-box; resize: vertical; min-height: 40px; }

/* Review layout */
.ppw-dtf-review-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.ppw-dtf-review-summary { background: #f9fafb; border: 1px solid var(--pp-border-light); border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.7; color: var(--pp-text); }
.ppw-dtf-review-summary strong { color: var(--pp-dtf-accent); }
.ppw-dtf-review-summary table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.ppw-dtf-review-summary table td { padding: 6px 4px; border-bottom: 1px solid var(--pp-border-faint); vertical-align: middle; }
.ppw-dtf-review-summary table td:last-child { text-align: right; font-weight: 700; }
.ppw-dtf-review-thumb { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; margin-right: 6px; border: 1px solid rgba(0,0,0,0.15); }
.ppw-dtf-step-total { margin: 16px 0; padding: 14px 16px; background: var(--pp-dtf-accent-bg); border-left: 4px solid var(--pp-dtf-accent); border-radius: 6px; font-size: 18px; font-weight: 700; color: var(--pp-text); text-align: center; }
.ppw-dtf-step-total .ppw-dtf-step-total-amount { color: var(--pp-dtf-accent); }
.ppw-dtf-step-total .ppw-dtf-step-total-detail { display: block; font-size: 12px; font-weight: 500; color: var(--pp-text-muted); margin-top: 4px; }
.ppw-dtf-add-to-cart-trigger { background: var(--pp-dtf-accent); color: #fff; border: none; padding: 14px 20px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; transition: background 0.15s; }
.ppw-dtf-add-to-cart-trigger:hover { background: #155e75; }
.ppw-dtf-add-to-cart-trigger:disabled { background: var(--pp-text-faint); cursor: not-allowed; }
@media (max-width: 640px) { .ppw-dtf-review-layout { grid-template-columns: 1fr; gap: 14px; } }

/* Modal */
.ppw-dtf-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.65); z-index: 99999; align-items: center; justify-content: center; padding: 16px; }
.ppw-dtf-modal-backdrop.ppw-dtf-modal-open { display: flex; }
.ppw-dtf-modal { background: #fff; max-width: 540px; width: 100%; max-height: calc(100vh - 32px); border-radius: 14px; position: relative; box-shadow: 0 25px 70px rgba(0,0,0,0.35); display: flex; flex-direction: column; overflow: hidden; }
.ppw-dtf-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--pp-border-faint); }
.ppw-dtf-modal-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--pp-text); }
.ppw-dtf-modal-close { background: transparent; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--pp-text-faint); padding: 4px 8px; }
.ppw-dtf-modal-close:hover { color: var(--pp-text); }
.ppw-dtf-modal-body { padding: 18px 22px; overflow-y: auto; flex: 1 1 auto; }
.ppw-dtf-modal-summary { background: var(--pp-dtf-accent-bg); border: 1px solid var(--pp-dtf-accent); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.ppw-dtf-modal-summary-line { font-size: 13px; color: var(--pp-text); margin-bottom: 2px; line-height: 1.4; }
.ppw-dtf-modal-summary-price { font-size: 17px; font-weight: 700; color: var(--pp-dtf-accent); }
.ppw-dtf-modal-row { margin-bottom: 14px; }
.ppw-dtf-modal-row:last-child { margin-bottom: 0; }
.ppw-dtf-modal-label { display: block; font-weight: 600; font-size: 13px; color: var(--pp-text); margin-bottom: 6px; }
.ppw-dtf-req { color: var(--pp-bad-text); }
.ppw-dtf-modal-art { display: block; width: 100%; padding: 10px; border: 2px dashed var(--pp-border); border-radius: 8px; font-size: 13px; background: #fafbfc; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ppw-dtf-modal-art:hover { border-color: var(--pp-dtf-accent); background: var(--pp-dtf-accent-bg); }
.ppw-dtf-modal-art-status { font-size: 12px; margin-top: 6px; min-height: 16px; }
.ppw-dtf-modal-art-status.is-success { color: #059669; }
.ppw-dtf-modal-art-status.is-error { color: var(--pp-bad-text); }
.ppw-dtf-modal-hint { font-size: 11px; color: var(--pp-text-faint); margin-top: 4px; font-style: italic; }
.ppw-dtf-modal-email-art-label { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; margin-top: 8px; background: #f9fafb; border: 1px solid var(--pp-border-light); border-radius: 6px; font-size: 12px; cursor: pointer; line-height: 1.4; }
.ppw-dtf-modal-email-art-label input { margin-top: 2px; flex-shrink: 0; }
.ppw-dtf-modal-email-art-label strong { color: var(--pp-dtf-accent); }
.ppw-dtf-modal-notes { width: 100%; padding: 8px 12px; border: 1px solid var(--pp-border); border-radius: 6px; font-size: 13px; font-family: inherit; box-sizing: border-box; resize: vertical; min-height: 56px; }

/* Per-placement add-on editors inside the modal */
.ppw-dtf-modal-row-addons .ppw-dtf-modal-addon {
    background: var(--pp-dtf-accent-bg);
    border: 1px solid var(--pp-border-light);
    border-left: 3px solid var(--pp-dtf-accent);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.ppw-dtf-modal-row-addons .ppw-dtf-modal-addon:last-child { margin-bottom: 0; }
.ppw-dtf-modal-addon-title { font-weight: 700; font-size: 13px; color: var(--pp-text); margin-bottom: 6px; }
.ppw-dtf-modal-addon-toggle { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; line-height: 1.4; color: var(--pp-text); margin-bottom: 6px; }
.ppw-dtf-modal-addon-toggle input { margin-top: 2px; flex-shrink: 0; }
.ppw-dtf-modal-addon-toggle strong { color: var(--pp-dtf-accent); }
.ppw-dtf-modal-addon-art {
    display: block; width: 100%; padding: 8px; border: 2px dashed var(--pp-border);
    border-radius: 6px; font-size: 12px; background: #fff; cursor: pointer;
    transition: border-color 0.15s, background 0.15s; box-sizing: border-box;
}
.ppw-dtf-modal-addon-art:hover { border-color: var(--pp-dtf-accent); background: var(--pp-dtf-accent-bg); }
.ppw-dtf-modal-addon-art-status { font-size: 11px; margin-top: 4px; min-height: 14px; }
.ppw-dtf-modal-addon-art-status.is-success { color: #059669; }
.ppw-dtf-modal-addon-art-status.is-error { color: var(--pp-bad-text); }
.ppw-dtf-modal-addon-text-input {
    width: 100%; padding: 8px 10px; border: 1px solid var(--pp-border); border-radius: 6px;
    font-size: 13px; box-sizing: border-box;
}

.ppw-dtf-modal-foot { padding: 14px 22px 18px; border-top: 1px solid var(--pp-border-light); background: #fff; flex-shrink: 0; }
.ppw-dtf-modal-foot-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ppw-dtf-modal-total-label { color: var(--pp-text-muted); font-size: 13px; font-weight: 500; }
.ppw-dtf-modal-total-amount { color: var(--pp-text); font-size: 22px; font-weight: 800; }
.ppw-dtf-modal-actions { display: flex; gap: 10px; }
.ppw-dtf-modal-cancel { flex: 0 0 auto; min-width: 90px; padding: 12px 16px; background: #fff; color: var(--pp-text-muted); border: 1px solid var(--pp-border); border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ppw-dtf-modal-cancel:hover { background: var(--pp-border-faint); color: var(--pp-text); }
.ppw-dtf-modal-confirm { flex: 1 1 auto; padding: 14px 18px; background: var(--pp-dtf-accent); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 14px rgba(14,116,144,0.30); transition: background 0.15s, box-shadow 0.15s, transform 0.05s; }
.ppw-dtf-modal-confirm:hover { background: #155e75; box-shadow: 0 8px 18px rgba(14,116,144,0.40); }
.ppw-dtf-modal-confirm:active { transform: translateY(1px); }
.ppw-dtf-modal-confirm:disabled { background: var(--pp-text-faint); cursor: not-allowed; box-shadow: none; }
.ppw-dtf-modal-status { margin-top: 10px; font-size: 13px; text-align: center; min-height: 18px; }
.ppw-dtf-modal-status.is-success { color: #059669; }
.ppw-dtf-modal-status.is-error { color: var(--pp-bad-text); }

/* Multi-color gallery (replaces WC product hero when colours are selected) */
.ppw-dtf-left-gallery {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 6px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--pp-border-light);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.ppw-dtf-left-gallery.ppw-dtf-left-gallery-active { display: grid; }
.ppw-dtf-gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: var(--pp-border-faint);
    background-size: cover; background-position: center; background-repeat: no-repeat;
    border: 1px solid var(--pp-border-light);
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ppw-dtf-gallery-item:hover { transform: scale(2.4); z-index: 9999; border-color: var(--pp-dtf-accent); box-shadow: 0 10px 32px rgba(0,0,0,0.35); }
.ppw-dtf-gallery-item-label {
    position: absolute; bottom: 2px; left: 2px; right: 2px;
    background: rgba(15,23,42,0.72); color: #fff;
    font-size: 9px; line-height: 1.2; padding: 2px 4px;
    border-radius: 3px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none;
}

/* ============== DTF-only extras (not in shared shell) ============== */

/* Sub-hint utility (used by DTF's step-1 sub-section hint; EMB/LP don't
   render this element so the rule stays here rather than in the shell). */
.ppw-dtf-sub-hint { font-size: 11px; color: var(--pp-text-faint); font-style: italic; margin-top: 6px; }

/* Preserve original placement-card-selected bg. The shared shell uses
   {ACCENT_BG} (which DTF maps to --pp-dtf-accent-bg = #cffafe), but DTF
   historically uses the slightly different teal-bg #e0f7fa for this
   specific selected state. Keep the original shade. */
.ppw-dtf-placement-card-selected { background: var(--pp-teal-bg); }

/* Lightbox for the multi-color gallery (DTF-only — EMB/LP don't have
   a fullscreen lightbox; their gallery items hover-zoom in place). */
.ppw-dtf-lightbox { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.92); z-index: 999999; align-items: center; justify-content: center; padding: 24px; }
.ppw-dtf-lightbox.ppw-dtf-lightbox-open { display: flex; }
.ppw-dtf-lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; text-align: center; }
.ppw-dtf-lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; background: #fff; }
.ppw-dtf-lightbox-caption { color: #fff; font-size: 14px; margin-top: 12px; font-weight: 600; }
.ppw-dtf-lightbox-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.ppw-dtf-lightbox-thumb { width: 56px; height: 56px; border-radius: 6px; border: 2px solid transparent; background-size: cover; background-position: center; cursor: pointer; opacity: 0.6; transition: opacity 0.15s, border-color 0.15s; }
.ppw-dtf-lightbox-thumb:hover { opacity: 1; }
.ppw-dtf-lightbox-thumb.ppw-dtf-lightbox-thumb-active { opacity: 1; border-color: var(--pp-dtf-accent); }
.ppw-dtf-lightbox-close { position: absolute; top: -32px; right: -8px; background: rgba(255,255,255,0.9); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--pp-text); }
.ppw-dtf-lightbox-close:hover { background: #fff; }
.ppw-dtf-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--pp-text); }
.ppw-dtf-lightbox-nav.ppw-dtf-lightbox-prev { left: -56px; }
.ppw-dtf-lightbox-nav.ppw-dtf-lightbox-next { right: -56px; }
.ppw-dtf-lightbox-nav:hover { background: #fff; }
@media (max-width: 700px) {
    .ppw-dtf-lightbox-nav.ppw-dtf-lightbox-prev { left: 4px; }
    .ppw-dtf-lightbox-nav.ppw-dtf-lightbox-next { right: 4px; }
}

/* Print-ready disclaimer modal-row (DTF-only — DTF requires the customer
   to acknowledge submitted art is print-ready before checkout). */
.ppw-dtf-modal-row-disclaimer { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; padding: 10px 12px; }
.ppw-dtf-modal-disclaimer-label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; line-height: 1.5; color: #78350f; }
.ppw-dtf-modal-disclaimer-label input { margin-top: 2px; flex-shrink: 0; }
.ppw-dtf-modal-disclaimer-label strong { color: #92400e; }

