/**
 * WooCommerce Size Quantity Selector Styles
 * Full Design with Order Summary & Volume Discounts
 */

:root {
    --wcsqs-text: #1f2937;
    --wcsqs-text-muted: #6b7280;
    --wcsqs-text-light: #9ca3af;
    --wcsqs-border: #e5e7eb;
    --wcsqs-bg: #ffffff;
    --wcsqs-card-bg: #ffffff;
    --wcsqs-item-bg: #f8f9fa;
    --wcsqs-input-bg: #ffffff;
    --wcsqs-btn-primary: #000000;
    --wcsqs-btn-primary-hover: #1f2937;
    --wcsqs-btn-text: #ffffff;
    --wcsqs-btn-disabled: #d1d5db;
    --wcsqs-price-diff: #ea580c;
    --wcsqs-selected-bg: #dcfce7;
    --wcsqs-selected-text: #166534;
    --wcsqs-success: #059669;
    --wcsqs-error: #dc2626;
}

/* Container */
.wcsqs-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: var(--wcsqs-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.wcsqs-card {
    background: var(--wcsqs-card-bg);
    border: 1px solid var(--wcsqs-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.wcsqs-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wcsqs-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--wcsqs-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Selected Badge */
.wcsqs-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--wcsqs-selected-bg);
    color: var(--wcsqs-selected-text);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* =====================
   COLOR SWATCHES
   ===================== */

.wcsqs-color-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wcsqs-color-label {
    font-size: 14px;
    color: var(--wcsqs-text);
    padding-top: 4px;
    flex-shrink: 0;
}

.wcsqs-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    max-width: 320px;
}

.wcsqs-color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    border: none;
    display: inline-block;
    flex-shrink: 0;
}

.wcsqs-color-swatch:hover {
    transform: scale(1.1);
}

.wcsqs-color-swatch.selected {
    box-shadow: 0 0 0 2px var(--wcsqs-bg), 0 0 0 3px #333;
}

.wcsqs-color-swatch.is-light {
    border: 1px solid #ccc;
}

/* =====================
   SIZE GRID
   ===================== */

.wcsqs-sizes-section {
    margin-bottom: 20px;
}

.wcsqs-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wcsqs-size-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    min-height: 48px;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
    border: 1px solid #e5e7eb;
}

.wcsqs-size-item.out-of-stock {
    opacity: 0.4;
    pointer-events: none;
}

.wcsqs-size-item.has-quantity {
    background: #f0fdf4;
}

.wcsqs-size-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcsqs-size-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
}

.wcsqs-price-diff {
    font-size: 11px;
    font-weight: 600;
    color: var(--wcsqs-price-diff);
}

/* Quantity Controls */
.wcsqs-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.wcsqs-qty-btn {
    width: 26px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.15s ease;
    font-family: inherit;
    padding: 0;
    line-height: 1;
}

.wcsqs-qty-minus {
    border-radius: 0;
}

.wcsqs-qty-plus {
    border-radius: 0;
}

.wcsqs-qty-btn:hover:not(:disabled) {
    color: var(--wcsqs-text);
}

.wcsqs-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wcsqs-qty-input {
    width: 40px;
    height: 28px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    font-family: inherit;
    -moz-appearance: textfield;
}

.wcsqs-qty-input::-webkit-outer-spin-button,
.wcsqs-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wcsqs-qty-input:focus {
    outline: none;
}

.wcsqs-qty-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

/* =====================
   ORDER SUMMARY
   ===================== */

.wcsqs-order-summary {
    padding: 16px 20px;
}

.wcsqs-order-summary .wcsqs-card-title {
    margin-bottom: 12px;
}

.wcsqs-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.wcsqs-summary-row:not(:last-child) {
    border-bottom: 1px solid var(--wcsqs-border);
}

.wcsqs-summary-label {
    font-size: 14px;
    color: var(--wcsqs-text-muted);
}

.wcsqs-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--wcsqs-text);
}

/* =====================
   FOOTER
   ===================== */

