/**
 * SiteWeb Configurator Styles
 * Modern, clean design for product configuration
 */

/* Variables */
:root {
    --sw-primary: #2563eb;
    --sw-primary-hover: #1d4ed8;
    --sw-success: #16a34a;
    --sw-warning: #ca8a04;
    --sw-error: #dc2626;
    --sw-text: #1f2937;
    --sw-text-muted: #6b7280;
    --sw-border: #e5e7eb;
    --sw-bg: #f9fafb;
    --sw-white: #ffffff;
    --sw-radius: 8px;
    --sw-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --sw-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Container */
.sw-configurator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--sw-text);
    line-height: 1.5;
    padding: 16px;
    background: var(--sw-white);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.sw-section-title small {
    display: block;
    font-size: 16px;
    color: var(--sw-text);
    margin-top: 4px;
    text-transform: none;
    letter-spacing: normal;
}

/* Sections */
.sw-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sw-border);
}

.sw-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sw-section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sw-text-muted);
    margin: 0 0 12px 0;
}

/* Variant Grid (Color Selection with Images) */
.sw-variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.sw-variant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
}

.sw-variant-item:hover {
    border-color: var(--sw-border);
}

.sw-variant-item.selected {
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 1px var(--sw-primary);
}

.sw-variant-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #fdfdfd;
}

.sw-variant-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-variant-name {
    font-size: 11px;
    text-align: center;
    color: var(--sw-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.sw-variant-item.selected .sw-variant-name {
    color: var(--sw-primary);
    font-weight: 600;
}

/* Stock Info */
.sw-stock {
    margin: -8px 0 16px 0;
    padding: 0;
}

.sw-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.sw-stock-status i {
    font-size: 18px;
}

.sw-stock-status.in-stock {
    color: var(--sw-success);
}

.sw-stock-status.low-stock {
    color: var(--sw-warning);
}

.sw-stock-status.out-of-stock {
    color: var(--sw-error);
}

.sw-delivery {
    display: block;
    font-size: 12px;
    color: var(--sw-text-muted);
    margin-top: 4px;
}

/* Print Options */
/* Print Toggle Cards */
.sw-print-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sw-toggle-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.sw-toggle-card:hover {
    background: #f8fafc;
    border-color: var(--sw-primary);
}

.sw-toggle-card.selected {
    background: #eff6ff;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 1px var(--sw-primary);
}

.sw-toggle-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-text-muted);
}

.sw-toggle-card.selected .sw-toggle-icon {
    color: var(--sw-primary);
}

.sw-toggle-icon svg {
    width: 100%;
    height: 100%;
}

/* Print Position Grid */
.sw-sub-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
    color: var(--sw-text);
}

.sw-pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.sw-pos-card {
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.sw-pos-card:hover {
    border-color: var(--sw-primary);
}

.sw-pos-card.selected {
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 1px var(--sw-primary);
}

.sw-pos-preview {
    height: 60px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--sw-border);
    padding: 8px;
}

.sw-pos-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sw-no-outline {
    font-size: 12px;
    color: var(--sw-text-muted);
}

.sw-pos-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-pos-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.sw-pos-size {
    display: block;
    font-size: 11px;
    color: var(--sw-text-muted);
    margin-top: 2px;
}

/* Technique Grid */
.sw-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.sw-tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Technique Help Icon */
.sw-tech-help {
    position: absolute;
    top: 2px;
    right: 5px;
    color: #94a3b8;
    cursor: help;
    transition: color 0.2s;
    background: #fff;
    border-radius: 50%;
    display: flex;
    padding: 1px;
}

.sw-tech-help:hover {
    color: #3b82f6;
}

/* Hoe Werkt Het Section */
.sw-order-process-container {
    padding: 2rem 0;
    background: transparent;
}

.sw-process-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 100%;
    margin: 0;
    gap: 1rem;
}

.sw-process-item {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.sw-process-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-color: #cbd5e1;
}

.sw-process-icon-wrapper {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.sw-process-step-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #0f172a;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.sw-process-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.sw-process-text p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.sw-process-arrow {
    display: none; /* Removed arrows as they break on smaller screens/grid */
}

