/**
 * WooCommerce Product Configurator - Professional Styles
 * Ultra-Premium Design System
 * Version: 4.7.0 - PERFEKCYJNA WERSJA
 */

/* ===== CSS Variables & Design System ===== */
:root {
    /* Primary Colors - Elegant Red Theme */
    --wcpc-primary: #dc2626;
    --wcpc-primary-dark: #b91c1c;
    --wcpc-primary-darker: #991b1b;
    --wcpc-primary-light: #ef4444;
    --wcpc-primary-lighter: #f87171;
    --wcpc-primary-bg: #fee2e2;
    --wcpc-primary-bg-soft: #fef2f2;
    
    /* Neutral Colors */
    --wcpc-gray-50: #f9fafb;
    --wcpc-gray-100: #f3f4f6;
    --wcpc-gray-200: #e5e7eb;
    --wcpc-gray-300: #d1d5db;
    --wcpc-gray-400: #9ca3af;
    --wcpc-gray-500: #6b7280;
    --wcpc-gray-600: #4b5563;
    --wcpc-gray-700: #374151;
    --wcpc-gray-800: #1f2937;
    --wcpc-gray-900: #111827;
    
    /* Success & Error States */
    --wcpc-success: #10b981;
    --wcpc-success-light: #d1fae5;
    --wcpc-error: #ef4444;
    --wcpc-error-light: #fee2e2;
    
    /* Typography - Improved Scale */
    --wcpc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --wcpc-text-xs: 0.75rem;     /* 12px */
    --wcpc-text-sm: 0.875rem;    /* 14px */
    --wcpc-text-base: 1rem;      /* 16px */
    --wcpc-text-lg: 1.125rem;    /* 18px */
    --wcpc-text-xl: 1.25rem;     /* 20px */
    --wcpc-text-2xl: 1.5rem;     /* 24px */
    
    /* Line Heights */
    --wcpc-leading-tight: 1.25;
    --wcpc-leading-normal: 1.5;
    --wcpc-leading-relaxed: 1.75;
    
    /* Spacing System - More Consistent */
    --wcpc-space-1: 0.25rem;     /* 4px */
    --wcpc-space-2: 0.5rem;      /* 8px */
    --wcpc-space-3: 0.75rem;     /* 12px */
    --wcpc-space-4: 1rem;        /* 16px */
    --wcpc-space-5: 1.25rem;     /* 20px */
    --wcpc-space-6: 1.5rem;      /* 24px */
    --wcpc-space-8: 2rem;        /* 32px */
    --wcpc-space-10: 2.5rem;     /* 40px */
    --wcpc-space-12: 3rem;       /* 48px */
    
    /* Border Radius */
    --wcpc-radius-sm: 0.375rem;  /* 6px */
    --wcpc-radius: 0.5rem;       /* 8px */
    --wcpc-radius-lg: 0.75rem;   /* 12px */
    --wcpc-radius-full: 9999px;
    
    /* Shadows - Refined */
    --wcpc-shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --wcpc-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --wcpc-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --wcpc-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --wcpc-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    
    /* Transitions */
    --wcpc-transition-fast: 150ms ease;
    --wcpc-transition: 200ms ease;
    --wcpc-transition-slow: 300ms ease;
}

/* ===== Base Styles - PERFEKCYJNE ===== */
.wcpc-container {
    font-family: var(--wcpc-font-sans);
    font-size: var(--wcpc-text-base);
    color: var(--wcpc-gray-800);
    background: white;
    border-radius: var(--wcpc-radius-lg);
    overflow: hidden;
    position: relative;
}

.wcpc-container * {
    box-sizing: border-box;
}

/* ===== Header Section - KOMPAKTOWY ===== */
.wcpc-header {
    background: white;
    color: var(--wcpc-gray-800);
    padding: var(--wcpc-space-4) 0;
    border-bottom: 1px solid var(--wcpc-gray-100);
}

.wcpc-header-inner {
    max-width: 100%;
}

.wcpc-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--wcpc-space-4);
}

.wcpc-title {
    margin: 0;
    font-size: var(--wcpc-text-2xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-3);
    color: var(--wcpc-primary);
    line-height: var(--wcpc-leading-tight);
}

.wcpc-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    opacity: 0.9;
    flex-shrink: 0;
}

.wcpc-price-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wcpc-space-1);
}

.wcpc-price-label small {
    display: block;
    font-size: var(--wcpc-text-sm);
    color: var(--wcpc-gray-600);
    line-height: var(--wcpc-leading-normal);
    margin: 0;
}

.wcpc-price-label strong {
    font-size: var(--wcpc-text-xl);
    font-weight: 700;
    color: var(--wcpc-gray-900);
    line-height: var(--wcpc-leading-tight);
}

/* Progress Section - KOMPAKTOWY */
.wcpc-progress-section {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-3);
    padding: var(--wcpc-space-3);
    background: var(--wcpc-gray-50);
    border-radius: var(--wcpc-radius-lg);
    margin-bottom: var(--wcpc-space-4);
}

.wcpc-progress-info {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-3);
    font-size: var(--wcpc-text-sm);
    flex-shrink: 0;
}

.wcpc-step-text {
    color: var(--wcpc-gray-600);
    line-height: var(--wcpc-leading-normal);
}

.wcpc-step-count {
    font-weight: 600;
    color: var(--wcpc-gray-900);
    font-size: var(--wcpc-text-base);
}

.wcpc-progress-track {
    flex: 1;
    height: 6px;
    background: var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius-full);
    overflow: hidden;
    position: relative;
}

.wcpc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wcpc-primary), var(--wcpc-primary-dark));
    border-radius: var(--wcpc-radius-full);
    transition: width var(--wcpc-transition-slow);
    position: relative;
}

.wcpc-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(30px); }
}

/* ===== Form Section ===== */
.wcpc-form {
    padding: 0;
}



/* Option Groups - ULTRA MINIMALISTYCZNE */
.wcpc-option-group {
    margin-bottom: var(--wcpc-space-3);
    padding: var(--wcpc-space-3);
    background: var(--wcpc-gray-50);
    border: 2px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius-lg);
    transition: all var(--wcpc-transition);
}

.wcpc-option-group:hover {
    border-color: var(--wcpc-primary-light);
    box-shadow: var(--wcpc-shadow-md);
    transform: translateY(-1px);
}

.wcpc-option-group.active {
    border-color: var(--wcpc-primary);
    background: white;
    box-shadow: var(--wcpc-shadow-lg);
}

/* Option Header - ULTRA MINIMALISTYCZNY */
.wcpc-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--wcpc-space-2);
}

.wcpc-option-description, .wcpc-image-description {
    font-size: var(--wcpc-text-xs);
    color: var(--wcpc-gray-600);
    line-height: var(--wcpc-leading-normal);
    margin-top: var(--wcpc-space-1);
}

.wcpc-option-label {
    font-weight: 600;
    font-size: var(--wcpc-text-lg);
    color: var(--wcpc-gray-900);
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-2);
    line-height: var(--wcpc-leading-tight);
}