.wcsqs-footer {
    text-align: center;
    padding-top: 8px;
}

.wcsqs-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    background: var(--wcsqs-btn-disabled);
    color: #9ca3af;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcsqs-add-to-cart:not(:disabled) {
    background: var(--wcsqs-btn-primary);
    color: var(--wcsqs-btn-text);
    cursor: pointer;
}

.wcsqs-add-to-cart:hover:not(:disabled) {
    background: var(--wcsqs-btn-primary-hover);
    color: var(--wcsqs-btn-text);
}

.wcsqs-cart-icon {
    width: 20px;
    height: 20px;
}

.wcsqs-add-to-cart.loading {
    background: var(--wcsqs-btn-primary);
    color: var(--wcsqs-btn-text);
    pointer-events: none;
}

.wcsqs-spinner {
    animation: wcsqs-spin 1s linear infinite;
}

@keyframes wcsqs-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wcsqs-add-to-cart.success {
    background: var(--wcsqs-success);
    color: #ffffff;
    cursor: default;
}

.wcsqs-footer-message {
    font-size: 13px;
    color: var(--wcsqs-text-muted);
    margin: 12px 0 0 0;
}

.wcsqs-footer-message .wcsqs-min-qty {
    color: var(--wcsqs-btn-primary);
    font-weight: 600;
}

/* =====================
   MESSAGES
   ===================== */

.wcsqs-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.wcsqs-message.success {
    display: block;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.wcsqs-message.error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 500px) {
    .wcsqs-size-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wcsqs-size-item {
        padding: 10px;
    }
    
    .wcsqs-qty-btn {
        width: 26px;
        height: 26px;
    }
    
    .wcsqs-qty-input {
        width: 32px;
        height: 26px;
        font-size: 13px;
    }
    
    .wcsqs-card {
        padding: 16px;
    }
    
    .wcsqs-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .wcsqs-add-to-cart,
    .wcsqs-size-item,
    .wcsqs-qty-btn {
        transition: none;
    }
    
    .wcsqs-add-to-cart.loading::after {
        animation: none;
    }
}

/* WooCommerce Compatibility */
.woocommerce .wcsqs-container {
    margin-bottom: 20px;
}

/* Hide default WooCommerce variations */
.wcsqs-container ~ .variations_form .variations,
.wcsqs-container ~ .variations_form .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: none !important;
}

/* =====================
   DESIGNER TRIGGER BUTTON
   ===================== */

.wcsqs-designer-trigger {
    margin-bottom: 20px;
}

.wcsqs-start-designing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.wcsqs-start-designing-btn:hover {
    background: #2563eb;
}

.wcsqs-design-icon {
    width: 20px;
    height: 20px;
}

/* Color required validation */
.wcsqs-color-required {
    border: 2px solid #ef4444 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    animation: wcsqs-shake 0.35s ease !important;
}

.wcsqs-color-required-msg {
    font-size: 12px !important;
    color: #ef4444 !important;
    margin: 6px 0 0 !important;
    font-weight: 500 !important;
}

@keyframes wcsqs-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* =====================
   DESIGNER MODAL
   ===================== */

/* Prevent body scroll when modal is open */
html.wcsqs-modal-open,
html.wcsqs-modal-open body {
    overflow: hidden !important;
    height: 100% !important;
}

.wcsqs-designer-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.wcsqs-designer-modal,
.wcsqs-designer-modal *,
.wcsqs-designer-modal *::before,
.wcsqs-designer-modal *::after {
    box-sizing: border-box !important;
}

.wcsqs-designer-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wcsqs-designer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 1 !important;
}

.wcsqs-designer-content {
    position: relative !important;
    z-index: 2 !important;
    width: 95% !important;
    max-width: 1100px !important;
    height: 85vh !important;
    max-height: 700px !important;
    min-height: 500px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    margin: 0 !important;
}

/* Reset any theme overrides */
.wcsqs-designer-modal .wcsqs-designer-body,
.wcsqs-designer-modal .wcsqs-designer-sidebar,
.wcsqs-designer-modal .wcsqs-designer-preview {
    float: none !important;
    clear: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Designer Header */
.wcsqs-designer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    flex-shrink: 0 !important;
}

