/**
 * Workwear Size Grid — Frontend Styles
 *
 * All selectors scoped under #wsg-root (ID specificity 100+).
 * !important used ONLY on form-hiding rules via .wsg-active on <html>.
 */

/* ==========================================================================
   Form Hiding (the ONLY !important rules)

   These rules are intentionally duplicated in frontend-display.php as inline
   <style> in wp_head. The inline copy loads before this stylesheet to prevent
   a flash of the default WC dropdowns (FOUC). This copy acts as the
   long-term stylesheet rule once the CSS file has loaded.
   ========================================================================== */

.wsg-active .variations_form .variations { display: none !important; }
.wsg-active .variations_form .single_add_to_cart_button { display: none !important; }
.wsg-active .variations_form .woocommerce-variation-add-to-cart { display: none !important; }

/* ==========================================================================
   Root Container
   ========================================================================== */

#wsg-root {
    max-width: 100%;
    margin: 0 0 20px;
    font-family: inherit;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

#wsg-root .wsg-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    padding: 0;
}

/* ==========================================================================
   Colour Swatches
   ========================================================================== */

#wsg-root .wsg-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
}

#wsg-root .wsg-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-clip: padding-box;
}

#wsg-root .wsg-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

#wsg-root .wsg-swatch--active {
    box-shadow: 0 0 0 3px #333;
    transform: scale(1.1);
}

/* Light/white swatches need a visible border */
#wsg-root .wsg-swatch--light {
    border-color: #bbb;
}

#wsg-root .wsg-swatch .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Selected Colors (Bundle mode pills)
   ========================================================================== */

#wsg-root .wsg-selected-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}

#wsg-root .wsg-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
}

#wsg-root .wsg-pill-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

#wsg-root .wsg-pill-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #999;
    padding: 0 0 0 2px;
}

#wsg-root .wsg-pill-remove:hover {
    color: #333;
}

/* ==========================================================================
   Grids Container
   ========================================================================== */

#wsg-root .wsg-grids-container {
    margin: 0 0 16px;
}

/* ==========================================================================
   Individual Grid
   ========================================================================== */

#wsg-root .wsg-grid {
    margin: 0 0 20px;
}

#wsg-root .wsg-grid-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    padding: 0;
}

#wsg-root .wsg-grid-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* ==========================================================================
   Grid Table
   ========================================================================== */

#wsg-root .wsg-grid-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

#wsg-root .wsg-grid-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    padding: 6px 12px;
    border-bottom: 2px solid #e0e0e0;
}

#wsg-root .wsg-grid-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}

#wsg-root .wsg-grid-table th:last-child,
#wsg-root .wsg-grid-table td:last-child {
    text-align: center;
    width: 80px;
}

/* Out of stock row */
#wsg-root .wsg-row--disabled td {
    opacity: 0.45;
    color: #999;
}

#wsg-root .wsg-out-of-stock-text {
    font-size: 12px;
    font-style: italic;
    color: #999;
}

/* ==========================================================================
   Quantity Input
   ========================================================================== */

#wsg-root .wsg-qty-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

/* Hide browser spinners */
#wsg-root .wsg-qty-input::-webkit-outer-spin-button,
#wsg-root .wsg-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#wsg-root .wsg-qty-input:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 0 0 1px #333;
}

/* ==========================================================================
   Totals Section
   ========================================================================== */

#wsg-root .wsg-totals {
    padding: 16px 0;
    border-top: 1px solid #e0e0e0;
    margin: 0 0 16px;
}

#wsg-root .wsg-totals-row {
    font-size: 14px;
    margin: 0 0 6px;
    color: #333;
}

#wsg-root .wsg-totals-discount {
    color: #0a8f0a;
    font-weight: 500;
}

#wsg-root .wsg-totals-remaining {
    color: #666;
    font-size: 13px;
}

#wsg-root .wsg-totals-price {
    font-size: 18px;
    margin-top: 8px;
}

/* ==========================================================================
   Progress Bar (Bundle mode)
   ========================================================================== */

#wsg-root .wsg-progress {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0 10px;
}

#wsg-root .wsg-progress-bar {
    height: 100%;
    background: #0a8f0a;
    border-radius: 4px;
    transition: width 0.25s ease, background-color 0.25s ease;
    min-width: 0;
}

#wsg-root .wsg-progress--over .wsg-progress-bar {
    background: #d63638;
}

#wsg-root .wsg-progress--complete .wsg-progress-bar {
    background: #0a8f0a;
}