@media (max-width: 1024px) {
    .sw-process-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .sw-process-grid {
        grid-template-columns: 1fr;
    }
}

/* Technique Card Hover/Selected */
.sw-tech-card:hover {
    background: #f8fafc;
    border-color: var(--sw-primary);
    transform: translateY(-1px);
}

.sw-tech-card.selected {
    background: #eff6ff;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 1px var(--sw-primary);
}

.sw-tech-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.sw-tech-card.selected .sw-tech-name {
    color: var(--sw-primary);
}

/* Color Grid (Pills) */
.sw-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.sw-color-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sw-color-opt span {
    font-size: 13px;
    font-weight: 600;
    color: var(--sw-text);
}

.sw-color-opt:hover {
    background: #f8fafc;
    border-color: var(--sw-primary);
    transform: translateY(-1px);
}

.sw-color-opt.selected {
    background: #eff6ff;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 1px var(--sw-primary);
}

.sw-color-opt.selected span {
    color: var(--sw-primary);
}

/* Dots & Icons */
.sw-color-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.sw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.sw-full-color-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff00ff, #ff0000);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.sw-full-color-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.sw-full-color-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--sw-radius);
    color: #1e40af;
    font-size: 14px;
    font-weight: 700;
    margin: 4px 0 12px 0;
}

.sw-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.sw-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--sw-primary);
}

.sw-print-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sw-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--sw-text-muted);
}

