/* Wrapper */
.ok-offer-wrapper {
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ok-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.ok-offer-header h3 { margin: 0; font-size: 18px; }

.ok-progress-bar {
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

/* Color Swatches */
.ok-color-swatches {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.ok-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.ok-swatch:hover { transform: scale(1.1); }
.ok-swatch.selected {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
    transform: scale(1.1);
}

/* Size Matrix */
.ok-size-matrix {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.ok-size-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px; /* Fixed width for alignment */
}

.ok-size-label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Quantity Controls */
.ok-qty-ctrl {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 36px; /* Explicit height */
}

.ok-qty-ctrl button {
    background: #f1f1f1;
    border: none;
    width: 28px;
    height: 100%; /* Fill container */
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ok-qty-ctrl button:hover { background: #e1e1e1; }

.ok-qty-input {
    width: 35px !important; /* Force width override */
    height: 100% !important; /* Force height override */
    text-align: center;
    border: none !important; /* Remove individual border */
    margin: 0 !important;
    padding: 0 !important;
    -moz-appearance: textfield;
    font-size: 14px;
}
.ok-qty-input::-webkit-outer-spin-button,
.ok-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Actions */
.ok-actions {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
#ok-customize-btn {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 16px;
    text-transform: uppercase;
}

/* Modal CSS (Add previous Modal CSS here too) */
#ok-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ok-modal-content { background: #fff; width: 90%; max-width: 1000px; height: 80vh; border-radius: 5px; position: relative; display: flex; flex-direction: column; }
#ok-close-modal { position: absolute; top: 10px; right: 10px; font-size: 24px; background: none; border: none; cursor: pointer; z-index: 100; }
.ok-modal-steps { padding: 15px; border-bottom: 1px solid #eee; background: #f9f9f9; }
.ok-modal-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.ok-designer-container { display: flex; height: 100%; }
.ok-view-switcher { width: 120px; background: #f0f0f1; padding: 10px; overflow-y: auto; }
.ok-thumb { width: 100%; margin-bottom: 10px; border: 2px solid transparent; cursor: pointer; }
.ok-thumb.active { border-color: #007cba; }
.ok-thumb img { width: 100%; display: block; }
.ok-canvas-area { flex: 1; background: #e5e5e5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ok-tools-sidebar { width: 250px; padding: 20px; border-left: 1px solid #eee; background: #fff; }
.ok-modal-footer { padding: 15px; border-top: 1px solid #eee; text-align: right; background: #fff; }


/* Swatches with Checks */
.ok-swatch {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ddd;
    position: relative; cursor: pointer;
}
.ok-swatch .ok-tick {
    display: none; color: #fff; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 20px; text-shadow: 0 0 2px rgba(0,0,0,0.5);
}
.ok-swatch.active { border-color: #333; transform: scale(1.1); }
.ok-swatch.active .ok-tick { display: block; }

/* Selected Color Rows */
.ok-color-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px; border: 1px solid #eee; margin-bottom: 10px;
    background: #f9f9f9; border-radius: 5px;
}
.ok-row-left { display: flex; align-items: center; gap: 10px; }
.ok-row-img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #ddd; }
.ok-row-info h5 { margin: 0; font-size: 15px; text-transform: capitalize; }
.ok-row-info span { font-size: 12px; color: #666; }
.ok-row-btn {
    background: #fff; border: 1px solid #007cba; color: #007cba;
    padding: 8px 15px; border-radius: 20px; font-size: 12px; cursor: pointer;
    font-weight: bold; transition: 0.2s;
}
.ok-row-btn:hover { background: #007cba; color: #fff; }
.ok-row-btn.has-qty { background: #eef9fd; }

/* Mini Size Modal */
#ok-size-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 100000;
    display: flex; align-items: center; justify-content: center;
}
.ok-mini-modal {
    background: #fff; width: 90%; max-width: 400px;
    border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}
.ok-mini-header {
    padding: 15px; border-bottom: 1px solid #eee; display: flex; align-items: center;
}
.ok-mini-header h3 { margin: 0; flex: 1; font-size: 16px; }
#ok-close-mini { cursor: pointer; font-size: 24px; color: #999; }

.ok-mini-body { padding: 20px; max-height: 300px; overflow-y: auto; }

/* Size Row in Popup */
.ok-mini-size-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 15px;
}
.ok-mini-label { font-weight: bold; font-size: 14px; }
/* --- Mini Modal Quantity Control (Fixed Layout) --- */
/* --- Mini Modal Quantity Control (Theme-Proof Layout) --- */
.ok-mini-ctrl {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Forces elements to stay in one line */
    align-items: center !important;
    justify-content: space-between !important;
    
    width: 130px !important; /* Exact width */
    height: 40px !important;
    
    border: 1px solid #ddd !important;
    border-radius: 50px !important; /* Pill Shape */
    background: #fff !important;
    overflow: hidden !important; /* Clips the corners */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* The Buttons (Minus / Plus) */
.ok-mini-ctrl button {
    /* STRICT WIDTH SETTINGS */
    flex: 0 0 35px !important; /* Don't grow, don't shrink, stay 35px */
    width: 35px !important;
    max-width: 35px !important;
    min-width: 35px !important;
    height: 100% !important;
    
    border: none !important;
    background: #f5f5f5 !important;
    color: #444 !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: bold !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important; /* Remove theme radius */
    outline: none !important;
}

.ok-mini-ctrl button:hover {
    background: #e1e1e1 !important;
}

/* The Number Input */
.ok-mini-ctrl input {
    /* CSS HACK: width 0 allows flex-grow to calculate size correctly */
    width: 0 !important; 
    min-width: 0 !important;
    flex-grow: 1 !important; 
    
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    
    text-align: center !important;
    font-weight: bold !important;
    font-size: 15px !important;
    color: #333 !important;
    background: #fff !important;
    
    -moz-appearance: textfield !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 40px !important;
}

/* Hide Spinners in Chrome/Safari */
.ok-mini-ctrl input::-webkit-outer-spin-button,
.ok-mini-ctrl input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ok-mini-footer {
    padding: 15px; background: #f9f9f9; text-align: right;
    display: flex; justify-content: space-between;
}


/* --- Pill Button Styling (Small) --- */
.ok-row-btn.pill-btn {
    background: #fff;
    color: #007cba;
    border: 1px solid #007cba;
    border-radius: 50px; 
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    line-height: 1;
}
.ok-row-btn.pill-btn:hover { background: #007cba; color: #fff; }
.ok-row-btn.pill-btn.has-qty { background: #007cba; color: #fff; border-color: #006ba1; }

/* --- Mini Modal Footer Buttons (Pills) --- */
.ok-mini-footer {
    padding: 15px; background: #fff; text-align: right; border-top: 1px solid #eee; display: flex; justify-content: space-between; gap: 10px;
}

#ok-mini-confirm {
    background: #007cba;
    color: #fff;
    border: 1px solid #007cba;
    border-radius: 50px; /* PILL SHAPE */
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
#ok-mini-confirm:hover { background: #006ba1; }

#ok-mini-cancel {
    background: #fff;
    color: #666;
    border: 1px solid #ccc; /* Border instead of underline */
    border-radius: 50px; /* PILL SHAPE */
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
#ok-mini-cancel:hover { background: #f5f5f5; border-color: #bbb; color: #333; }


/* --- Mini Modal Inputs (Refined Width) --- */
.ok-mini-ctrl {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    height: 32px;
    /* Prevent flatsome stretching */
    width: 110px; 
    max-width: 110px; 
    flex-shrink: 0;
}
.ok-mini-ctrl button {
    width: 30px; height: 100%; border: none; background: #f5f5f5; cursor: pointer; font-size: 14px; font-weight: bold; display: flex; align-items: center; justify-content: center; padding: 0;
}
.ok-mini-ctrl input {
    flex: 1; /* Take remaining space */
    width: auto !important;
    max-width: none !important;
    text-align: center; border: none; border-left: 1px solid #eee; border-right: 1px solid #eee; font-weight: bold; font-size: 13px; margin: 0; height: 100%; padding: 0; -moz-appearance: textfield;
}

/* --- Other Existing Styles --- */
.ok-offer-wrapper { background: #fff; border: 1px solid #e1e1e1; padding: 20px; border-radius: 5px; margin-bottom: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ok-offer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.ok-offer-header h3 { margin: 0; font-size: 18px; }
.ok-progress-bar { background: #333; color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 14px; font-weight: bold; }
.ok-color-swatches { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.ok-swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ddd; position: relative; cursor: pointer; }
.ok-swatch .ok-tick { display: none; color: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; text-shadow: 0 0 2px rgba(0,0,0,0.5); }
.ok-swatch.active { border-color: #333; transform: scale(1.1); }
.ok-swatch.active .ok-tick { display: block; }
.ok-color-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border: 1px solid #eee; margin-bottom: 10px; background: #f9f9f9; border-radius: 5px; }
.ok-row-left { display: flex; align-items: center; gap: 12px; }
.ok-row-img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #ddd; }
.ok-row-info h5 { margin: 0; font-size: 14px; text-transform: capitalize; color: #333; }
.ok-row-info span { font-size: 12px; color: #777; }
.ok-actions { margin-top: 25px; text-align: center; border-top: 1px solid #eee; padding-top: 20px; }
#ok-customize-btn { width: 100%; max-width: 400px; padding: 15px; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
/* Mini Modal Structure */
#ok-size-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100000; display: flex; align-items: center; justify-content: center; }
.ok-mini-modal { background: #fff; width: 90%; max-width: 350px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); overflow: hidden; }
.ok-mini-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; align-items: center; background: #fafafa; }
.ok-mini-header h3 { margin: 0; flex: 1; font-size: 15px; font-weight: 700; color: #333; }
#ok-close-mini { cursor: pointer; font-size: 20px; color: #aaa; }
.ok-mini-body { padding: 20px; max-height: 300px; overflow-y: auto; }
.ok-mini-size-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ok-mini-label { font-weight: bold; font-size: 13px; color: #444; }



/* --- Swatches with Image Support --- */
.ok-swatch {
    width: 45px; /* Slightly larger for better image visibility */
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ddd;
    position: relative;
    cursor: pointer;
    padding: 0;
    
    /* Ensure images look good */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #eee; /* Fallback */
    transition: all 0.2s ease;
}

.ok-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ok-swatch.active {
    border-color: #007cba; /* Highlight Color */
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.ok-swatch .ok-tick {
    display: none;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* Shadow to make tick visible on light images */
}

.ok-swatch.active .ok-tick {
    display: block;
}

/* --- Remove Logo Button (Pill Shape) --- */
#ok-delete-logo {
    background-color: #d63638 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important; /* PILL SHAPE */
    padding: 8px 24px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    width: auto !important;
    display: inline-block !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
}

#ok-delete-logo:hover {
    background-color: #a00 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

#ok-controls-area {
    text-align: center; /* Center the button */
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* --- Simple Mode Grid --- */
.ok-simple-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.ok-simple-item {
    width: 120px;
    text-align: center;
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 5px;
    padding: 10px;
    position: relative;
    transition: all 0.2s;
}

.ok-simple-item:hover {
    border-color: #ccc;
}

.ok-simple-item.selected {
    border-color: #007cba;
    background: #f0f9ff;
}

.ok-simple-img-box {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.ok-simple-img-box img {
    max-width: 100%;
    max-height: 100%;
}

.ok-simple-name {
    font-size: 13px;
    font-weight: bold;
}

.ok-simple-check {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    background: #007cba;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.ok-simple-item.selected .ok-simple-check {
    display: flex;
}

.ok-simple-upload-area {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* --- SIMPLE MODE GRID (Fix for invisible layout) --- */
.ok-simple-container {
    padding: 20px;
}

.ok-simple-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 20px;
    width: 100%;
}

.ok-simple-item {
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    background: #fff;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ok-simple-item:hover {
    border-color: #bbb;
    transform: translateY(-2px);
}

.ok-simple-item.selected {
    border-color: #007cba;
    background: #f0f7fc;
    box-shadow: 0 0 0 2px #007cba; /* Strong highlight */
}

.ok-simple-img-box {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.ok-simple-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block; /* Fix for theme hiding images */
}

.ok-simple-name {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    line-height: 1.2;
}

/* The Green Checkmark */
.ok-simple-check {
    display: none; /* Hidden by default */
    position: absolute;
    top: -8px;
    right: -8px;
    background: #007cba;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.ok-simple-item.selected .ok-simple-check {
    display: flex !important; /* Force show when selected */
}

.ok-simple-upload-area {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

/* --- FIX MODAL SIZING --- */
.ok-modal-body {
    overflow-y: auto; /* Allow scrolling if grid is tall */
    max-height: 70vh;
}

/* --- SWATCH MODES --- */

/* COMMON */
.ok-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

/* MODE: CIRCLES (Default) */
.ok-swatch.is-circle {
    width: 45px; height: 45px; border-radius: 50%; border: 2px solid #ddd;
    position: relative; cursor: pointer; padding: 0;
    background-size: cover; background-position: center;
    transition: all 0.2s;
}
.ok-swatch.is-circle:hover { transform: scale(1.1); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.ok-swatch.is-circle.active { border-color: #007cba; transform: scale(1.1); box-shadow: 0 0 0 3px rgba(0,124,186,0.2); }
.ok-swatch.is-circle .ok-tick {
    display: none; color: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 24px; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.ok-swatch.is-circle.active .ok-tick { display: block; }


/* MODE: IMAGES (New!) */
.ok-swatch.is-image {
    width: 70px;
    height: 85px; /* Portrait aspect ratio */
    border: 2px solid #eee;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    padding: 2px;
    overflow: hidden;
    transition: all 0.2s;
}

.ok-swatch.is-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.ok-swatch.is-image:hover {
    border-color: #bbb;
    transform: translateY(-2px);
}

.ok-swatch.is-image.active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px #007cba;
}

.ok-swatch.is-image .ok-tick {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    background: #007cba;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ok-swatch.is-image.active .ok-tick {
    display: flex;
}

/* --- Sidebar Styling --- */
/* --- Sidebar Decoration Selector --- */
#ok-decoration-options {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
}

#ok-decoration-options h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.ok-deco-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ok-deco-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
}

.ok-deco-option:hover {
    border-color: #007cba;
    background: #f0f7fc;
}

.ok-deco-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #007cba;
}

.ok-price-tag {
    font-weight: bold;
    color: #333;
    font-size: 13px;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Static label when only 1 option exists */
.ok-deco-static {
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* --- Tabs --- */
.ok-modal-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
}

.ok-tab-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.ok-tab-btn:hover { background: #eee; }

.ok-tab-btn.active {
    background: #fff;
    border-bottom-color: #007cba;
    color: #007cba;
}

.ok-tab-content {
    height: 100%;
}


.ok-modal-content { display: flex; flex-direction: column; width: 95%; max-width: 1200px; height: 90vh; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.ok-modal-body { display: flex; flex-direction: row; flex: 1; overflow: hidden; }

/* 3 COLUMNS */
.ok-thumbs-column { width: 100px; background: #f0f0f0; border-right: 1px solid #ddd; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.ok-main-panel { flex: 1; position: relative; overflow-y: auto; background: #fff; display: flex; align-items: center; justify-content: center; }
.ok-tools-sidebar { width: 320px; min-width: 320px; background: #f8f9fa; border-left: 1px solid #ddd; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; z-index: 10; }

/* Thumbs */
.ok-thumb { cursor: pointer; opacity: 0.6; text-align: center; border: 2px solid transparent; padding: 5px; background: #fff; border-radius: 4px; }
.ok-thumb.active { opacity: 1; border-color: #007cba; font-weight: bold; }
.ok-thumb img { width: 100%; height: auto; display: block; margin-bottom: 5px; }

/* Canvas */
.ok-designer-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #eef; }
.ok-canvas-area { border: 1px solid #ccc; box-shadow: 0 0 10px rgba(0,0,0,0.1); }

/* Simple Grid */
.ok-simple-container { width: 100%; padding: 20px; align-self: flex-start; }
.ok-simple-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.ok-simple-item { width: 100px; text-align: center; cursor: pointer; border: 2px solid #eee; border-radius: 6px; padding: 10px; position: relative; transition: 0.2s; }
.ok-simple-item.selected { border-color: #007cba; background: #f0f7fc; }
.ok-simple-img-box img { width: 100%; height: auto; }
.ok-simple-check { display: none; position: absolute; top: -5px; right: -5px; background: #007cba; color: #fff; border-radius: 50%; width: 20px; height: 20px; justify-content: center; align-items: center; }
.ok-simple-item.selected .ok-simple-check { display: flex; }

/* --- ORIGINAL CSS FROM BACKUP --- */
.ok-offer-wrapper { background: #fff; border: 1px solid #e1e1e1; padding: 20px; border-radius: 5px; margin-bottom: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ok-offer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.ok-offer-header h3 { margin: 0; font-size: 18px; }
.ok-progress-bar { background: #333; color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 14px; font-weight: bold; }
.ok-color-swatches { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.ok-swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ddd; position: relative; cursor: pointer; padding: 0; }
.ok-swatch:hover { transform: scale(1.1); }
.ok-swatch.selected { border-color: #333; box-shadow: 0 0 0 3px rgba(0,0,0,0.1); transform: scale(1.1); }
.ok-actions { margin-top: 25px; text-align: center; border-top: 1px solid #eee; padding-top: 20px; }
#ok-customize-btn { width: 100%; max-width: 400px; padding: 12px; font-size: 16px; text-transform: uppercase; }

/* Modal CSS */
#ok-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ok-modal-content { background: #fff; width: 90%; max-width: 1000px; height: 80vh; border-radius: 5px; position: relative; display: flex; flex-direction: column; }
#ok-close-modal { position: absolute; top: 10px; right: 10px; font-size: 24px; background: none; border: none; cursor: pointer; z-index: 100; }
.ok-modal-steps { padding: 15px; border-bottom: 1px solid #eee; background: #f9f9f9; }
.ok-modal-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.ok-designer-container { display: flex; height: 100%; }
.ok-view-switcher { width: 120px; background: #f0f0f1; padding: 10px; overflow-y: auto; }
.ok-thumb { width: 100%; margin-bottom: 10px; border: 2px solid transparent; cursor: pointer; }
.ok-thumb.active { border-color: #007cba; }
.ok-thumb img { width: 100%; display: block; }
.ok-canvas-area { flex: 1; background: #e5e5e5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ok-tools-sidebar { width: 250px; padding: 20px; border-left: 1px solid #eee; background: #fff; overflow-y: auto; }
.ok-modal-footer { padding: 15px; border-top: 1px solid #eee; text-align: right; background: #fff; }

/* Swatches with Checks */
.ok-swatch .ok-tick { display: none; color: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; text-shadow: 0 0 2px rgba(0,0,0,0.5); }
.ok-swatch.active { border-color: #333; transform: scale(1.1); }
.ok-swatch.active .ok-tick { display: block; }

/* Selected Color Rows */
.ok-color-row { display: flex; align-items: center; justify-content: space-between; padding: 15px; border: 1px solid #eee; margin-bottom: 10px; background: #f9f9f9; border-radius: 5px; }
.ok-row-left { display: flex; align-items: center; gap: 10px; }
.ok-row-img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #ddd; }
.ok-row-info h5 { margin: 0; font-size: 15px; text-transform: capitalize; }
.ok-row-info span { font-size: 12px; color: #666; }
.ok-row-btn { background: #fff; border: 1px solid #007cba; color: #007cba; padding: 8px 15px; border-radius: 20px; font-size: 12px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.ok-row-btn:hover { background: #007cba; color: #fff; }
.ok-row-btn.has-qty { background: #eef9fd; }

/* Mini Size Modal */
#ok-size-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100000; display: flex; align-items: center; justify-content: center; }
.ok-mini-modal { background: #fff; width: 90%; max-width: 400px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); overflow: hidden; }
.ok-mini-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; align-items: center; }
.ok-mini-header h3 { margin: 0; flex: 1; font-size: 16px; }
#ok-close-mini { cursor: pointer; font-size: 24px; color: #999; }
.ok-mini-body { padding: 20px; max-height: 300px; overflow-y: auto; }
.ok-mini-size-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ok-mini-label { font-weight: bold; font-size: 14px; }
.ok-mini-ctrl { display: flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; height: 36px; }
.ok-mini-ctrl button { background: #f1f1f1; border: none; width: 28px; height: 100%; cursor: pointer; font-weight: bold; padding: 0; display: flex; align-items: center; justify-content: center; }
.ok-mini-ctrl input { width: 35px; height: 100%; text-align: center; border: none; margin: 0; padding: 0; -moz-appearance: textfield; font-size: 14px; }
.ok-mini-footer { padding: 15px; background: #f9f9f9; text-align: right; display: flex; justify-content: space-between; }

/* --- NEW STYLES FOR HISTORY & TABLES --- */
.ok-sidebar-tabs { display: flex; margin-bottom: 15px; border-bottom: 1px solid #ddd; }
.ok-tab { flex: 1; padding: 8px; border: none; background: none; cursor: pointer; font-weight: 600; color: #777; border-bottom: 2px solid transparent; }
.ok-tab.active { border-bottom-color: #007cba; color: #007cba; }

.ok-pricing-table-container { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
.ok-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ok-mini-table th, .ok-mini-table td { border: 1px solid #eee; padding: 5px; text-align: center; }
.ok-mini-table th { background: #f9f9f9; font-weight: 600; }
.ok-mini-table tr.active-tier { background: #e3f2fd; font-weight: bold; }

/* Simple Mode Grid */
.ok-simple-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.ok-simple-item { width: 100px; text-align: center; cursor: pointer; border: 2px solid #eee; border-radius: 6px; padding: 10px; position: relative; }
.ok-simple-item.selected { border-color: #007cba; background: #f0f7fc; }
.ok-simple-img-box img { width: 100%; }
.ok-simple-check { display: none; position: absolute; top: -5px; right: -5px; background: #007cba; color: #fff; border-radius: 50%; width: 20px; height: 20px; justify-content: center; align-items: center; }
.ok-simple-item.selected .ok-simple-check { display: flex; }

/* WRAPPER & HEADER */
.ok-offer-wrapper { background: #fff; border: 1px solid #e1e1e1; padding: 20px; border-radius: 5px; margin-bottom: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ok-offer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.ok-offer-header h3 { margin: 0; font-size: 18px; }
.ok-progress-bar { background: #333; color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 14px; font-weight: bold; }

/* SWATCHES */
.ok-color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.ok-swatch { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #ddd; position: relative; cursor: pointer; padding: 0; background-size: cover; background-position: center; transition: all 0.2s; }
.ok-swatch:hover { transform: scale(1.1); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.ok-swatch.active { border-color: #007cba; transform: scale(1.1); box-shadow: 0 0 0 3px rgba(0,124,186,0.2); }
.ok-swatch .ok-tick { display: none; color: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.ok-swatch.active .ok-tick { display: block; }

/* MODAL STRUCTURE (3-Column Layout) */
#ok-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ok-modal-content { background: #fff; width: 95%; max-width: 1200px; height: 90vh; border-radius: 5px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.ok-modal-body { flex: 1; display: flex; flex-direction: row; overflow: hidden; }
#ok-close-modal { position: absolute; top: 10px; right: 10px; font-size: 24px; background: none; border: none; cursor: pointer; z-index: 100; }
.ok-modal-steps { padding: 15px; border-bottom: 1px solid #eee; background: #f9f9f9; }

/* Left: Thumbs */
.ok-thumbs-column { width: 100px; background: #f0f0f0; border-right: 1px solid #ddd; overflow-y: auto; padding: 10px; }
.ok-thumb { width: 100%; margin-bottom: 10px; border: 2px solid transparent; cursor: pointer; opacity: 0.7; }
.ok-thumb.active { border-color: #007cba; opacity: 1; }
.ok-thumb img { width: 100%; display: block; }

/* Center: Main */
.ok-main-panel { flex: 1; position: relative; overflow-y: auto; background: #e5e5e5; display: flex; flex-direction: column; }
.ok-designer-container { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.ok-canvas-area { border: 1px solid #ccc; box-shadow: 0 0 10px rgba(0,0,0,0.1); background: #fff; }

/* Right: Sidebar */
.ok-tools-sidebar { width: 300px; min-width: 300px; background: #fff; border-left: 1px solid #eee; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; z-index: 10; }

/* Simple Mode Grid */
.ok-simple-container { padding: 20px; width: 100%; }
.ok-simple-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.ok-simple-item { width: 120px; text-align: center; cursor: pointer; border: 2px solid #eee; border-radius: 5px; padding: 10px; position: relative; background: #fff; }
.ok-simple-item.selected { border-color: #007cba; background: #f0f9ff; }
.ok-simple-img-box img { width: 100%; height: auto; }
.ok-simple-check { display: none; position: absolute; top: -5px; right: -5px; background: #007cba; color: #fff; border-radius: 50%; width: 20px; height: 20px; justify-content: center; align-items: center; }
.ok-simple-item.selected .ok-simple-check { display: flex; }

/* Sidebar Tabs */
.ok-sidebar-tabs { display: flex; border-bottom: 1px solid #ddd; margin-bottom: 15px; }
.ok-tab { flex: 1; padding: 10px; border: none; background: none; cursor: pointer; font-weight: bold; color: #777; border-bottom: 2px solid transparent; }
.ok-tab.active { color: #007cba; border-bottom-color: #007cba; }

/* Pricing & Tables */
.ok-live-pricing { background: #f8f9fa; border: 1px solid #e1e1e1; border-radius: 5px; padding: 15px; margin-top: 20px; }
.ok-price-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 14px; }
.ok-price-row.total { border-top: 1px solid #ccc; padding-top: 10px; font-weight: bold; font-size: 16px; margin-top: 10px; }

.ok-pricing-table-container { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
.ok-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 10px; }
.ok-mini-table th, .ok-mini-table td { border: 1px solid #eee; padding: 5px; text-align: center; }
.ok-mini-table th { background: #f9f9f9; font-weight: 600; }
.ok-mini-table tr.active-tier { background: #e3f2fd; font-weight: bold; }

/* Upload Box (Simple Mode) */
.ok-upload-group { background: #fff; border: 1px solid #ddd; padding: 10px; border-radius: 4px; margin-bottom: 10px; }
.ok-modal-footer { padding: 15px; border-top: 1px solid #eee; text-align: right; background: #fff; display: flex; justify-content: flex-end; align-items: center; }

/* Mini Modal (Quantities) */
.ok-row-btn { background: #fff; border: 1px solid #007cba; color: #007cba; padding: 8px 15px; border-radius: 20px; font-size: 12px; cursor: pointer; font-weight: bold; }
.ok-row-btn:hover { background: #007cba; color: #fff; }
.ok-mini-ctrl { display: flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; height: 36px; width: 120px; }
.ok-mini-ctrl button { width: 30px; border: none; background: #f1f1f1; cursor: pointer; font-weight: bold; }
.ok-mini-ctrl input { flex: 1; text-align: center; border: none; font-size: 14px; margin: 0; -moz-appearance: textfield; }


/* --- ORIGINAL CSS PRESERVED --- */
.ok-offer-wrapper { background: #fff; border: 1px solid #e1e1e1; padding: 20px; border-radius: 5px; margin-bottom: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ok-offer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.ok-offer-header h3 { margin: 0; font-size: 18px; }
.ok-progress-bar { background: #333; color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 14px; font-weight: bold; }

/* SWATCHES */
.ok-color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }

/* Mode: Images */
.ok-swatch.is-image { width: 70px; height: 85px; border: 2px solid #eee; border-radius: 6px; background: #fff; cursor: pointer; position: relative; padding: 2px; }
.ok-swatch.is-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.ok-swatch.is-image:hover { border-color: #bbb; }
.ok-swatch.is-image.active { border-color: #007cba; box-shadow: 0 0 0 2px #007cba; }
.ok-swatch.is-image .ok-tick { display: none; position: absolute; top: 4px; right: 4px; background: #007cba; color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 14px; align-items: center; justify-content: center; }
.ok-swatch.is-image.active .ok-tick { display: flex; }

/* Mode: Circles */
.ok-swatch.is-circle { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #ddd; position: relative; cursor: pointer; padding: 0; transition: all 0.2s; }
.ok-swatch.is-circle:hover { transform: scale(1.1); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.ok-swatch.is-circle.active { border-color: #007cba; transform: scale(1.1); box-shadow: 0 0 0 3px rgba(0,124,186,0.2); }
.ok-swatch.is-circle .ok-tick { display: none; color: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.ok-swatch.is-circle.active .ok-tick { display: block; }

/* SELECTED ROW (Fixed Blank Image Issue) */
.ok-color-row { display: flex; align-items: center; justify-content: space-between; padding: 15px; border: 1px solid #eee; margin-bottom: 10px; background: #f9f9f9; border-radius: 5px; }
.ok-row-left { display: flex; align-items: center; gap: 10px; }
.ok-row-img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #ddd; }
.ok-row-circle { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ccc; display: inline-block; } /* New Circle Indicator */
.ok-row-info h5 { margin: 0; font-size: 15px; text-transform: capitalize; }
.ok-row-info span { font-size: 12px; color: #666; }

/* Row Buttons */
.ok-row-actions { display: flex; align-items: center; gap: 10px; }
.ok-row-btn { background: #fff; border: 1px solid #007cba; color: #007cba; padding: 8px 15px; border-radius: 20px; font-size: 12px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.ok-row-btn:hover { background: #007cba; color: #fff; }
.ok-row-btn.has-qty { background: #eef9fd; }
.ok-row-remove { color: #d63638; cursor: pointer; font-size: 20px; display: flex; align-items: center; }
.ok-row-remove:hover { color: #a00; }

/* Actions */
.ok-actions { margin-top: 25px; text-align: center; border-top: 1px solid #eee; padding-top: 20px; }
#ok-customize-btn { width: 100%; max-width: 400px; padding: 12px; font-size: 16px; text-transform: uppercase; }

/* MODAL & TABS (Preserved) */
#ok-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ok-modal-content { background: #fff; width: 95%; max-width: 1200px; height: 90vh; border-radius: 5px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.ok-modal-body { flex: 1; display: flex; flex-direction: row; overflow: hidden; }
.ok-thumbs-column { width: 100px; background: #f0f0f0; border-right: 1px solid #ddd; overflow-y: auto; padding: 10px; }
.ok-thumb { width: 100%; margin-bottom: 10px; border: 2px solid transparent; cursor: pointer; opacity: 0.7; }
.ok-thumb.active { border-color: #007cba; opacity: 1; }
.ok-thumb img { width: 100%; display: block; }
.ok-main-panel { flex: 1; position: relative; overflow-y: auto; background: #e5e5e5; display: flex; flex-direction: column; }
.ok-designer-container { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.ok-canvas-area { border: 1px solid #ccc; box-shadow: 0 0 10px rgba(0,0,0,0.1); background: #fff; }
.ok-tools-sidebar { width: 300px; min-width: 300px; background: #fff; border-left: 1px solid #eee; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; z-index: 10; max-height: 100%; }

.ok-sidebar-tabs { display: flex; border-bottom: 1px solid #ddd; margin-bottom: 15px; }
.ok-tab { flex: 1; padding: 10px; border: none; background: none; cursor: pointer; font-weight: bold; color: #777; border-bottom: 2px solid transparent; }
.ok-tab.active { color: #007cba; border-bottom-color: #007cba; }

.ok-simple-container { padding: 20px; width: 100%; }
.ok-simple-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.ok-simple-item { width: 120px; text-align: center; cursor: pointer; border: 2px solid #eee; border-radius: 5px; padding: 10px; position: relative; background: #fff; }
.ok-simple-item.selected { border-color: #007cba; background: #f0f9ff; }
.ok-simple-img-box img { width: 100%; height: auto; }
.ok-simple-check { display: none; position: absolute; top: -5px; right: -5px; background: #007cba; color: #fff; border-radius: 50%; width: 20px; height: 20px; justify-content: center; align-items: center; }
.ok-simple-item.selected .ok-simple-check { display: flex; }

.ok-live-pricing { background: #f8f9fa; border: 1px solid #e1e1e1; border-radius: 5px; padding: 15px; margin-top: 20px; }
.ok-price-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 14px; }
.ok-price-row.total { border-top: 1px solid #ccc; padding-top: 10px; font-weight: bold; font-size: 16px; margin-top: 10px; }
.ok-pricing-table-container { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
.ok-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 10px; }
.ok-mini-table th, .ok-mini-table td { border: 1px solid #eee; padding: 5px; text-align: center; }
.ok-mini-table th { background: #f9f9f9; font-weight: 600; }
.ok-mini-table tr.active-tier { background: #e3f2fd; font-weight: bold; }
.ok-upload-group { background: #fff; border: 1px solid #ddd; padding: 10px; border-radius: 4px; margin-bottom: 10px; }
.ok-modal-footer { padding: 15px; border-top: 1px solid #eee; text-align: right; background: #fff; display: flex; justify-content: flex-end; align-items: center; }

/* MINI MODAL */
#ok-size-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100000; display: flex; align-items: center; justify-content: center; }
.ok-mini-modal { background: #fff; width: 90%; max-width: 400px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); overflow: hidden; }
.ok-mini-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; align-items: center; }
.ok-mini-header h3 { margin: 0; flex: 1; font-size: 16px; }
#ok-close-mini { cursor: pointer; font-size: 24px; color: #999; }
.ok-mini-body { padding: 20px; max-height: 300px; overflow-y: auto; }
.ok-mini-size-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ok-mini-label { font-weight: bold; font-size: 14px; }
.ok-mini-ctrl { display: flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; height: 36px; width: 120px; }
.ok-mini-ctrl button { width: 30px; border: none; background: #f1f1f1; cursor: pointer; font-weight: bold; }
.ok-mini-ctrl input { flex: 1; text-align: center; border: none; font-size: 14px; margin: 0; -moz-appearance: textfield; }
.ok-mini-footer { padding: 15px; background: #f9f9f9; text-align: right; display: flex; justify-content: space-between; }

/* WRAPPER */
.ok-offer-wrapper { background: #fff; border: 1px solid #e1e1e1; padding: 20px; border-radius: 5px; margin-bottom: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ok-offer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.ok-offer-header h3 { margin: 0; font-size: 18px; }
.ok-progress-bar { background: #333; color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 14px; font-weight: bold; }

/* SWATCHES */
.ok-color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.ok-swatch.is-image { width: 70px; height: 85px; border: 2px solid #eee; border-radius: 6px; background: #fff; cursor: pointer; position: relative; padding: 2px; }
.ok-swatch.is-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.ok-swatch.is-image:hover { border-color: #bbb; }
.ok-swatch.is-image.active { border-color: #007cba; box-shadow: 0 0 0 2px #007cba; }
.ok-swatch.is-image .ok-tick { display: none; position: absolute; top: 4px; right: 4px; background: #007cba; color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 14px; align-items: center; justify-content: center; }
.ok-swatch.is-image.active .ok-tick { display: flex; }
.ok-swatch.is-circle { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #ddd; position: relative; cursor: pointer; padding: 0; transition: all 0.2s; }
.ok-swatch.is-circle:hover { transform: scale(1.1); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.ok-swatch.is-circle.active { border-color: #007cba; transform: scale(1.1); box-shadow: 0 0 0 3px rgba(0,124,186,0.2); }
.ok-swatch.is-circle .ok-tick { display: none; color: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.ok-swatch.is-circle.active .ok-tick { display: block; }

/* SELECTED ROW */
.ok-color-row { display: flex; align-items: center; justify-content: space-between; padding: 15px; border: 1px solid #eee; margin-bottom: 10px; background: #f9f9f9; border-radius: 5px; }
.ok-row-left { display: flex; align-items: center; gap: 10px; }
.ok-row-img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #ddd; }
.ok-row-circle { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ccc; display: inline-block; }
.ok-row-info h5 { margin: 0; font-size: 15px; text-transform: capitalize; }
.ok-row-info span { font-size: 12px; color: #666; }
.ok-row-actions { display: flex; align-items: center; gap: 10px; }
.ok-row-btn { background: #fff; border: 1px solid #007cba; color: #007cba; padding: 8px 15px; border-radius: 20px; font-size: 12px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.ok-row-btn:hover { background: #007cba; color: #fff; }
.ok-row-btn.has-qty { background: #eef9fd; }
.ok-row-remove { color: #d63638; cursor: pointer; font-size: 20px; display: flex; align-items: center; }
.ok-row-remove:hover { color: #a00; }
.ok-actions { margin-top: 25px; text-align: center; border-top: 1px solid #eee; padding-top: 20px; }
#ok-customize-btn { width: 100%; max-width: 400px; padding: 12px; font-size: 16px; text-transform: uppercase; }
#ok-history-btn { display: none !important; }

/* MODAL LAYOUT */
#ok-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ok-modal-content { background: #fff; width: 95%; max-width: 1200px; height: 90vh; border-radius: 5px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.ok-modal-body { flex: 1; display: flex; flex-direction: row; overflow: hidden; }
#ok-close-modal { position: absolute; top: 10px; right: 10px; font-size: 24px; background: none; border: none; cursor: pointer; z-index: 100; }
.ok-modal-steps { padding: 15px; border-bottom: 1px solid #eee; background: #f9f9f9; }
.ok-thumbs-column { width: 160px; background: #f8f9fa; border-right: 1px solid #ddd; overflow-y: auto; padding: 15px; }
.ok-thumb { width: 100%; margin-bottom: 10px; border: 1px solid #ddd; background: #fff; cursor: pointer; opacity: 0.8; border-radius: 4px; padding: 8px; text-align: center; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.ok-thumb:hover { opacity: 1; transform: translateY(-1px); }
.ok-thumb.active { border-color: #007cba; opacity: 1; box-shadow: 0 0 0 2px #007cba inset; }
.ok-thumb img { width: 100%; height: auto; display: block; margin-bottom: 5px; }
.ok-thumb span { display: block; font-size: 12px; font-weight: 600; color: #555; }
.ok-main-panel { flex: 1; position: relative; overflow-y: auto; background: #e5e5e5; display: flex; flex-direction: column; }
.ok-designer-container { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; overflow: auto; }
.ok-canvas-area { border: 1px solid #ccc; box-shadow: 0 0 10px rgba(0,0,0,0.1); background: #fff; margin: 20px; }
.ok-tools-sidebar { width: 320px; min-width: 320px; background: #fff; border-left: 1px solid #eee; padding: 0; display: flex; flex-direction: column; z-index: 10; }
.ok-sidebar-tabs { display: flex; border-bottom: 1px solid #ddd; background: #f1f1f1; }
.ok-tab { flex: 1; padding: 12px 10px; border: none; background: transparent; cursor: pointer; font-weight: 600; color: #666; border-right: 1px solid #ddd; transition: 0.2s; font-size: 13px; text-transform: uppercase; }
.ok-tab:last-child { border-right: none; }
.ok-tab:hover { background: #e9e9e9; color: #333; }
.ok-tab.active { background: #fff; color: #007cba; border-bottom: 2px solid #fff; margin-bottom: -1px; }
.ok-tab-content { padding: 20px; overflow-y: auto; flex: 1; }

/* Pricing */
.ok-live-pricing { background: #f8f9fa; border: 1px solid #e1e1e1; border-radius: 5px; padding: 15px; margin-top: 20px; }
.ok-price-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 14px; }
.ok-price-row.total { border-top: 1px solid #ccc; padding-top: 10px; font-weight: bold; font-size: 16px; margin-top: 10px; }
.ok-setup-info { background: #fff8e1; color: #856404; padding: 8px; border: 1px solid #ffeeba; border-radius: 4px; font-size: 12px; margin-bottom: 10px; text-align: center; }
.ok-pricing-table-container { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
.ok-pricing-table-container h5 { margin: 0 0 8px 0; font-size: 13px; font-weight: 700; color: #444; }
.ok-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 10px; }
.ok-mini-table th, .ok-mini-table td { border: 1px solid #eee; padding: 6px; text-align: center; }
.ok-mini-table th { background: #f9f9f9; font-weight: 600; color: #555; }
.ok-mini-table tr.active-tier { background: #e3f2fd; font-weight: bold; color: #007cba; }

/* Decoration Selector (Fixed Alignment) */
#ok-decoration-options { background: #f8f9fa; border: 1px solid #e2e4e7; border-radius: 6px; padding: 12px; margin-bottom: 20px; }
#ok-decoration-options h4 { margin: 0 0 10px 0; font-size: 13px; text-transform: uppercase; color: #555; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.ok-deco-radio-group { display: flex; flex-direction: column; gap: 8px; }
.ok-deco-radio-group label { display: flex; align-items: center; font-size: 13px; color: #444; cursor: pointer; } /* ALIGNMENT FIX */
.ok-deco-radio-group input { margin: 0 8px 0 0; }
.ok-deco-static { font-weight: bold; color: #333; display: flex; justify-content: space-between; align-items: center; }

/* Simple Mode */
.ok-simple-container { padding: 20px; width: 100%; }
.ok-simple-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.ok-simple-item { width: 120px; text-align: center; cursor: pointer; border: 2px solid #eee; border-radius: 5px; padding: 10px; position: relative; background: #fff; }
.ok-simple-item.selected { border-color: #007cba; background: #f0f9ff; }
.ok-simple-img-box img { width: 100%; height: auto; }
.ok-simple-check { display: none; position: absolute; top: -5px; right: -5px; background: #007cba; color: #fff; border-radius: 50%; width: 20px; height: 20px; justify-content: center; align-items: center; }
.ok-simple-item.selected .ok-simple-check { display: flex; }
.ok-upload-group { background: #fff; border: 1px solid #ddd; padding: 10px; border-radius: 4px; margin-bottom: 10px; }
.ok-modal-footer { padding: 15px; border-top: 1px solid #eee; text-align: right; background: #fff; display: flex; justify-content: flex-end; align-items: center; }

/* Mini Modal */
#ok-size-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100000; display: flex; align-items: center; justify-content: center; }
.ok-mini-modal { background: #fff; width: 90%; max-width: 400px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); overflow: hidden; }
.ok-mini-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; align-items: center; }
.ok-mini-header h3 { margin: 0; flex: 1; font-size: 16px; }
#ok-close-mini { cursor: pointer; font-size: 24px; color: #999; }
.ok-mini-body { padding: 20px; max-height: 300px; overflow-y: auto; }
.ok-mini-size-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ok-mini-label { font-weight: bold; font-size: 14px; }
.ok-mini-ctrl { display: flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; height: 36px; width: 120px; }
.ok-mini-ctrl button { width: 30px; border: none; background: #f1f1f1; cursor: pointer; font-weight: bold; }
.ok-mini-ctrl input { flex: 1; text-align: center; border: none; font-size: 14px; margin: 0; -moz-appearance: textfield; }
.ok-mini-footer { padding: 15px; background: #f9f9f9; text-align: right; display: flex; justify-content: space-between; }

/* Warning Msg */
#ok-validation-msg {
    color: #d63638;
    font-weight: 700;
    font-size: 13px;
    margin-right: 15px;
    display: none;
}