/**
 * MidOcean Print Configurator Styles
 * Tab-based product configuration interface
 */

/* BASE STYLES */
* {
    box-sizing: border-box;
}

.midocean-configurator {
    line-height: 1.5;
    background: #F4F4E9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* HEADER */
.midocean-header {
    padding: 30px;
    background: #F4F4E9;
    color: black;
    text-align: center;
}

.midocean-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.midocean-header p {
    margin: 0;
    opacity: 0.9;
}

/* TABS - ORDER TYPE */
.midocean-order-tabs {
    display: flex;
    background: #F4F4E9;
    padding: 0 40px;
    gap:20px;
}

.midocean-tab {
    flex: 1;
    padding: 20px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 14px;
    display: grid;
    width: 50%;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    align-items: center;
}

.midocean-tab:hover {
    background: #e9ecef;
}

.midocean-tab.active {
    background: #F8F4FC;
    border-color: #A652EC;
    color: #A652EC;
}

.midocean-tab-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.midocean-tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.midocean-tab-text {
    text-align: left;
}

.midocean-tab-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.midocean-tab-desc {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    white-space: normal;
    word-wrap: break-word;
}

/* MAIN CONTENT */
.midocean-content-area {
    padding: 30px;
}

.midocean-tab-content {
    display: none;
}

.midocean-tab-content.active {
    display: block;
    animation: midoceanFadeIn 0.3s ease;
}

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

/* Animacja highlight dla kroku po kliknięciu "Skonfiguruj znakowanie" */
@keyframes highlightPulse {
    0%, 100% {
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        background-color: rgba(76, 175, 80, 0.1);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
}

.midocean-step-item.highlight-pulse {
    animation: highlightPulse 1s ease-in-out 2;
    border-radius: 8px;
}

/* WITHOUT PRINTING - SIMPLE VARIANTS */
.midocean-simple-variants {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
}

.midocean-simple-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.midocean-variants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.midocean-variant-card {
    padding: 20px;
    border: 2px solid #cbcbcb;
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
}

.midocean-variant-card:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
}

.midocean-variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.midocean-color-name {
    font-weight: 600;
    color: #333;
}

.midocean-color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.midocean-sizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.midocean-size-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.midocean-size-input:hover {
    background: rgba(33, 150, 243, 0.05);
}

.midocean-size-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.midocean-qty-input {
    width: 100%;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.midocean-qty-input:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

/* WITH PRINTING - STEPPER */
.midocean-printing-stepper {
    padding: 20px;
}

.midocean-step-item {
    background: white;
    margin-bottom: 20px;
}

.midocean-step-item:last-child {
    margin-bottom: 0;
}

.midocean-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.midocean-step-header:hover {
    background: rgba(33, 150, 243, 0.05);
}

.midocean-step-item.active .midocean-step-header {
    background: #ffffff;
    padding: 20px 20px;
    border-radius: 10px;
}

.midocean-step-item.completed .midocean-step-header {
    background: #e8f5e8;
    padding: 20px 20px;
    border-radius: 10px;
}

.midocean-step-item.disabled .midocean-step-header {
    opacity: 0.5;
    cursor: not-allowed;
}

.midocean-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: #e9ecef;
    color: #666;
    flex-shrink: 0;
}

.midocean-step-item.active .midocean-step-number {
    background: #A652EC;
    color: white;
}

.midocean-step-item.completed .midocean-step-number {
    background: #51B973;
    color: white;
}

.midocean-step-item.completed .midocean-step-number::before {
    content: "✓";
}

.midocean-step-item.completed .midocean-step-number .num {
    display: none;
}

.midocean-step-info {
    flex: 1;
}

.midocean-step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.midocean-step-desc {
    font-size: 14px;
    color: #666;
}

.midocean-step-chevron {
    color: #999;
    transition: transform 0.2s ease;
}

.midocean-step-item.active .midocean-step-chevron {
    transform: rotate(90deg);
    color: #2196f3;
}

.midocean-step-content {
    display: none;
}

.midocean-step-item.active .midocean-step-content {
    display: block;
    animation: midoceanSlideDown 0.3s ease;
    padding: 20px;
}

@keyframes midoceanSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* CONTENT BOXES - removed, no longer used */

.midocean-content-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.midocean-placeholder {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* UPLOAD AREA */
.midocean-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.midocean-upload-area:hover {
    border-color: #A652EC;
    background: #f0f8ff;
}

.midocean-upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #999;
}

.midocean-upload-text {
    font-weight: 600;
    margin-bottom: 8px;
}

.midocean-upload-desc {
    font-size: 14px;
    color: #666;
}

/* BUTTONS */
.midocean-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.midocean-btn-primary {
    background: #A652EC;
    color: white;
}

.midocean-btn-primary:hover {
    background: #FF8CE1;
}

.midocean-btn-success {
    background: #51B973;
    color: white;
}

.midocean-btn-success:hover {
    background: #388e3c;
}

.midocean-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SUMMARY SECTION */
.midocean-summary-section {
    margin-top: 40px;
    padding: 25px;
    background: #F4F4E9;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.midocean-summary-title {
    font-family: var(--e-global-typography-e282f93-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-e282f93-font-size) !important;
    font-weight: var(--e-global-typography-e282f93-font-weight) !important;
    line-height: var(--e-global-typography-e282f93-line-height) !important;
    letter-spacing: var(--e-global-typography-e282f93-letter-spacing) !important;
    color: #333;
    margin-bottom: 20px;
}

.midocean-summary-content {
    background: white;
    padding: 20px;
    border-radius: 6px;
}

.midocean-summary-details {
    margin-bottom: 20px;
    color: #333;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    line-height: var(--e-global-typography-text-line-height) !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing) !important;
}

/* Print positions summary */
.midocean-print-summary {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.midocean-print-summary h4 {
    margin: 0 0 16px 0;
    color: #333;
    font-family: var(--e-global-typography-e282f93-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-e282f93-font-size) !important;
    font-weight: var(--e-global-typography-e282f93-font-weight) !important;
    line-height: var(--e-global-typography-e282f93-line-height) !important;
}

.midocean-position-summary {
    background: white;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    line-height: var(--e-global-typography-text-line-height) !important;
}

.midocean-position-summary:last-child {
    margin-bottom: 0;
}

.midocean-position-summary strong {
    display: block;
    margin-bottom: 6px;
    color: #2196f3;
    font-weight: 600;
}

/* Summary Breakdown Styles */
.midocean-summary-breakdown {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.midocean-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.midocean-summary-label {
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: 600;
    line-height: var(--e-global-typography-text-line-height) !important;
    color: #000 !important;
    flex: 0 0 40%;
}

.midocean-summary-calculation {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    line-height: var(--e-global-typography-text-line-height) !important;
    color: #000 !important;
}

.midocean-summary-calculation .qty {
    font-weight: 600;
    color: #000;
}

.midocean-summary-calculation .operator {
    color: #666;
}

.midocean-summary-calculation .price {
    font-weight: 600;
    color: #000;
}

.midocean-summary-calculation .price.total {
    font-weight: 700;
    color: #000;
}

/* Wiersz podsumowania z całkowitym kosztem produktu z nadrukiem */
.midocean-summary-row.summary-total-row .midocean-summary-label,
.midocean-summary-row.summary-total-row .midocean-summary-calculation {
    color: #000;
}

/* Summary Totals */
.midocean-summary-totals {
    margin-top: 20px;
}

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

.midocean-summary-total-row .label {
    font-family: var(--e-global-typography-text-font-family);
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
    color: #000 !important;
}

.midocean-summary-total-row .value {
    font-family: var(--e-global-typography-text-font-family);
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
    color: #000 !important;
    font-weight: 700;
}

.midocean-summary-total-row.net {
    padding-bottom: 15px;
}

.midocean-summary-total-row.gross {
    padding-top: 15px;
    border-top: 2px solid var(--e-global-color-accent);
}

.midocean-summary-total-row.gross .label,
.midocean-summary-total-row.gross .value {
    color: var(--e-global-color-accent);
    font-weight: 700;
}

.midocean-tier-info {
    color: #666;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
}

.midocean-summary-actions {
    text-align: right;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .midocean-order-tabs {
        flex-direction: column;
    }
    
    .midocean-variants-grid {
        grid-template-columns: 1fr;
    }
    
    .midocean-sizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .midocean-step-content {
        padding-left: 20px;
    }
    
    .midocean-content-area {
        padding: 20px;
    }
    
    .midocean-step-item.active .midocean-step-header,
    .midocean-step-item.completed .midocean-step-header {
        margin: 0 -20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .midocean-header {
        padding: 20px;
    }
    
    .midocean-header h2 {
        font-size: 20px;
    }
    
    .midocean-tab {
        padding: 15px;
    }
    
    .midocean-tab-icon {
        width: 32px;
        height: 32px;
    }
    
    .midocean-tab-title {
        font-size: 14px;
    }
    
    .midocean-upload-area {
        padding: 30px 20px;
    }
    
    /* Tooltip na małych ekranach - nad kartą zamiast z boku */
    .midocean-technique-tooltip {
        left: 50%;
        top: auto;
        bottom: 100%;
        transform: translate(-50%, -10px);
        min-width: 280px;
        max-width: 90vw;
    }
}

/* ========================================
   DYNAMIC COLOR SELECTOR STYLES
   ======================================== */

/* Selected Colors Container - Grid Layout */
.midocean-selected-colors {
    display: grid;
    grid-template-columns: 1fr; /* Zawsze 1 kolumna - każdy kolor na pełną szerokość */
    gap: 15px;
    margin-bottom: 20px;
}

/* Grid 1 kolumna dla produktów Z rozmiarami */
.midocean-selected-colors.has-sizes {
    grid-template-columns: 1fr; /* 1 kolumna gdy są rozmiary */
}

/* Single Color Block */
.midocean-color-block {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    background: white;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.midocean-color-block.selected {
    border-color: #2196f3;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Color Block Header */
.midocean-color-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.midocean-color-name-display {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Color Swatch */
.midocean-color-swatch-inline {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

/* Remove Button */
.midocean-remove-color {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.midocean-remove-color:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Sizes Grid */
.midocean-color-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

/* Add Color Button - As a card in grid */
.midocean-add-color-btn {
    padding: 40px 20px;
    background: white;
    border: 2px dashed #2196f3;
    border-radius: 10px;
    color: #2196f3;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 150px;
}

.midocean-add-color-btn:hover {
    background: #f0f7ff;
    border-color: #1976d2;
    color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.midocean-add-color-btn .plus-icon {
    font-size: 32px;
    font-weight: bold;
}

/* Empty State */
.midocean-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.midocean-empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.midocean-empty-state-text {
    font-size: 16px;
}

/* ========================================
   STOCK INFO STYLES
   ======================================== */

.midocean-stock-info {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
    text-align: center;
    padding: 2px 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
   flex-wrap: nowrap;
}

.midocean-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.midocean-stock-dot.green {
    background-color: #28a745;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.midocean-stock-dot.yellow {
    background-color: #ffc107;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.5);
}

.midocean-stock-dot.red {
    background-color: #dc3545;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

.midocean-stock-info.in-stock {
    color: #28a745;
}

.midocean-stock-info.low-stock {
    color: #ffc107;
}

.midocean-stock-info.out-of-stock {
    color: #dc3545;
}

/* Disabled input for out of stock */
.midocean-qty-input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.midocean-size-input:has(.midocean-qty-input:disabled) {
    opacity: 0.6;
}

/* Stock warning message */
.midocean-stock-warning {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    animation: warningPulse 0.3s ease;
}

@keyframes warningPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* Make size-input relative for warning positioning */
.midocean-size-input {
    position: relative;
}


/* ==========================================
   PRINT TECHNIQUES & POSITIONS STYLES
   ========================================== */

.midocean-techniques-grid,
.midocean-positions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px;
}

@media (max-width: 768px) {
    .midocean-techniques-grid,
    .midocean-positions-grid {
        grid-template-columns: 1fr;
    }
}

.midocean-technique-card,
.midocean-position-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.midocean-technique-card:hover,
.midocean-position-card:hover {
    border-color: #2196f3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.midocean-technique-card.selected {
    border-color: #4caf50;
    background: #f1f8f4;
}

.midocean-technique-header,
.midocean-position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.midocean-technique-title,
.midocean-technique-header h4,
.midocean-position-header h4 {
    margin: 0;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-accent-font-size) !important;
    font-weight: var(--e-global-typography-accent-font-weight) !important;
    line-height: var(--e-global-typography-accent-line-height) !important;
    letter-spacing: var(--e-global-typography-accent-letter-spacing) !important;
    color: var(--e-global-color-accent) !important;
}

/* Stary kod - usunięty */
.midocean-technique-code {
    display: none; /* Ukryj kod techniki */
}

.midocean-technique-desc,
.midocean-position-desc {
    display: none; /* Ukryj opis techniki */
}

/* Informacja o kolorach / Full Print */
.midocean-technique-max-colors {
    font-size: 14px;
    color: #666;
    margin: 8px 0 12px 0;
    font-weight: 500;
}

.midocean-technique-max-colors.midocean-full-print {
    color: var(--accent, #2196f3);
    font-weight: 700;
    font-size: 15px;
}

.midocean-position-details {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.midocean-position-size {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.midocean-position-size strong {
    color: #2196f3;
    display: block;
    margin-bottom: 4px;
}

.midocean-select-technique {
    width: 100%;
    margin-top: auto; /* Przycisk zawsze na dole */
}

.midocean-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.midocean-position-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.midocean-confirm-positions {
    margin-top: 20px;
}

/* ==========================================
   COLOR DROPDOWN & INLINE STYLES
   ========================================== */

.midocean-color-select {
    flex: 1;
    padding: 12px 15px;
    border:0 !important;
    border-radius: 10px;
    font-size: 16px;
    background: #F5F5F5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.midocean-color-select:hover {
    border-color: #2196f3;
}

.midocean-color-select:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.midocean-placeholder-text {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
    white-space: nowrap;
}

/* Inline layout for single size */
.midocean-size-input-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
}

.midocean-qty-label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.midocean-size-input-inline .midocean-qty-input {
    width: 120px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.midocean-size-input-inline .midocean-stock-info {
    flex: 1;
    text-align: left;
}

/* Step actions */
.midocean-step-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.midocean-next-step {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* ===== TECHNIQUE SWATCH (OBRAZEK TECHNIKI) ===== */

/* Kontener karty techniki z flexbox */
.midocean-technique-card {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
    cursor: pointer;
}

/* Swatch po lewej stronie */
.midocean-technique-swatch {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.midocean-technique-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Kontener na tekst (po prawej) */
.midocean-technique-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== IKONA INFO I TOOLTIP DLA TECHNIKI ===== */

/* Ikona info w prawym górnym rogu */
.midocean-technique-info-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    color: #007bff;
    cursor: help;
    z-index: 10;
    transition: all 0.2s ease;
}

.midocean-technique-info-icon:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.1);
}

.midocean-technique-info-icon svg {
    width: 20px;
    height: 20px;
}

/* Tooltip */
.midocean-technique-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    min-width: 320px;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border: 2px solid #007bff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
}

.midocean-technique-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Strzałki tooltipa - ukryte dla fixed position */
.midocean-technique-tooltip::before,
.midocean-technique-tooltip::after {
    display: none;
}

.midocean-tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.midocean-tooltip-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Badge z ilością kolorów - w tooltipie */
.midocean-color-badge {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1;
    flex-shrink: 0;
}

/* Badge dla Full Print */
.midocean-color-badge.midocean-full-print {
    border-radius: 14px;
    min-width: 50px;
    height: 24px;
    padding: 0 10px;
    font-size: 11px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    letter-spacing: 0.5px;
}

.midocean-tooltip-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

.midocean-tooltip-colors {
    font-size: 13px;
    font-weight: 600;
    color: #007bff;
    padding: 8px 12px;
    background: #f0f8ff;
    border-radius: 6px;
    text-align: center;
}

/* ===== POSITION IMAGE (OBRAZEK POZYCJI) ===== */
.midocean-position-image-wrapper {
    width: 100%;
    height: 150px;
    margin-bottom: 12px;
    position: relative;
}

.midocean-position-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    position: relative;
}

/* Tooltip dla pozycji - powiększenie po najechaniu */
.midocean-position-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 300px;
    height: 300px;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border: 3px solid #007bff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.midocean-position-image:hover .midocean-position-tooltip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.midocean-position-tooltip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Poprawka dla grid - żeby tooltip nie był przycinany */
.midocean-positions-grid {
    position: relative;
    z-index: 1;
}

.midocean-position-card {
    position: relative;
    overflow: visible !important;
}

/* ===== NAGŁÓWKI I OPISY W KROKACH (ELEMENTOR STYLE) ===== */

/* Nagłówki kroków - custom typography e282f93 */
.midocean-step-title,
/* Tytuły kroków i simple-title używają heading typography */
.midocean-simple-title,
.midocean-step-item h3,
.midocean-step-item h4 {
    font-family: var(--e-global-typography-e282f93-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-e282f93-font-size) !important;
    font-weight: var(--e-global-typography-e282f93-font-weight) !important;
    line-height: var(--e-global-typography-e282f93-line-height) !important;
    letter-spacing: var(--e-global-typography-e282f93-letter-spacing) !important;
}

/* Techniki i pozycje używają accent typography - zdefiniowane wcześniej w linii ~976 */

/* Opisy kroków - text typography */
.midocean-step-desc,
.midocean-technique-desc,
.midocean-position-desc,
.midocean-step-item p,
.midocean-step-content p,
.midocean-header p {
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    line-height: var(--e-global-typography-text-line-height) !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing) !important;
}

/* Główny nagłówek konfiguratora */
.midocean-header h2 {
    font-family: var(--e-global-typography-e282f93-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-e282f93-font-size) !important;
    font-weight: var(--e-global-typography-e282f93-font-weight) !important;
    line-height: var(--e-global-typography-e282f93-line-height) !important;
    letter-spacing: var(--e-global-typography-e282f93-letter-spacing) !important;
}

/* ===== RESPONSYWNOŚĆ DLA GRID KOLORÓW ===== */

/* Na urządzeniach mobilnych zawsze 1 kolumna */
@media (max-width: 768px) {
    .midocean-selected-colors {
        grid-template-columns: 1fr !important;
    }
}

/* Na tabletach: 2 kolumny dla bez rozmiarów, 1 dla z rozmiarami */
@media (min-width: 769px) and (max-width: 1024px) {
    .midocean-selected-colors {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .midocean-selected-colors.has-sizes {
        grid-template-columns: 1fr;
    }
}

/* Na dużych ekranach: 1 kolumna */
@media (min-width: 1025px) {
    .midocean-selected-colors {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .midocean-selected-colors.has-sizes {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

/* ===== RESPONSYWNOŚĆ DLA KART TECHNIK ===== */

/* Na bardzo małych ekranach - układ pionowy */
@media (max-width: 480px) {
    .midocean-technique-card {
        flex-direction: column;
        align-items: center;
    }
    
    .midocean-technique-swatch {
        margin-bottom: 12px;
    }
    
    .midocean-technique-content {
        width: 100%;
        text-align: center;
    }
    
    .midocean-technique-header {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Na średnich ekranach - układ poziomy */
@media (min-width: 481px) {
    .midocean-technique-card {
        min-height: 120px; /* Minimalna wysokość dla spójności */
    }
}

/* ===== PRINT PARAMETERS FORM ===== */

.midocean-parameters-form {
    padding: 20px;
}

.midocean-parameters-form h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.midocean-param-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.midocean-param-group {
    margin-bottom: 25px;
}

.midocean-param-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.midocean-param-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #F5F5F5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.midocean-param-select:hover {
    border-color: #2196f3;
}

.midocean-param-select:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.midocean-param-dimensions {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.midocean-param-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.midocean-param-input:hover {
    border-color: #2196f3;
}

.midocean-param-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.midocean-param-sep {
    font-size: 20px;
    color: #999;
    font-weight: 600;
}

.midocean-confirm-parameters {
    margin-top: 30px;
}

/* ===== SWATCH KOLORU W NAGŁÓWKU BLOKU ===== */

.midocean-color-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.midocean-color-swatch-wrapper {
    flex-shrink: 0;
}

.midocean-color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.midocean-color-swatch:empty::before {
    content: "?";
    color: #ccc;
    font-size: 24px;
    font-weight: bold;
}

/* Badge dla pierwszego koloru (wymagany) */
.midocean-first-color-badge {
    background: #4caf50;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.midocean-color-block.first-color {
    border-color: #cbcbcb;
    background: white;
}

/* ===== SUCCESS MESSAGE ===== */
.midocean-step-success {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
    padding: 15px !important;
    border-radius: 6px !important;
    margin-top: 20px !important;
    text-align: center !important;
}

.midocean-step-success strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.midocean-step-success small {
    font-size: 13px;
    opacity: 0.8;
}

/* ===== SUMMARY SECTIONS ===== */
.midocean-variants-summary,
.midocean-technique-summary,
.midocean-print-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.midocean-variants-summary h4,
.midocean-technique-summary h4,
.midocean-print-summary h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.midocean-position-summary {
    margin: 8px 0;
    padding: 8px;
    background: #ffffff;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.midocean-position-summary strong {
    color: #2196f3;
}

/* ==========================================
   FORMULARZ PERSONALIZACJI (SHORTCODE)
   ========================================== */

/* Elementor Global Typography dla wszystkich tekstów formularza */
.midocean-personalization-form,
.midocean-personalization-form p,
.midocean-personalization-form label,
.midocean-personalization-form .input-select,
.midocean-personalization-form .input-text,
.midocean-personalization-form .input-textarea,
.midocean-personalization-form .form-note,
.midocean-personalization-form .color-name,
.midocean-personalization-form .size-label,
.midocean-personalization-form .variant-price,
.midocean-personalization-form .variant-stock {
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    line-height: var(--e-global-typography-text-line-height) !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing) !important;
}

.midocean-personalization-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.midocean-personalization-form h3 {
    margin-top: 0;
    color: #333;
}

.midocean-personalization-form .form-field {
    margin-bottom: 15px;
}

.midocean-personalization-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.midocean-personalization-form .form-field.half {
    flex: 1;
}

.midocean-personalization-form .form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.midocean-personalization-form .form-field .input-select,
.midocean-personalization-form .form-field .input-text,
.midocean-personalization-form .form-field .input-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.midocean-personalization-form .form-field .input-textarea {
    resize: vertical;
    min-height: 80px;
}

.midocean-personalization-form .form-note {
    color: #666;
    font-size: 12px;
    margin-top: 3px;
    display: block;
}

.midocean-personalization-form .notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ffeaa7;
    margin: 10px 0;
}

.midocean-personalization-form .personalization-submit {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

.midocean-personalization-form .personalization-submit:hover {
    background: #005a87;
}

.midocean-personalization-form .debug-data {
    margin-top: 20px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
}

.midocean-personalization-form .debug-data pre {
    background: white;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 12px;
}

/* Sekcja wyboru wariantów */
.variants-selection-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.variants-selection-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.variants-list-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Wiersz koloru - pełna szerokość */
.color-row-full {
    background: #f0f8ff;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.15);
}

/* Nagłówek koloru */
.color-header {
    margin-bottom: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.color-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-swatch-display {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.swatch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swatch-color-single,
.swatch-color-multi {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.swatch-fallback {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.color-name {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
}

/* Grid rozmiarów dla danego koloru */
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.size-item {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.size-item:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.size-label {
    font-weight: 700;
    font-size: 16px;
    color: #2196f3;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
}

.variant-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variant-price {
    font-weight: 700;
    color: #2196f3;
    font-size: 16px;
    margin: 6px 0;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}

.variant-price .sale-price {
    color: #e74c3c;
    font-size: 17px;
}

.variant-price .regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-left: 6px;
    display: inline-block;
}

.variant-stock {
    font-size: 13px;
    margin: 6px 0;
    font-weight: 500;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}

.in-stock {
    color: #4caf50;
    font-weight: 600;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 500;
}

.variant-quantity {
    margin-top: 6px;
}

/* Usuń strzałki z input number */
.quantity-input {
    width: 100%;
    padding: 12px 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background: #F5F5F5;
    transition: all 0.2s ease;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}

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

.quantity-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
    transform: scale(1.02);
}

.quantity-input:hover {
    border-color: #2196f3;
}

.quantity-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.variant-unavailable {
    color: #999;
    font-style: italic;
    padding: 10px 0;
    text-align: center;
}

.unavailable-text {
    font-size: 18px;
    color: #ccc;
}

/* Nowy system selekcji wariantów - standardowy WooCommerce pattern */

.variants-selection-section {
    margin: 30px 0;
}

.variants-selection-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.variant-selection-form {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
}

/* Selektor koloru - wizualny */
.color-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 3px solid transparent;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.color-option:hover {
    border-color: #2196f3;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
}

.color-option.selected {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.05);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
}

.color-swatch-display {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.color-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Hidden select dla kompatybilności */
.variant-selector-hidden {
    display: none;
}

/* Pola selekcji wariantów */
.variant-field {
    margin-bottom: 20px;
}

.variant-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.variant-field select,
.variant-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-field select:hover,
.variant-field input:hover {
    border-color: #2196f3;
}

.variant-field select:focus,
.variant-field input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
}

.variant-field select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Tabela rozmiarów z stepper-ami */
.sizes-table {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.sizes-header {
    display: none; /* Schowaj starą strukturę */
}

.size-col {
    display: none; /* Schowaj stare kolumny */
}

.sizes-rows {
    max-height: 500px;
    overflow-y: auto;
}

.size-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.size-row:hover {
    background: #fafbfc;
}

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

.size-row-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.size-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.size-stock {
    font-size: 13px;
    color: #999;
}

.size-row-right {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Stepper - przycisk minus i plus z input-em */
.size-quantity-stepper {
    display: flex;
    align-items: center;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    overflow: hidden;
}

.size-quantity-stepper[data-disabled="true"] {
    opacity: 0.6;
    background: #f5f5f5;
}

.stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #2196f3;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.stepper-btn:hover:not(:disabled) {
    background: #f0f8ff;
    color: #1976d2;
}

.stepper-btn:active:not(:disabled) {
    background: #e3f2fd;
}

.stepper-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.stepper-minus {
    border-right: 1px solid #dee2e6;
}

.stepper-plus {
    border-left: 1px solid #dee2e6;
}

.size-quantity-input {
    width: 50px;
    padding: 6px 8px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    background: white;
    transition: all 0.2s ease;
}

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

.size-quantity-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.size-quantity-input:focus {
    outline: none;
    background: #f0f8ff;
}

.size-quantity-input:disabled {
    background: #f5f5f5;
    color: #ccc;
}

.sale-price {
    font-weight: 700;
    color: #e74c3c;
}

.regular-price {
    font-size: 0.85em;
    color: #999;
}

.in-stock {
    color: #4caf50;
    font-weight: 600;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

/* Responsywność tabeli */
@media (max-width: 768px) {
    .sizes-header,
    .size-row {
        grid-template-columns: 80px 1fr 1fr 80px;
        font-size: 12px;
    }
    
    .size-col,
    .size-row .size-col {
        padding: 8px;
    }
    
    .size-quantity-input {
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sizes-header,
    .size-row {
        grid-template-columns: 60px 1fr 1fr 70px;
        font-size: 11px;
    }
    
    .size-col,
    .size-row .size-col {
        padding: 6px;
    }
    
    .size-quantity-input {
        padding: 5px;
        font-size: 11px;
    }
    
    .sizes-header {
        display: none;
    }
    
    .size-row {
        grid-template-columns: 1fr;
        gap: 0;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        margin-bottom: 8px;
        padding: 8px;
    }
    
    .size-row .size-col {
        display: grid;
        grid-template-columns: 60px 1fr;
        padding: 4px 0;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .size-row .size-col:last-child {
        border-bottom: none;
    }
    
    .size-row .size-col::before {
        content: attr(data-label);
        font-weight: 700;
        margin-right: 10px;
        white-space: nowrap;
    }
}

/* Obsługa błędów walidacji */
.sizes-field.error {
    border-color: #dc3545 !important;
}

.sizes-field.error .sizes-table {
    border-color: #dc3545;
}



.variant-price-info,
.variant-stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-price-label,
.variant-stock-label {
    font-weight: 700;
    color: #666;
    margin-right: 10px;
}

.variant-price-value {
    font-weight: 700;
    font-size: 16px;
    color: #2196f3;
}

.variant-stock-value {
    font-weight: 600;
}

/* Input ilości */
.quantity-field {
    max-width: 150px;
}

.input-quantity {
    width: 100% !important;
    padding: 12px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    background: white !important;
}

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

.input-quantity {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-quantity:focus {
    border-color: #2196f3 !important;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15) !important;
    outline: none !important;
}

/* Obsługa błędów walidacji */
.variant-field.error {
    margin-bottom: 25px;
}

.variant-field.error select,
.variant-field.error input {
    border-color: #dc3545;
}

.variant-field.error .validation-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
}

.variant-field.success select,
.variant-field.success input {
    border-color: #4caf50;
}

/* Responsywność dla selekcji wariantów */
@media (max-width: 768px) {
    .color-selector {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .color-swatch-display {
        width: 50px;
        height: 50px;
    }
    
    .color-label {
        font-size: 12px;
    }
    
    .variant-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .color-selector {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .variant-selection-form {
        padding: 15px;
    }
}

/* Stare klasy - dla kompatybilności wstecz - responsywność */
@media (max-width: 768px) {
    .color-row-full {
        padding: 12px;
    }
    
    .color-swatch-display {
        width: 35px;
        height: 35px;
    }
    
    .color-name {
        font-size: 14px;
    }
    
    .size-label {
        font-size: 12px;
    }
    
    .variant-price {
        font-size: 12px;
    }
    
    .quantity-input {
        padding: 6px;
        font-size: 14px;
    }
    
    .midocean-personalization-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .sizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   PERSONALIZATION FORM (SHORTCODE)
   Formularz personalizacji - [formularz_druku]
   ======================================== */

/* Elementor Global Typography dla wszystkich tekstów formularza */
.midocean-personalization-form,
.midocean-personalization-form p,
.midocean-personalization-form label,
.midocean-personalization-form .input-select,
.midocean-personalization-form .input-text,
.midocean-personalization-form .input-textarea,
.midocean-personalization-form .form-note,
.midocean-personalization-form .color-name,
.midocean-personalization-form .size-label,
.midocean-personalization-form .variant-price,
.midocean-personalization-form .variant-stock {
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    line-height: var(--e-global-typography-text-line-height) !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing) !important;
}

.midocean-personalization-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.midocean-personalization-form h3 {
    margin-top: 0;
    color: #333;
}

.midocean-personalization-form .form-field {
    margin-bottom: 15px;
}

.midocean-personalization-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.midocean-personalization-form .form-field.half {
    flex: 1;
}

.midocean-personalization-form .form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.midocean-personalization-form .form-field .input-select,
.midocean-personalization-form .form-field .input-text,
.midocean-personalization-form .form-field .input-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.midocean-personalization-form .form-field .input-textarea {
    resize: vertical;
    min-height: 80px;
}

.midocean-personalization-form .form-note {
    color: #666;
    font-size: 12px;
    margin-top: 3px;
    display: block;
}

.midocean-personalization-form .notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ffeaa7;
    margin: 10px 0;
}

.midocean-personalization-form .personalization-submit {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

.midocean-personalization-form .personalization-submit:hover {
    background: #005a87;
}

.midocean-personalization-form .debug-data {
    margin-top: 20px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
}

.midocean-personalization-form .debug-data pre {
    background: white;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 12px;
}

/* Variants Selection Section */
.variants-selection-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.variants-selection-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.variants-list-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Wiersz koloru - pełna szerokość */
.color-row-full {
    background: #f0f8ff;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.15);
}

/* Nagłówek koloru */
.color-header {
    margin-bottom: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.color-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-swatch-display {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.swatch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swatch-color-single,
.swatch-color-multi {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.swatch-fallback {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.color-name {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
}

/* Grid rozmiarów dla danego koloru */
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.size-item {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.size-item:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.size-label {
    font-weight: 700;
    font-size: 16px;
    color: #2196f3;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
}

.variant-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variant-price {
    font-weight: 700;
    color: #2196f3;
    font-size: 16px;
    margin: 6px 0;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}

.variant-price .sale-price {
    color: #e74c3c;
    font-size: 17px;
}

.variant-price .regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-left: 6px;
    display: inline-block;
}

.variant-stock {
    font-size: 13px;
    margin: 6px 0;
    font-weight: 500;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}

.in-stock {
    color: #4caf50;
    font-weight: 600;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 500;
}

.variant-quantity {
    margin-top: 6px;
}

/* Usuń strzałki z input number w Chrome/Safari/Edge */
.quantity-input {
    width: 100%;
    padding: 12px 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

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

.quantity-input:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
    transform: scale(1.02);
}

.quantity-input:hover {
    border-color: #2196f3;
}

.quantity-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.variant-unavailable {
    color: #999;
    font-style: italic;
    padding: 10px 0;
    text-align: center;
}

.unavailable-text {
    font-size: 18px;
    color: #ccc;
}

/* Responsive dla formularza personalizacji */
@media (max-width: 768px) {
    .sizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .color-row-full {
        padding: 12px;
    }
    
    .color-swatch-display {
        width: 35px;
        height: 35px;
    }
    
    .color-name {
        font-size: 14px;
    }
    
    .size-label {
        font-size: 12px;
    }
    
    .variant-price {
        font-size: 12px;
    }
    
    .quantity-input {
        padding: 6px;
        font-size: 14px;
    }
    
    .midocean-personalization-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .sizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