.wcpc-required-mark {
    color: var(--wcpc-primary);
    font-weight: 700;
    font-size: var(--wcpc-text-lg);
}

.wcpc-option-status {
    display: flex;
    border-radius: var(--wcpc-radius);
    background: var(--wcpc-primary);
    padding: var(--wcpc-space-2) var(--wcpc-space-3);
    align-items: center;
    gap: var(--wcpc-space-2);
    opacity: 0;
    transition: opacity var(--wcpc-transition);
    flex-shrink: 0;
}

.wcpc-option-group.active .wcpc-option-status {
    opacity: 1;
}

.wcpc-check-icon {
    width: 14px;
    height: 14px;
    fill: white;
}

.wcpc-status-text {
    font-size: var(--wcpc-text-xs);
    color: white;
    font-weight: 600;
    line-height: var(--wcpc-leading-normal);
}

/* ===== Input Styles - PERFEKCYJNE ===== */
.wcpc-input {
    width: 100%;
    padding: var(--wcpc-space-3) var(--wcpc-space-3);
    border: 2px solid var(--wcpc-gray-300);
    border-radius: var(--wcpc-radius);
    font-size: var(--wcpc-text-base);
    font-family: inherit;
    transition: all var(--wcpc-transition);
    background: white;
}

.wcpc-input:hover {
    border-color: var(--wcpc-gray-400);
}

.wcpc-input:focus {
    outline: none;
    border-color: var(--wcpc-primary);
    box-shadow: 0 0 0 3px var(--wcpc-primary-bg);
}

.wcpc-input::placeholder {
    color: var(--wcpc-gray-400);
}

/* Radio Input Hidden */
.wcpc-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ===== Size Input ===== */
.wcpc-size-container {
    display: flex;
    flex-direction: column;
    gap: var(--wcpc-space-4);
}

.wcpc-size-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--wcpc-space-3);
}

.wcpc-size-input-group {
    position: relative;
}

.wcpc-size-separator {
    color: var(--wcpc-gray-400);
    font-weight: 600;
    font-size: var(--wcpc-text-lg);
}

.wcpc-input-unit {
    position: absolute;
    right: var(--wcpc-space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--wcpc-gray-500);
    font-size: var(--wcpc-text-sm);
    pointer-events: none;
}

/* Size Preview */
.wcpc-size-preview {
    text-align: center;
}

.wcpc-preview-label {
    font-size: var(--wcpc-text-sm);
    color: var(--wcpc-gray-600);
    margin-bottom: var(--wcpc-space-2);
}

.wcpc-preview-viewport {
    height: 120px;
    background: white;
    border: 1px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcpc-preview-shape {
    background: var(--wcpc-primary-bg);
    border: 2px solid var(--wcpc-primary);
    border-radius: var(--wcpc-radius-sm);
    padding: var(--wcpc-space-3);
    transition: all var(--wcpc-transition);
}

.wcpc-preview-dimensions {
    font-size: var(--wcpc-text-sm);
    font-weight: 600;
    color: var(--wcpc-primary-dark);
}

.wcpc-button-description {
    font-size: var(--wcpc-text-xs);
    text-align: center;
}

/* ===== UJEDNOLICONE STYLE DLA WSZYSTKICH TYPÓW OPCJI ===== */

/* Wspólna siatka dla wszystkich typów */
.wcpc-radio-buttons,
.wcpc-radio-cards,
.wcpc-color-swatches,
.wcpc-gallery-grid,
.wcpc-gallery-large {
    display: grid;
    gap: var(--wcpc-space-3);
}

/* Adaptacyjna siatka dla większości typów */
.wcpc-radio-buttons,
.wcpc-radio-cards,
.wcpc-color-swatches {
    grid-template-columns: 1fr;
    width: 100%;
}

/* Galerie - specjalne style dla równych kart */
.wcpc-gallery-grid,
.wcpc-gallery-large {
    display: grid;
    gap: var(--wcpc-space-4);
}

/* Mniejsze obrazki - 4 w rzędzie */
.wcpc-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* Większe obrazki - 3 w rzędzie */
.wcpc-gallery-large {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Dla obrazków w innych sekcjach - dostosowanie */
.wcpc-radio-buttons .wcpc-image-option,
.wcpc-color-swatches .wcpc-image-option {
    height: 100%;
}

/* Galeria obrazów jako radio buttons */
.wcpc-radio-buttons.wcpc-has-images {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Specjalne style dla pergoli/tkanin */
.wcpc-option-group[data-option-type="image"] .wcpc-radio-buttons,
.wcpc-option-group[data-option-type="gallery"] .wcpc-radio-buttons {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--wcpc-space-4);
}

/* Wspólny kontener dla wszystkich opcji */
.wcpc-radio-button,
.wcpc-radio-card,
.wcpc-color-swatch,
.wcpc-image-option {
    cursor: pointer;
    position: relative;
}

/* Ukrycie inputów radio */
.wcpc-radio-button input,
.wcpc-radio-card input,
.wcpc-color-swatch input,
.wcpc-image-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ===== UJEDNOLICONY STYLE KART ===== */

/* Bazowy styl dla wszystkich kart - ULTRA MINIMALISTYCZNY */
.wcpc-button-content,
.wcpc-card-content,
.wcpc-swatch-content,
.wcpc-image-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--wcpc-space-2);
    background: white;
    border: 2px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius-lg);
    transition: all var(--wcpc-transition);
    justify-content: center;
    gap: 0px;
    min-height: 72px;
    position: relative;
}

/* Radio cards - wersja pozioma - PERFEKCYJNA */
.wcpc-card-content {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--wcpc-space-2);
    min-height: 48px;
    padding: var(--wcpc-space-2);
}

/* Hover dla wszystkich */
.wcpc-radio-button:hover .wcpc-button-content,
.wcpc-radio-card:hover .wcpc-card-content,
.wcpc-color-swatch:hover .wcpc-swatch-content,
.wcpc-image-option:hover .wcpc-image-content {
    border-color: var(--wcpc-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--wcpc-shadow-md);
}

/* Stan zaznaczony dla wszystkich */
.wcpc-radio-input:checked + .wcpc-button-content,
.wcpc-radio-input:checked + .wcpc-card-content,
.wcpc-radio-input:checked + .wcpc-swatch-content,
.wcpc-radio-input:checked + .wcpc-image-content {
    border-color: var(--wcpc-primary);
    background: var(--wcpc-primary-bg-soft);
    box-shadow: var(--wcpc-shadow-lg);
}

/* ===== IKONY I OBRAZY ===== */

/* Ikony dla radio cards - PERFEKCYJNE */
.wcpc-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.wcpc-card-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--wcpc-gray-400);
    transition: fill var(--wcpc-transition);
}

.wcpc-radio-input:checked + .wcpc-card-content .wcpc-card-icon svg {
    fill: var(--wcpc-primary);
}

/* Kółka kolorów - PERFEKCYJNE */
.wcpc-swatch-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--wcpc-radius-full);
    position: relative;
    border: 3px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    transition: all var(--wcpc-transition);
}

.wcpc-color-swatch:hover .wcpc-swatch-circle {
    transform: scale(1.1);
    box-shadow: var(--wcpc-shadow-md);
}