.wcsqs-designer-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.wcsqs-designer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcsqs-designer-help,
.wcsqs-designer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.wcsqs-designer-help:hover,
.wcsqs-designer-close:hover {
    background: #d1d5db;
}

.wcsqs-designer-close {
    background: #fee2e2;
    color: #dc2626;
}

.wcsqs-designer-close:hover {
    background: #fecaca;
}

/* Designer Body */
.wcsqs-designer-body {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
    min-height: 400px !important;
    width: 100% !important;
}

/* Designer Sidebar */
.wcsqs-designer-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex: 0 0 280px !important;
    border-right: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.wcsqs-designer-tabs {
    display: flex !important;
    flex-direction: row !important;
    border-bottom: 1px solid #e5e7eb !important;
    width: 100% !important;
}

.wcsqs-designer-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wcsqs-designer-tab svg {
    width: 20px;
    height: 20px;
}

.wcsqs-designer-tab:hover {
    color: #3b82f6;
}

.wcsqs-designer-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.wcsqs-designer-tab-content {
    display: none !important;
    padding: 20px !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    width: 100% !important;
}

.wcsqs-designer-tab-content.active {
    display: block !important;
}

.wcsqs-designer-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

/* Change Artwork Button */
.wcsqs-change-artwork-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
}

.wcsqs-change-artwork-btn svg {
    width: 18px;
    height: 18px;
}

.wcsqs-delete-artwork {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #dc2626;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsqs-delete-artwork svg {
    width: 16px;
    height: 16px;
}

/* Position Button */
.wcsqs-position-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin-bottom: 20px;
}

.wcsqs-position-btn svg {
    width: 16px;
    height: 16px;
}

/* Artwork Colors */
.wcsqs-designer-colors h4 {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.wcsqs-artwork-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.wcsqs-artwork-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.wcsqs-artwork-color:hover {
    transform: scale(1.1);
}

.wcsqs-artwork-color.is-light {
    border: 1px solid #d1d5db;
}

.wcsqs-artwork-color svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
    opacity: 0;
}

.wcsqs-artwork-color.selected svg {
    opacity: 1;
}

.wcsqs-artwork-color.is-light svg {
    color: #374151;
}

/* Sliders */
.wcsqs-designer-slider {
    margin-bottom: 20px;
}

.wcsqs-slider-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #374151;
}

.wcsqs-slider-header svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.wcsqs-slider-value {
    margin-left: auto;
    color: #6b7280;
}

.wcsqs-slider-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcsqs-slider-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
}

.wcsqs-slider-btn:hover {
    background: #e5e7eb;
}

.wcsqs-range-input {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.wcsqs-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

/* Upload Area */
.wcsqs-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
}

.wcsqs-upload-area svg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.wcsqs-upload-area p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.wcsqs-upload-area span {
    color: #9ca3af;
    font-size: 13px;
}

.wcsqs-upload-btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Text Input */
.wcsqs-text-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.wcsqs-text-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.wcsqs-add-text-btn {
    padding: 10px 16px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.wcsqs-font-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcsqs-font-options label {
    font-size: 13px;
    color: #6b7280;
}

.wcsqs-font-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
}

/* Designer Preview */
.wcsqs-designer-preview {
    flex: 1;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f3f4f6;
    position: relative;
    overflow: visible;
}

.wcsqs-tshirt-preview {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsqs-tshirt-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsqs-mockup-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: opacity 0.3s ease;
}

.wcsqs-tshirt-svg {
    width: 100%;
    height: auto;
    color: #f5c542;
}

