/**
 * Laser Configurator Styles
 * Modern CSS for laser cutting configurator
 */

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */
:root {
    --laser-primary: #c9a76b;
    --laser-primary-hover: #b8925a;
    --laser-success: #7d6c5a;
    --laser-border: #e5e7eb;
    --laser-bg-light: #f9f7f4;
    --laser-text: #1f2937;
    --laser-text-light: #6b7280;
    --laser-radius: 8px;
    --laser-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --laser-shadow-lg: 0 10px 25px rgba(90, 74, 58, 0.2);
}

/* =============================================================================
   WOOCOMMERCE OVERRIDES - Hide default product elements
   ============================================================================= */
.product-17345 .woocommerce-product-gallery,
.product-17345 .product_meta,
.product-17345 .woocommerce-tabs,
.product-17345 .related.products,
.product-17345 .upsells.products,
body.postid-17345 form.cart:not(.laser-sticky-footer),
.product-17345 .woocommerce-breadcrumb,
.postid-17345 .woocommerce-breadcrumb,
body.postid-17345 .woocommerce-breadcrumb,
/* Extra selectors for gallery removal */
.postid-17345 .woocommerce-product-gallery,
.postid-17345 .product-images,
.postid-17345 .images,
.single-product .product-17345 .woocommerce-product-gallery__wrapper,
.single-product .product-17345 .flex-viewport,
body.postid-17345 .woocommerce div.product div.images,
/* Product price removal (1 Ft árjelző elrejtése) */
.product-17345 p.price,
.product-17345 .woocommerce-Price-amount,
.postid-17345 p.price,
.postid-17345 .woocommerce-Price-amount,
body.postid-17345 .woocommerce div.product p.price,
body.postid-17345 .summary p.price {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Force full width for product summary */
.product-17345 .summary.entry-summary,
.postid-17345 .summary.entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Hide product image column */
.product-17345 .woocommerce-product-gallery,
body.postid-17345 .woocommerce div.product .woocommerce-product-gallery {
    display: none !important;
}

/* =============================================================================
   MAIN CONTAINER
   ============================================================================= */

/* Entry-content margin felülírása */
.page .entry-content,
.single .entry-content {
    margin-top: 0 !important;
}

/* Site-main margin eltávolítása */
.site-main {
    margin-top: 0 !important;
    margin-left: 0 !important;
}

/* Inside-article padding visszaállítása */
.inside-article {
    padding-top: 20px !important;
}

/* Inside-article oldalsó padding eltávolítása mobilon a 17345-ös termékoldalon */
@media (max-width: 768px) {
    .postid-17345 .inside-article,
    body.postid-17345 .inside-article,
    .product-17345 .inside-article {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Inside-article oldalsó padding tableten a 17345-ös termékoldalon */
@media (min-width: 769px) and (max-width: 1024px) {
    .postid-17345 .inside-article,
    body.postid-17345 .inside-article,
    .product-17345 .inside-article {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.laser-configurator-wrapper {
    max-width: none; /* Nincs max-width korlátozás */
    margin: 0 !important;
    padding: 0 !important; /* Nincs top padding */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Minden section max 1200px */
.laser-section {
    /* max-width: 1200px; */
    margin-left: auto;
    margin-right: auto;
}

/* =============================================================================
   ENGRAVING COMPATIBILITY WARNING
   ============================================================================= */
.engraving-warning-container {
    margin: 15px 0;
    padding: 0;
}

.engraving-warning-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.15);
}

.engraving-warning-box .warning-icon {
    font-size: 20px;
    line-height: 1;
}

.engraving-warning-box .warning-content {
    color: #7c2d12;
    font-size: 14px;
    line-height: 1.5;
}

.engraving-warning-box .warning-text {
    margin: 0 0 6px 0;
    font-weight: 600;
}

.engraving-warning-box .warning-subtext {
    margin: 0;
    opacity: 0.9;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.laser-hero-section {
    /* max-width: 1200px; */
    margin: 0 auto 0px;
    padding: 25px 60px;
    text-align: center;
    background: linear-gradient(135deg, #5a4a3a 0%, #7d6c5a 50%, #c9a76b 100%);
    border-radius: 16px;
    box-shadow: 
        0 10px 20px rgba(90, 74, 58, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

/* Animated background effect */
.laser-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: heroBackgroundMove 20s linear infinite;
    opacity: 0.4;
}

@keyframes heroBackgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

/* Glow effect */
.laser-hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(201, 167, 107, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px;
    line-height: 1.2;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(201, 167, 107, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

/* Decorative elements */
.laser-hero-section .hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(201, 167, 107, 0.25);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 167, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile hero section */
@media screen and (max-width: 768px) {
    .laser-hero-section {
        padding: 35px 24px;
        margin-bottom: 35px;
        border-radius: 12px;
    }
    
    .hero-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .laser-hero-section .hero-badge {
        font-size: 11px;
        padding: 5px 14px;
        margin-bottom: 12px;
    }
}

/* =============================================================================
   PROGRESS INDICATOR
   ============================================================================= */
.laser-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0;
    position: relative;
    background: white;
    border-radius: var(--laser-radius);
    padding: 30px 20px;
    box-shadow: var(--laser-shadow);
}

/* Connection line between steps */
.laser-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--laser-border);
    z-index: 0;
    transform: translateY(-10px);
}

.laser-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.laser-progress-step::before {
    content: attr(data-step);
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--laser-border);
    line-height: 44px;
    font-weight: 700;
    font-size: 18px;
    color: var(--laser-text-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.laser-progress-step.active::before {
    background: var(--laser-primary);
    border-color: var(--laser-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(201, 167, 107, 0.3);
    transform: scale(1.1);
}

.laser-progress-step.completed::before {
    background: var(--laser-success);
    border-color: var(--laser-success);
    color: white;
    content: '✓';
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(125, 108, 90, 0.3);
}

.laser-progress-step span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--laser-text-light);
    transition: color 0.3s ease;
}

.laser-progress-step.active span {
    color: var(--laser-primary);
    font-weight: 700;
}

.laser-progress-step.completed span {
    color: var(--laser-success);
}

/* =============================================================================
   SECTIONS
   ============================================================================= */
.laser-section {
    background: white;
    border: 1px solid var(--laser-border);
    border-radius: var(--laser-radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--laser-shadow);
    width: 100%;
    box-sizing: border-box;
}

/* Asztali nézet - margin-top hozzáadása */
@media (min-width: 1025px) {
    .postid-17345 .laser-section,
    body.postid-17345 .laser-section,
    .product-17345 .laser-section {
        margin-top: 30px !important;
    }
}

/* Mobil és tablet nézet - padding, border és shadow eltávolítása */
@media (max-width: 1024px) {
    .postid-17345 .laser-section,
    body.postid-17345 .laser-section,
    .product-17345 .laser-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

.laser-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--laser-text);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--laser-bg-light);
}

.laser-section-title .icon {
    font-size: 24px;
}

/* =============================================================================
   1. FILE UPLOAD SECTION
   ============================================================================= */
.laser-upload-area {
    border: 2px dashed var(--laser-border);
    border-radius: var(--laser-radius);
    padding: 40px;
    text-align: center;
    background: var(--laser-bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.laser-upload-area:hover {
    border-color: var(--laser-primary);
    background: #eff6ff;
}

.laser-upload-area.drag-over {
    border-color: var(--laser-primary);
    background: #dbeafe;
    transform: scale(1.02);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    color: var(--laser-primary);
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.laser-upload-area h3 {
    margin: 0 0 10px;
    color: var(--laser-text);
}

.laser-upload-area p {
    margin: 0 0 20px;
    color: var(--laser-text-light);
    font-size: 14px;
}

.btn-browse {
    display: inline-block;
    padding: 12px 24px;
    background: var(--laser-primary);
    color: white;
    border: none;
    border-radius: var(--laser-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-browse:hover {
    background: var(--laser-primary-hover);
}

.upload-input {
    display: none;
}

.upload-requirements {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: var(--laser-radius);
    font-size: 13px;
    color: var(--laser-text-light);
}

.upload-requirements ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.upload-requirements li {
    padding: 5px 0;
}

.upload-requirements li::before {
    content: '✓';
    color: var(--laser-success);
    font-weight: bold;
    margin-right: 8px;
}

/* Upload Progress */
.upload-progress-container {
    display: none;
    margin-top: 20px;
}

.upload-progress-container.active {
    display: block;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: var(--laser-bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--laser-primary), var(--laser-success));
    transition: width 0.3s ease;
    width: 0%;
}

.upload-status {
    font-size: 14px;
    color: var(--laser-text-light);
    text-align: center;
}

.upload-error {
    color: #ef4444;
    padding: 15px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--laser-radius);
    margin-top: 15px;
    display: none;
}

.upload-error.active {
    display: block;
}

/* Upload Area - Drop Zone */
.upload-area {
    border: 3px dashed var(--laser-border);
    border-radius: var(--laser-radius);
    padding: 50px 30px;
    margin-bottom: 20px;
    text-align: center;
    background: var(--laser-bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: var(--laser-primary);
    background: #eff6ff;
}

.upload-area.drag-over {
    border-color: var(--laser-success);
    background: #f3ede3;
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(125, 108, 90, 0.1);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--laser-text);
    margin: 0 0 10px;
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        var(--laser-text) 0%,
        var(--laser-text) 40%,
        #c9a76b 50%,
        var(--laser-text) 60%,
        var(--laser-text) 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0% {
        background-position: 200% center;
    }
    50% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.upload-hint {
    font-size: 14px;
    color: var(--laser-text-light);
    margin: 0 0 25px;
}

.browse-button {
    display: inline-block;
    padding: 14px 32px;
    background: transparent !important;
    color: var(--laser-primary) !important;
    border: 2px solid var(--laser-primary) !important;
    border-radius: var(--laser-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.browse-button:hover {
    background: var(--laser-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 167, 107, 0.3);
}

.browse-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.upload-area-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Progress Bar */
.upload-progress-container {
    margin: 0;
    padding: 60px 80px;
    background: transparent;
    border-radius: var(--laser-radius);
    border: none;
    width: 100%;
    max-width: 600px;
}

.progress-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--laser-text);
    margin-bottom: 20px;
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 20px;
    background: var(--laser-bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--laser-primary), var(--laser-success));
    transition: width 0.3s ease;
    width: 0%;
    border-radius: 10px;
}

.progress-percent {
    font-size: 16px;
    font-weight: 600;
    color: var(--laser-primary);
    text-align: center;
}

/* File Info Display */
.file-info {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 1px solid var(--laser-border);
    border-radius: var(--laser-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.file-name-display,
.file-size-display {
    font-size: 14px;
    color: var(--laser-text);
}

.file-name-display strong,
.file-size-display strong {
    color: var(--laser-text-light);
    margin-right: 5px;
}

.remove-file-button {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--laser-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-file-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* =============================================================================
   2. SVG VIEWER SECTION
   ============================================================================= */
.svg-viewer-container {
    position: relative;
    background: #F9FAFB;
    border: 1px solid var(--laser-border);
    border-radius: var(--laser-radius);
    overflow: hidden;
    min-height: 500px;
    max-height: 500px;
}

/* File Name Overlay */
.file-name-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(182, 177, 170, 0.5);
    color: #5a5754 ;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: calc(100% - 24px);
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

/* Mobile: overlay at bottom */
@media (max-width: 768px) {
    .file-name-overlay {
        top: auto;
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* Canvas wrapper (created by Fabric.js) */
.svg-viewer-container .canvas-container {
    width: 100% !important;
    height: 500px !important;
    margin: 0 !important;
    display: block !important;
}

/* Canvas styling */
#dxf-canvas {
    display: block;
    background: #fff;
    cursor: grab;
    width: auto !important;
    height: auto !important;
}

#dxf-canvas:active {
    cursor: grabbing;
}

/* Fullscreen mode */
.svg-viewer-container:fullscreen,
.svg-viewer-container:-webkit-full-screen,
.svg-viewer-container:-moz-full-screen {
    background-color: #f8f9fa;
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-viewer-container:fullscreen #dxf-canvas,
.svg-viewer-container:-webkit-full-screen #dxf-canvas,
.svg-viewer-container:-moz-full-screen #dxf-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Viewer Controls */
.viewer-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.btn-icon {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--laser-border);
    border-radius: var(--laser-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: var(--laser-shadow);
    transition: all 0.2s ease;
    padding: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

/* Control buttons (ugyanaz mint btn-icon) */
.control-btn {
    width: 44px;
    height: 44px;
    background: rgba(182, 177, 170, 0.5) !important;
    color: #5a5754 !important;
    backdrop-filter: blur(2px);
    border: 1px solid var(--laser-border);
    border-radius: var(--laser-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: var(--laser-shadow);
    transition: all 0.2s ease;
    padding: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.btn-icon:hover,
.control-btn:hover {
    background: #d1923f;
    color: white;
    border-color: #d1923f;
    transform: scale(1.05);
}

/* Delete button - same color as other controls */
.control-btn-delete {
    background: rgba(182, 177, 170, 0.5) !important;
    color: #5a5754 !important;
    backdrop-filter: blur(2px);
    border: 1px solid var(--laser-border) !important;
    font-size: 40px !important;
    line-height: 0.8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.control-btn-delete::before {
    content: '\00D7';
    display: block;
    transform: translateY(-3px);
}

.control-btn-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Dimension Display */
.dimension-display {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    padding: 12px 16px;
    border-radius: var(--laser-radius);
    box-shadow: var(--laser-shadow);
    font-size: 13px;
}

.dimension-item {
    display: inline-block;
    margin-right: 20px;
}

.dimension-item strong {
    color: var(--laser-text);
}

/* Layer Update Overlay */
.layer-update-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.layer-update-content {
    text-align: center;
    padding: 20px;
    /* Removed modal styling to match upload preview style */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.layer-update-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--laser-text);
    margin: 0;
    line-height: 1.5;
}

/* Disabled Layer Manager */
.layer-manager-disabled {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    filter: grayscale(0.5);
    transition: all 0.3s ease;
}

/* =============================================================================
   3. LASER PARAMETERS SECTION
   ============================================================================= */

/* Parameter Row */
.param-row {
    display: grid;
    grid-template-columns: 180px auto 1fr;
    align-items: start;
    gap: 12px;
    padding: 10px 0;
    position: relative;
    --first-row-height: 48px;
}

/* Parameter Label */
.param-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--laser-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: var(--first-row-height, 48px);
}

/* Help Icon - kis szürke kör */
.help-icon,
button.help-icon,
.param-row .help-icon {
    width: 18px !important;
    height: var(--first-row-height, 48px) !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    color: transparent !important;
    font-size: 11px !important;
    font-weight: bold !important;
    cursor: help !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    align-self: flex-start !important;
    position: relative !important;
}

.help-icon::before,
button.help-icon::before,
.param-row .help-icon::before {
    content: '?';
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #d1d5db !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-weight: bold !important;
    color: #6b7280 !important;
    min-width: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
}

.help-icon-inline {
    margin-top: 0 !important;
    margin-left: 6px !important;
    margin-right: 0 !important;
}

.help-icon:hover::before,
button.help-icon:hover::before,
.param-row .help-icon:hover::before {
    background: #9ca3af !important;
    color: #374151 !important;
}

/* Options Container */
.param-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Option Tile */
.param-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 16px;
    background: white !important;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.param-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    background: white !important;
}

.param-option.selected {
    border-color: #3b82f6;
    background: #eff6ff !important;
}

.param-option.selected::after {
    content: '\2713';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.option-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.option-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--laser-text);
    text-align: center;
}

/* Thickness Options */
.thickness-option {
    min-width: 80px;
    font-size: 14px;
    font-weight: 600;
    flex-direction: row;
}

/* Color Options */
.color-option {
    min-width: 90px;
    flex-direction: row;
    gap: 8px;
    padding: 10px 14px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.color-option span {
    font-size: 13px;
    font-weight: 500;
}

/* Material Selector Loading */
.loading-placeholder {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
}

.error-message {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
}

/* Quality Options */
.quality-option {
    min-width: 80px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Finish Options */
.finish-option {
    min-width: 90px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Material Icons */
.material-option .option-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.material-option .option-icon .material-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.material-option .option-icon .material-icon-img.is-loaded {
    opacity: 1;
}

.material-option .option-text {
    font-size: 13px;
    font-weight: 500;
}

/* Material Type Options */
.material-type-option {
    min-width: 80px;
    font-size: 14px;
    font-weight: 600;
    flex-direction: row;
}

/* Stock Availability Warning */
.stock-warning-container {
    margin: 20px 0;
    padding: 0;
}

.stock-warning-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff7ed;
    border: 2px solid #fb923c;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.1);
}

/* Engraving Compatibility Warning (separate from stock warning) */
.engraving-warning-container {
    margin: 20px 0;
    padding: 0;
}

.engraving-warning-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff7ed;
    border: 2px solid #fb923c;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.1);
}

.warning-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    display: flex;
}

.warning-content {
    flex: 1;
}

.warning-text {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #7c2d12;
    line-height: 1.6;
}

.warning-text strong {
    font-weight: 700;
    color: #ea580c;
}

.warning-subtext {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #9a3412;
}

.acceptance-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 16px;
    background: white;
    border: 2px solid #fdba74;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: auto;
}

.acceptance-checkbox-label:hover {
    background: #fffbeb;
    border-color: #fb923c;
}

.acceptance-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ea580c;
}

.acceptance-checkbox-label span {
    font-size: 14px;
    font-weight: 600;
    color: #7c2d12;
}

/* Accepted State - Zöld színvilág */
.stock-warning-box.accepted {
    background: #f0fdf4;
    border-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.stock-warning-box.accepted .warning-icon {
    color: #22c55e;
}

.stock-warning-box.accepted .warning-text {
    color: #166534;
}

.stock-warning-box.accepted .warning-text strong {
    color: #16a34a;
}

.stock-warning-box.accepted .warning-subtext {
    color: #15803d;
}

.stock-warning-box.accepted .acceptance-checkbox-label {
    background: #dcfce7;
    border-color: #86efac;
}

.stock-warning-box.accepted .acceptance-checkbox-label:hover {
    background: #bbf7d0;
    border-color: #4ade80;
}

.stock-warning-box.accepted .acceptance-checkbox-label span {
    color: #166534;
}

/* Cart Button Disabled State */
#btn-add-to-cart.disabled,
#btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #9ca3af !important;
    border-color: #9ca3af !important;
}

#btn-add-to-cart.disabled:hover,
#btn-add-to-cart:disabled:hover {
    background: #9ca3af !important;
    transform: none !important;
}

/* Dimension Inputs */
.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.dimension-input {
    width: 100px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background: white;
    transition: all 0.2s ease;
}

.dimension-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dimension-separator {
    font-size: 18px;
    font-weight: bold;
    color: #9ca3af;
}

.dimension-unit {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    position: relative;
}

/* Wrapper around unit so warning bubble can be positioned relative to it */
.dimension-unit-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Quantity Input */
.quantity-wrapper {
    flex: 1;
}

.quantity-input {
    width: 120px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    transition: all 0.2s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox */
.checkbox-wrapper {
    flex: 1;
    display: flex;
    align-items: center; /* Függőleges középre igazítás a param-label-hez */
    min-height: var(--first-row-height, 48px); /* Ugyanakkora magasság mint a param-label */
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-text {
    font-size: 13px;
    color: var(--laser-text);
    line-height: 1.5;
}

/* Notes */
.notes-wrapper {
    flex: 1;
}

.notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .param-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .param-label {
        position: static;
        padding-right: 0;
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        justify-content: flex-start !important;
        min-height: auto !important;
    }
    
    .param-label .help-icon,
    .param-label button.help-icon {
        position: static;
        margin-top: 0 !important;
        margin-left: 0 !important;
        height: 18px !important;
        width: 18px !important;
        background: #d1d5db !important;
        color: #6b7280 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .param-label .help-icon::before,
    .param-label button.help-icon::before {
        content: none !important;
    }

    .param-options {
        width: 100%;
    }
    
    .param-option {
        min-width: 100px;
    }
    
    /* Segédanyagok speciális mobil layout: címke + help-icon egy sorban, gombok alatta */
    .param-row[data-aux-id] {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    
    .param-row[data-aux-id] .param-label {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        padding-top: 0 !important;
        min-height: auto !important;
    }
    
    .param-row[data-aux-id] .param-label > span,
    .param-row[data-aux-id] .auxiliary-timing-badge {
        display: flex;
        align-items: center !important;
    }
    
    .param-row[data-aux-id] .help-icon {
        position: static !important;
        margin: 0 !important;
        order: 2;
        align-self: center !important;
        height: 18px !important;
        width: 18px !important;
        background: #d1d5db !important;
        color: #6b7280 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .param-row[data-aux-id] .help-icon::before {
        content: none !important;
    }
    
    .param-row[data-aux-id] .param-label {
        order: 1;
    }
    
    .param-row[data-aux-id] .param-options {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }
}

/* =============================================================================
   4. MATERIAL SELECTOR SECTION (OLD - KEEP FOR NOW)
   ============================================================================= */
.material-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--laser-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group select {
    padding: 12px;
    border: 1px solid var(--laser-border);
    border-radius: var(--laser-radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--laser-primary);
    box-shadow: 0 0 0 3px rgba(201, 167, 107, 0.1);
}

.material-info {
    margin-top: 20px;
    padding: 15px;
    background: var(--laser-bg-light);
    border-radius: var(--laser-radius);
    font-size: 14px;
    color: var(--laser-text-light);
}

/* =============================================================================
   5. PRICE DISPLAY SECTION
   ============================================================================= */
.price-breakdown {
    background: var(--laser-bg-light);
    padding: 20px;
    border-radius: var(--laser-radius);
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--laser-border);
    font-size: 14px;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--laser-primary);
    border-top: 2px solid var(--laser-border);
    padding-top: 15px;
    margin-top: 10px;
}

.price-label {
    color: var(--laser-text-light);
}

.price-value {
    font-weight: 600;
    color: var(--laser-text);
}

.price-loading {
    text-align: center;
    padding: 40px;
    color: var(--laser-text-light);
}

.price-loading::before {
    content: '⌛';
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* =============================================================================
   STICKY FOOTER
   ============================================================================= */
.laser-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--laser-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.laser-sticky-footer.active {
    display: block;
}

.sticky-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sticky-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--laser-primary);
}

.btn-add-to-cart {
    background: var(--laser-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--laser-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--laser-shadow-lg);
}

.btn-add-to-cart:hover {
    background: var(--laser-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(201, 167, 107, 0.3);
}

.btn-add-to-cart:disabled {
    background: var(--laser-border);
    cursor: not-allowed;
    transform: none;
}

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

/* Tablet */
@media (max-width: 768px) {
    .laser-configurator-wrapper {
        padding: 15px; /* Tablet - van oldalsó padding */
    }

    .laser-section {
        padding: 20px;
    }

    .laser-progress {
        flex-wrap: wrap;
    }

    .laser-progress-step {
        flex-basis: 50%;
        margin-bottom: 20px;
    }

    .material-selector-grid {
        grid-template-columns: 1fr;
    }

    .dimension-display {
        position: static;
        margin-top: 15px;
    }

    .laser-upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 36px;
    }

    /* Viewer controls mobil nézetben */
    .viewer-controls {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        flex-direction: row;
        gap: 6px;
        justify-content: center;
    }

    .control-btn,
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .sticky-footer-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-add-to-cart {
        width: 100%;
    }
}

/* Desktop - Large screens */
@media (min-width: 1024px) {
    .laser-configurator-wrapper {
        padding: 20px 0 20px 0; /* Felül 20px, oldalt 0, alul 180px sticky footer-nek */
    }

    .laser-section {
        padding: 40px;
    }

    .laser-section-title {
        font-size: 24px;
    }
    
    .sticky-footer-content {
        flex-direction: row;
    }
    
    .btn-add-to-cart {
        width: auto;
        min-width: 300px;
    }
}

/* =============================================================================
   NEW STICKY FOOTER WITH PROGRESS
   ============================================================================= */
:root {
    --footer-width: 1200px;
}

.laser-sticky-footer-new {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 18px 0;
    border-top: 3px solid var(--laser-primary);
    max-width: var(--footer-width) !important;
    width: var(--footer-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    height: 90px;
    box-sizing: border-box;
    overflow: visible;
    transition: transform 0.25s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}

/* Sticky footer eltüntetése, amikor a valódi footer látszani kezd */
body.single-product.postid-17345 .laser-sticky-footer-new.is-hidden-by-footer {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.footer-progress,
.footer-cart-section {
    padding-left: 20px;
    padding-right: 20px;
}

/* Progress Steps Row - Arrow style breadcrumbs */
.footer-progress {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    height: 33px;
}

/* Desktop verzió - oldal tetején */
.desktop-progress {
    margin-bottom: 30px;
    padding-left: 0;
    padding-right: 0;
    /* max-width: 1200px; */
    margin-left: auto;
    margin-right: auto;
}

/* Sticky footer verzió - mobilon látható, desktopban elrejtve */
.laser-sticky-footer-new .footer-progress {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Mobilon a sticky footer verzió látszik */
    .laser-sticky-footer-new .footer-progress {
        display: flex !important;
    }
    
    /* Desktop verzió elrejtése mobilon */
    .desktop-progress {
        display: none !important;
    }
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 30px 0 22px;
    background: #e5e7eb;
    color: #6b7280;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    min-width: 0;
    clip-path: polygon(0% 0%, calc(100% - 13px) 0%, 100% 50%, calc(100% - 13px) 100%, 0% 100%, 13px 50%);
}

/* Első elem - normál bal oldal, nincs bal bevágás */
.progress-step:first-child {
    padding-left: 15px;
    clip-path: polygon(0% 0%, calc(100% - 13px) 0%, 100% 50%, calc(100% - 13px) 100%, 0% 100%);
}

/* Utolsó elem - nincs jobb oldali nyíl */
.progress-step:last-child {
    padding-right: 15px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 13px 50%);
}

/* Ha az első elem egyben az utolsó is (csak 1 elem van) */
.progress-step:first-child:last-child {
    clip-path: none;
}

/* Jobb oldali csúcs (nyíl) - már nincs rá szükség, a clip-path csinálja */
.progress-step::after {
    display: none;
}

/* Aktív step - EGYSZERI PULZÁLÓ ANIMÁCIÓ */
.progress-step.active {
    background: linear-gradient(135deg, #c9a76b 0%, #b8925a 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(201, 167, 107, 0.4);
    animation: activeStepPulse 0.6s ease-in-out 1;
}

@keyframes activeStepPulse {
    0% {
        box-shadow: 0 2px 8px rgba(201, 167, 107, 0.2);
    }
    50% {
        box-shadow: 0 6px 28px rgba(201, 167, 107, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(201, 167, 107, 0.4);
    }
}

/* Befejezett step - SLIDE IN ANIMÁCIÓ */
.progress-step.completed {
    background: linear-gradient(135deg, #7d6c5a 0%, #5a4a3a 100%);
    color: white;
    animation: completedSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes completedSlideIn {
    0% {
        background: #e5e7eb;
        transform: translateX(-20px);
        opacity: 0.5;
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        background: linear-gradient(135deg, #7d6c5a 0%, #5a4a3a 100%);
        transform: translateX(0);
        opacity: 1;
    }
}

.step-icon {
    display: none;
}

.step-text {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: static;
    opacity: 1;
    transform: none;
    display: block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.progress-step.active .step-text {
    font-weight: 800;
}

/* Arrow between steps */
.progress-arrow {
    display: none;
}

/* Price & Cart Section */
/* Cart Section */
.footer-cart-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-price-display {
    flex: 0 0 auto;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Sticky footer-ben ne középre igazítsunk: így a loading szöveg nem tud 1px-et "visszarántani" */
.laser-sticky-footer-new .footer-price-display {
    justify-content: flex-end;
}

.price-label-small {
    font-size: 11px;
    color: var(--laser-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: block;
}

.price-value-large {
    font-size: 32px;
    font-weight: 900;
    color: var(--laser-primary);
    letter-spacing: 0;
    display: inline-flex;
    align-items: flex-end;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(201, 167, 107, 0.2);
    animation: priceShimmer 3s ease-in-out infinite;
    overflow: visible;
    --price-digit-height: 38px;
}

.price-value-large.price-clickable {
    cursor: pointer;
}

.price-value-large .footer-price-main {
    display: inline-flex;
    align-items: flex-end;
    letter-spacing: -0.5px;
    min-height: var(--price-digit-height, 38px);
}

.price-value-large .footer-price-main .price-loading-text {
    padding-top: 0 !important;
    height: var(--price-digit-height, 38px);
    display: inline-flex;
    align-items: center;
}

.price-value-large .footer-price-secondary {
    margin-left: 12px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--laser-text-light);
    display: inline-flex;
    align-items: flex-end;
    line-height: 1;
    white-space: nowrap;
    --price-digit-height: 14px;
    letter-spacing: 0;
}

.price-value-large .footer-price-secondary-number {
    display: inline-flex;
    align-items: flex-end;
}

/* Loading alatt a secondary rész placeholder-e foglalja a digit magasságát (ne ugráljon 1px-et) */
.price-value-large .footer-price-secondary.is-loading-placeholder .footer-price-secondary-prefix,
.price-value-large .footer-price-secondary.is-loading-placeholder .footer-price-secondary-number,
.price-value-large .footer-price-secondary.is-loading-placeholder .footer-price-secondary-suffix {
    display: inline-flex;
    align-items: flex-end;
    height: var(--price-digit-height, 14px);
    line-height: var(--price-digit-height, 14px);
}

.price-value-large .footer-price-secondary .price-placeholder {
    display: inline-block;
    height: var(--price-digit-height, 14px);
    line-height: var(--price-digit-height, 14px);
}

.price-value-large .footer-price-secondary-prefix,
.price-value-large .footer-price-secondary-suffix {
    display: inline-block;
    line-height: 1.1;
    letter-spacing: 0;
    margin-left: 0px;
}

.price-value-large .footer-price-secondary-suffix.needs-ft-space {
    margin-left: 5px;
}

.price-value-large .footer-price-secondary-suffix .vat-plus {
    display: inline-block;
    padding-left: 1px;
    padding-right: 1px;
}

/* A gördülő digitek baseline-ja ne csússzon el (főleg 2. animáció után) */
.price-value-large .footer-price-main .price-digit,
.price-value-large .footer-price-secondary .price-digit {
    vertical-align: bottom;
}

@keyframes priceShimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* Slot machine rolling digit animation */
.price-digit {
    display: inline-block;
    position: relative;
    overflow: hidden;
    height: var(--price-digit-height, 38px);
    line-height: var(--price-digit-height, 38px);
    vertical-align: bottom;
}

.price-digit-reel {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.digit-number {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--price-digit-height, 38px);
    line-height: var(--price-digit-height, 38px);
}

.price-static {
    display: inline-block;
    letter-spacing: 0;
}

.price-space {
    width: 0.4em;
    min-width: 0.35em;
}

.footer-cart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.btn-add-to-cart {
    padding: 12px 32px;
    background: linear-gradient(135deg, #7d6c5a 0%, #5a4a3a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(125, 108, 90, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(125, 108, 90, 0.5);
    background: linear-gradient(135deg, #5a4a3a 0%, #4a3a2a 100%);
}

.btn-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(125, 108, 90, 0.3);
}

.btn-add-to-cart:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-add-to-cart:disabled:hover {
    transform: none;
}

/* Loading state */
.btn-add-to-cart.loading {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    cursor: wait;
    pointer-events: none;
}

.btn-add-to-cart .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* Price loading spinner */
.price-loading-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    font-size: 26px;
    font-weight: 900;
    /* color: var(--laser-text-light) !important; */
}

.price-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(201, 167, 107, 0.3);
    border-top-color: var(--laser-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

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

/* WooCommerce Notice Styles */
.woocommerce-message,
.woocommerce-error {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

.woocommerce-message {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.woocommerce-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

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

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .laser-configurator-wrapper {
        padding: 20px !important; /* Mobilon minden oldalon legyen padding */
        
    }
    
    .laser-sticky-footer-new {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px 8px 8px !important;
        box-sizing: border-box !important;
        z-index: 9999 !important;
        height: auto !important;
        /* min-height: 130px !important; */
    }
    
    /* iOS specific fix */
    @supports (-webkit-touch-callout: none) {
        .laser-sticky-footer-new {
            padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
        }
    }
    
    .footer-progress {
        gap: 0 !important;
        margin-bottom: 8px !important;
        padding-bottom: 0 !important;
        height: 30px !important;
    }
    
    .progress-step {
        padding: 0 24px 0 18px !important;
        flex: 1 !important;
        clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 12px 50%) !important;
    }
    
    .progress-step:first-child {
        padding-left: 12px !important;
        clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%) !important;
    }
    
    .progress-step:last-child {
        padding-right: 12px !important;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 12px 50%) !important;
    }
    
    .progress-step:first-child:last-child {
        clip-path: none !important;
    }
    
    .progress-step::after {
        display: none !important;
    }
    
    .step-text {
        font-size: 9px !important;
        display: block !important;
    }
    
    .step-icon {
        display: none !important;
    }
    
    .progress-arrow {
        display: none !important;
    }
    
    .footer-cart-section {
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    
    .footer-price-display {
        flex: 0 0 auto !important;
    }
    
    .price-label-small {
        font-size: 9px !important;
    }
    
    .price-value-large {
        font-size: 20px !important;
        letter-spacing: -0.3px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        --price-digit-height: 24px;
        letter-spacing: 0 !important;
    }

    .price-value-large .footer-price-secondary {
        margin-left: 0 !important;
        margin-top: 2px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
        --price-digit-height: 13px;
        letter-spacing: 0 !important;
    }
    
    .price-digit {
        height: var(--price-digit-height, 24px) !important;
        line-height: var(--price-digit-height, 24px) !important;
    }
    
    .digit-number {
        height: var(--price-digit-height, 24px) !important;
        line-height: var(--price-digit-height, 24px) !important;
    }
    
    .price-loading-text {
        font-size: 18px !important;
        font-weight: 800 !important;
        gap: 5px !important;
        padding-top: 2px !important;
    }
    
    .price-loading-spinner {
        width: 13px !important;
        height: 13px !important;
        border-width: 2px !important;
        margin-left: 5px !important;
    }
    
    .footer-cart-actions {
        gap: 8px !important;
        flex: 1 !important;
        justify-content: flex-end !important;
    }
    
    .qty-input-small {
        width: 48px !important;
        padding: 8px 6px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
    
    .btn-add-to-cart {
        padding: 10px 18px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
        max-width: 160px !important;
        flex: 1 !important;
    }
}

/* =============================================================================
   HELP TOOLTIP (Blue bubble for help icons)
   ============================================================================= */
.help-tooltip {
    background: #3b82f6;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    max-width: 280px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.help-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}

.help-tooltip span {
    display: block;
    color: white;
}

/* Desktop: arrow pointing up to the icon */
.help-tooltip.desktop-below::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #3b82f6;
}

/* Mobile: arrow pointing up to the icon (same as desktop) */
.help-tooltip.mobile-below::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #3b82f6;
}

/* Mobile: centered overlay, no arrow needed (deprecated - not used anymore) */
.help-tooltip.mobile-overlay {
    max-width: 90%;
    text-align: center;
}

.help-tooltip.mobile-overlay::before {
    display: none;
}

/* =============================================================================
   DXF ZOOM HINT (Desktop: Ctrl + wheel)
   ============================================================================= */
.dxf-zoom-hint {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(0, 0);
    background: #f58e2e;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(246, 165, 59, 0.3);
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 99999;
    white-space: nowrap;
}

.dxf-zoom-hint.visible {
    opacity: 1;
}


/* =============================================================================
   AUXILIARY MATERIALS (Segédanyagok)
   ============================================================================= */

/* Auxiliary row - egyszerűen rejtett konténer, nem grid */
#auxiliary-row {
    display: contents; /* A gyerekek közvetlenül a szülőbe kerülnek */
}

.auxiliary-materials-container {
    display: contents; /* A gyerekek közvetlenül a szülőbe kerülnek */
}

/* Segédanyagok param-row-jai normálisan viselkednek, mint bármelyik param-row */
/* Nincs szükség speciális CSS-re, a .param-row alapértelmezett stílusa érvényes */

/* Help icon placeholder, ha nincs help-icon */
.help-icon-placeholder {
    width: 18px;
    height: var(--first-row-height, 48px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.auxiliary-item {
    background: #ffffff;
    border: 2px solid var(--laser-border);
    border-radius: var(--laser-radius);
    padding: 16px;
    transition: all 0.2s ease;
    flex: 0 1 auto;
    min-width: 200px;
}

/* Mobil nézetben teljes szélesség */
@media (max-width: 768px) {
    .auxiliary-item {
        flex: 1 1 100%;
        width: 100%;
    }
}

.auxiliary-item:hover {
    border-color: var(--laser-primary);
    box-shadow: var(--laser-shadow);
}

.auxiliary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.auxiliary-main-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--laser-text);
    user-select: none;
}

.auxiliary-main-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--laser-primary);
}

.auxiliary-name {
    font-size: 15px;
}

.auxiliary-timing {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.auxiliary-timing.pre-cut {
    background: #e0f2fe;
    color: #0369a1;
}

.auxiliary-timing.post-cut {
    background: #fef3c7;
    color: #92400e;
}

/* Új timing badge stílus a param-label-ben */
.auxiliary-timing-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.auxiliary-timing-badge.pre-cut {
    background: #e0f2fe;
    color: #0369a1;
}

.auxiliary-timing-badge.post-cut {
    background: #fef3c7;
    color: #92400e;
}

/* Auxiliary side options styling */
.auxiliary-side-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auxiliary-side-option {
    flex: 0 0 auto;
    min-width: 120px;
}

.auxiliary-sides {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--laser-border);
}

.side-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--laser-text-light);
    cursor: pointer;
    user-select: none;
}

.side-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--laser-success);
}

.side-label:hover {
    color: var(--laser-text);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .auxiliary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .auxiliary-sides {
        flex-direction: column;
        gap: 10px;
    }
    
    .auxiliary-timing {
        align-self: flex-start;
    }
}

/* =============================================================================
   FLYING CART ANIMATION (Repülő kosár animáció)
   ============================================================================= */

/* WooCommerce zöld üzenet elrejtése (17345-ös termék) */
.product-17345 .woocommerce-message,
.postid-17345 .woocommerce-message,
body.postid-17345 .woocommerce-message {
    display: none !important;
}

/* Kosár ikon "bump" animáció amikor termék bekerül */
@keyframes cartBump {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
}

/* Repülő kép animáció - JavaScript állítja be a transition-t */
.flying-cart-image {
    animation: pulse 1.8s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* =============================================================================
   PÉLDA DXF BETÖLTŐ LINK
   ============================================================================= */

.example-dxf-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.example-dxf-link:hover {
    opacity: 0.8;
}

.example-dxf-link.loading {
    opacity: 0.5;
    cursor: wait;
}

/* =============================================================================
   EUROCUT MODAL (DXF hibákhoz)
   Megjelenés a My Account modal mintájára
   ============================================================================= */

.eurocut-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eurocut-details-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.eurocut-details-modal .modal-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000000;
}

.eurocut-details-modal .modal-header {
    padding: 18px 25px 12px;
    border-bottom: 1px solid #e6eef6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
}

.eurocut-details-modal .modal-header h3,
.eurocut-details-modal .modal-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.eurocut-details-modal .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #5f6368;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.eurocut-details-modal .modal-close:hover {
    background: #f1f5f9;
    color: #202124;
}

.eurocut-details-modal .modal-body {
    padding: 14px 25px 0;
    overflow-y: auto;
    flex: 1;
}

.eurocut-details-modal .modal-footer {
    padding: 0 25px 20px;
    border-top: none;
    background: transparent;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.eurocut-details-modal .modal-close-btn {
    padding: 8px 14px;
    background: #2563eb;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: none;
}

.eurocut-details-modal .modal-close-btn:hover {
    background: #1d4ed8;
    box-shadow: none;
    transform: none;
}

/* DXF specifikus tartalom */
.eurocut-dxf-error-intro {
    margin: 0 0 16px;
    white-space: pre-line;
    color: #202124;
}

.eurocut-dxf-error-details {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #e2e8f0;
}

.eurocut-dxf-error-details-title {
    font-weight: 700;
    margin: 0 0 8px;
    color: #202124;
}

.eurocut-dxf-error-list {
    margin: 0;
    padding-left: 18px;
}

.eurocut-dxf-error-list li {
    margin: 6px 0;
    color: #202124;
    word-break: break-word;
}

/* Modal responsive */
@media screen and (max-width: 768px) {
    .eurocut-details-modal .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 0;
    }

    .eurocut-details-modal {
        padding: 12px;
    }

    .eurocut-details-modal .modal-header {
        padding: 16px 18px 10px;
    }

    .eurocut-details-modal .modal-body {
        padding: 12px 18px 0;
    }

    .eurocut-details-modal .modal-footer {
        padding: 0 18px 16px;
    }
}