.wcpc-radio-input:checked + .wcpc-swatch-content .wcpc-swatch-circle {
    border-color: var(--wcpc-primary);
    box-shadow: 0 0 0 4px var(--wcpc-primary-bg);
}

/* Znacznik zaznaczenia - PERFEKCYJNY */
.wcpc-swatch-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    fill: white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity var(--wcpc-transition);
}

.wcpc-radio-input:checked + .wcpc-swatch-content .wcpc-swatch-check {
    opacity: 1;
}

/* ===== ETYKIETY I CENY - UJEDNOLICONE ===== */

/* Główna etykieta dla wszystkich typów - MINIMALISTYCZNA */
.wcpc-button-label,
.wcpc-card-label,
.wcpc-swatch-label,
.wcpc-image-label {
    font-weight: 600;
    font-size: var(--wcpc-text-sm);
    color: var(--wcpc-gray-800);
    text-align: center;
    margin-bottom: var(--wcpc-space-1);
    line-height: var(--wcpc-leading-tight);
}

/* Etykiety obrazów - specjalne - MINIMALISTYCZNE */
.wcpc-image-label {
    font-size: var(--wcpc-text-sm);
    margin-bottom: var(--wcpc-space-1);
    line-height: var(--wcpc-leading-normal);
}

/* Informacje dla kart (tylko radio cards) */
.wcpc-card-info {
    flex: 1;
    text-align: left;
}

.wcpc-card-info .wcpc-card-label {
    text-align: left;
    display: block;
    margin-bottom: var(--wcpc-space-1);
    font-size: var(--wcpc-text-base);
}

/* Opis (tam gdzie występuje) - MINIMALISTYCZNY */
.wcpc-button-description {
    font-size: var(--wcpc-text-xs);
    color: var(--wcpc-gray-600);
    text-align: center;
    margin-bottom: var(--wcpc-space-1);
    line-height: var(--wcpc-leading-normal);
}

/* UJEDNOLICONE CENY - MINIMALISTYCZNE */
.wcpc-button-price,
.wcpc-card-price,
.wcpc-swatch-price,
.wcpc-image-price {
    font-size: var(--wcpc-text-sm);
    background: var(--wcpc-primary);
    color: white;
    font-weight: 600;
    padding: var(--wcpc-space-1) var(--wcpc-space-2);
    border-radius: var(--wcpc-radius);
    display: inline-block;
    line-height: var(--wcpc-leading-tight);
    transition: all var(--wcpc-transition);
}

/* Hover dla cen */
.wcpc-radio-button:hover .wcpc-button-price,
.wcpc-radio-card:hover .wcpc-card-price,
.wcpc-color-swatch:hover .wcpc-swatch-price,
.wcpc-image-option:hover .wcpc-image-price {
    background: var(--wcpc-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--wcpc-shadow-sm);
}

/* Ceny dla obrazków - specjalne - MINIMALISTYCZNE */
.wcpc-image-price {
    margin-top: var(--wcpc-space-1);
}

/* Specjalne dostosowanie dla kart poziomych - MINIMALISTYCZNE */
.wcpc-card-info .wcpc-card-price {
    margin-top: var(--wcpc-space-1);
    display: inline-block;
}

/* ===== GALERIE OBRAZÓW - NAPRAWIONE STYLE ===== */

/* Kontener dla opcji obrazkowych */
.wcpc-image-option {
    cursor: pointer;
    position: relative;
    height: 100%;
}

/* Główny kontener ze stylem karty */
.wcpc-image-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border: 2px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius-lg);
    overflow: hidden;
    transition: all var(--wcpc-transition);
}

/* Wrapper dla obrazu */
.wcpc-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--wcpc-gray-100);
}

/* Proporcje dla różnych typów galerii */
.wcpc-gallery-grid .wcpc-image-wrapper {
    padding-bottom: 100%; /* Kwadratowe */
}

.wcpc-gallery-large .wcpc-image-wrapper {
    padding-bottom: 75%; /* Format 4:3 */
}

/* Domyślne proporcje dla innych galerii */
.wcpc-radio-buttons .wcpc-image-wrapper,
.wcpc-color-swatches .wcpc-image-wrapper {
    padding-bottom: 80%; /* Lekko prostokątne */
}

/* Obrazek */
.wcpc-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform var(--wcpc-transition);
}

/* Informacje pod obrazem - ujednolicone */
.wcpc-image-info {
    padding: var(--wcpc-space-3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: var(--wcpc-space-2);
}

/* Hover dla opcji obrazkowych */
.wcpc-image-option:hover .wcpc-image-content {
    border-color: var(--wcpc-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--wcpc-shadow-md);
}

.wcpc-image-option:hover .wcpc-image-wrapper img {
    transform: scale(1.05);
}

/* Stan zaznaczony */
.wcpc-radio-input:checked + .wcpc-image-content {
    border-color: var(--wcpc-primary);
    background: var(--wcpc-primary-bg-soft);
}

/* Nakładka na zaznaczony obraz */
.wcpc-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(220, 38, 38, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--wcpc-transition);
    z-index: 1;
}

.wcpc-radio-input:checked + .wcpc-image-content .wcpc-image-overlay {
    opacity: 1;
}

.wcpc-image-check {
    width: 32px;
    height: 32px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Informacje pod obrazem */
.wcpc-image-info {
    padding: var(--wcpc-space-2) 0;
    text-align: center;
    width: 100%;
}

/* ===== Summary Section ===== */
.wcpc-summary-section {
    background: var(--wcpc-gray-50);
    padding: var(--wcpc-space-6);
    border-top: 2px solid var(--wcpc-primary-bg);
}

.wcpc-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--wcpc-space-5);
}

.wcpc-summary-title {
    margin: 0;
    font-size: var(--wcpc-text-lg);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-2);
}

.wcpc-summary-icon {
    width: 20px;
    height: 20px;
    fill: var(--wcpc-primary);
}

.wcpc-reset-button {
    display: flex !important;
    align-items: center !important;
    gap: var(--wcpc-space-2) !important;
    padding: var(--wcpc-space-2) var(--wcpc-space-3) !important;
    background: white !important;
    border: 1px solid var(--wcpc-gray-300) !important;
    border-radius: var(--wcpc-radius) !important;
    color: var(--wcpc-gray-600) !important;
    font-size: var(--wcpc-text-xs) !important;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--wcpc-transition);
}

.wcpc-reset-button:hover {
    color: var(--wcpc-primary);
    border-color: var(--wcpc-primary);
}

.wcpc-reset-button svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Selected Options */
.wcpc-selected-options {
    background: white;
    border: 1px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius);
    padding: var(--wcpc-space-4);
    margin-bottom: var(--wcpc-space-4);
    min-height: 80px;
}

.wcpc-empty-state {
    text-align: center;
    color: var(--wcpc-gray-400);
}

.wcpc-empty-state svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    margin-bottom: var(--wcpc-space-2);
}

.wcpc-selected-item {
    display: flex;
    justify-content: space-between;
    padding: var(--wcpc-space-2) 0;
    border-bottom: 1px solid var(--wcpc-gray-100);
    font-size: var(--wcpc-text-sm);
}