/* ==========================================================================
   Add to Cart Button
   ========================================================================== */

#wsg-root .wsg-add-to-cart {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

#wsg-root .wsg-add-to-cart:hover {
    background: #555;
}

#wsg-root .wsg-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Messages
   ========================================================================== */

#wsg-root .wsg-message {
    margin: 12px 0 0;
}

#wsg-root .wsg-message--success {
    display: inline-block;
    padding: 6px 14px;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: wsgFadeIn 0.3s ease;
}

#wsg-root .wsg-message--error {
    display: block;
    padding: 10px 14px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
    animation: wsgFadeIn 0.3s ease;
}

@keyframes wsgFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Bundle Qty in Cart
   ========================================================================== */

.wsg-bundle-qty {
    font-weight: 600;
}

/* Breakdown color dots in cart */
.wsg-breakdown-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    margin-right: 4px;
    vertical-align: middle;
}

/* ==========================================================================
   Logo Customization — Trigger Area & Summary Card
   ========================================================================== */

#wsg-root .wsg-logo-wrap {
    margin: 0 0 20px;
}

#wsg-root .wsg-logo-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

#wsg-root .wsg-logo-open-btn:hover {
    border-color: #2271b1;
    background: #f0f7fc;
    color: #2271b1;
}

#wsg-root .wsg-logo-open-icon::before {
    content: '+';
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

#wsg-root .wsg-logo-optional {
    font-weight: 400;
    font-size: 12px;
    color: #888;
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
}

#wsg-root .wsg-logo-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    background: #f8faf8;
}

#wsg-root .wsg-logo-summary-preview {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#wsg-root .wsg-logo-summary-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#wsg-root .wsg-logo-summary-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#wsg-root .wsg-logo-summary-positions {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#wsg-root .wsg-logo-summary-method {
    font-size: 12px;
    color: #666;
}

#wsg-root .wsg-logo-summary-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#wsg-root .wsg-logo-edit-btn,
#wsg-root .wsg-logo-remove-all {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid;
    transition: background 0.15s;
    line-height: 1.4;
}

#wsg-root .wsg-logo-edit-btn {
    background: #fff;
    border-color: #2271b1;
    color: #2271b1;
}

#wsg-root .wsg-logo-edit-btn:hover {
    background: #f0f7fc;
}

#wsg-root .wsg-logo-remove-all {
    background: #fff;
    border-color: #ccc;
    color: #666;
}

#wsg-root .wsg-logo-remove-all:hover {
    background: #f9f9f9;
    border-color: #999;
}

/* ==========================================================================
   Logo Customization — Modal Overlay
   ========================================================================== */

body.wsg-modal-open {
    overflow: hidden;
}

#wsg-root .wsg-logo-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wsg-root .wsg-logo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

#wsg-root .wsg-logo-modal-dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

#wsg-root .wsg-logo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-radius: 12px 12px 0 0;
}

#wsg-root .wsg-logo-modal-header .wsg-section-title {
    margin: 0;
    font-size: 16px;
}

#wsg-root .wsg-logo-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

#wsg-root .wsg-logo-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

#wsg-root .wsg-logo-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    min-height: 0;
}

/* ==========================================================================
   Logo Wizard — Step Indicator
   ========================================================================== */

#wsg-root .wsg-wizard-steps {
    display: flex;
    align-items: flex-start;
    margin: 0 0 20px;
}

#wsg-root .wsg-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}

#wsg-root .wsg-wizard-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin-top: 13px;
    min-width: 16px;
    transition: background 0.2s ease;
}

#wsg-root .wsg-wizard-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #bbb;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#wsg-root .wsg-wizard-step-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#wsg-root .wsg-wizard-step--active .wsg-wizard-step-num {
    border-color: #333;
    background: #333;
    color: #fff;
}

#wsg-root .wsg-wizard-step--active .wsg-wizard-step-label {
    color: #333;
    font-weight: 700;
}

#wsg-root .wsg-wizard-step--done .wsg-wizard-step-num {
    border-color: #2e7d32;
    background: #2e7d32;
    color: #fff;
}

#wsg-root .wsg-wizard-step--done .wsg-wizard-step-label {
    color: #2e7d32;
    font-weight: 600;
}

/* ==========================================================================
   Logo Wizard — Pane & Subtitle
   ========================================================================== */

#wsg-root .wsg-wizard-pane {
    animation: wsgFadeIn 0.2s ease;
}

#wsg-root .wsg-wizard-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px;
}

/* ==========================================================================
   Logo Wizard — Position Cards Grid
   ========================================================================== */

