/* Wielton AGRO Configurator — Frontend CSS v2.0 */
/* Full-screen dark carousel theme */

/* ==================== */
/* CSS Custom Properties */
/* ==================== */
.wag-configurator {
    --wag-primary: #f7c502;
    --wag-secondary: #1a1a1a;
    --wag-text: #ffffff;
    --wag-btn-text: #000000;
    --wag-radius-sm: 8px;
    --wag-radius-md: 12px;
    --wag-radius-lg: 16px;
    --wag-radius-xl: 24px;
    --wag-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wag-glass: rgba(0, 0, 0, 0.6);
    --wag-glass-strong: rgba(0, 0, 0, 0.85);
    --wag-blur: blur(12px);
}

/* ==================== */
/* Reset & Base         */
/* ==================== */
.wag-configurator * { margin: 0; padding: 0; box-sizing: border-box; }

.wag-configurator {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    background: var(--wag-secondary);
    color: var(--wag-text);
    overflow-y: hidden;
    overflow-x: clip;
}

/* ==================== */
/* Hero Background      */
/* ==================== */
.wag-hero-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.wag-hero-background img { width: 100%; height: 100%; object-fit: cover; }
.wag-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.1) 25%,
        rgba(0,0,0,0.05) 50%,
        rgba(0,0,0,0.4) 75%,
        rgba(0,0,0,0.85) 100%
    );
}

/* ==================== */
/* Header               */
/* ==================== */
.wag-header {
    position: relative; z-index: 10;
    padding: 20px 32px;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}

.wag-header-left { width: 80px; display: flex; align-items: center; }

/* Language Switcher */
.wag-language-switcher {
    display: flex; gap: 4px;
}
.wag-lang-btn {
    display: flex; align-items: center; gap: 3px;
    padding: 5px 10px; border-radius: 20px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 500;
    cursor: pointer; transition: all var(--wag-transition);
    backdrop-filter: var(--wag-blur);
}
.wag-lang-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.wag-lang-btn.active {
    background: var(--wag-primary); color: var(--wag-btn-text);
    border-color: var(--wag-primary);
}
.wag-lang-btn .wag-flag { width: 24px; height: 18px; display: inline-flex; align-items:center; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.wag-lang-btn .wag-flag svg { width: 24px !important; height: 18px !important; display: block; flex-shrink: 0; }

/* Logo */
.wag-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wag-logo-custom { max-height: 60px; width: auto; }
.wag-logo-icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--wag-primary);
    box-shadow: 0 4px 16px rgba(247, 197, 2, 0.35);
}
.wag-logo-icon svg { width: 32px; height: 32px; }
.wag-logo-text { text-align: center; }
.wag-logo-text h1 { font-size: 24px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); margin: 0; line-height: 1.2; color: #fff; }
.wag-logo-text span { font-size: 15px; font-weight: 700; letter-spacing: 4px; color: var(--wag-primary); }