.wcpc-selected-item:last-child {
    border-bottom: none;
}

.wcpc-selected-label {
    font-weight: 500;
    color: var(--wcpc-gray-700);
}

.wcpc-selected-value {
    color: var(--wcpc-gray-900);
}

/* Price Breakdown */
.wcpc-price-breakdown {
    background: white;
    border: 1px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius);
    padding: var(--wcpc-space-4);
    margin-bottom: var(--wcpc-space-4);
}

.wcpc-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--wcpc-space-2) 0;
    font-size: var(--wcpc-text-sm);
}

.wcpc-price-label {
    color: var(--wcpc-gray-600);
}

.wcpc-price-value {
    font-weight: 600;
    color: var(--wcpc-gray-800);
}

.wcpc-price-divider {
    height: 1px;
    background: var(--wcpc-gray-200);
    margin: var(--wcpc-space-2) 0;
}

.wcpc-price-total {
    font-size: var(--wcpc-text-base);
    padding-top: var(--wcpc-space-3);
}

.wcpc-price-total .wcpc-price-label {
    font-weight: 600;
    color: var(--wcpc-gray-800);
}

.wcpc-price-total .wcpc-price-value {
    font-size: var(--wcpc-text-lg);
    color: var(--wcpc-primary);
}

/* Pallet Pricing Sections - MINIMALISTYCZNY DESIGN */
.wcpc-pallet-price {
    background: var(--wcpc-gray-50);
    border: 1px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius-sm);
    margin: var(--wcpc-space-3) 0;
    padding: var(--wcpc-space-3) var(--wcpc-space-4);
    transition: all 0.2s ease;
}

.wcpc-pallet-price:hover {
    border-color: var(--wcpc-gray-300);
    background: white;
}

.wcpc-pallet-price .wcpc-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
}

.wcpc-pallet-price .wcpc-price-label {
    font-weight: 500;
    color: var(--wcpc-gray-600);
    font-size: var(--wcpc-text-sm);
    margin: 0;
}

.wcpc-pallet-price .wcpc-price-value {
    font-weight: 600;
    color: var(--wcpc-gray-900);
    font-size: var(--wcpc-text-lg);
    margin: 0;
}

.wcpc-pallet-info {
    background: var(--wcpc-gray-50);
    border: 1px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius-sm);
    padding: var(--wcpc-space-2) var(--wcpc-space-3);
    margin: var(--wcpc-space-2) 0;
    font-size: var(--wcpc-text-xs);
    color: var(--wcpc-gray-600);
    text-align: center;
    transition: all 0.2s ease;
}

.wcpc-pallet-info:hover {
    border-color: var(--wcpc-gray-300);
    background: white;
}

.wcpc-pallet-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wcpc-space-1);
    font-weight: 500;
}

.wcpc-pallet-quantity {
    font-weight: 600;
    color: var(--wcpc-gray-800);
}

/* Subtelne animacje */
.wcpc-pallet-price, 
.wcpc-pallet-info {
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.wcpc-pallet-price.wcpc-pallet-reveal,
.wcpc-pallet-info.wcpc-pallet-reveal {
    opacity: 1;
    transform: translateY(0);
}

.wcpc-pallet-info.wcpc-pallet-reveal {
    transition-delay: 0.1s;
}

/* Responsive design */
@media (max-width: 768px) {
    .wcpc-pallet-price {
        padding: var(--wcpc-space-2) var(--wcpc-space-3);
    }
    
    .wcpc-pallet-price .wcpc-price-value {
        font-size: var(--wcpc-text-base);
    }
    
    .wcpc-pallet-info {
        font-size: var(--wcpc-text-xs);
        padding: var(--wcpc-space-1) var(--wcpc-space-2);
    }
}

/* Listing produktów - jednostki cenowe */
.wcpc-listing-price {
    display: inline-block;
    position: relative;
}

.wcpc-unit-suffix {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    margin-left: 2px;
}

.wcpc-pallet-note {
    display: flex !important;
    align-items: center !important;
    font-size: var(--wcpc-text-xs) !important;
    color: #0284c7 !important;
    margin-top: 4px !important;
    font-weight: 600 !important;
    background: rgba(2, 132, 199, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(2, 132, 199, 0.2);
    line-height: 1.2 !important;
    transition: all 0.2s ease;
}

.wcpc-pallet-note:hover {
    background: rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.3);
    transform: translateY(-1px);
}

.wcpc-pallet-note svg {
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Responsive dla listingu */
@media (max-width: 768px) {
    .wcpc-unit-suffix {
        font-size: 0.8em;
    }
    
    .wcpc-pallet-note {
        font-size: var(--wcpc-text-xs) !important;
        padding: 2px 6px;
    }
    
    .wcpc-pallet-note svg {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }
}

/* Cart Section */
.wcpc-cart-section {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-4);
    margin-bottom: var(--wcpc-space-4);
    width: 100%;
}

.wcpc-quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-2);
}

.wcpc-quantity-label {
    font-weight: 500;
    color: var(--wcpc-gray-700);
}

.wcpc-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--wcpc-gray-300);
    border-radius: var(--wcpc-radius);
    overflow: hidden;
}

.wcpc-qty-button {
    width: 48px !important;
    height: 36px !important;
    background: white;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all var(--wcpc-transition);
}

.wcpc-qty-button:hover {
    background: #C32828 !important;
    color: white !important;
}

.wcpc-qty-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.wcpc-quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: var(--wcpc-text-base);
}

.wcpc-final-price {
    margin: 0 auto;
    text-align: center;
}

.wcpc-final-label {
    display: block;
    font-size: var(--wcpc-text-sm);
    color: var(--wcpc-gray-600);
    margin-bottom: var(--wcpc-space-1);
}

.wcpc-final-amount {
    display: block;
    font-size: var(--wcpc-text-xl);
    font-weight: 700;
    color: var(--wcpc-primary);
}

/* Add to Cart Button */
.wcpc-add-to-cart-button {
    width: 100% !important;
    display: flex;
    padding: var(--wcpc-space-4) var(--wcpc-space-5);
    background: #C32828 !important;
    color: white !important;
    padding: 18px 18px 18px 18px !important; 
    border: none;
    border-radius: var(--wcpc-radius);
    font-size: var(--wcpc-text-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wcpc-space-2);
    transition: all var(--wcpc-transition);
    position: relative;
    overflow: hidden;
}

.wcpc-add-to-cart-button:hover:not(:disabled) {
    background: var(--wcpc-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--wcpc-shadow-lg);
}

.wcpc-add-to-cart-button:active:not(:disabled) {
    transform: translateY(0);
}

.wcpc-add-to-cart-button:disabled {
    background: var(--wcpc-gray-300);
    cursor: not-allowed;
}

.wcpc-cart-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wcpc-button-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
}

.wcpc-add-to-cart-button.loading .wcpc-button-text,
.wcpc-add-to-cart-button.loading .wcpc-cart-icon {
    opacity: 0;
}