#wsg-root .wsg-logo-position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 4px;
}

#wsg-root .wsg-logo-pos-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
}

#wsg-root .wsg-logo-pos-card:hover {
    border-color: #aaa;
    background: #fafafa;
}

#wsg-root .wsg-logo-pos-card--active {
    border-color: #333;
    background: #f8f8f8;
}

/* Product image visual (SVG fallback when no product image) */
#wsg-root .wsg-pos-tshirt {
    width: 90px;
    height: 90px;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M35%2C10 Q50%2C20 65%2C10 L88%2C24 L82%2C46 L68%2C38 L68%2C92 L32%2C92 L32%2C38 L18%2C46 L12%2C24 Z' fill='%23f5f5f5' stroke='%23ccc' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Position marker — visible target ring on product photo */
#wsg-root .wsg-pos-dot {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 60, 60, 0.25);
    border: 2.5px solid #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18), 0 1px 4px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    /* Default: center-chest fallback */
    top: 42%;
    left: 50%;
}

#wsg-root .wsg-pos-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e53935;
    transform: translate(-50%, -50%);
}

#wsg-root .wsg-logo-pos-card--active .wsg-pos-dot {
    background: rgba(34, 34, 34, 0.25);
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.18), 0 1px 4px rgba(0,0,0,0.25);
    animation: wsgPulse 1.5s ease-in-out infinite;
}

#wsg-root .wsg-logo-pos-card--active .wsg-pos-dot::after {
    background: #222;
}

@keyframes wsgPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.18), 0 1px 4px rgba(0,0,0,0.25); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 34, 34, 0.10), 0 1px 4px rgba(0,0,0,0.25); }
}

/* Position-specific dot coordinates — keep in sync with logoPositionCoords in frontend.js */
#wsg-root .wsg-pos-dot--left-chest    { top: 42%; left: 36%; }
#wsg-root .wsg-pos-dot--right-chest   { top: 42%; left: 64%; }
#wsg-root .wsg-pos-dot--center-chest  { top: 42%; left: 50%; }
#wsg-root .wsg-pos-dot--left-sleeve   { top: 40%; left: 16%; }
#wsg-root .wsg-pos-dot--right-sleeve  { top: 40%; left: 84%; }
#wsg-root .wsg-pos-dot--back          { top: 42%; left: 50%; }
#wsg-root .wsg-pos-dot--front-pocket  { top: 46%; left: 36%; }
#wsg-root .wsg-pos-dot--centre-chest  { top: 42%; left: 50%; }

/* Position name */
#wsg-root .wsg-pos-name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Method availability badges */
#wsg-root .wsg-pos-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

#wsg-root .wsg-pos-badge {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

#wsg-root .wsg-pos-badge--print {
    background: #e3f2fd;
    color: #1565c0;
}

#wsg-root .wsg-pos-badge--emb {
    background: #fce4ec;
    color: #880e4f;
}

/* Selected checkmark */
#wsg-root .wsg-pos-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#wsg-root .wsg-logo-pos-card--active .wsg-pos-check {
    opacity: 1;
}

/* ==========================================================================
   Logo Wizard — Method Cards (Step 2)
   ========================================================================== */

#wsg-root .wsg-logo-method-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 4px;
}

#wsg-root .wsg-logo-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
}

#wsg-root .wsg-logo-method-card:hover {
    border-color: #aaa;
    background: #fafafa;
}

#wsg-root .wsg-logo-method-card--active {
    border-color: #333;
    background: #fafafa;
    box-shadow: 0 0 0 1px #333;
}

#wsg-root .wsg-method-icon {
    display: block;
    width: 40px;
    height: 40px;
    opacity: 0.55;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.15s ease;
}

#wsg-root .wsg-logo-method-card--active .wsg-method-icon {
    opacity: 1;
}

#wsg-root .wsg-method-icon--print {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 01-2-2v-5a2 2 0 012-2h16a2 2 0 012 2v5a2 2 0 01-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
}

#wsg-root .wsg-method-icon--embroidery {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2L4 18h7l-1.5 4L20 6h-7z'/%3E%3C/svg%3E");
}

#wsg-root .wsg-method-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

#wsg-root .wsg-method-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

#wsg-root .wsg-method-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   Logo Wizard — Upload Step (Step 3)
   ========================================================================== */

#wsg-root .wsg-logo-dropzone {
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin: 0 0 12px;
}

#wsg-root .wsg-logo-dropzone:hover,
#wsg-root .wsg-logo-dropzone--dragover {
    border-color: #333;
    background: #f8f8f8;
}