.sw-select {
    padding: 10px 12px;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    font-size: 14px;
    background: var(--sw-white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.sw-select:focus {
    outline: none;
    border-color: var(--sw-primary);
}

/* Quantity Selector */
/* Quantity Table */
.sw-qty-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-qty-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--sw-border);
    margin-bottom: 8px;
    border-radius: var(--sw-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-wrap: wrap;
    /* Added for mobile */
    gap: 8px;
    /* Added for mobile */
}

.sw-qty-row:hover {
    background: #f8fafc;
}

.sw-qty-row.selected {
    background: #1f2937;
    color: white;
    border-color: #1f2937;
}

.sw-qty-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-qty-row.selected .sw-qty-radio {
    border-color: white;
}

.sw-qty-row.selected .sw-qty-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.sw-qty-amount {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    /* Ensure it doesn't squash too much */
    flex-wrap: wrap;
    /* Allow badge/savings to wrap if needed */
}

.sw-savings {
    font-size: 12px;
    font-weight: 500;
    color: #10b981;
}

.sw-qty-row.selected .sw-savings {
    color: #34d399;
}

.sw-popular-badge {
    background: #facc15;
    color: #854d0e;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: swPulse 2s infinite;
}

@keyframes swPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.sw-qty-price {
    font-weight: 700;
    font-size: 16px;
    margin-left: auto;
    /* Push to right */
    white-space: nowrap;
}

.sw-qty-price small {
    font-weight: 400;
    font-size: 11px;
    opacity: 0.8;
}

.sw-qty-custom {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: var(--sw-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sw-qty-custom label {
    font-size: 13px;
    font-weight: 600;
}

.sw-qty-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-qty-input {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid var(--sw-border);
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.sw-qty-unit {
    font-size: 12px;
    color: var(--sw-text-muted);
}

.sw-tiers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.sw-tiers-label {
    font-size: 13px;
    color: var(--sw-text-muted);
}

.sw-tier-badge {
    padding: 6px 14px;
    background: var(--sw-white);
    border: 2px solid var(--sw-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sw-tier-badge:hover {
    border-color: var(--sw-primary);
    color: var(--sw-primary);
}

/* Current bracket (you're in this price tier) */
.sw-tier-badge.current {
    border-color: var(--sw-primary);
    color: var(--sw-primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Exact match (selected this exact qty) */
.sw-tier-badge.sw-btn-studio:hover {
    background: var(--sw-primary);
    color: white;
}

.sw-btn-studio.is-configured {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.sw-tier-badge.selected {
    background: var(--sw-primary);
    color: var(--sw-white);
    border-color: var(--sw-primary);
    transform: scale(1.05);
}

.sw-moq-wrapper {
    text-align: left;
}

.sw-moq-note {
    font-size: 12px;
    font-style: normal;
    color: var(--sw-text-muted);
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Pricing Display */
.sw-pricing-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.sw-choice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-choice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #1e293b;
}

.sw-choice-label {
    font-weight: 700;
    min-width: 80px;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 2px;
}

.sw-choice-value {
    font-weight: 500;
    flex: 1;
}

.sw-price-breakdown {
    display: flex;
    flex-direction: column;
}

.sw-price-summary-selection {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sw-summary-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.sw-price-value small {
    font-weight: 400;
    color: var(--sw-text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.sw-price-total {
    border-top: 1px solid var(--sw-border);
    margin-top: 12px;
    padding-top: 15px;
}

.sw-price-total .sw-price-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--sw-text);
}

.sw-price-total .sw-price-total-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--sw-text);
}

.sw-price-incl {
    padding-top: 0;
    color: var(--sw-text-muted);
}

.sw-price-incl .sw-price-label {
    font-size: 12px;
}

.sw-price-incl .sw-price-value {
    font-size: 14px;
}

.sw-price-extras {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.sw-extra-badge {
    font-size: 12px;
    color: var(--sw-success);
    font-weight: 500;
}

.sw-price-loading {
    text-align: center;
    color: var(--sw-text-muted);
    padding: 20px;
}


/* Add to Cart Button */
.sw-actions {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 30px;
}

.sw-btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--sw-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sw-btn-primary {
    width: 100%;
    background: var(--sw-primary);
    color: var(--sw-white);
}

.sw-btn-primary:hover {
    background: var(--sw-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--sw-shadow-lg);
}

.sw-btn-primary:disabled {
    background: var(--sw-text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Loading & Error States */
.sw-loading,
.sw-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--sw-text-muted);
}

.sw-error {
    color: var(--sw-error);
}

/* Notifications */
.sw-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--sw-radius);
    background: var(--sw-text);
    color: var(--sw-white);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--sw-shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.sw-notification.visible {
    transform: translateY(0);
    opacity: 1;
}

.sw-notification-success {
    background: var(--sw-success);
}

.sw-notification-error {
    background: var(--sw-error);
}

/* Responsive */
@media (max-width: 600px) {
    .sw-configurator {
        padding: 16px;
    }

    .sw-variant-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .sw-variant-image {
        width: 50px;
        height: 50px;
    }

    .sw-print-details {
        grid-template-columns: 1fr;
    }

    .sw-price-extras {
        flex-direction: column;
        gap: 8px;
    }
}

/* Logo Upload */
.sw-logo-upload-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--sw-border);
}

.sw-logo-upload-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sw-text-muted);
    margin-bottom: 10px;
}

.sw-logo-dropzone {
    border: 2px dashed var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 24px;
    text-align: center;
    background: var(--sw-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-logo-dropzone:hover,
.sw-logo-dropzone.dragover {
    border-color: var(--sw-primary);
    background: rgba(37, 99, 235, 0.05);
}

.sw-logo-dropzone.has-file {
    border-style: solid;
    border-color: var(--sw-success);
    background: rgba(22, 163, 74, 0.05);
}

.sw-logo-dropzone.uploading {
    cursor: wait;
    opacity: 0.7;
}

.sw-drop-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--sw-text-muted);
}

.sw-drop-prompt i {
    font-size: 24px;
    height: 24px;
    width: 24px;
}

.sw-drop-prompt span {
    font-size: 14px;
    font-weight: 500;
}

.sw-drop-prompt small {
    font-size: 11px;
}

.sw-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.sw-file-info i {
    font-size: 24px;
    height: 24px;
    width: 24px;
    color: var(--sw-success);
}

.sw-file-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-remove-btn {
    background: none;
    border: none;
    color: var(--sw-error);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.sw-remove-btn:hover {
    transform: scale(1.2);
}

/* Calculating States */
.sw-qty-table {
    position: relative;
    transition: opacity 0.2s;
}

.sw-qty-table.calculating {
    opacity: 0.6;
    pointer-events: none;
}

.sw-table-loading-overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 20px;
    box-shadow: var(--sw-shadow-lg);
    font-weight: 600;
    font-size: 14px;
    color: var(--sw-primary);
    z-index: 10;
}

.sw-qty-table.calculating .sw-table-loading-overlay {
    display: block;
}

#sw-active-setup-label {
    margin-left: 8px;
    color: var(--sw-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}


/* Stock Validation & Quantity UI */
.sw-qty-custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sw-select-max-stock {
    font-size: 11px;
    color: var(--sw-primary);
    text-decoration: none;
    font-weight: 500;
}

.sw-select-max-stock:hover {
    text-decoration: underline;
}

.sw-qty-feedback {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
    line-height: 1.4;
}

.sw-qty-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sw-qty-feedback.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.sw-qty-feedback.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sw-qty-feedback a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.sw-moq-wrapper {
    margin-top: 8px;
    padding-left: 2px;
}

.sw-moq-note {
    font-size: 11px;
    color: var(--sw-text-muted);
    font-style: italic;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Modal Styles */
.sw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    padding: 20px;
    box-sizing: border-box;
}

.sw-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sw-modal {
    background: #fff;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: sw-slide-up 0.3s forwards;
}

@keyframes sw-slide-up {
    to {
        transform: translateY(0);
    }
}

.sw-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.sw-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sw-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}

.sw-modal-close:hover {
    color: #4b5563;
}

.sw-modal-body {
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    overflow-y: auto;
    flex: 1;
}

.sw-modal-body p {
    margin-bottom: 12px;
}

.sw-modal-body p:last-child {
    margin-bottom: 0;
}

.sw-modal-actions {
    padding: 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-modal-actions .sw-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
}

.sw-modal-footer {
    padding: 0 20px 20px;
    background: #f9fafb;
    text-align: center;
}

.sw-modal-dismiss {
    font-size: 13px;
    color: #6b7280;
    text-decoration: underline;
}

.sw-modal-dismiss:hover {
    color: #374151;
}

/* Delivery & USP Grid */
.sw-delivery-usp-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.sw-delivery-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-delivery-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sw-delivery-time {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.sw-delivery-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    text-transform: none;
}

.sw-usp-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid #f1f5f9;
}

.sw-usp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.sw-usp-icon {
    color: #16a34a; /* Green check icons */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tooltip/Popup Styles */
.sw-info-trigger {
    cursor: help;
    color: #94a3b8;
    transition: color 0.2s;
}

.sw-info-trigger:hover {
    color: #3b82f6;
}

.sw-tooltip {
    position: relative;
    display: inline-block;
}

.sw-tooltip .sw-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #1e293b;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-transform: none;
    letter-spacing: normal;
}

.sw-tooltip:hover .sw-tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 600px) {
    .sw-delivery-usp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Product Tabs & Display --- */

/* Animations */
@keyframes swFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Price List Tab (Staffel) */
.siteweb-staffel-container {
    margin: 3.5rem 0;
    font-family: inherit;
    animation: swFadeIn 0.8s ease-out;
}
.siteweb-staffel-header {
    margin-bottom: 2.5rem;
    padding-left: 1.25rem;
    border-left: 5px solid #111827;
}
.siteweb-staffel-header h3 {
    margin: 0;
    font-size: 1.750rem;
    font-weight: 950;
    color: #111827;
    letter-spacing: -0.04em;
    line-height: 1.1;
}
.siteweb-staffel-header p {
    margin: 8px 0 0;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}
.siteweb-staffel-table-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    overflow-x: auto;
}
.sw-premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9375rem;
}
.sw-premium-table thead th {
    background: #f9fafb;
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 800;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #f3f4f6;
}
.sw-premium-table tbody td {
    padding: 1.4rem 1rem;
    border-bottom: 1px solid #f9fafb;
    color: #4b5563;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sw-premium-table tbody tr {
    transition: all 0.3s ease;
}
.sw-premium-table tbody tr:hover td {
    background: rgba(249, 250, 251, 0.95);
    color: #000;
}
.sw-premium-table tbody tr:hover .qty-label {
    background: #111827;
    color: #fff !important;
}
.qty-label {
    font-weight: 900;
    color: #111827 !important;
    background: #f8fafc;
    width: 110px;
    text-align: center !important;
    font-size: 1.05rem;
    border-right: 1px solid #f3f4f6;
}
.price-unprinted {
    color: #9ca3af !important;
    font-weight: 450;
}
.sw-premium-table tbody td:not(.qty-label):not(.price-unprinted) {
    font-weight: 800;
    color: #111827;
    font-variant-numeric: tabular-nums;
}
.siteweb-staffel-footer {
    margin-top: 1.75rem;
    background: #f9fafb;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}
.siteweb-staffel-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}
/* Scrollbar */
.siteweb-staffel-table-wrapper::-webkit-scrollbar { height: 8px; }
.siteweb-staffel-table-wrapper::-webkit-scrollbar-track { background: #f1f5f9; }
.siteweb-staffel-table-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.siteweb-staffel-table-wrapper::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Specifications Tab */
.sw-specs-container {
    margin: 2rem 0;
    animation: swFadeIn 0.8s ease-out;
}
.sw-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.sw-specs-table th {
    width: 35%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 700;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.sw-specs-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-weight: 500;
}
.sw-specs-table tr:last-child th,
.sw-specs-table tr:last-child td { border-bottom: none; }
.sw-specs-table tr:hover td { background: #fff; }
.sw-specs-table tr:hover th { background: #f1f5f9; }

/* Personalisatieopties Tab */
.sw-print-tab-container {
    margin: 1.5rem 0;
    animation: swFadeIn 0.6s ease-out;
}
.sw-positions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 2rem;
}
.sw-position-row {
    display: flex;
    gap: 1.75rem;
    background: #f8fafc;
    padding: 1.75rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sw-position-row:hover {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
}
.sw-position-visual {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}
.sw-position-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}
.sw-position-visual:hover img { transform: scale(1.08); }
.sw-zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,0.95);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    color: #16a34a;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
}
.sw-position-visual:hover .sw-zoom-hint { opacity: 1; transform: translateY(0); }
.sw-no-position-img { color: #cbd5e1; }
.sw-position-content { flex-grow: 1; display: flex; flex-direction: column; gap: 1rem; }
.sw-position-tag {
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #16a34a;
    background: #f0fdf4;
    padding: 4px 12px;
    border-radius: 8px;
    align-self: flex-start;
}
.sw-technique-list { display: flex; flex-direction: column; gap: 1rem; }
.sw-technique-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.sw-technique-item:last-child { border-bottom: none; padding-bottom: 0; }
.sw-tech-main { display: flex; align-items: center; gap: 0.75rem; color: #1e293b; font-size: 1.05rem; }
.sw-tech-info-icon {
    width: 18px;
    height: 18px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sw-tech-info-icon:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.sw-tech-meta { font-size: 0.9rem; color: #475569; line-height: 1.4; }
.sw-meta-row strong { color: #1e293b; font-weight: 700; margin-right: 4px; }

/* Lightbox & Tab Modals */
.sw-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sw-lightbox.active { display: flex; opacity: 1; }
.sw-lightbox-content {
    max-width: 90%;
    background: #fff;
    padding: 1rem;
    border-radius: 32px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sw-info-modal-content {
    max-width: 480px;
    width: 90%;
    background: #fff;
    border-radius: 12px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.sw-lightbox.active .sw-lightbox-content,
.sw-lightbox.active .sw-info-modal-content { transform: scale(1); }
.sw-info-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}
.sw-info-modal-header h4 { margin: 0; font-size: 18px; font-weight: 600; color: #111827; }
.sw-tab-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.sw-tab-modal-close:hover { color: #4b5563; }
.sw-info-modal-body { padding: 20px; font-size: 15px; line-height: 1.6; color: #374151; }
.sw-info-modal-footer { padding: 20px; background: #f9fafb; border-top: 1px solid #f3f4f6; }
.sw-tab-modal-btn {
    width: 100%;
    padding: 12px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.sw-tab-modal-btn:hover { background: #334155; }
.sw-lightbox-content img { max-height: 80vh; object-fit: contain; border-radius: 16px; }
.sw-lightbox-close {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .siteweb-staffel-table-wrapper::-webkit-scrollbar { display: block; }
    .sw-positions-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .sw-position-row { flex-direction: column; padding: 1.25rem; gap: 1.25rem; }
    .sw-position-visual { width: 100%; height: 200px; }
}

/* --- LOGO UPLOAD & workflow --- */
.sw-logo-section {
    margin-top: 16px;
}

.sw-upload-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.sw-choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 2px solid var(--sw-border);
    border-radius: 12px;
    background: var(--sw-bg);
    color: var(--sw-text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.sw-choice-btn:hover {
    border-color: #cbd5e1;
    background: var(--sw-white);
    color: var(--sw-text);
    transform: translateY(-1px);
}

.sw-choice-btn.active {
    border-color: var(--sw-primary);
    background: rgba(37, 99, 235, 0.05);
    color: var(--sw-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}


.sw-choice-btn svg {
    flex-shrink: 0;
}

.sw-upload-dropzone {
    border: 2px dashed var(--sw-border);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    background: var(--sw-bg);
    transition: all 0.3s ease;
}

.sw-upload-loading {
    padding: 48px 24px;
    text-align: center;
    background: var(--sw-bg);
    border-radius: 16px;
    border: 2px dashed var(--sw-border);
}

.sw-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--sw-border);
    border-top-color: var(--sw-primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: sw-spin 0.8s linear infinite;
}

@keyframes sw-spin {
    to { transform: rotate(360deg); }
}

.sw-upload-dropzone:hover, .sw-upload-dropzone.dragover {
    border-color: var(--sw-primary);
    background: rgba(37, 99, 235, 0.02);
    border-style: solid;
}

.sw-upload-icon {
    color: var(--sw-text-muted);
    margin-bottom: 16px;
}

.sw-upload-dropzone p {
    margin: 0;
    font-size: 15px;
    color: var(--sw-text);
    font-weight: 500;
}

.sw-upload-dropzone p span {
    color: var(--sw-primary);
    font-weight: 800;
    text-decoration: underline;
}

.sw-upload-dropzone small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--sw-text-muted);
    opacity: 0.8;
}

.sw-logo-preview-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--sw-bg);
    border: 1px solid var(--sw-border);
    border-radius: 16px;
}

.sw-logo-preview-img {
    width: 90px;
    height: 90px;
    background: #fff;
    border: 1px solid var(--sw-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sw-logo-preview-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sw-logo-preview-info {
    flex: 1;
}

.sw-logo-preview-info strong {
    display: block;
    font-size: 15px;
    color: var(--sw-text);
    margin-bottom: 6px;
    font-weight: 800;
}

.sw-logo-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--sw-text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    font-weight: 500;
}

.sw-remove-logo {
    background: #fff;
    border: 1px solid var(--sw-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sw-text);
    cursor: pointer;
    transition: all 0.2s;
}

.sw-remove-logo:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.sw-upload-later-info {
    padding: 24px;
    background: var(--sw-bg);
    border: 1px solid var(--sw-border);
    border-radius: 16px;
    text-align: center;
}

.sw-info-tag {
    font-weight: 800;
    color: var(--sw-primary);
    margin-bottom: 10px;
}

.sw-printing-notes-field {
    margin-top: 28px;
}

/* .sw-printing-notes-field label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--sw-text);
    margin-bottom: 10px;
} */

.sw-printing-notes-field textarea {
    width: 100%;
    height: 100px;
    padding: 16px;
    border: 2px solid var(--sw-border);
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sw-text);
    background: var(--sw-bg);
    resize: vertical;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
}

.sw-printing-notes-field textarea:focus {
    border-color: var(--sw-primary);
    background: var(--sw-white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.sw-hidden { display: none !important; }