.wcpc-add-to-cart-button.loading .wcpc-button-loader {
    opacity: 1;
}

/* ===== Sticky Bar ===== */
.wcpc-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--wcpc-primary-bg);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    transform: translateY(100%);
    transition: transform var(--wcpc-transition-slow);
    z-index: 999;
}

.wcpc-sticky-bar.visible {
    transform: translateY(0);
}

.wcpc-sticky-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--wcpc-space-3) var(--wcpc-space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcpc-sticky-info {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-4);
}

.wcpc-sticky-progress {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-2);
}

.wcpc-sticky-label {
    font-size: var(--wcpc-text-sm);
    color: var(--wcpc-gray-600);
}

.wcpc-sticky-counter {
    font-weight: 600;
    color: var(--wcpc-primary);
}

.wcpc-sticky-price {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-2);
}

.wcpc-sticky-amount {
    font-size: var(--wcpc-text-lg);
    font-weight: 700;
    color: var(--wcpc-primary);
}

.wcpc-sticky-button {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-2);
    padding: var(--wcpc-space-3) var(--wcpc-space-4);
    background: var(--wcpc-primary);
    color: white;
    border: none;
    border-radius: var(--wcpc-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--wcpc-transition);
}

.wcpc-sticky-button:hover:not(:disabled) {
    background: var(--wcpc-primary-dark);
}

.wcpc-sticky-button:disabled {
    background: var(--wcpc-gray-300);
    cursor: not-allowed;
}

.wcpc-sticky-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===== Loading Overlay ===== */
.wcpc-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: all var(--wcpc-transition);
}

.wcpc-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wcpc-loading-content {
    text-align: center;
}

.wcpc-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--wcpc-gray-200);
    border-top-color: var(--wcpc-primary);
    border-radius: 50%;
    margin: 0 auto var(--wcpc-space-3);
    animation: spin 0.8s linear infinite;
}

.wcpc-loading-text {
    font-size: var(--wcpc-text-sm);
    color: var(--wcpc-gray-600);
}

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

/* ===== Toast Notifications ===== */
.wcpc-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.wcpc-toast {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-3);
    min-width: 300px;
    max-width: 400px;
    padding: var(--wcpc-space-3) var(--wcpc-space-4);
    background: white;
    border-radius: var(--wcpc-radius);
    box-shadow: var(--wcpc-shadow-xl);
    margin-bottom: var(--wcpc-space-3);
    transform: translateX(120%);
    animation: slideIn var(--wcpc-transition-slow) forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

.wcpc-toast.success {
    border-left: 4px solid var(--wcpc-success);
}

.wcpc-toast.error {
    border-left: 4px solid var(--wcpc-error);
}

.wcpc-toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wcpc-toast.success .wcpc-toast-icon {
    fill: var(--wcpc-success);
}

.wcpc-toast.error .wcpc-toast-icon {
    fill: var(--wcpc-error);
}

.wcpc-toast-message {
    flex: 1;
    font-size: var(--wcpc-text-sm);
    color: var(--wcpc-gray-800);
}

.wcpc-toast-close {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wcpc-gray-400);
    transition: color var(--wcpc-transition);
}

.wcpc-toast-close:hover {
    color: var(--wcpc-gray-600);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    :root {
        --wcpc-text-lg: 1rem;
        --wcpc-text-xl: 1.125rem;
    }
    
    .wcpc-header {
        padding: 20px 0;
    }
    
    .wcpc-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--wcpc-space-3);
    }
    
    .wcpc-price-label {
        text-align: left;
    }
    
    
    .wcpc-option-group {
        padding: var(--wcpc-space-3);
        margin-bottom: var(--wcpc-space-4);
    }
    
    .wcpc-size-inputs {
        grid-template-columns: 1fr;
        gap: var(--wcpc-space-3);
    }
    
    .wcpc-size-separator {
        display: none;
    }
    
    /* Wszystkie typy opcji w jednej kolumnie na mobile */
    .wcpc-radio-buttons,
    .wcpc-radio-cards,
    .wcpc-color-swatches {
        grid-template-columns: 1fr;
    }
    
    /* Galerie obrazów - responsywne */
    .wcpc-gallery-grid,
    .wcpc-gallery-large,
    .wcpc-radio-buttons.wcpc-has-images {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--wcpc-space-3);
    }
    
    /* Zachowaj proporcje dla obrazków */
    .wcpc-image-wrapper {
        padding-bottom: 100% !important;
    }
    
    .wcpc-summary-section {
        padding: var(--wcpc-space-4);
    }
    
    .wcpc-cart-section {
        flex-direction: column;
        align-items: stretch;
        gap: var(--wcpc-space-3);
        width: 100%;
    }
    
    /* PROFESJONALNY responsive design dla mobile */
    .wcpc-smart-quantity-section {
        padding: var(--wcpc-space-3);
        margin-bottom: var(--wcpc-space-3);
    }
    
    .wcpc-quantity-mode-switch {
        gap: var(--wcpc-space-2);
        margin-bottom: var(--wcpc-space-3);
    }
    
    .wcpc-mode-btn {
        padding: var(--wcpc-space-3);
        min-height: 70px;
        gap: var(--wcpc-space-1);
        font-size: var(--wcpc-text-xs);
    }
    
    .wcpc-mode-btn span {
        font-size: var(--wcpc-text-xs);
        font-weight: 500;
    }
    
    .wcpc-mode-btn.active span {
        font-weight: 600;
    }
    
    .wcpc-mode-icon {
        width: 20px;
        height: 20px;
    }
    
    .wcpc-mode-btn:active {
        transform: translateY(0);
    }
    
    /* Lepsze hover efekty na mobile */
    .wcpc-mode-btn:hover:not(.active) {
        transform: translateY(-1px);
        box-shadow: var(--wcpc-shadow);
    }
    
    .wcpc-mode-btn.active {
        transform: translateY(-1px);
        box-shadow: var(--wcpc-shadow-md);
    }
    
    /* Enhanced touch interactions */
    .wcpc-mode-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.2);
        -webkit-touch-callout: none;
    }
    
    .wcpc-mode-btn:active {
        transform: translateY(0) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .wcpc-qty-button {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.2);
        -webkit-touch-callout: none;
        min-width: 44px;
        min-height: 44px;
    }
    
    .wcpc-qty-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .wcpc-quantity-input {
        touch-action: manipulation;
        -webkit-appearance: none;
        -moz-appearance: textfield;
    }
    
    .wcpc-quantity-input::-webkit-outer-spin-button,
    .wcpc-quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    /* Input validation error styles */
    .wcpc-quantity-input.error {
        border-color: var(--wcpc-error) !important;
        background-color: var(--wcpc-error-light) !important;
        animation: shake 0.5s ease-in-out;
    }
    
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }
    
    /* Screen reader only class */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
    
    .wcpc-mode-badge {
        top: var(--wcpc-space-1);
        right: var(--wcpc-space-1);
        padding: 1px 4px;
        font-size: var(--wcpc-text-xs);
    }
    
    .wcpc-final-price {
        margin-left: 0;
        text-align: center;
    }
    
    .wcpc-sticky-container {
        padding: var(--wcpc-space-2) var(--wcpc-space-3);
    }
    
    .wcpc-sticky-info {
        gap: var(--wcpc-space-3);
    }
    
    .wcpc-sticky-label {
        display: none;
    }
    
    .wcpc-sticky-button span {
        display: none;
    }
    
    .wcpc-toast-container {
        left: 16px;
        right: 16px;
    }
    
    .wcpc-toast {
        min-width: unset;
        max-width: unset;
    }
}