#wsg-root .wsg-logo-drop-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    opacity: 0.35;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") no-repeat center/contain;
}

#wsg-root .wsg-logo-drop-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

#wsg-root .wsg-logo-drop-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Uploading state */
#wsg-root .wsg-logo-dropzone--uploading {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes wsgSpin {
    to { transform: rotate(360deg); }
}

#wsg-root .wsg-logo-spinner {
    font-size: 13px;
    color: #666;
}

#wsg-root .wsg-logo-spinner-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: wsgSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* Preview card */
#wsg-root .wsg-logo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f8faf8;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    margin: 0 0 12px;
}

#wsg-root .wsg-logo-preview-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
}

#wsg-root .wsg-logo-preview-status {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2e7d32;
    margin: 0 0 6px;
}

#wsg-root .wsg-logo-preview-actions {
    display: flex;
    gap: 10px;
}

#wsg-root .wsg-logo-change {
    background: none;
    border: 1px solid #ccc;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
    transition: border-color 0.15s ease;
}

#wsg-root .wsg-logo-change:hover {
    border-color: #333;
}

#wsg-root .wsg-logo-remove {
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 4px 0;
}

#wsg-root .wsg-logo-remove:hover {
    color: #a02020;
}

/* Product preview with logo overlay (Step 3) */
#wsg-root .wsg-logo-product-preview {
    position: relative;
    max-width: 280px;
    margin: 16px auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#wsg-root .wsg-logo-product-img {
    display: block;
    width: 100%;
    height: auto;
}

#wsg-root .wsg-logo-overlay {
    position: absolute;
    width: 18%;
    height: auto;
    max-height: 18%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
    pointer-events: none;
    border-radius: 2px;
}

/* Summary card — product preview with logo */
#wsg-root .wsg-logo-summary-preview--product {
    position: relative;
    width: 64px;
    height: 64px;
}

#wsg-root .wsg-logo-summary-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

#wsg-root .wsg-logo-summary-overlay {
    position: absolute;
    width: 22%;
    height: auto;
    max-height: 22%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.35));
    pointer-events: none;
}

/* "No logo" checkbox row */
#wsg-root .wsg-logo-no-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    transition: border-color 0.15s ease;
}

#wsg-root .wsg-logo-no-logo:hover {
    border-color: #aaa;
}

#wsg-root .wsg-logo-no-logo-input {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

/* Notes */
#wsg-root .wsg-logo-notes-wrap {
    margin: 0 0 12px;
}

#wsg-root .wsg-logo-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #333;
}

#wsg-root .wsg-logo-notes {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 56px;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

#wsg-root .wsg-logo-notes:focus {
    border-color: #333;
    outline: none;
}

/* Surcharge note */
#wsg-root .wsg-logo-surcharge {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin: 0 0 8px;
}

/* ==========================================================================
   Logo Wizard — Navigation Buttons
   ========================================================================== */

#wsg-root .wsg-wizard-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

#wsg-root .wsg-wizard-back {
    padding: 9px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

#wsg-root .wsg-wizard-back:hover {
    border-color: #999;
    color: #333;
}

#wsg-root .wsg-wizard-continue,
#wsg-root .wsg-wizard-finish {
    padding: 9px 24px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

#wsg-root .wsg-wizard-continue:hover,
#wsg-root .wsg-wizard-finish:hover {
    background: #555;
}

#wsg-root .wsg-wizard-continue:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Responsive (max-width: 600px)
   ========================================================================== */

@media (max-width: 600px) {
    #wsg-root .wsg-swatch {
        width: 30px;
        height: 30px;
    }

    #wsg-root .wsg-grid-table th,
    #wsg-root .wsg-grid-table td {
        padding: 6px 8px;
        font-size: 13px;
    }

    #wsg-root .wsg-qty-input {
        width: 50px;
        padding: 4px 6px;
    }

    #wsg-root .wsg-add-to-cart {
        width: 100%;
        text-align: center;
    }

    #wsg-root .wsg-totals-price {
        font-size: 16px;
    }

    #wsg-root .wsg-logo-method-cards {
        grid-template-columns: 1fr;
    }

    #wsg-root .wsg-logo-position-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #wsg-root .wsg-logo-dropzone {
        padding: 20px 12px;
    }

    #wsg-root .wsg-logo-preview-img {
        width: 52px;
        height: 52px;
    }

    #wsg-root .wsg-wizard-nav {
        flex-direction: row;
    }
}