.wcsqs-tshirt-body {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.wcsqs-design-area {
    position: absolute;
    top: 12%;
    left: 22%;
    width: 56%;
    height: 58%;
    /* Allow corner handles (positioned outside the element boundary) to be clickable */
    overflow: visible;
}

.wcsqs-design-element {
    position: absolute;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    /* Corner handles sit outside the element boundary — must not clip them */
    overflow: visible;
}

.wcsqs-design-element.dragging {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.wcsqs-design-element:active {
    cursor: grabbing;
}

/* Product image in designer */
.wcsqs-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ── Design element — draggable ───────────────────────── */
.wcsqs-design-element {
    cursor: grab !important;
    touch-action: none !important;
}

.wcsqs-design-element:active {
    cursor: grabbing !important;
}

/* ── Selection border ─────────────────────────────────── */
.wcsqs-design-element::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 1px dashed rgba(99,155,255,0.6);
    border-radius: 1px;
    pointer-events: none;
    z-index: 1;
}

/* ── Transform panel (sidebar) ───────────────────────── */
.wcsqs-transform-panel {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}

.wcsqs-transform-title {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    margin: 0 0 12px !important;
}

.wcsqs-transform-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.wcsqs-transform-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #374151;
    font-weight: 500;
}

.wcsqs-transform-label svg {
    flex-shrink: 0;
    color: #6b7280;
}

.wcsqs-transform-value {
    font-size: 11px;
    color: #374151;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

/* Slider track */
.wcsqs-transform-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
    margin-bottom: 12px;
    display: block;
}

.wcsqs-transform-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e91e8c;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.wcsqs-transform-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e91e8c;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Filled track (pink) via CSS gradient updated by JS */
.wcsqs-transform-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