/* ===== Print Styles ===== */
@media print {
    .wcpc-sticky-bar,
    .wcpc-loading-overlay,
    .wcpc-toast-container {
        display: none !important;
    }
    
    .wcpc-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .wcpc-option-group {
        page-break-inside: avoid;
    }
}

/* ===== Accessibility ===== */
.wcpc-input:focus-visible,
.wcpc-reset-button:focus-visible,
.wcpc-qty-button:focus-visible,
.wcpc-add-to-cart-button:focus-visible,
.wcpc-sticky-button:focus-visible {
    outline: 2px solid var(--wcpc-primary);
    outline-offset: 2px;
}

/* Screen Reader Only */
.wcpc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== Animations and Utilities ===== */
.fade-in {
    animation: fadeIn var(--wcpc-transition);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Custom Scrollbar */
.wcpc-selected-options::-webkit-scrollbar {
    width: 6px;
}

.wcpc-selected-options::-webkit-scrollbar-track {
    background: var(--wcpc-gray-100);
    border-radius: 3px;
}

.wcpc-selected-options::-webkit-scrollbar-thumb {
    background: var(--wcpc-gray-400);
    border-radius: 3px;
}

.wcpc-selected-options::-webkit-scrollbar-thumb:hover {
    background: var(--wcpc-gray-500);
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    .wcpc-container {
        border: 2px solid black;
    }
    
    .wcpc-input:focus {
        outline: 3px solid black;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.wcpc-conditional-text-field {
    margin-top: 20px;
}

/* WooCommerce Product Configurator - Cart Styles */

/* Edytor popup w koszyku */
#wcpc-configurator-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

#wcpc-configurator-popup .wcpc-popup-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#wcpc-configurator-popup .wcpc-popup-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    to { transform: scale(1); }
}

/* Header popup */
#wcpc-configurator-popup .wcpc-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

#wcpc-configurator-popup .wcpc-popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

#wcpc-configurator-popup .wcpc-close-popup {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
    color: #6b7280;
}

#wcpc-configurator-popup .wcpc-close-popup:hover {
    background-color: #f3f4f6;
    color: #111827;
}

#wcpc-configurator-popup .wcpc-close-popup svg {
    width: 24px;
    height: 24px;
}

/* Body popup */
#wcpc-configurator-popup .wcpc-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #ffffff;
}

/* Footer popup */
#wcpc-configurator-popup .wcpc-popup-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
}

/* Buttons */
#wcpc-configurator-popup .wcpc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: var(--wcpc-text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#wcpc-configurator-popup .wcpc-btn-primary {
    background-color: #dc2626;
    color: white;
}

#wcpc-configurator-popup .wcpc-btn-primary:hover:not(:disabled) {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#wcpc-configurator-popup .wcpc-btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

#wcpc-configurator-popup .wcpc-btn-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

#wcpc-configurator-popup .wcpc-btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Konfigurator inside popup */
#wcpc-configurator-edit {
    width: 100%;
}

#wcpc-configurator-edit .wcpc-option-group {
    margin-bottom: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

#wcpc-configurator-edit .wcpc-option-group:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#wcpc-configurator-edit .wcpc-option-group.active {
    border-color: #dc2626;
    background: #f9f9f9;
}

#wcpc-configurator-edit .wcpc-option-header {
    margin-bottom: 16px;
}

#wcpc-configurator-edit .wcpc-option-label {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: block;
    margin-bottom: 8px;
}

#wcpc-configurator-edit .wcpc-required-mark {
    color: #ef4444;
    margin-left: 4px;
}

#wcpc-configurator-edit .wcpc-option-description {
    font-size: var(--wcpc-text-sm);
    color: #6b7280;
    margin-bottom: 16px;
}

/* Form controls w popupie */
#wcpc-configurator-edit .wcpc-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: var(--wcpc-text-base);
    transition: all 0.2s;
}

#wcpc-configurator-edit .wcpc-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Size inputs */
#wcpc-configurator-edit .wcpc-size-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

#wcpc-configurator-edit .wcpc-size-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

#wcpc-configurator-edit .wcpc-size-input-group {
    flex: 1;
    position: relative;
}

#wcpc-configurator-edit .wcpc-size-separator {
    font-size: 20px;
    color: #6b7280;
    font-weight: 500;
}

#wcpc-configurator-edit .wcpc-input-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    font-weight: 500;
}

#wcpc-configurator-edit .wcpc-size-cost-info {
    background: #f3f4f6;
    padding: 16px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Radio buttons w popupie */
#wcpc-configurator-edit .wcpc-radio-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

#wcpc-configurator-edit .wcpc-radio-button {
    position: relative;
    display: block;
    cursor: pointer;
}

#wcpc-configurator-edit .wcpc-radio-button input {
    position: absolute;
    opacity: 0;
}

#wcpc-configurator-edit .wcpc-button-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
}

#wcpc-configurator-edit .wcpc-radio-button input:checked + .wcpc-button-content {
    border-color: #dc2626;
    background: #f7ebeb;
}

#wcpc-configurator-edit .wcpc-radio-button:hover .wcpc-button-content {
    border-color: #cbd5e1;
}

#wcpc-configurator-edit .wcpc-button-label {
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

#wcpc-configurator-edit .wcpc-button-description {
    font-size: var(--wcpc-text-xs);
    color: #6b7280;
    margin-bottom: 8px;
}

#wcpc-configurator-edit .wcpc-button-price {
    font-size: var(--wcpc-text-sm);
    color: #dc2626;
    font-weight: 600;
}

/* Color swatches w popupie */
#wcpc-configurator-edit .wcpc-color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

#wcpc-configurator-edit .wcpc-color-swatch {
    position: relative;
    cursor: pointer;
}

#wcpc-configurator-edit .wcpc-color-swatch input {
    position: absolute;
    opacity: 0;
}

#wcpc-configurator-edit .wcpc-swatch-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

#wcpc-configurator-edit .wcpc-color-swatch input:checked + .wcpc-swatch-content {
    border-color: #dc2626;
    background: #f7ebeb;
}

#wcpc-configurator-edit .wcpc-swatch-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    position: relative;
    transition: all 0.2s;
}

#wcpc-configurator-edit .wcpc-color-swatch input:checked + .wcpc-swatch-content .wcpc-swatch-circle {
    border-color: #dc2626;
    transform: scale(1.1);
}

#wcpc-configurator-edit .wcpc-swatch-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    fill: white;
    stroke-width: 3;
    opacity: 0;
    transition: opacity 0.2s;
}

#wcpc-configurator-edit .wcpc-color-swatch input:checked + .wcpc-swatch-content .wcpc-swatch-check {
    opacity: 1;
}