.wag-header-right { width: 80px; display: flex; justify-content: flex-end; }
.wag-shield-icon { width: 40px; height: 48px; fill: var(--wag-primary); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

/* ==================== */
/* Price Box (Koszyk)   */
/* ==================== */
.wag-price-box {
    position: absolute;
    right: 24px;
    top: 200px;
    z-index: 20;
    background: #ffffff;
    border-radius: var(--wag-radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
    min-width: 260px;
    max-width: 300px;
    overflow: hidden;
    transition: all var(--wag-transition);
}

.wag-price-box.collapsed { min-width: auto; max-width: 180px; }
.wag-price-box.collapsed .wag-price-box-content { display: none; }
.wag-price-box.collapsed .wag-price-box-toggle svg { transform: rotate(180deg); }

.wag-price-box-header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--wag-primary) 0%, #e6b800 100%);
    color: #1a1a1a; font-weight: 600; font-size: 13px;
}
.wag-price-box-header svg { width: 18px; height: 18px; stroke: #1a1a1a; }

.wag-price-box-content { padding: 14px 16px; }

.wag-price-box-items { max-height: 160px; overflow-y: auto; margin-bottom: 10px; }
.wag-price-box-items::-webkit-scrollbar { width: 3px; }
.wag-price-box-items::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
.wag-price-box-items::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.wag-price-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: #333;
}
.wag-price-item:last-child { border-bottom: none; }
.wag-price-item-name { flex: 1; padding-right: 10px; line-height: 1.4; }
.wag-price-item-category { font-size: 10px; color: #888; display: block; margin-top: 1px; }
.wag-price-item-value { font-weight: 600; white-space: nowrap; color: #1a1a1a; }
.wag-price-item-value.free { color: #22c55e; }

.wag-price-box-divider { height: 1px; background: linear-gradient(90deg, transparent, #e0e0e0, transparent); margin: 6px 0; }

.wag-price-box-total { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.wag-price-box-total-label { font-size: 13px; color: #666; font-weight: 500; }
.wag-price-box-total-value {
    font-size: 22px; font-weight: 800;
    background: linear-gradient(135deg, #f7c502, #e6a800);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.wag-price-box-toggle {
    position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 18px; background: #fff; border: none;
    border-radius: 0 0 6px 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08); transition: all 0.2s;
}
.wag-price-box-toggle:hover { background: #f5f5f5; }
.wag-price-box-toggle svg { width: 14px; height: 14px; stroke: #666; transition: transform 0.3s; }

/* Order Button in Price Box */
.wag-price-box-order {
    width: 100%; padding: 11px 14px; margin-top: 12px;
    border: none; border-radius: var(--wag-radius-sm);
    background: linear-gradient(135deg, var(--wag-primary) 0%, #e6b800 100%);
    color: #1a1a1a; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: all var(--wag-transition);
}
.wag-price-box-order:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(247,197,2,0.35); }
.wag-price-box-order.hidden { display: none; }

/* ==================== */
/* Welcome Text         */
/* ==================== */
.wag-welcome-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 6;
    pointer-events: none;
}
.wag-welcome-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0,0,0,0.6);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.wag-welcome-text p {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    font-weight: 500;
}

/* ==================== */
/* Content Area         */
/* ==================== */
.wag-display-area {
    position: relative; width: 100%; flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 10px 20px; min-height: 0;
}

/* Product Display */
.wag-product-display {
    flex: 1; display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 5;
}
.wag-product-image {
    max-width: 75%; max-height: 55vh;
    object-fit: contain;
    filter: drop-shadow(0 16px 48px rgba(0,0,0,0.4));
    transition: opacity 0.4s ease;
}

/* ==================== */
/* Category Tabs Bar    */
/* ==================== */
.wag-category-tabs {
    position: relative;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 4px 6px;
    margin: 0;
    white-space: nowrap;
    cursor: inherit;
    background: var(--wag-glass);
    backdrop-filter: var(--wag-blur);
    -webkit-backdrop-filter: var(--wag-blur);
    border-radius: 30px;
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wag-category-tabs::-webkit-scrollbar { display: none; }

.wag-tab {
    padding: 7px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all var(--wag-transition);
    border: none;
    background: transparent;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.wag-tab:hover { color: white; background: rgba(255,255,255,0.1); }
.wag-tab.active {
    background: var(--wag-primary);
    color: var(--wag-btn-text);
    box-shadow: 0 2px 8px rgba(247, 197, 2, 0.3);
}

/* ==================== */
/* Navigation Bar       */
/* ==================== */
.wag-navigation-bar {
    position: relative; z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 32px;
    flex-shrink: 0;
}

.wag-nav-dots { display: flex; gap: 10px; align-items: center; }
.wag-nav-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    transition: all var(--wag-transition);
    cursor: pointer;
}
.wag-nav-dot.active {
    background: var(--wag-primary);
    border-color: var(--wag-primary);
    box-shadow: 0 0 10px rgba(247, 197, 2, 0.5);
}
.wag-nav-dot.completed {
    background: var(--wag-primary);
    border-color: var(--wag-primary);
    opacity: 0.6;
}

/* Nav Buttons */
.wag-btn-nav {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--wag-radius-sm);
    font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all var(--wag-transition);
    text-transform: uppercase; letter-spacing: 0.5px;
    background: var(--wag-primary);
    color: var(--wag-btn-text);
    border: none;
}
.wag-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 197, 2, 0.35);
    filter: brightness(1.08);
}
.wag-btn-back svg { width: 16px; height: 16px; stroke: var(--wag-btn-text); }
.wag-btn-back.hidden { visibility: hidden; pointer-events: none; }

/* ==================== */
/* Bottom Panel         */
/* ==================== */
.wag-bottom-panel {
    position: relative; z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 100%);
    padding: 16px 32px 24px;
    flex-shrink: 0;
}

/* ==================== */
/* Carousel             */
/* ==================== */
.wag-carousel-container {
    position: relative;
    background: #eeeeee;
    border-top: 3px solid #f8c501;
}
.wag-carousel {
    display: flex; gap: 14px;
    overflow-x: auto; padding: 8px 52px;
    scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
}
.wag-carousel::-webkit-scrollbar { display: none; }

.wag-carousel-item {
    flex-shrink: 0; width: 130px;
    cursor: pointer; transition: all var(--wag-transition);
}
.wag-carousel-item:hover { transform: translateY(-3px); }

.wag-carousel-image {
    width: 130px; height: 92px;
    background: rgba(255,255,255,0.08);
    border: 3px solid transparent;
    border-radius: var(--wag-radius-md);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--wag-transition);
    position: relative;
}
.wag-carousel-image img { width: 100%; height: 100%; object-fit: cover; }

.wag-carousel-item.selected .wag-carousel-image {
    border-color: var(--wag-primary);
    box-shadow: 0 0 0 2px rgba(247, 197, 2, 0.25);
}
.wag-carousel-item.selected .wag-carousel-image::after {
    content: '\2713'; position: absolute; top: 6px; left: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--wag-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: bold; color: #1a1a1a;
}

.wag-carousel-label {
    margin-top: 8px; font-size: 11px; font-weight: 500;
    text-align: center; color: rgba(255,255,255,0.75); line-height: 1.3;
}
.wag-carousel-price {
    font-size: 11px; text-align: center;
    color: var(--wag-primary); font-weight: 600; margin-top: 2px;
}
.wag-carousel-price.wag-price-default {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 10px;
    display: inline-block;
}
.wag-carousel-price.wag-price-free {
    color: #4ade80;
}

/* Virtual "Domyslne" card icon */
.wag-default-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}
.wag-default-icon svg {
    width: 40px;
    height: 40px;
    color: #4ade80;
    opacity: 0.7;
    transition: all 0.2s;
}
.wag-carousel-item.selected .wag-default-icon svg {
    opacity: 1;
    color: var(--wag-primary);
    filter: drop-shadow(0 0 6px var(--wag-primary));
}

.wag-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; color: white;
    font-size: 22px; cursor: pointer;
    transition: all var(--wag-transition);
    display: flex; align-items: center; justify-content: center; z-index: 5;
}
.wag-carousel-arrow:hover { background: rgba(255,255,255,0.15); }
.wag-carousel-arrow.wag-prev { left: 0; }
.wag-carousel-arrow.wag-next { right: 0; }

/* ==================== */
/* Selected Panel       */
/* ==================== */
.wag-selected-panel {
    position: absolute;
    left: 40px;
    top: 220px;
    transform: none;
    z-index: 100;
    background: var(--wag-glass-strong);
    backdrop-filter: var(--wag-blur);
    border-radius: var(--wag-radius-lg);
    padding: 14px;
    min-width: 110px;
    max-width: 140px;
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.wag-selected-panel::-webkit-scrollbar { width: 3px; }
.wag-selected-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.wag-selected-title {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--wag-primary);
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.wag-selected-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wag-selected-item:last-child { border-bottom: none; }
.wag-selected-item img {
    width: 70px; height: 70px; object-fit: contain;
    background: rgba(255,255,255,0.08); border-radius: 10px;
    padding: 6px; margin-bottom: 6px;
}
.wag-selected-item-info { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.wag-selected-item-name { font-size: 10px; font-weight: 500; color: #fff; line-height: 1.3; }
.wag-selected-item-cat { font-size: 8px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.wag-selected-empty { font-size: 10px; color: #666; text-align: center; padding: 16px 6px; line-height: 1.5; }

/* ==================== */
/* Color Swatch         */
/* ==================== */
.wag-color-swatch {
    width: 100%; height: 100%; border-radius: 8px;
    border: 3px solid transparent; transition: all 0.2s;
}
.wag-carousel-item.selected .wag-color-swatch {
    border-color: var(--wag-primary);
    box-shadow: 0 0 12px rgba(247, 197, 2, 0.4);
}

/* ==================== */
/* Form Overlay         */
/* ==================== */
.wag-form-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85); z-index: 200;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.wag-form-overlay.active { opacity: 1; visibility: visible; }

/* Success screen */
.wag-success-content {
    text-align: center; color: white; max-width: 680px; padding: 40px 20px;
}
.wag-success-icon svg {
    width: 64px; height: 64px; margin-bottom: 20px;
    animation: wag-success-draw 0.6s ease forwards;
}
@keyframes wag-success-draw {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
.wag-success-content h2 {
    font-size: 24px; margin: 0 0 8px; font-weight: 700;
}
.wag-success-subtitle {
    color: rgba(255,255,255,0.7); font-size: 14px; margin: 0 0 16px;
}
.wag-success-ref {
    color: var(--wag-primary); font-size: 16px; margin: 0 0 24px;
}
.wag-success-links {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px;
    align-items: center; justify-content: center; margin-bottom: 16px;
}
.wag-success-links a,
.wag-success-links button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--wag-radius-lg);
    font-size: 14px; text-decoration: none; transition: all var(--wag-transition);
    min-width: 200px; justify-content: center; cursor: pointer;
}
.wag-btn-pdf {
    background: var(--wag-primary); color: #000; font-weight: 600;
}
.wag-btn-pdf:hover { background: #e6b600; }
.wag-btn-portal {
    background: rgba(255,255,255,0.1); color: white;
    border: 1px solid rgba(255,255,255,0.2);
}
.wag-btn-portal:hover { background: rgba(255,255,255,0.2); }
.wag-btn-restart {
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.12); font-weight: 500;
}
.wag-btn-restart:hover { background: rgba(255,255,255,0.15); color: #fff; }
.wag-success-redirect-info {
    color: rgba(255,255,255,0.5); font-size: 12px; margin: 12px 0 0;
    animation: wag-pulse 1.5s ease-in-out infinite;
}
@keyframes wag-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
@media (max-width: 600px) {
    .wag-success-links { flex-direction: column; }
    .wag-success-links a,
    .wag-success-links button { min-width: 240px; }
}

.wag-form-container {
    background: #1a1a1a; border-radius: var(--wag-radius-xl);
    padding: 40px; max-width: 520px; width: 90%;
    border: 1px solid rgba(255,255,255,0.08);
    max-height: 90vh; overflow-y: auto;
    position: relative;
}
.wag-form-close {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px; background: rgba(255,255,255,0.08);
    border: none; border-radius: 50%; color: white;
    font-size: 22px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.wag-form-close:hover { background: rgba(255,255,255,0.15); }

.wag-form-title { text-align: center; margin-bottom: 28px; }
.wag-form-title h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.wag-form-title p { color: rgba(255,255,255,0.5); font-size: 13px; }

/* Form Summary */
.wag-form-summary {
    background: rgba(255,255,255,0.04); border-radius: var(--wag-radius-md);
    padding: 14px 18px; margin-bottom: 20px;
}
.wag-form-summary h4 { font-size: 12px; color: #888; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.wag-form-summary ul { list-style: none; padding: 0; margin: 0; }
.wag-form-summary li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px; color: #ccc; }
.wag-form-summary li:last-child { border-bottom: none; }
.wag-form-summary li strong { color: #888; font-weight: 400; margin-right: 6px; }
.wag-form-summary-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 15px; text-align: right; color: #fff; }
.wag-form-summary-total strong { color: var(--wag-primary); font-size: 18px; }

/* Form Fields */
.wag-form-group { margin-bottom: 16px; }
.wag-form-label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; color: rgba(255,255,255,0.6); }
.wag-form-input {
    width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--wag-radius-sm); color: #fff;
    font-size: 14px; transition: all 0.2s; font-family: inherit;
}
.wag-form-input:focus { outline: none; border-color: var(--wag-primary); background: rgba(255,255,255,0.08); }
.wag-form-input::placeholder { color: rgba(255,255,255,0.25); }
.wag-form-error { display: none; color: #f87171; font-size: 11px; margin-top: 4px; }
.wag-form-group.has-error .wag-form-input { border-color: #f87171; }
.wag-form-group.has-error .wag-form-error { display: block; }

/* Dealer Search in Form */
.wag-dealer-search-wrap { position: relative; }
.wag-dealer-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #2a2a2a; border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--wag-radius-sm); z-index: 10;
    max-height: 160px; overflow-y: auto; display: none;
}
.wag-dealer-result-item {
    padding: 10px 14px; cursor: pointer; transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.05); color: #ccc; font-size: 13px;
}
.wag-dealer-result-item:hover { background: rgba(255,255,255,0.08); }
.wag-dealer-result-item:last-child { border-bottom: none; }
.wag-selected-dealer {
    padding: 8px 12px; margin-top: 8px;
    background: rgba(247, 197, 2, 0.08); border: 1px solid rgba(247, 197, 2, 0.2);
    border-radius: var(--wag-radius-sm);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: #fff;
}
.wag-selected-dealer button { background: none; border: none; color: #888; cursor: pointer; font-size: 16px; padding: 2px 6px; }
.wag-selected-dealer button:hover { color: #fff; }

/* Checkboxes */
.wag-checkboxes { margin-top: 20px; }
.wag-checkbox-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.wag-checkbox-item input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--wag-primary); }
.wag-checkbox-item label { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; cursor: pointer; }
.wag-checkbox-item label a { color: var(--wag-primary); text-decoration: none; }

.wag-submit-btn {
    width: 100%; padding: 14px; border: none;
    border-radius: var(--wag-radius-sm);
    font-size: 15px; font-weight: 700; cursor: pointer;
    margin-top: 20px; text-transform: uppercase; letter-spacing: 0.5px;
    background: var(--wag-primary); color: var(--wag-btn-text);
    transition: all var(--wag-transition);
}
.wag-submit-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.wag-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.wag-form-message { margin-top: 14px; padding: 10px; border-radius: 6px; text-align: center; display: none; font-size: 13px; }
.wag-form-message.success { display: block; background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.wag-form-message.error { display: block; background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ==================== */
/* Loading              */
/* ==================== */
.wag-loading-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.8);
    z-index: 200; display: none; align-items: center; justify-content: center;
}
.wag-loading-overlay.active { display: flex; }
.wag-spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--wag-primary);
    border-radius: 50%; animation: wag-spin 0.8s linear infinite;
}
@keyframes wag-spin { to { transform: rotate(360deg); } }

/* ==================== */
/* Step Transition      */
/* ==================== */
.wag-step-transition {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 150;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.wag-step-transition.active {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.05s ease;
}
.wag-transition-spinner {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.wag-step-transition.active .wag-transition-spinner {
    transform: scale(1);
}
.wag-transition-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Family cards fade-out animation */
.wag-family-cards.wag-fading-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==================== */
/* Notifications        */
/* ==================== */
.wag-notification {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2d2d2d; color: white;
    padding: 14px 28px; border-radius: 30px;
    font-size: 13px; font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 2000; transition: transform 0.3s ease;
}
.wag-notification.show { transform: translateX(-50%) translateY(0); }
.wag-notif-success { border-left: 3px solid #4CAF50; }
.wag-notif-error { border-left: 3px solid #f44336; }

/* ==================== */
/* Empty State          */
/* ==================== */
.wag-empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; text-align: center; padding: 40px;
}
.wag-empty-state h2 { margin: 20px 0 10px; }
.wag-empty-state p { color: rgba(255,255,255,0.5); }

/* ==================== */
/* Account Section     */
/* ==================== */
.wag-account-section {
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.wag-password-group {
    margin-top: 12px;
}
.wag-password-group .wag-form-input {
    margin-top: 4px;
}

/* ==================== */
/* Family Cards (Step 0) */
/* ==================== */
.wag-family-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    z-index: 8;
    max-width: min(1200px, 95%);
    padding: 10px 20px;
}
.wag-family-cards::-webkit-scrollbar { display: none; }

.wag-family-card {
    flex-shrink: 0;
    width: 260px;
    cursor: pointer;
    transition: all var(--wag-transition);
    background: var(--wag-glass);
    backdrop-filter: var(--wag-blur);
    -webkit-backdrop-filter: var(--wag-blur);
    border-radius: var(--wag-radius-lg);
    border: 2px solid rgba(255,255,255,0.1);
    overflow: hidden;
    pointer-events: auto;
}
.wag-family-card:hover {
    transform: translateY(-6px);
    border-color: var(--wag-primary);
    box-shadow: 0 12px 40px rgba(247, 197, 2, 0.2);
}
.wag-family-card.selected {
    border-color: var(--wag-primary);
    box-shadow: 0 0 0 3px rgba(247, 197, 2, 0.25);
}

.wag-family-card-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    padding: 16px;
}
.wag-family-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.wag-family-card-info {
    padding: 16px;
    text-align: center;
}
.wag-family-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.wag-family-card-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    line-height: 1.4;
}

/* Hide bottom panel on step 0 (family cards visible instead) */
.wag-configurator.wag-step-0 .wag-bottom-panel { display: none; }
.wag-configurator.wag-step-0 .wag-category-tabs { display: none; }

/* ======================================= */
/* RESPONSIVE - Laptop (1024 - 1440px)     */
/* ======================================= */
@media (max-width: 1440px) {
    .wag-header { padding: 16px 24px; }
    .wag-price-box { right: 20px; top: 190px; min-width: 240px; max-width: 280px; }
    .wag-selected-panel { left: 24px; min-width: 100px; max-width: 130px; top: 190px; }
    .wag-bottom-panel { padding: 10px 24px 14px; }
    .wag-navigation-bar { padding: 10px 24px; }
    .wag-product-image { max-width: 70%; max-height: 50vh; }
}

/* ======================================= */
/* RESPONSIVE - Tablet (768 - 1024px)      */
/* ======================================= */

/* ======================================= */
/* RESPONSIVE - Small laptop (1280-1440px) */
/* ======================================= */
@media (max-width: 1300px) {
    .wag-price-box { right: 14px; top: 185px; min-width: 200px; max-width: 240px; }
    .wag-price-item-name { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
    .wag-price-item-value { font-size: 11px; white-space: nowrap; }
    .wag-price-box-total-value { font-size: 16px; }
    .wag-selected-panel { left: 14px; min-width: 80px; max-width: 100px; }
    .wag-selected-item img { width: 52px; height: 52px; }
    .wag-tab { padding: 7px 12px; font-size: 10px; }
}
@media (max-width: 1024px) {
    .wag-header { padding: 14px 20px; }
    .wag-logo-text h1 { font-size: 20px; }
    .wag-logo-text span { font-size: 13px; }
    .wag-shield-icon { width: 34px; height: 40px; }

    .wag-selected-panel {
        left: 16px; padding: 10px; top: 180px;
        min-width: 90px; max-width: 110px;
    }
    .wag-selected-item img { width: 56px; height: 56px; }
    .wag-selected-item-name { font-size: 9px; }

    .wag-price-box {
        right: 16px; top: 180px;
        min-width: 220px; max-width: 260px;
    }
    .wag-price-box-header { padding: 10px 14px; font-size: 12px; }
    .wag-price-box-total-value { font-size: 18px; }

    .wag-category-tabs { max-width: 95%; padding: 4px 6px; gap: 3px; }
    .wag-tab { padding: 8px 16px; font-size: 11px; }

    .wag-navigation-bar { padding: 10px 20px; }
    .wag-btn-nav { padding: 10px 20px; font-size: 12px; }
    .wag-nav-dot { width: 10px; height: 10px; }

    .wag-carousel { padding: 8px 44px; gap: 12px; }
    .wag-carousel-item { width: 115px; }
    .wag-carousel-image { width: 115px; height: 80px; }
    .wag-carousel-label { font-size: 10px; }
    .wag-carousel-arrow { width: 36px; height: 36px; font-size: 18px; }

    .wag-bottom-panel { padding: 10px 20px 12px; }

    .wag-lang-btn { padding: 4px 8px; font-size: 10px; }

    .wag-family-card { width: 220px; }
    .wag-family-card-image { height: 150px; padding: 12px; }
    .wag-family-card-name { font-size: 14px; }
    .wag-family-cards { gap: 18px; }
}

/* ======================================= */
/* RESPONSIVE - Mobile (max 768px)         */
/* ======================================= */
@media (max-width: 768px) {
    .wag-configurator { min-height: 100vh; min-height: 100dvh; }

    .wag-header { padding: 10px 14px; }
    .wag-logo-icon { width: 40px; height: 40px; }
    .wag-logo-icon svg { width: 24px; height: 24px; }
    .wag-logo-text h1 { font-size: 16px; letter-spacing: 1px; }
    .wag-logo-text span { font-size: 11px; letter-spacing: 2px; }
    .wag-logo-custom { max-height: 36px; }
    .wag-shield-icon { width: 28px; height: 34px; }
    .wag-header-right { width: 50px; }
    .wag-header-left { width: 50px; }

    /* Price Box */
    .wag-price-box {
        position: fixed;
        top: 60px; right: 10px; left: auto; bottom: auto;
        transform: none;
        max-width: 180px; min-width: 160px;
        font-size: 11px;
        border-radius: var(--wag-radius-md);
    }
    .wag-price-box.collapsed { max-width: 180px; }
    .wag-price-box-header { padding: 8px 10px; font-size: 10px; gap: 6px; }
    .wag-price-box-header svg { width: 14px; height: 14px; }
    .wag-price-box-content { padding: 8px 10px; }
    .wag-price-box-items { max-height: 70px; }
    .wag-price-item { font-size: 10px; padding: 5px 0; }
    .wag-price-box-total-value { font-size: 15px; }
    .wag-price-box-toggle { width: 28px; height: 14px; }
    .wag-price-box-toggle svg { width: 12px; height: 12px; }

    /* Selected Panel */
    .wag-selected-panel {
        position: fixed;
        left: 8px; top: auto; bottom: 220px; right: auto;
        transform: none;
        max-width: 80px; min-width: 70px;
        padding: 8px; border-radius: var(--wag-radius-md);
        max-height: 180px;
    }
    .wag-selected-title { font-size: 8px; margin-bottom: 6px; padding-bottom: 5px; }
    .wag-selected-item { padding: 5px 0; }
    .wag-selected-item img { width: 44px; height: 44px; border-radius: 6px; padding: 3px; }
    .wag-selected-item-name { font-size: 8px; }
    .wag-selected-item-cat { font-size: 7px; }

    /* Welcome text */
    .wag-welcome-text h2 { font-size: 24px; }
    .wag-welcome-text p { font-size: 14px; }

    /* Family cards mobile */
    .wag-family-cards { gap: 14px; padding: 8px 14px; transform: translate(-50%, -35%); }
    .wag-family-card { width: 180px; }
    .wag-family-card-image { height: 120px; padding: 10px; }
    .wag-family-card-name { font-size: 13px; }
    .wag-family-card-info { padding: 12px; }
    .wag-family-card-desc { font-size: 11px; }

    /* Product image */
    .wag-product-image { max-width: 85%; max-height: 35vh; }

    /* Category Tabs */
    .wag-category-tabs {
        max-width: 100%; width: calc(100% - 16px);
        margin: 0 8px;
        padding: 3px 4px;
        gap: 2px;
        justify-content: flex-start;
        border-radius: 20px;
    }
    .wag-tab { padding: 7px 12px; font-size: 10px; border-radius: 18px; }

    /* Navigation */
    .wag-navigation-bar { padding: 10px 14px; }
    .wag-btn-nav { padding: 9px 16px; font-size: 11px; border-radius: 6px; gap: 5px; }
    .wag-btn-back svg { width: 14px; height: 14px; }
    .wag-nav-dots { gap: 7px; }
    .wag-nav-dot { width: 9px; height: 9px; border-width: 1.5px; }

    /* Carousel */
    .wag-bottom-panel { padding: 8px 14px 12px; }
    .wag-carousel { padding: 6px 38px; gap: 10px; }
    .wag-carousel-item { width: 100px; }
    .wag-carousel-image { width: 100px; height: 70px; border-radius: var(--wag-radius-sm); }
    .wag-carousel-label { font-size: 9px; margin-top: 5px; }
    .wag-carousel-price { font-size: 9px; }
    .wag-carousel-arrow { width: 30px; height: 30px; font-size: 16px; }

    /* Language */
    .wag-language-switcher { gap: 2px; }
    .wag-lang-btn { padding: 3px 6px; font-size: 9px; }
    .wag-lang-btn .wag-flag { width: 14px; height: 10px; }

    /* Forms */
    .wag-form-container { padding: 28px 20px; margin: 12px; }
    .wag-form-title h2 { font-size: 20px; }
}

/* ======================================= */
/* RESPONSIVE - Small Mobile (max 480px)   */
/* ======================================= */
@media (max-width: 480px) {
    .wag-selected-panel {
        bottom: 210px; max-width: 65px; padding: 5px;
    }
    .wag-selected-item img { width: 36px; height: 36px; }
    .wag-selected-item-info { display: none; }

    .wag-price-box { max-width: 155px; min-width: 140px; }

    .wag-navigation-bar { padding: 8px 10px; }
    .wag-btn-nav { padding: 8px 12px; font-size: 10px; gap: 4px; }
    .wag-btn-back svg { width: 12px; height: 12px; }
    .wag-nav-dots { gap: 5px; }
    .wag-nav-dot { width: 8px; height: 8px; }

    .wag-carousel-item { width: 85px; }
    .wag-carousel-image { width: 85px; height: 60px; }
    .wag-carousel-label { font-size: 8px; }

    .wag-tab { padding: 6px 10px; font-size: 9px; }

    .wag-family-card { width: 150px; }
    .wag-family-card-image { height: 100px; padding: 8px; }
    .wag-family-card-name { font-size: 12px; }
    .wag-family-card-info { padding: 10px; }
    .wag-family-cards { gap: 10px; }

    .wag-header { padding: 8px 10px; }
    .wag-logo-text h1 { font-size: 14px; }
    .wag-logo-text span { font-size: 10px; }
}

/* ==================== */
/* Floating Lang Switch */
/* ==================== */
.wag-lang-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.wag-lang-floating .wag-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    opacity: 0.7;
    text-decoration: none;
    padding: 4px;
    background: transparent;
    border: 2px solid transparent;
}
.wag-lang-floating .wag-float-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}
.wag-lang-floating .wag-float-btn.active {
    opacity: 1;
    border-color: #f7c502;
    background: rgba(247, 197, 2, 0.15);
}
.wag-lang-floating .wag-float-btn svg {
    width: 24px;
    height: 18px;
    display: block;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ======================================= */
/* INFO BUTTON on carousel items           */
/* ======================================= */
.wag-info-btn {
    position: absolute; top: 4px; right: 4px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(0,0,0,0.55); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; opacity: 1; transition: opacity 0.2s;
    padding: 0;
}
.wag-carousel-item:hover .wag-info-btn { opacity: 1; }
.wag-info-btn svg { width: 14px; height: 14px; color: #fff; pointer-events: none; }
.wag-info-btn:hover { background: var(--wag-primary, #f7c502); }
.wag-info-btn:hover svg { color: #000; }

/* ======================================= */
/* INFO MODAL                               */
/* ======================================= */
.wag-info-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.wag-info-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.wag-info-modal-content {
    position: relative; background: #1a1a1a; border-radius: 12px;
    width: 600px; max-width: 95vw; max-height: 85vh; overflow-y: auto;
    padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}
.wag-info-modal-close {
    position: absolute; top: 12px; right: 14px; background: none; border: none;
    font-size: 28px; color: #666; cursor: pointer; line-height: 1; padding: 4px;
}
.wag-info-modal-close:hover { color: #fff; }
.wag-info-modal-title { color: #fff; margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.wag-info-modal-desc { color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 16px; }
.wag-info-modal-desc p { margin: 0 0 10px; }
.wag-info-modal-video { position: relative; padding-bottom: 56.25%; border-radius: 8px; overflow: hidden; background: #000; }
.wag-info-modal-video .wag-yt-thumb { position: absolute; inset: 0; cursor: pointer; }
.wag-info-modal-video .wag-yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wag-info-modal-video .wag-yt-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 48px; opacity: 0.85; transition: opacity 0.2s;
}
.wag-info-modal-video .wag-yt-thumb:hover .wag-yt-play { opacity: 1; }
.wag-info-modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ======================================= */
/* SPECS PANEL                              */
/* ======================================= */
.wag-specs-panel {
    background: rgba(255,255,255,0.04); border-radius: 10px;
    padding: 16px 20px; margin: 12px 40px 0;
    border: 1px solid rgba(255,255,255,0.06);
}
.wag-specs-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.wag-specs-header svg { color: var(--wag-primary, #f7c502); }
.wag-specs-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.wag-spec-item {
    padding: 10px 12px; background: rgba(255,255,255,0.04); border-radius: 8px;
}
.wag-spec-label {
    font-size: 11px; color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px;
}
.wag-spec-val { display: flex; align-items: baseline; gap: 3px; }
.wag-spec-value { font-size: 20px; font-weight: 700; color: var(--wag-primary, #f7c502); }
.wag-spec-unit { font-size: 13px; color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
    .wag-specs-panel { margin: 8px 12px 0; padding: 12px; }
    .wag-specs-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .wag-spec-value { font-size: 16px; }
    .wag-info-btn { opacity: 1; } /* Always visible on touch */
    .wag-info-modal-content { padding: 20px 16px; }
}

/* ======================================= */
/* RESPONSIVE - Large Desktop (1920+)      */
/* ======================================= */
@media (min-width: 1920px) {
    .wag-header { padding: 24px 48px; }
    .wag-logo-text h1 { font-size: 28px; }
    .wag-price-box { right: 40px; top: 220px; max-width: 320px; min-width: 280px; }
    .wag-selected-panel { left: 40px; max-width: 160px; }
    .wag-product-image { max-width: 70%; max-height: 55vh; }
    .wag-navigation-bar { padding: 14px 48px; }
    .wag-btn-nav { padding: 14px 28px; font-size: 14px; }
    .wag-bottom-panel { padding: 14px 48px 20px; }
    .wag-carousel { padding: 10px 60px; gap: 16px; }
    .wag-carousel-item { width: 145px; }
    .wag-carousel-image { width: 145px; height: 100px; }
    .wag-tab { padding: 12px 26px; font-size: 13px; }
}

/* ==================== */
/* Model promo video    */
/* ==================== */
.wag-model-video {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    margin-bottom: 8px;
}
.wag-model-video-thumb {
    position: relative;
    width: 180px;
    min-width: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.wag-model-video-thumb:hover {
    transform: scale(1.05);
}
.wag-model-video-thumb img {
    width: 100%;
    display: block;
}
.wag-model-video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.85;
    transition: opacity 0.2s;
}
.wag-model-video-thumb:hover .wag-model-video-play {
    opacity: 1;
}
.wag-model-video-label {
    font-size: 14px;
    color: var(--wag-gold, #f7c502);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==================== */
/* Multi-select checkbox */
/* ==================== */
.wag-carousel-item[data-multi="1"]::after {
    content: '';
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
    transition: all 0.2s;
    z-index: 2;
}
.wag-carousel-item[data-multi="1"].selected::after {
    background: var(--wag-gold, #f7c502);
    border-color: var(--wag-gold, #f7c502);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 600px) {
    .wag-model-video-thumb { width: 140px; min-width: 140px; }
}

/* ======================================= */
/* BACKGROUND PICKER (under welcome text)  */
/* ======================================= */
.wag-bg-picker {
    position: absolute;
    top: 12px;
    left: 12px;
    transform: none;
    z-index: 80;
    display: none; /* shown by JS on step 0 */
    text-align: left;
}

/* BG Picker — section label */
.wag-bg-picker-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
    text-align: left;
}
/* BG Color row */
.wag-bg-color-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.wag-bg-color-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.wag-bg-color-custom {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}
.wag-bg-color-custom:hover {
    border-color: rgba(255,255,255,0.4);
}
.wag-bg-color-custom svg {
    pointer-events: none;
    opacity: 0.7;
}
.wag-bg-color-custom input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}
.wag-bg-picker-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: #111111;
    border: none;
    border-radius: 30px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.wag-bg-picker-toggle:hover {
    background: #333333;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}
.wag-bg-picker-toggle svg { flex-shrink: 0; stroke: #ffffff; }
.wag-bg-picker-toggle span { white-space: nowrap; }
.wag-bg-picker-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    transform: none;
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    width: 420px;
    max-width: calc(100vw - 24px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
}
.wag-bg-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.wag-bg-preset {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    background-color: rgba(255,255,255,0.05);
}
.wag-bg-preset:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}
.wag-bg-preset.active {
    border-color: var(--wag-primary, #f7c502);
    box-shadow: 0 0 0 2px var(--wag-primary, #f7c502);
}
.wag-bg-preset-reset {
    background: rgba(255, 255, 255, 0.06) !important;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.4);
}
.wag-bg-preset-reset:hover { color: rgba(255, 255, 255, 0.8); }
.wag-bg-upload-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; width: 100%; padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px; color: rgba(255, 255, 255, 0.5);
    font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.wag-bg-upload-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 768px) {
    .wag-bg-picker-panel { width: 320px; padding: 12px; }
    .wag-bg-picker-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .wag-bg-picker-toggle { padding: 10px 24px; font-size: 13px; }
}
@media (max-width: 480px) {
    .wag-bg-picker-panel { width: 280px; }
    .wag-bg-picker-toggle { padding: 10px 20px; font-size: 12px; }
}

/* ======================================= */
/* FLOATING VIDEO BUTTON (right side)      */
/* ======================================= */
.wag-video-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}
.wag-video-float:hover { transform: translateY(-50%) scale(1.05); }
.wag-video-float-thumb {
    position: relative;
    width: 160px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s;
}
.wag-video-float:hover .wag-video-float-thumb {
    border-color: var(--wag-primary, #f7c502);
}
.wag-video-float-thumb img { width: 100%; display: block; }
.wag-video-float-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9; transition: opacity 0.2s;
}
.wag-video-float:hover .wag-video-float-play { opacity: 1; }
.wag-video-float-label {
    margin-top: 8px;
    font-size: 11px; font-weight: 600;
    color: var(--wag-primary, #f7c502);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
@media (max-width: 1200px) {
    .wag-video-float { right: 10px; }
    .wag-video-float-thumb { width: 130px; }
}
@media (max-width: 768px) {
    .wag-video-float {
        right: 8px; top: auto; bottom: 200px;
        transform: none;
    }
    .wag-video-float:hover { transform: scale(1.05); }
    .wag-video-float-thumb { width: 100px; }
    .wag-video-float-label { font-size: 9px; }
}

/* Reset button */
#wag-btn-reset {
    opacity: 0.65;
    margin-right: 8px;
}
#wag-btn-reset:hover {
    opacity: 1;
}

/* ── Karuzela rodzin ze strzałkami ── */
#wag-family-cards {
    position: relative;
    display: flex;
    align-items: center;
}
.wag-family-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px;
    flex: 1;
}
.wag-family-scroll::-webkit-scrollbar { display: none; }
.wag-family-arrow {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .2s;
    line-height: 1;
}
.wag-family-arrow:hover { background: rgba(0,0,0,0.8); }
.wag-family-prev { margin-right: 6px; }
.wag-family-next { margin-left: 6px; }

.wag-category-tabs::-webkit-scrollbar { display: none; }

/* Dealer/login button */
.wag-dealer-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px;
    background: #111111; border: none; border-radius: 4px;
    color: #ffffff !important; text-decoration: none;
    font-family: 'Exo 2', sans-serif; font-size: 13px; font-weight: 600;
    white-space: nowrap; letter-spacing: 0.3px;
    transition: background .2s, opacity .2s;
}
.wag-dealer-btn:hover {
    background: #333333;
    opacity: 1;
}
.wag-dealer-btn svg { flex-shrink: 0; }

/* Info modal — link do strony produktu */
.wag-info-product-link {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 20px;
    background: var(--wag-primary, #f7c502);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.wag-info-product-link:hover { opacity: 0.85; }
.wag-family-info-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}

/* Przycisk Znajdź dealera */
.wag-btn-dealers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 38px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.wag-btn-dealers:hover {
    border-color: var(--wag-primary, #f7c502);
    color: var(--wag-primary, #f7c502);
}

/* Category Tabs Wrapper */
.wag-category-tabs-wrap {
    position: relative;
    z-index: 15;
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 6px 32px;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.wag-category-tabs-wrap::-webkit-scrollbar { display: none; }
.wag-tabs-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.wag-tabs-arrow:hover {
    background: var(--wag-primary, #f7c502);
    color: #000;
    border-color: var(--wag-primary, #f7c502);
}
.wag-tabs-arrow.hidden { opacity: 0; pointer-events: none; }

.wag-dealer-dist {
    color: var(--wag-primary, #f7c502);
    font-weight: 600;
    margin-left: 6px;
    font-size: 11px;
}
.wag-dealer-no-results {
    padding: 10px 14px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-style: italic;
}

.wag-dealer-search-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    position: relative;
}
.wag-btn-dealer-map {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    height: 42px;
    background: rgba(247,197,2,0.15);
    border: 1px solid rgba(247,197,2,0.4);
    color: #f7c502;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.wag-btn-dealer-map:hover { background: rgba(247,197,2,0.25); }

/* Pole dealera ukryte domyślnie - pojawia się tylko w formularzu */
#wag-dealer-field-wrap { display: none; }

/* Social Footer */
.wag-social-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.wag-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.wag-social-link:hover {
    background: var(--wag-primary, #f7c502);
    transform: translateY(-2px);
}
.wag-social-link svg { display: block; }
@media (max-width: 480px) {
    .wag-social-footer { gap: 10px; padding: 12px 16px; }
    .wag-social-link { width: 32px; height: 32px; }
}

/* ======================================= */
/* Styl zgodny z wieltonagro.com.pl        */
/* ======================================= */
.wag-header {
    background: #eeeeee !important;
    border-bottom: 3px solid var(--wag-primary, #f8c501);
}
.wag-logo-text h1,
.wag-logo-text span + span,
.wag-lang-btn {
    color: #222222 !important;
}
.wag-lang-btn {
    border-color: rgba(0,0,0,0.2) !important;
}
.wag-lang-btn:hover {
    background: rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.4) !important;
}
/* Stopka social media */
.wag-social-footer {
    background: #222222 !important;
    border-top: 3px solid var(--wag-primary, #f8c501) !important;
    backdrop-filter: none !important;
}
/* Czcionka Exo 2 dla całego konfiguratora */
#wag-configurator,
#wag-configurator * {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
/* Wygląd przycisków jak na wieltonagro.com.pl */
.wag-btn-nav,
.wag-submit-btn {
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}
/* Kolor primary button — żółty jak na wieltonagro */
.wag-tab.active {
    font-weight: 600 !important;
}

/* ======================================= */
/* Menu nawigacyjne — 1:1 wieltonagro.com.pl */
/* ======================================= */
.wag-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.wag-logo-link:hover {
    opacity: 0.85;
}
.wag-main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.wag-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}
.wag-nav-menu li {
    margin: 0;
    padding: 0;
}
.wag-nav-menu li a {
    display: block;
    padding: 8px 14px;
    color: #ffffff !important;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: color 0.15s ease;
    position: relative;
}
.wag-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--wag-primary, #f8c501);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.wag-nav-menu li a:hover {
    color: var(--wag-primary, #f8c501) !important;
}
.wag-nav-menu li a:hover::after {
    transform: scaleX(1);
}
/* Hamburger na mobile */
.wag-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #fff;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .wag-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #222222;
        border-top: 2px solid var(--wag-primary, #f8c501);
        z-index: 9999;
        padding: 8px 0;
    }
    .wag-main-nav.open {
        display: block;
    }
    .wag-nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .wag-nav-menu li {
        width: 100%;
    }
    .wag-nav-menu li a {
        padding: 10px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        font-size: 14px;
    }
    .wag-nav-menu li a::after {
        display: none;
    }
    .wag-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 8px;
    }
    .wag-header {
        position: relative;
        flex-wrap: nowrap;
    }
}
@media (max-width: 600px) {
    .wag-nav-menu li a {
        font-size: 13px;
        padding: 9px 20px;
    }
}

/* ======================================= */
/* Site header nav — 1:1 wieltonagro.com.pl*/
/* ======================================= */
.wag-site-header-inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
}
.wag-site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 32px;
}
.wag-site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.wag-site-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}
.wag-site-nav-menu li a {
    display: block;
    padding: 10px 14px;
    color: #222222 !important;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s ease;
}
.wag-site-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--wag-primary, #f8c501);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.wag-site-nav-menu li a:hover {
    color: var(--wag-primary, #f8c501) !important;
}
.wag-site-nav-menu li a:hover::after {
    transform: scaleX(1);
}
/* Mobile */
@media (max-width: 960px) {
    .wag-site-nav {
        display: none;
    }
    .wag-hamburger {
        display: flex !important;
    }
}
@media (min-width: 961px) {
    .wag-hamburger {
        display: none !important;
    }
    .wag-mobile-menu {
        display: none !important;
    }
}
/* Mobile menu lista */
.wag-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.wag-mobile-menu-list li a {
    display: block;
    padding: 11px 24px;
    color: #222222 !important;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.15s ease, background 0.15s ease;
}
.wag-mobile-menu-list li a:hover {
    color: var(--wag-primary, #f8c501) !important;
    background: rgba(255,255,255,0.05);
}

/* Ciemny tekst na jasnej karuzeli */
.wag-carousel-container .wag-carousel-name,
.wag-carousel-container .wag-carousel-price,
.wag-carousel-container .wag-carousel-label {
    color: #222222 !important;
}


/* ═══ P4 fix — label 'Podaj kolor/RAL' (hello-elementor nadpisywal kolor) ═══ */
#wag-custom-color-wrap {
    margin: 12px 0 !important;
    padding: 10px 14px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 8px !important;
    display: inline-flex;
    align-items: center !important;
    gap: 10px !important;
}
#wag-custom-color-wrap label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
#wag-custom-color-wrap input#wag-custom-color-input {
    width: 220px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    color: #222 !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}


/* ═══ P2 fix — przycisk 'Ustaw tlo' (hello-elementor nadpisywal style) ═══ */
.wag-bg-picker-toggle,
button.wag-bg-picker-toggle,
#wag-bg-picker-toggle {
    background: #111111 !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    text-decoration: none !important;
}
.wag-bg-picker-toggle:hover,
button.wag-bg-picker-toggle:hover,
#wag-bg-picker-toggle:hover {
    background: #333333 !important;
    background-color: #333333 !important;
    color: #ffffff !important;
}
.wag-bg-picker-toggle svg {
    stroke: #ffffff !important;
}
.wag-bg-picker-toggle span {
    color: #ffffff !important;
}


/* ═══ P6 fix — ZAMÓWIENIE i NASTĘPNY KROK byly zasloniete przez wag-main-nav (z-index 9999) ═══ */
.wag-price-box {
    z-index: 10000 !important;
}
.wag-navigation-bar {
    z-index: 10001 !important;
    position: relative !important;
}
/* Przycisk ZAMÓWIENIE wewnątrz wag-price-box — upewnij się że klikalny */
#wag-price-order-btn,
.wag-price-box-order {
    position: relative !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
}
/* Przyciski w dolnym pasie nawigacyjnym */
#wag-btn-next,
#wag-btn-back,
.wag-btn-nav {
    position: relative !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
}


/* ═══ P8 fix — modal 'Zamów wycenę' musi byc nad cala nawigacja ═══ */
/* Regresja po P6: podnioslem wag-navigation-bar do 10001, wag-price-box do 10000 */
/* zeby przebic stepper (z-index 9999), ale teraz modal z z-index 200 jest pod spodem */
.wag-form-overlay,
#wag-form-overlay {
    z-index: 99999 !important;
}
.wag-form-container {
    position: relative !important;
    z-index: 100000 !important;
}


/* ═══ OFFER BUTTON — drugi przycisk obok 'Zamow wycene' (tylko dla zalogowanych dealerow) ═══ */
.wag-price-box-offer {
    background: #2e7d32 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 16px !important;
    margin-top: 8px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: block !important;
    width: 100% !important;
    transition: background 0.2s !important;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3) !important;
}
.wag-price-box-offer:hover {
    background: #1b5e20 !important;
}
.wag-price-box-offer.hidden {
    display: none !important;
}


/* ═══ OFFER WORKFLOW — badge numeru oferty + status + przycisk wyslij ═══ */
.wag-offer-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    background: #f5a623;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}
/* Status badge dla statusu oferty - zielony, odrozniajacy od pozostalych */
.wag-status.wag-status--offer {
    background: #2e7d32 !important;
    color: #fff !important;
}
/* Przycisk Wyslij ofertę - zielony, identyczny styl jak przyciski outline ale akcent */
.wag-btn-success {
    background: #2e7d32 !important;
    color: #fff !important;
    border: 1px solid #2e7d32 !important;
    transition: background 0.2s !important;
}
.wag-btn-success:hover {
    background: #1b5e20 !important;
    border-color: #1b5e20 !important;
}


/* ═══ P1 fix v2 — kafelki rodzin: lepiej dopasowane rozmiary, bez nachodzenia na nagłówek ═══ */
/* DESKTOP: 5 kart w rzedzie (5x200=1000px+gapy~80=1080 < 1200 max-width) */
@media (min-width: 1025px) {
    .wag-family-cards {
        max-width: min(1200px, 95%);
        top: 58% !important;  /* niżej, żeby nie zachodzić na napis "Witaj" */
        gap: 16px !important;
    }
    .wag-family-card {
        width: 200px !important;
    }
    .wag-family-card-image {
        height: 140px !important;
        padding: 12px !important;
    }
    .wag-family-card-name {
        font-size: 13px !important;
    }
}

/* MOBILE: powrot do scrollowania horyzontalnego (nie ma sensu wrap przy malej szerokosci) */
@media (max-width: 1024px) {
    .wag-family-cards {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        max-width: 95%;
        padding-bottom: 12px !important;
        justify-content: flex-start !important;
    }
    .wag-family-card {
        scroll-snap-align: start;
    }
}

/* Strzalki niepotrzebne (na desktopie wszystko widac, na mobile jest scroll natywny) */
.wag-family-arrow,
.wag-family-prev,
.wag-family-next {
    display: none !important;
}

/* Wewnetrzny scroll wrapper (uzywany w innych miejscach niz tile-wybor) - zostaw bez zmian */


/* ═══ FIX: wag-price-box-offer musi byc klikalne, regresja po P6 ═══ */
.wag-price-box-offer.fixed-z,
.wag-price-box-offer {
    position: relative !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
}


/* ════════ PRICE BOX HEIGHT FIX — wyżej + bez ucinania offer-btn ════════ */
.wag-price-box {
    top: 90px !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
}
/* Wewnatrz price-box - zarezerwuj miejsce dla obu przyciskow */
.wag-price-box-content {
    padding-bottom: 20px !important;
}


/* ════════ KAFELKI FAMILY V3 — na właściwy element wag-family-scroll ════════ */
/* Kafelki rodzin renderowane są w div.wag-family-scroll wewnątrz #wag-family-cards */
@media (min-width: 1025px) {
    .wag-family-scroll {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        justify-content: center !important;
        gap: 18px !important;
        padding: 8px 4px !important;
    }
    /* Strzałki prev/next niepotrzebne gdy kafelki sa w rzedach */
    .wag-family-arrow,
    .wag-family-prev,
    .wag-family-next {
        display: none !important;
    }
}


/* ════════ MODAL OFFER OVERLAY z-index — siostrzany do P8 fix dla form-overlay ════════ */
#wag-offer-overlay {
    z-index: 99999 !important;
}


/* ════════ OFFER OVERLAY HARD VISIBILITY — gdy aktywny, ZAWSZE widoczny ════════ */
/* Najwyzsza specyficznosc + !important + reset wszystkich cech ukrywających */
body #wag-offer-overlay.active,
html body #wag-offer-overlay.active,
#wag-offer-overlay.wag-form-overlay.active {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(0,0,0,0.85) !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
    overflow: auto !important;
}
/* Wyniesc kontener formularza nad inne elementy */
body #wag-offer-overlay.active > .wag-form-container {
    position: relative !important;
    z-index: 1000000 !important;
    background: #2a2a2a !important;
    color: #fff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}


/* ════════ CUSTOM COLOR HIDE FIX - przebija display:inline-flex !important ════════ */
#wag-custom-color-wrap[style*="display: none"],
#wag-custom-color-wrap[style*="display:none"],
#wag-custom-color-wrap.wag-hidden {
    display: none !important;
}