/* Transform action buttons */
.wcsqs-transform-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.wcsqs-transform-reset,
.wcsqs-transform-delete {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.wcsqs-transform-reset:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.wcsqs-transform-delete {
    color: #dc2626;
    border-color: #fca5a5;
}

.wcsqs-transform-delete:hover {
    background: #fef2f2;
    border-color: #dc2626;
}


/* Size Badge */
.wcsqs-size-badge {
    position: absolute !important;
    bottom: -32px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    background: #06b6d4 !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    z-index: 15 !important;
}

.wcsqs-size-badge::before {
    content: '' !important;
    position: absolute !important;
    top: -5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-bottom: 6px solid #06b6d4 !important;
}

.wcsqs-size-value {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.wcsqs-size-edit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.wcsqs-size-edit svg {
    width: 12px !important;
    height: 12px !important;
    color: #ffffff !important;
}

.wcsqs-design-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsqs-artwork-placeholder {
    width: 80%;
    height: 80%;
    color: #000000;
}

/* Side Toggle */
.wcsqs-side-toggle {
    display: flex;
    gap: 0;
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.wcsqs-side-btn {
    padding: 10px 24px;
    background: #ffffff;
    border: none;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wcsqs-side-btn:not(:last-child) {
    border-right: 1px solid #d1d5db;
}

.wcsqs-side-btn.active {
    background: #3b82f6;
    color: #ffffff;
}

/* Zoom Control */
.wcsqs-zoom-control {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wcsqs-zoom-value {
    font-size: 13px;
    color: #6b7280;
    min-width: 45px;
}

.wcsqs-zoom-fit {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
}

.wcsqs-zoom-fit svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.wcsqs-zoom-slider {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
}

.wcsqs-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

/* Designer Footer */
.wcsqs-designer-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 24px !important;
    border-top: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

.wcsqs-pricing-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.wcsqs-pricing-note {
    font-size: 12px !important;
    color: #9ca3af !important;
}

.wcsqs-pricing-breakdown {
    font-size: 14px !important;
    color: #374151 !important;
}

.wcsqs-pricing-breakdown strong {
    color: #f97316 !important;
    font-weight: 600 !important;
}

.wcsqs-total-price {
    color: #111827 !important;
    font-weight: 700 !important;
}

.wcsqs-footer-actions {
    display: flex !important;
    gap: 12px !important;
}

.wcsqs-designer-back {
    padding: 12px 28px !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.wcsqs-designer-back:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.wcsqs-designer-continue {
    padding: 12px 28px !important;
    background: #7c3aed !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.wcsqs-designer-continue:hover {
    background: #6d28d9 !important;
}

.wcsqs-designer-cancel {
    padding: 12px 24px !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
}

.wcsqs-designer-cancel:hover {
    background: #f3f4f6 !important;
}

.wcsqs-designer-apply {
    padding: 12px 24px !important;
    background: #3b82f6 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

.wcsqs-designer-apply:hover {
    background: #2563eb !important;
}

/* ================================================
   NEW TWO-COLUMN LAYOUT STYLES
   ================================================ */

/* Designer Close Button */
.wcsqs-designer-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: background 0.13s !important;
}

.wcsqs-designer-close svg {
    width: 20px !important;
    height: 20px !important;
    color: #000000 !important;
    stroke: #000000 !important;
    stroke-width: 2.5 !important;
    display: block !important;
}

.wcsqs-designer-close:hover {
    background: #f3f4f6 !important;
}

.wcsqs-designer-close:hover svg {
    stroke: #000000 !important;
    color: #000000 !important;
}

.wcsqs-designer-close:hover {
    background: #f3f4f6 !important;
}

.wcsqs-designer-close:hover svg {
    stroke: #111827 !important;
    color: #111827 !important;
}

/* Left Column */
.wcsqs-designer-left {
    flex: 1.2 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 24px !important;
    background: #f3f4f6 !important;
    overflow-y: auto !important;
}

/* Position Tabs (Front/Back) */
.wcsqs-position-tabs {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    flex-shrink: 0 !important;
}

.wcsqs-position-tab {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 18px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.wcsqs-position-tab:hover {
    border-color: #3b82f6 !important;
}

.wcsqs-position-tab.active {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background: #eff6ff !important;
}

.wcsqs-position-price {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
}

.wcsqs-position-tab.active .wcsqs-position-price {
    color: #3b82f6 !important;
}

/* Preview Wrapper */
.wcsqs-preview-wrapper {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

/* Print Area with Dashed Border */
.wcsqs-print-area {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.wcsqs-print-area::before {
    content: none !important;
}

.wcsqs-print-area .wcsqs-mockup-img {
    width: 550px !important;
    height: 550px !important;
    max-width: 550px !important;
    max-height: 550px !important;
    object-fit: contain !important;
}

.wcsqs-print-area .wcsqs-design-area {
    top: 12% !important;
    left: 22% !important;
    width: 56% !important;
    height: 58% !important;
    z-index: 10 !important;
}

/* Grid Overlay */
.wcsqs-print-area.show-grid::after {
    content: '' !important;
    position: absolute !important;
    top: 15% !important;
    left: 25% !important;
    width: 50% !important;
    height: 50% !important;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.3) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    pointer-events: none !important;
    z-index: 4 !important;
}

/* Color Thumbnails */
.wcsqs-color-thumbnails {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    justify-content: center !important;
}

.wcsqs-color-thumb {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    padding: 8px !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.wcsqs-color-thumb:hover {
    border-color: #d1d5db !important;
}

.wcsqs-color-thumb.active {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

.wcsqs-color-thumb img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

.wcsqs-color-thumb span {
    font-size: 11px !important;
    color: #6b7280 !important;
    text-align: center !important;
    max-width: 60px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Preview Controls (Grid/Zoom Toggles) */
.wcsqs-preview-controls {
    display: flex !important;
    justify-content: center !important;
    gap: 32px !important;
}

.wcsqs-toggle-control {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    color: #374151 !important;
}

/* Toggle Switch */
.wcsqs-toggle-switch {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
}

.wcsqs-toggle-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.wcsqs-toggle-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #e5e7eb !important;
    transition: 0.3s !important;
    border-radius: 24px !important;
}

.wcsqs-toggle-slider::before {
    position: absolute !important;
    content: '' !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: 0.3s !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.wcsqs-toggle-switch input:checked + .wcsqs-toggle-slider {
    background-color: #3b82f6 !important;
}

.wcsqs-toggle-switch input:checked + .wcsqs-toggle-slider::before {
    transform: translateX(20px) !important;
}

/* Right Column */
.wcsqs-designer-right {
    width: 380px !important;
    min-width: 380px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px !important;
    background: #ffffff !important;
    border-left: 1px solid #e5e7eb !important;
    overflow-y: auto !important;
}

/* ── Upload Section ──────────────────────────────────── */
.wcsqs-upload-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 20px !important;
    background: #f9fafb !important;
    border: 1.5px dashed #d1d5db !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.wcsqs-upload-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

.wcsqs-upload-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background: #111827 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

.wcsqs-upload-btn:hover {
    background: #1f2937 !important;
}

.wcsqs-upload-btn svg {
    width: 16px !important;
    height: 16px !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
}

.wcsqs-upload-hint {
    font-size: 11px !important;
    color: #9ca3af !important;
    margin: 0 !important;
}

/* Design Actions — keep for backward compat but hidden */
.wcsqs-design-actions {
    display: none !important;
}

/* Layers Section */
.wcsqs-layers-section {
    margin-top: 8px !important;
}

.wcsqs-layers-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 12px !important;
}

.wcsqs-layers-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.wcsqs-layer-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
}

.wcsqs-layer-drag {
    cursor: grab !important;
    color: #9ca3af !important;
}

.wcsqs-layer-drag svg {
    width: 16px !important;
    height: 16px !important;
}

.wcsqs-layer-preview {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%) 50% / 8px 8px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
}

.wcsqs-layer-preview svg {
    width: 18px !important;
    height: 18px !important;
    color: #6b7280 !important;
}

.wcsqs-layer-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.wcsqs-layer-size {
    font-size: 12px !important;
    color: #6b7280 !important;
}

.wcsqs-layer-size strong {
    color: #374151 !important;
}

.wcsqs-layer-copy {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 10px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    cursor: pointer !important;
}

.wcsqs-layer-copy svg {
    width: 14px !important;
    height: 14px !important;
}

.wcsqs-layer-copy:hover {
    background: #f3f4f6 !important;
}

.wcsqs-layer-delete {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #ef4444 !important;
    cursor: pointer !important;
}

.wcsqs-layer-delete svg {
    width: 16px !important;
    height: 16px !important;
}

.wcsqs-layer-toggle {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #9ca3af !important;
    cursor: pointer !important;
}

.wcsqs-layer-toggle svg {
    width: 16px !important;
    height: 16px !important;
}

/* Design Options */
.wcsqs-design-options {
    padding: 16px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    margin-top: 16px !important;
}

.wcsqs-option-group {
    margin-bottom: 16px !important;
}

.wcsqs-option-group:last-child {
    margin-bottom: 0 !important;
}

.wcsqs-option-group > label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
}

/* Quality Bar */
.wcsqs-quality-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.wcsqs-quality-row label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin: 0 !important;
}

.wcsqs-quality-bar {
    flex: 1 !important;
    height: 8px !important;
    background: #e5e7eb !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.wcsqs-quality-fill {
    display: block !important;
    height: 100% !important;
    background: #f97316 !important;
    border-radius: 4px !important;
    transition: width 0.3s ease !important;
}

/* Checkbox Label */
.wcsqs-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.wcsqs-checkbox-label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.wcsqs-checkbox-icon {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #9ca3af !important;
    border-radius: 3px !important;
    color: transparent !important;
    background: #ffffff !important;
    transition: all 0.15s ease !important;
}

.wcsqs-checkbox-label input[type="checkbox"]:checked + .wcsqs-checkbox-icon {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Collapsible Header */
.wcsqs-collapsible-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    padding: 8px 0 !important;
}

.wcsqs-collapsible-header label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #f97316 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.wcsqs-collapse-icon {
    width: 16px !important;
    height: 16px !important;
    color: #f97316 !important;
    transition: transform 0.2s ease !important;
}

.wcsqs-collapsible-header.collapsed .wcsqs-collapse-icon {
    transform: rotate(-90deg) !important;
}

.wcsqs-collapsible-content {
    padding-top: 12px !important;
}

/* Position Grid */
.wcsqs-position-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
}

.wcsqs-pos-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.wcsqs-pos-btn svg {
    width: 14px !important;
    height: 14px !important;
    color: #6b7280 !important;
}

.wcsqs-pos-btn:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.wcsqs-pos-btn.active {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}

.wcsqs-pos-btn.active svg {
    color: #3b82f6 !important;
}

/* Alignment Controls */
.wcsqs-align-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.wcsqs-align-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.wcsqs-align-btn svg {
    width: 14px !important;
    height: 14px !important;
    color: #6b7280 !important;
}

.wcsqs-align-btn:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

/* Rotation Input */
.wcsqs-rotation-input {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
}

.wcsqs-rotation-input svg {
    width: 14px !important;
    height: 14px !important;
    color: #6b7280 !important;
}

.wcsqs-rotation-input input {
    width: 40px !important;
    border: none !important;
    background: transparent !important;
    font-size: 12px !important;
    text-align: center !important;
    color: #374151 !important;
    padding: 0 !important;
}

.wcsqs-rotation-input input:focus {
    outline: none !important;
}

.wcsqs-rotation-input span {
    font-size: 12px !important;
    color: #6b7280 !important;
}

/* Layer Order */
.wcsqs-layer-order {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.wcsqs-order-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.wcsqs-order-btn svg {
    width: 14px !important;
    height: 14px !important;
    color: #6b7280 !important;
}

.wcsqs-order-btn:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

/* Size Display */
.wcsqs-size-display {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

.wcsqs-size-text {
    font-size: 12px !important;
    color: #374151 !important;
}

.wcsqs-size-edit-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.wcsqs-size-edit-btn svg {
    width: 14px !important;
    height: 14px !important;
    color: #6b7280 !important;
}

/* Footer with Pricing */
.wcsqs-designer-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 24px !important;
    border-top: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

.wcsqs-pricing-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.wcsqs-pricing-note {
    font-size: 12px !important;
    color: #9ca3af !important;
}

.wcsqs-pricing-breakdown {
    font-size: 13px !important;
    color: #374151 !important;
}

.wcsqs-pricing-breakdown strong {
    font-weight: 600 !important;
}

.wcsqs-total-price {
    color: #111827 !important;
}

.wcsqs-footer-actions {
    display: flex !important;
    gap: 12px !important;
}

.wcsqs-designer-back {
    padding: 12px 32px !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    cursor: pointer !important;
}

.wcsqs-designer-back:hover {
    background: #f3f4f6 !important;
}

.wcsqs-designer-continue {
    padding: 12px 32px !important;
    background: #6366f1 !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

.wcsqs-designer-continue:hover {
    background: #4f46e5 !important;
}

/* Product Options in Product Tab */
.wcsqs-product-options {
    padding: 20px !important;
    text-align: center !important;
}

.wcsqs-product-options h4 {
    font-size: 16px !important;
    color: #374151 !important;
    margin: 0 0 8px !important;
}

.wcsqs-product-desc {
    font-size: 14px !important;
    color: #9ca3af !important;
    margin: 0 !important;
}

/* Responsive Designer - Tablet */
@media (max-width: 1024px) {
    .wcsqs-designer-content {
        width: 98% !important;
        max-width: 900px !important;
    }
    
    .wcsqs-designer-right {
        width: 320px !important;
        min-width: 320px !important;
    }
    
    .wcsqs-color-thumbnails {
        flex-wrap: wrap !important;
    }
}

/* Responsive Designer - Mobile */
@media (max-width: 768px) {
    .wcsqs-designer-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 100% !important;
        border-radius: 0 !important;
    }
    
    .wcsqs-designer-body {
        flex-direction: column !important;
    }
    
    .wcsqs-designer-left {
        flex: 0 0 auto !important;
        max-height: 55vh !important;
        overflow-y: auto !important;
    }
    
    .wcsqs-designer-right {
        width: 100% !important;
        min-width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #e5e7eb !important;
    }
    
    .wcsqs-preview-wrapper {
        min-height: 280px !important;
    }
    
    .wcsqs-position-tabs {
        flex-wrap: wrap !important;
    }
    
    .wcsqs-designer-footer {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .wcsqs-pricing-info {
        text-align: center !important;
    }
    
    .wcsqs-footer-actions {
        width: 100% !important;
    }
    
    .wcsqs-designer-back,
    .wcsqs-designer-continue {
  flex: 1 !important;
  }
  

    .wcsqs-designer-title {
        font-size: 18px !important;
    }
    
    .wcsqs-designer-footer {
        padding: 12px 16px !important;
    }
    
    .wcsqs-designer-cancel,
    .wcsqs-designer-apply {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .wcsqs-zoom-control {
        bottom: 10px !important;
        padding: 6px 12px !important;
    }
}

/* Upload Loading Spinner */
@keyframes wcsqs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wcsqs-upload-loading {
    background: rgba(255, 255, 255, 0.9);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wcsqs-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: wcsqs-spin 0.8s linear infinite;
}

/* Hide all transform tools while generating thumbnail */
.wcsqs-capturing .wcsqs-transform-toolbar,
.wcsqs-capturing .wcsqs-corner {
    display: none !important;
}
.wcsqs-capturing .wcsqs-design-element::before {
    border: none !important;
}

/* Custom Design Preview Card (Front + Back mockups) */
.wcsqs-thumbnail-preview {
    margin-bottom: 16px;
    padding: 16px 20px 20px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Header row: "Your Design" title + Edit button */
.wcsqs-thumbnail-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wcsqs-thumbnail-preview-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wcsqs-thumbnail-preview-title svg {
    width: 15px;
    height: 15px;
    stroke: #16a34a;
    flex-shrink: 0;
}

.wcsqs-edit-design-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.13s, background 0.13s, color 0.13s;
    line-height: 1;
    font-family: inherit;
}

.wcsqs-edit-design-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.wcsqs-edit-design-btn:hover {
    border-color: #6b7280;
    background: #f9fafb;
    color: #111827;
}

.wcsqs-thumbnail-preview .wcsqs-mockup-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.wcsqs-mockup-tile {
    flex: 1 1 0;
    min-width: 140px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wcsqs-mockup-side-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #6b7280;
    text-transform: uppercase;
}

.wcsqs-mockup-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsqs-mockup-image-wrap .wcsqs-mockup-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
    display: block;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
}

.wcsqs-mockup-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   CART MOCKUP CARD
   Replaces the default WooCommerce cart thumbnail with a
   full FRONT / BACK composited preview card.
═══════════════════════════════════════════════════════ */

/* ── Compact thumbnail cell (product-thumbnail td) ── */
.pd-cart-thumb {
    display: inline-block;
    width: 88px;
    height: 88px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    vertical-align: middle;
}

.pd-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.woocommerce-cart-form .product-thumbnail {
    width: 110px !important;
}

/* ── Mockup preview block under the product name (product-name td) ── */
.pd-cart-preview {
    margin-top: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-width: 360px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.pd-cart-mockups {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.pd-cart-mockup-tile {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pd-cart-side-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1;
}

.pd-cart-mockup-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-cart-mockup-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Footer row: print pill + edit link */
.pd-cart-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.pd-cart-print-pill {
    display: inline-block;
    padding: 3px 8px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.pd-cart-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
}

.pd-cart-edit-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pd-cart-edit-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    text-decoration: none;
}

/* Responsive — keep mockups side-by-side but tighten spacing */
@media (max-width: 480px) {
    .pd-cart-thumb {
        width: 70px;
        height: 70px;
    }
    .woocommerce-cart-form .product-thumbnail {
        width: 86px !important;
    }
    .pd-cart-preview {
        padding: 10px;
    }
    .pd-cart-mockups {
        gap: 8px;
    }
}



/* Artwork upload lazy-loader spinner */
@keyframes pdSpin { to { transform: rotate(360deg); } }
.pd-upload-spinner { animation: none; }
.wcsqs-design-element { position: relative; }