/* Summary section w popupie */
#wcpc-configurator-edit .wcpc-summary-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    border: 1px solid #e5e7eb;
}

#wcpc-configurator-edit .wcpc-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

#wcpc-configurator-edit .wcpc-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

#wcpc-configurator-edit .wcpc-summary-icon {
    width: 24px;
    height: 24px;
    fill: #6b7280;
}

#wcpc-configurator-edit .wcpc-selected-options {
    margin-bottom: 20px;
}

#wcpc-configurator-edit .wcpc-empty-state {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

#wcpc-configurator-edit .wcpc-empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    fill: currentColor;
}

#wcpc-configurator-edit .wcpc-selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    animation: slideInLeft 0.3s ease-out;
}

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

#wcpc-configurator-edit .wcpc-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

#wcpc-configurator-edit .wcpc-selected-label {
    font-weight: 500;
    color: #6b7280;
}

#wcpc-configurator-edit .wcpc-selected-value {
    color: #111827;
}

#wcpc-configurator-edit .wcpc-selected-price {
    color: #dc2626;
    font-weight: 600;
}

/* Price breakdown w popupie */
#wcpc-configurator-edit .wcpc-price-breakdown {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

#wcpc-configurator-edit .wcpc-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

#wcpc-configurator-edit .wcpc-price-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

#wcpc-configurator-edit .wcpc-price-total {
    font-size: 18px;
    font-weight: 600;
}

#wcpc-configurator-edit .wcpc-price-label {
    color: #6b7280;
}

#wcpc-configurator-edit .wcpc-price-value {
    color: #111827;
    font-weight: 500;
}

#wcpc-configurator-edit .wcpc-price-total .wcpc-price-value {
    color: #dc2626;
    font-size: 20px;
    font-weight: 600;
}

/* Loading state */
#wcpc-configurator-popup .wcpc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    #wcpc-configurator-popup .wcpc-popup-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    #wcpc-configurator-popup .wcpc-popup-header,
    #wcpc-configurator-popup .wcpc-popup-footer {
        padding: 16px 20px;
    }
    
    #wcpc-configurator-popup .wcpc-popup-body {
        padding: 20px;
    }
    
    #wcpc-configurator-edit .wcpc-radio-buttons {
        grid-template-columns: 1fr;
    }
    
    #wcpc-configurator-edit .wcpc-size-inputs {
        flex-direction: column;
    }
    
    #wcpc-configurator-edit .wcpc-size-separator {
        display: none;
    }
}

/* Conditional text fields */
#wcpc-configurator-edit .wcpc-conditional-text-field {
    margin-top: 12px;
    transition: all 0.3s ease;
}

#wcpc-configurator-edit .wcpc-conditional-text-field input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

#wcpc-configurator-edit .wcpc-conditional-text-field input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Edit link styling */
.wcpc-cart-edit-wrapper {
    margin-top: 8px;
}

.wcpc-edit-configurator {
    display: inline-flex;
    align-items: center;
    color: #dc2626;
    text-decoration: none;
    font-size: var(--wcpc-text-sm);
    font-weight: 500;
    transition: color 0.2s;
}

.wcpc-edit-configurator:hover {
    color: #dc2626;
    text-decoration: underline;
}

.wcpc-edit-configurator svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* Cart item data display */
.woocommerce-cart-form .product-subtotal dl,
.woocommerce-checkout-review-order-table dl {
    margin: 8px 0;
}

.woocommerce-cart-form .product-subtotal dt,
.woocommerce-checkout-review-order-table dt {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.woocommerce-cart-form .product-subtotal dd,
.woocommerce-checkout-review-order-table dd {
    margin-left: 0;
    margin-bottom: 8px;
    color: #6b7280;
}

/* Price displays in cart */
.wcpc-option-price {
    color: #dc2626;
    font-weight: 500;
}

/* Error messages */
.wcpc-error {
    padding: 20px;
    background: #fee;
    color: #dc2626;
    border-radius: 8px;
    text-align: center;
    margin: 20px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.wcpc-step-nav-btn {
 background:#C32828 !important;
 color: white;
 font-size: var(--wcpc-text-xs);
}

/* ===== Dual Button System ===== */
.wcpc-button-group {
    display: flex;
    gap: var(--wcpc-space-2);
    flex-direction: column;
}

.wcpc-button-group .wcpc-add-to-cart-button {
    width: 100% !important;
    display: flex;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: var(--wcpc-space-2) !important;
    padding: var(--wcpc-space-3) var(--wcpc-space-4) !important;
    background: #C32828 !important;
    color: white !important;
    border: 1px solid #C32828 !important;
    border-radius: 6px !important;
    font-size: var(--wcpc-text-sm) !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all var(--wcpc-transition);
    position: relative;
    overflow: hidden;
}

.wcpc-button-group .wcpc-add-to-cart-button:hover:not(:disabled) {
    background: var(--wcpc-primary-dark) !important;
    border-color: var(--wcpc-primary-dark) !important;
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wcpc-button-group .wcpc-add-to-cart-button:active:not(:disabled) {
    transform: none;
    background: var(--wcpc-primary-darker) !important;
}

.wcpc-button-left {
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-2);
    flex: 1;
}

.wcpc-button-icon {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor;
    flex-shrink: 0;
}

.wcpc-button-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.wcpc-button-text {
    font-size: var(--wcpc-text-sm) !important;
    font-weight: 500 !important;
    flex: 1;
}

.wcpc-button-subtitle {
    font-size: var(--wcpc-text-xs) !important;
    font-weight: 400 !important;
    opacity: 0.8;
    line-height: 1.2;
}

.wcpc-button-price {
    font-size: var(--wcpc-text-sm) !important;
    font-weight: 600 !important;
    color: white !important;
    margin: 0 auto;
    text-align: center;
}

.wcpc-single-button .wcpc-button-icon {
    color: white !important;
}

.wcpc-palette-button .wcpc-button-icon {
    color: white !important;
}


/* ===== PRODUCT IMAGE TRANSITIONS ===== */

/* Smooth transitions for product image switching */
.wcpc-image-transition {
    transition: opacity 0.3s ease-in-out !important;
}

/* WooCommerce product gallery image transitions */
.woocommerce-product-gallery__image img,
.wp-post-image,
.attachment-woocommerce_single img,
.product-main-image img,
.woocommerce-main-image img,
.single-product-main-image img {
    transition: opacity 0.3s ease-in-out;
}

/* Loading state for image switching */
.wcpc-image-loading {
    position: relative;
}

.wcpc-image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--wcpc-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: wcpc-spin 1s linear infinite;
    z-index: 10;
}

@keyframes wcpc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Color option enhancement for product images */
.wcpc-color-swatch[data-product-image] {
    position: relative;
}

.wcpc-color-swatch[data-product-image]::before {
    content: '🖼️';
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 10px;
    background: var(--wcpc-primary);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wcpc-button-group {
        gap: var(--wcpc-space-1);
    }
    
    .wcpc-button-group .wcpc-add-to-cart-button {
        padding: var(--wcpc-space-2) var(--wcpc-space-3) !important;
        font-size: var(--wcpc-text-xs) !important;
    }
    
    .wcpc-button-icon {
        width: 14px !important;
        height: 14px !important;
    }
    
    .wcpc-button-text {
        font-size: var(--wcpc-text-xs) !important;
    }
    
    .wcpc-button-subtitle {
        font-size: var(--wcpc-text-xs) !important;
    }
    
    .wcpc-button-price {
        font-size: var(--wcpc-text-xs) !important;
    }
    
    .wcpc-button-left {
        gap: var(--wcpc-space-1);
    }
}

/* Hide duplicate price sections when using button system */
.wcpc-button-group ~ .wcpc-pallet-price,
.wcpc-button-group ~ .wcpc-pallet-info {
    display: none !important;
}

/* ===== Kontrola widoczności przycisków ===== */
.wcpc-single-button.wcpc-hidden,
.wcpc-palette-button.wcpc-hidden,
.wcpc-default-button.wcpc-hidden {
    display: none !important;
}

/* ===== PROFESJONALNY System Przycisków Palety/Sztuki ===== */
.wcpc-smart-quantity-section {
    margin-bottom: var(--wcpc-space-4);
    background: white;
    border-radius: var(--wcpc-radius-lg);
    padding: var(--wcpc-space-4);
    border: 1px solid var(--wcpc-gray-200);
    box-shadow: var(--wcpc-shadow-sm);
    width: 100%;
}

/* PROFESJONALNY Layout - Karty obok siebie */
.wcpc-quantity-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wcpc-space-3);
    margin-bottom: var(--wcpc-space-4);
    width: 100%;
}

/* IDEALNIE zaprojektowane karty przycisków - KOMPAKTOWE */
.wcpc-mode-btn {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--wcpc-space-2);
    padding: var(--wcpc-space-3);
    background: white;
    border: 2px solid var(--wcpc-gray-200);
    border-radius: var(--wcpc-radius);
    font-size: var(--wcpc-text-sm);
    font-weight: 500;
    color: var(--wcpc-gray-600);
    cursor: pointer;
    transition: all var(--wcpc-transition);
    min-height: 48px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

/* PROFESJONALNY hover efekt */
.wcpc-mode-btn:hover:not(.active) {
    border-color: var(--wcpc-primary-light);
    background: var(--wcpc-primary-bg-soft);
    color: var(--wcpc-primary);
    transform: translateY(-2px);
    box-shadow: var(--wcpc-shadow-md);
}

.wcpc-mode-btn:focus {
    outline: none;
}

.wcpc-mode-btn:focus-visible {
    outline: 2px solid var(--wcpc-primary);
    outline-offset: 2px;
}

/* AKTYWNY stan - czerwone tło jak reszta interfejsu */
.wcpc-mode-btn.active {
    background: var(--wcpc-primary) !important;
    border-color: var(--wcpc-primary) !important;
    color: white !important;
    font-weight: 600 !important;
    transform: translateY(-2px);
    box-shadow: var(--wcpc-shadow-lg);
}

.wcpc-mode-btn.active:hover {
    background: var(--wcpc-primary-dark) !important;
    border-color: var(--wcpc-primary-dark) !important;
    color: white !important;
}

/* PROFESJONALNY active click efekt */
.wcpc-mode-btn:active {
    transform: translateY(0);
    box-shadow: var(--wcpc-shadow-sm);
}

.wcpc-mode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: var(--wcpc-gray-100);
}

.wcpc-mode-btn:disabled:hover {
    border-color: var(--wcpc-gray-200);
    background: var(--wcpc-gray-100);
    color: var(--wcpc-gray-600);
    transform: none;
    box-shadow: none;
}

/* WZOROWE ikony z profesjonalnymi animacjami - MNIEJSZE */
.wcpc-mode-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    transition: all var(--wcpc-transition);
}

.wcpc-mode-btn:hover:not(.active) .wcpc-mode-icon {
    transform: scale(1.1);
}

.wcpc-mode-btn.active .wcpc-mode-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.wcpc-mode-btn:active .wcpc-mode-icon {
    transform: scale(1.05);
}

/* PROFESJONALNA typografia */
.wcpc-mode-btn span {
    font-weight: inherit;
    letter-spacing: -0.025em;
    transition: all var(--wcpc-transition);
    font-size: var(--wcpc-text-sm);
}

.wcpc-mode-btn.active span {
    font-weight: 600;
}

/* ELEGANCKA etykieta informacyjna - UKRYTA */
.wcpc-mode-badge {
    display: none;
}

/* ===== PROFESJONALNE DODATKI UI/UX ===== */
.wcpc-quantity-unit-info {
    font-size: var(--wcpc-text-xs);
    color: var(--wcpc-gray-500);
    font-weight: 400;
    margin-left: var(--wcpc-space-1);
    opacity: 0.8;
    transition: all var(--wcpc-transition);
}

/* ELEGANCKA animacja wczytywania */
.wcpc-smart-quantity-section {
    animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* WZOROWE stany ładowania */
.wcpc-quantity-mode-switch.loading {
    pointer-events: none;
    opacity: 0.7;
}

.wcpc-quantity-mode-switch.loading .wcpc-mode-btn {
    cursor: wait;
}

/* RIPPLE effect dla kart */
.wcpc-mode-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.wcpc-mode-btn:active::before {
    width: 120px;
    height: 120px;
    opacity: 1;
}

.wcpc-mode-btn.active::before {
    background: rgba(255, 255, 255, 0.1);
}

/* SUBTELNE pulsowanie dla aktywnego stanu */
.wcpc-mode-btn.active {
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: var(--wcpc-shadow-lg);
    }
    50% {
        box-shadow: var(--wcpc-shadow-lg), 0 0 20px rgba(220, 38, 38, 0.15);
    }
}

/* PROFESJONALNE loading state */
.wcpc-mode-btn.loading {
    cursor: wait;
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.wcpc-mode-btn.loading .wcpc-mode-icon {
    animation: spin 1s linear infinite;
    opacity: 0.5;
}

.wcpc-mode-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--wcpc-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

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

/* Enhanced error states */
.wcpc-input-error {
    border-color: var(--wcpc-error) !important;
    background-color: var(--wcpc-error-light) !important;
    animation: shake 0.5s ease-in-out;
}

.wcpc-error-message {
    color: var(--wcpc-error);
    font-size: var(--wcpc-text-sm);
    margin-top: var(--wcpc-space-1);
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-1);
}

.wcpc-error-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Success feedback */
.wcpc-success-feedback {
    color: var(--wcpc-success);
    font-size: var(--wcpc-text-sm);
    margin-top: var(--wcpc-space-1);
    display: flex;
    align-items: center;
    gap: var(--wcpc-space-1);
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Quantity selector */
.wcpc-quantity-label {
    font-weight: 500;
    color: var(--wcpc-gray-700);
    margin-bottom: var(--wcpc-space-2);
    display: block;
    font-size: var(--wcpc-text-sm);
}

/* ===== Dark Mode Support (Disabled for now) ===== */
/* Ciemny tryb został wyłączony, aby zapewnić tylko jasny wygląd */